Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){

	char mark[9];
	int num[9], r_num[9], b_num[9], g_num[9], set, i, j;
	

	scanf("%d", &set);	/* ???????????°?????\??? */
	int ans[set];

	for(i = 0 ; i < 9 ; i++){	/* ????????????????????? */
		r_num[i] = 0;
		g_num[i] = 0;
		b_num[i] = 0;
	}

	for(i = 0 ; i < set ; i++){
		ans[i] = 0;
	}

	for(i = 0 ; i < set ; i++){	/* ???????????°?????°????????? */

	for(j = 0 ; j < 9 ; j++){
		scanf("%d", &num[j]);
	}
		for(j = 0 ; j < 9 ; j++){
			if(j == 9){
				scanf("%c", &mark[j]);
			}
		else{
			scanf(" %c", &mark[j]);
		}
	}

	for(j = 0 ; j < 9 ; j++){		/* ????????¨?????????????????? */
		if(mark[j] == 'R'){
			r_num[j] = num[j];
	}
			else if(mark[j] == 'G'){
				g_num[j] = num[j];
			}
			else if(mark[j] == 'B'){
				b_num[j] = num[j];
			}
		}

	sort(r_num);	/* ??????????????? */
	sort(g_num);	/* ??????????????? */
	sort(b_num);	/* ??????????????? */

		if(judge(r_num) == 1 && judge(g_num) == 1 && judge(b_num) == 1){	/* ???????????? */
			ans[i] = 1;
			}
	else{

		ans[i] = 0;
	}

		for(j = 0 ; j < 9 ; j++){	/* ????????????????????? */
			r_num[j] = 0;
			g_num[j] = 0;
			b_num[j] = 0;
		}
	}

		for(i = 0 ; i < set ; i++){
			printf("%d\n", ans[i]);
		}

	return 0;
}

void sort(int num[]){

	int p, q, tmp;

	for(p = 0; p < 8; p++){
		for(q = p + 1; q < 9; q++){
			if(num[p] > num[q]){
				tmp = num[p];
				num[p] = num[q];
				num[q] = tmp;
				}
			}
		}   
	}

int judge(int num[]){

	int cnt = 0;
	int i, j, k;

	for(i = 0; i < 9; i++){
		if(num[i] == 0){
			cnt++;			/* ???????????????0?????°??????????????? */
		}
	}
			if(cnt % 3 != 0){		/* 0?????°???3????????°??§???????????°0????????? */
		return 0;
	}

	for(i = cnt; i < 9; i++){	/* ???????????¶?????????????????????????????? */
		if(num[i] != 0){
			for(j = cnt; j < 9; j++){
				if(num[j] != 0 && j != i){
					if(num[i] == num[j]){
						for(k = cnt; k < 9; k++){
							if(num[k] != 0 && (k != i && k != j)){
								if(num[i] == num[k]){
									num[i] = 0;
									num[j] = 0;
									num[k] = 0;
								}
							}
						}
					}

					else if(num[j] - num[i] == 1){
						for(k = cnt; k < 9; k++){
							if(num[k] != 0 && (k != i && k != j)){
								if(num[k] - num[j] == 1){
									num[i] = 0;
									num[j] = 0;
									num[k] = 0;
								}
							}
						}
					}
				}
			}
		}
	}
	cnt = 0;
	for(i = 0; i < 9; i++){
		if(num[i] == 0){
			cnt++;
		}
	}
			if(cnt == 9){
				return 1;
			}
		else
	{
		return 0;
	}

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	" %c"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$248, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-284(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-284(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -272(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -264(%rbp)
	movl	$0, -280(%rbp)
	jmp	.L5
.L6:
	movl	-280(%rbp), %eax
	cltq
	movl	$0, -208(%rbp,%rax,4)
	movl	-280(%rbp), %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	movl	-280(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -280(%rbp)
.L5:
	cmpl	$8, -280(%rbp)
	jle	.L6
	movl	$0, -280(%rbp)
	jmp	.L7
.L8:
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -280(%rbp)
.L7:
	movl	-284(%rbp), %eax
	cmpl	%eax, -280(%rbp)
	jl	.L8
	movl	$0, -280(%rbp)
	jmp	.L9
.L25:
	movl	$0, -276(%rbp)
	jmp	.L10
.L11:
	leaq	-256(%rbp), %rdx
	movl	-276(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -276(%rbp)
.L10:
	cmpl	$8, -276(%rbp)
	jle	.L11
	movl	$0, -276(%rbp)
	jmp	.L12
.L15:
	cmpl	$9, -276(%rbp)
	jne	.L13
	leaq	-65(%rbp), %rdx
	movl	-276(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L14
.L13:
	leaq	-65(%rbp), %rdx
	movl	-276(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L14:
	addl	$1, -276(%rbp)
.L12:
	cmpl	$8, -276(%rbp)
	jle	.L15
	movl	$0, -276(%rbp)
	jmp	.L16
.L20:
	movl	-276(%rbp), %eax
	cltq
	movzbl	-65(%rbp,%rax), %eax
	cmpb	$82, %al
	jne	.L17
	movl	-276(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -208(%rbp,%rax,4)
	jmp	.L18
.L17:
	movl	-276(%rbp), %eax
	cltq
	movzbl	-65(%rbp,%rax), %eax
	cmpb	$71, %al
	jne	.L19
	movl	-276(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -112(%rbp,%rax,4)
	jmp	.L18
.L19:
	movl	-276(%rbp), %eax
	cltq
	movzbl	-65(%rbp,%rax), %eax
	cmpb	$66, %al
	jne	.L18
	movl	-276(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
.L18:
	addl	$1, -276(%rbp)
.L16:
	cmpl	$8, -276(%rbp)
	jle	.L20
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	sort
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	sort
	leaq	-160(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	sort
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L21
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L21
	leaq	-160(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L21
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	jmp	.L22
.L21:
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
.L22:
	movl	$0, -276(%rbp)
	jmp	.L23
.L24:
	movl	-276(%rbp), %eax
	cltq
	movl	$0, -208(%rbp,%rax,4)
	movl	-276(%rbp), %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	movl	-276(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -276(%rbp)
.L23:
	cmpl	$8, -276(%rbp)
	jle	.L24
	addl	$1, -280(%rbp)
.L9:
	movl	-284(%rbp), %eax
	cmpl	%eax, -280(%rbp)
	jl	.L25
	movl	$0, -280(%rbp)
	jmp	.L26
.L27:
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -280(%rbp)
.L26:
	movl	-284(%rbp), %eax
	cmpl	%eax, -280(%rbp)
	jl	.L27
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	sort
	.type	sort, @function
sort:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L31
.L35:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L32
.L34:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L33
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
.L33:
	addl	$1, -8(%rbp)
.L32:
	cmpl	$8, -8(%rbp)
	jle	.L34
	addl	$1, -12(%rbp)
.L31:
	cmpl	$7, -12(%rbp)
	jle	.L35
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sort, .-sort
	.globl	judge
	.type	judge, @function
judge:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L37
.L39:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L38
	addl	$1, -16(%rbp)
.L38:
	addl	$1, -12(%rbp)
.L37:
	cmpl	$8, -12(%rbp)
	jle	.L39
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L40
	movl	$0, %eax
	jmp	.L41
.L40:
	movl	-16(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L42
.L54:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L43
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L44
.L53:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L45
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L45
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jne	.L46
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L47
.L49:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L48
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L48
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L48
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jne	.L48
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L48:
	addl	$1, -4(%rbp)
.L47:
	cmpl	$8, -4(%rbp)
	jle	.L49
	jmp	.L45
.L46:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L45
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L50
.L52:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L51
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L51
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L51
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L51
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L51:
	addl	$1, -4(%rbp)
.L50:
	cmpl	$8, -4(%rbp)
	jle	.L52
.L45:
	addl	$1, -8(%rbp)
.L44:
	cmpl	$8, -8(%rbp)
	jle	.L53
.L43:
	addl	$1, -12(%rbp)
.L42:
	cmpl	$8, -12(%rbp)
	jle	.L54
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L55
.L57:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L56
	addl	$1, -16(%rbp)
.L56:
	addl	$1, -12(%rbp)
.L55:
	cmpl	$8, -12(%rbp)
	jle	.L57
	cmpl	$9, -16(%rbp)
	jne	.L58
	movl	$1, %eax
	jmp	.L41
.L58:
	movl	$0, %eax
.L41:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	judge, .-judge
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sort
	.type	sort, @function
sort:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %esi
	jge	.L2
	movq	%xmm1, (%rax)
.L2:
	cmpl	$9, %edx
	je	.L1
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L4
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L4:
	cmpl	$8, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	12(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L6:
	cmpl	$7, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	16(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L7
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L7:
	cmpl	$6, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	20(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L8
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L8:
	cmpl	$5, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	24(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L9
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L9:
	cmpl	$4, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	28(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L10
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L10:
	cmpl	$3, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	32(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L11
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L11:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$10, %edx
	jne	.L12
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$4, %rax
	addl	$1, %edx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE24:
	.size	sort, .-sort
	.p2align 4
	.globl	judge
	.type	judge, @function
judge:
.LFB25:
	.cfi_startproc
	endbr64
	movdqu	(%rdi), %xmm1
	movdqu	16(%rdi), %xmm0
	pxor	%xmm4, %xmm4
	movq	%rdi, %r9
	movdqa	.LC0(%rip), %xmm3
	cmpl	$1, 32(%r9)
	movdqa	%xmm1, %xmm2
	pcmpeqd	%xmm4, %xmm2
	pcmpeqd	%xmm0, %xmm4
	pand	%xmm3, %xmm2
	psubd	%xmm4, %xmm2
	movdqa	%xmm2, %xmm4
	psrldq	$8, %xmm4
	paddd	%xmm4, %xmm2
	movdqa	%xmm2, %xmm4
	psrldq	$4, %xmm4
	paddd	%xmm4, %xmm2
	movd	%xmm2, %edi
	adcl	$0, %edi
	imull	$-1431655765, %edi, %edx
	cmpl	$1431655765, %edx
	ja	.L247
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	cmpl	$8, %edi
	jg	.L44
	movslq	%edi, %rax
	movl	%edi, %ecx
	leaq	(%r9,%rax,4), %rbx
	leal	1(%rdi), %eax
	movq	%rax, %rbp
	leaq	(%r9,%rax,4), %rax
	movq	%rbx, %r8
	movq	%rax, -88(%rsp)
	leal	2(%rdi), %eax
	movq	%rax, %r12
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -80(%rsp)
	leal	3(%rdi), %eax
	movq	%rax, %r13
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -72(%rsp)
	leal	4(%rdi), %eax
	movq	%rax, %r14
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -64(%rsp)
	leal	5(%rdi), %eax
	movq	%rax, %r15
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -56(%rsp)
	leal	6(%rdi), %eax
	movl	%eax, -44(%rsp)
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -40(%rsp)
	leal	7(%rdi), %eax
	movl	%eax, -24(%rsp)
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -32(%rsp)
	leal	8(%rdi), %eax
	movl	%eax, -20(%rsp)
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -16(%rsp)
	jmp	.L67
	.p2align 4,,10
	.p2align 3
.L45:
	addl	$1, %ecx
	addq	$4, %r8
	cmpl	$9, %ecx
	je	.L253
.L67:
	movl	(%r8), %eax
	testl	%eax, %eax
	je	.L45
	movq	%rbx, %rdx
	movl	%edi, %eax
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L47:
	movl	%esi, %r11d
	subl	%r10d, %r11d
	cmpl	$1, %r11d
	je	.L254
.L46:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	$9, %eax
	je	.L45
.L66:
	movl	(%rdx), %esi
	cmpl	%ecx, %eax
	je	.L46
	testl	%esi, %esi
	je	.L46
	movl	(%r8), %r10d
	cmpl	%r10d, %esi
	jne	.L47
	movl	(%rbx), %r10d
	testl	%r10d, %r10d
	je	.L48
	cmpl	%edi, %eax
	je	.L48
	cmpl	%edi, %ecx
	je	.L48
	cmpl	%r10d, %esi
	jne	.L48
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rbx)
	.p2align 4,,10
	.p2align 3
.L48:
	cmpl	$9, %ebp
	je	.L46
	movq	-88(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L49
	cmpl	%ebp, %ecx
	je	.L49
	cmpl	%ebp, %eax
	je	.L49
	cmpl	(%r8), %esi
	jne	.L49
	movq	-88(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	.p2align 4,,10
	.p2align 3
.L49:
	cmpl	$8, %r12d
	ja	.L46
	movq	-80(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L50
	cmpl	%r12d, %ecx
	je	.L50
	cmpl	%r12d, %eax
	je	.L50
	cmpl	(%r8), %esi
	je	.L255
	.p2align 4,,10
	.p2align 3
.L50:
	cmpl	$8, %r13d
	ja	.L46
	movq	-72(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L51
	cmpl	%r13d, %ecx
	je	.L51
	cmpl	%r13d, %eax
	je	.L51
	cmpl	(%r8), %esi
	je	.L256
	.p2align 4,,10
	.p2align 3
.L51:
	cmpl	$8, %r14d
	ja	.L46
	movq	-64(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L52
	cmpl	%r14d, %ecx
	je	.L52
	cmpl	%r14d, %eax
	je	.L52
	cmpl	(%r8), %esi
	je	.L257
	.p2align 4,,10
	.p2align 3
.L52:
	cmpl	$8, %r15d
	ja	.L46
	movq	-56(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L53
	cmpl	%r15d, %ecx
	je	.L53
	cmpl	%r15d, %eax
	je	.L53
	cmpl	(%r8), %esi
	je	.L258
	.p2align 4,,10
	.p2align 3
.L53:
	movl	-44(%rsp), %r10d
	cmpl	$8, %r10d
	ja	.L46
	movq	-40(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L54
	cmpl	%r10d, %ecx
	je	.L54
	cmpl	%r10d, %eax
	je	.L54
	cmpl	(%r8), %esi
	je	.L259
	.p2align 4,,10
	.p2align 3
.L54:
	movl	-24(%rsp), %r10d
	cmpl	$8, %r10d
	ja	.L46
	movq	-32(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L55
	cmpl	%r10d, %ecx
	je	.L55
	cmpl	%r10d, %eax
	je	.L55
	cmpl	(%r8), %esi
	je	.L260
	.p2align 4,,10
	.p2align 3
.L55:
	cmpl	$8, -20(%rsp)
	jne	.L46
	movq	-16(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L46
	cmpl	$8, %ecx
	je	.L46
	cmpl	$8, %eax
	je	.L46
	cmpl	(%r8), %esi
	jne	.L46
.L252:
	movq	-16(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L253:
	movdqu	(%r9), %xmm1
	movdqu	16(%r9), %xmm0
.L44:
	pxor	%xmm2, %xmm2
	cmpl	$1, 32(%r9)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pcmpeqd	%xmm2, %xmm0
	pcmpeqd	%xmm2, %xmm1
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	pand	%xmm3, %xmm0
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	adcl	$0, %eax
	cmpl	$9, %eax
	sete	%al
	movzbl	%al, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L254:
	.cfi_restore_state
	movl	(%rbx), %r10d
	testl	%r10d, %r10d
	je	.L57
	cmpl	%edi, %ecx
	je	.L57
	cmpl	%edi, %eax
	je	.L57
	subl	%esi, %r10d
	cmpl	$1, %r10d
	jne	.L57
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rbx)
	.p2align 4,,10
	.p2align 3
.L57:
	cmpl	$9, %ebp
	je	.L46
	movq	-88(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L58
	cmpl	%ebp, %ecx
	je	.L58
	cmpl	%ebp, %eax
	je	.L58
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L261
	.p2align 4,,10
	.p2align 3
.L58:
	cmpl	$8, %r12d
	ja	.L46
	movq	-80(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L59
	cmpl	%r12d, %ecx
	je	.L59
	cmpl	%r12d, %eax
	je	.L59
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L262
	.p2align 4,,10
	.p2align 3
.L59:
	cmpl	$8, %r13d
	ja	.L46
	movq	-72(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L60
	cmpl	%r13d, %ecx
	je	.L60
	cmpl	%r13d, %eax
	je	.L60
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L263
	.p2align 4,,10
	.p2align 3
.L60:
	cmpl	$8, %r14d
	ja	.L46
	movq	-64(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L61
	cmpl	%r14d, %ecx
	je	.L61
	cmpl	%r14d, %eax
	je	.L61
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L264
	.p2align 4,,10
	.p2align 3
.L61:
	cmpl	$8, %r15d
	ja	.L46
	movq	-56(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L62
	cmpl	%r15d, %ecx
	je	.L62
	cmpl	%r15d, %eax
	je	.L62
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L265
	.p2align 4,,10
	.p2align 3
.L62:
	movl	-44(%rsp), %r11d
	cmpl	$8, %r11d
	ja	.L46
	movq	-40(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L63
	cmpl	%r11d, %ecx
	je	.L63
	cmpl	%r11d, %eax
	je	.L63
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L266
	.p2align 4,,10
	.p2align 3
.L63:
	movl	-24(%rsp), %r11d
	cmpl	$8, %r11d
	ja	.L46
	movq	-32(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L64
	cmpl	%r11d, %ecx
	je	.L64
	cmpl	%r11d, %eax
	je	.L64
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L267
	.p2align 4,,10
	.p2align 3
.L64:
	cmpl	$8, -20(%rsp)
	jne	.L46
	movq	-16(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L46
	cmpl	$8, %ecx
	je	.L46
	cmpl	$8, %eax
	je	.L46
	subl	(%rdx), %esi
	cmpl	$1, %esi
	jne	.L46
	jmp	.L252
	.p2align 4,,10
	.p2align 3
.L247:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xorl	%eax, %eax
	ret
.L255:
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movq	-80(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L50
.L261:
	movq	-88(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L58
.L256:
	movq	-72(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L51
.L262:
	movq	-80(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L59
.L257:
	movq	-64(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L52
.L263:
	movq	-72(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L60
.L258:
	movq	-56(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L53
.L264:
	movq	-64(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L61
.L259:
	movq	-40(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L54
.L265:
	movq	-56(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L62
.L260:
	movq	-32(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L55
.L266:
	movq	-40(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L63
.L267:
	movq	-32(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L64
	.cfi_endproc
.LFE25:
	.size	judge, .-judge
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	" %c"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-260(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	movq	%rbx, %rdi
	subq	$296, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-260(%rbp), %rdx
	movq	%rsp, %rdi
	leaq	15(,%rdx,4), %rcx
	movq	%rdx, %rsi
	movq	%rcx, %rax
	andq	$-4096, %rcx
	subq	%rcx, %rdi
	andq	$-16, %rax
	cmpq	%rdi, %rsp
	je	.L270
.L421:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L421
.L270:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L422
.L271:
	pxor	%xmm0, %xmm0
	movq	%rsp, -296(%rbp)
	movl	$0, -176(%rbp)
	movl	$0, -80(%rbp)
	movl	$0, -128(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -144(%rbp)
	testl	%esi, %esi
	jle	.L342
	movq	%rsp, %rdi
	salq	$2, %rdx
	xorl	%esi, %esi
	leaq	-220(%rbp), %r14
	call	memset@PLT
	leaq	-256(%rbp), %rax
	leaq	-56(%rbp), %r13
	movq	$0, -280(%rbp)
	movq	%rax, -328(%rbp)
	leaq	-65(%rbp), %rax
	leaq	.LC2(%rip), %r12
	movq	%rax, -320(%rbp)
	leaq	-208(%rbp), %rax
	movq	%rax, -288(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -304(%rbp)
	leaq	-160(%rbp), %rax
	movq	%rax, -312(%rbp)
	.p2align 4,,10
	.p2align 3
.L341:
	movq	-328(%rbp), %r15
	.p2align 4,,10
	.p2align 3
.L273:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	cmpq	%r14, %r15
	jne	.L273
	movq	-320(%rbp), %r15
	.p2align 4,,10
	.p2align 3
.L274:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	cmpq	%r13, %r15
	jne	.L274
	movzbl	-65(%rbp), %eax
	cmpb	$82, %al
	je	.L275
	cmpb	$71, %al
	je	.L276
	cmpb	$66, %al
	je	.L277
	movl	-160(%rbp), %edi
	movl	-112(%rbp), %esi
	movl	-208(%rbp), %ecx
.L278:
	movzbl	-64(%rbp), %eax
	cmpb	$82, %al
	je	.L279
.L424:
	cmpb	$71, %al
	je	.L280
	cmpb	$66, %al
	jne	.L281
	movl	-252(%rbp), %eax
	movl	%eax, -156(%rbp)
	.p2align 4,,10
	.p2align 3
.L281:
	movzbl	-63(%rbp), %eax
	cmpb	$82, %al
	je	.L282
	cmpb	$71, %al
	je	.L283
	cmpb	$66, %al
	jne	.L284
	movl	-248(%rbp), %eax
	movl	%eax, -152(%rbp)
	.p2align 4,,10
	.p2align 3
.L284:
	movzbl	-62(%rbp), %eax
	cmpb	$82, %al
	je	.L285
	cmpb	$71, %al
	je	.L286
	cmpb	$66, %al
	jne	.L287
	movl	-244(%rbp), %eax
	movl	%eax, -148(%rbp)
	.p2align 4,,10
	.p2align 3
.L287:
	movzbl	-61(%rbp), %eax
	cmpb	$82, %al
	je	.L288
	cmpb	$71, %al
	je	.L289
	cmpb	$66, %al
	jne	.L290
	movl	-240(%rbp), %eax
	movl	%eax, -144(%rbp)
	.p2align 4,,10
	.p2align 3
.L290:
	movzbl	-60(%rbp), %eax
	cmpb	$82, %al
	je	.L291
	cmpb	$71, %al
	je	.L292
	cmpb	$66, %al
	jne	.L293
	movl	-236(%rbp), %eax
	movl	%eax, -140(%rbp)
	.p2align 4,,10
	.p2align 3
.L293:
	movzbl	-59(%rbp), %eax
	cmpb	$82, %al
	je	.L294
	cmpb	$71, %al
	je	.L295
	cmpb	$66, %al
	jne	.L296
	movl	-232(%rbp), %eax
	movl	%eax, -136(%rbp)
	.p2align 4,,10
	.p2align 3
.L296:
	movzbl	-58(%rbp), %eax
	cmpb	$82, %al
	je	.L297
	cmpb	$71, %al
	je	.L298
	cmpb	$66, %al
	jne	.L299
	movl	-228(%rbp), %eax
	movl	%eax, -132(%rbp)
	.p2align 4,,10
	.p2align 3
.L299:
	movzbl	-57(%rbp), %eax
	cmpb	$82, %al
	je	.L300
	cmpb	$71, %al
	je	.L301
	cmpb	$66, %al
	jne	.L302
	movl	-224(%rbp), %eax
	movl	%eax, -128(%rbp)
	.p2align 4,,10
	.p2align 3
.L302:
	movq	-288(%rbp), %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L315:
	movd	4(%rax), %xmm0
	movd	%ecx, %xmm1
	punpckldq	%xmm1, %xmm0
	cmpl	4(%rax), %ecx
	jle	.L303
	movq	%xmm0, (%rax)
.L303:
	cmpl	$9, %edx
	je	.L304
	movl	(%rax), %ecx
	movl	8(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L305
	movl	%r8d, (%rax)
	movl	%ecx, 8(%rax)
.L305:
	cmpl	$8, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	12(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L307
	movl	%r8d, (%rax)
	movl	%ecx, 12(%rax)
.L307:
	cmpl	$7, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	16(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L308
	movl	%r8d, (%rax)
	movl	%ecx, 16(%rax)
.L308:
	cmpl	$6, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	20(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L309
	movl	%r8d, (%rax)
	movl	%ecx, 20(%rax)
.L309:
	cmpl	$5, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	24(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L310
	movl	%r8d, (%rax)
	movl	%ecx, 24(%rax)
.L310:
	cmpl	$4, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	28(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L311
	movl	%r8d, (%rax)
	movl	%ecx, 28(%rax)
.L311:
	cmpl	$3, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	32(%rax), %r8d
	cmpl	%ecx, %r8d
	jge	.L312
	movl	%r8d, (%rax)
	movl	%ecx, 32(%rax)
.L312:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$10, %edx
	je	.L304
	movl	(%rax), %ecx
	jmp	.L315
	.p2align 4,,10
	.p2align 3
.L304:
	movq	-304(%rbp), %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L314:
	movd	4(%rax), %xmm0
	movd	%esi, %xmm2
	punpckldq	%xmm2, %xmm0
	cmpl	4(%rax), %esi
	jle	.L316
	movq	%xmm0, (%rax)
.L316:
	cmpl	$9, %edx
	je	.L317
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L318
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L318:
	cmpl	$8, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	12(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L320
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L320:
	cmpl	$7, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	16(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L321
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L321:
	cmpl	$6, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	20(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L322
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L322:
	cmpl	$5, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	24(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L323
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L323:
	cmpl	$4, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	28(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L324
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L324:
	cmpl	$3, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	32(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L325
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L325:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$10, %edx
	je	.L317
	movl	(%rax), %esi
	jmp	.L314
	.p2align 4,,10
	.p2align 3
.L317:
	movq	-312(%rbp), %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L327:
	movd	4(%rax), %xmm0
	movd	%edi, %xmm3
	punpckldq	%xmm3, %xmm0
	cmpl	%edi, 4(%rax)
	jge	.L328
	movq	%xmm0, (%rax)
.L328:
	cmpl	$9, %edx
	je	.L329
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L330
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L330:
	cmpl	$8, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	12(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L332
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L332:
	cmpl	$7, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	16(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L333
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L333:
	cmpl	$6, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	20(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L334
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L334:
	cmpl	$5, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	24(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L335
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L335:
	cmpl	$4, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	28(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L336
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L336:
	cmpl	$3, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	32(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L337
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L337:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$10, %edx
	je	.L329
	movl	(%rax), %edi
	jmp	.L327
	.p2align 4,,10
	.p2align 3
.L329:
	movq	-288(%rbp), %rdi
	xorl	%eax, %eax
	call	judge
	cmpl	$1, %eax
	je	.L338
.L340:
	xorl	%eax, %eax
.L339:
	movq	-280(%rbp), %rdi
	pxor	%xmm0, %xmm0
	movq	-296(%rbp), %rdx
	movl	$0, -176(%rbp)
	movl	$0, -80(%rbp)
	movl	%eax, (%rdx,%rdi,4)
	movl	-260(%rbp), %eax
	addq	$1, %rdi
	movl	$0, -128(%rbp)
	movq	%rdi, -280(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -144(%rbp)
	cmpl	%edi, %eax
	jg	.L341
	testl	%eax, %eax
	jle	.L342
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r12
	movq	%rdx, %r13
	.p2align 4,,10
	.p2align 3
.L343:
	movl	0(%r13,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -260(%rbp)
	jg	.L343
.L342:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L423
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L338:
	.cfi_restore_state
	movq	-304(%rbp), %rdi
	xorl	%eax, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L340
	movq	-312(%rbp), %rdi
	xorl	%eax, %eax
	call	judge
	subl	$1, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L339
	.p2align 4,,10
	.p2align 3
.L331:
	addq	$4, %rax
	addl	$1, %edx
	movl	(%rax), %edi
	jmp	.L327
	.p2align 4,,10
	.p2align 3
.L306:
	addq	$4, %rax
	addl	$1, %edx
	movl	(%rax), %ecx
	jmp	.L315
	.p2align 4,,10
	.p2align 3
.L319:
	addq	$4, %rax
	addl	$1, %edx
	movl	(%rax), %esi
	jmp	.L314
.L300:
	movl	-224(%rbp), %eax
	movl	%eax, -176(%rbp)
	jmp	.L302
.L297:
	movl	-228(%rbp), %eax
	movl	%eax, -180(%rbp)
	jmp	.L299
.L294:
	movl	-232(%rbp), %eax
	movl	%eax, -184(%rbp)
	jmp	.L296
.L291:
	movl	-236(%rbp), %eax
	movl	%eax, -188(%rbp)
	jmp	.L293
.L288:
	movl	-240(%rbp), %eax
	movl	%eax, -192(%rbp)
	jmp	.L290
.L285:
	movl	-244(%rbp), %eax
	movl	%eax, -196(%rbp)
	jmp	.L287
.L282:
	movl	-248(%rbp), %eax
	movl	%eax, -200(%rbp)
	jmp	.L284
.L275:
	movl	-256(%rbp), %ecx
	movzbl	-64(%rbp), %eax
	movl	-160(%rbp), %edi
	movl	-112(%rbp), %esi
	movl	%ecx, -208(%rbp)
	cmpb	$82, %al
	jne	.L424
.L279:
	movl	-252(%rbp), %eax
	movl	%eax, -204(%rbp)
	jmp	.L281
.L289:
	movl	-240(%rbp), %eax
	movl	%eax, -96(%rbp)
	jmp	.L290
.L286:
	movl	-244(%rbp), %eax
	movl	%eax, -100(%rbp)
	jmp	.L287
.L283:
	movl	-248(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L284
.L280:
	movl	-252(%rbp), %eax
	movl	%eax, -108(%rbp)
	jmp	.L281
.L276:
	movl	-256(%rbp), %esi
	movl	-160(%rbp), %edi
	movl	-208(%rbp), %ecx
	movl	%esi, -112(%rbp)
	jmp	.L278
.L295:
	movl	-232(%rbp), %eax
	movl	%eax, -88(%rbp)
	jmp	.L296
.L292:
	movl	-236(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L293
.L301:
	movl	-224(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L302
.L298:
	movl	-228(%rbp), %eax
	movl	%eax, -84(%rbp)
	jmp	.L299
.L277:
	movl	-256(%rbp), %edi
	movl	-112(%rbp), %esi
	movl	-208(%rbp), %ecx
	movl	%edi, -160(%rbp)
	jmp	.L278
.L422:
	orq	$0, -8(%rsp,%rax)
	jmp	.L271
.L423:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sort
	.type	sort, @function
sort:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %esi
	jge	.L2
	movq	%xmm1, (%rax)
.L2:
	cmpl	$9, %edx
	je	.L1
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L4
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L4:
	cmpl	$8, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	12(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L6:
	cmpl	$7, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	16(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L7
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L7:
	cmpl	$6, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	20(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L8
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L8:
	cmpl	$5, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	24(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L9
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L9:
	cmpl	$4, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	28(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L10
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L10:
	cmpl	$3, %edx
	je	.L5
	movl	(%rax), %ecx
	movl	32(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L11
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L11:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$10, %edx
	jne	.L12
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$4, %rax
	addl	$1, %edx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE24:
	.size	sort, .-sort
	.p2align 4
	.globl	judge
	.type	judge, @function
judge:
.LFB25:
	.cfi_startproc
	endbr64
	movdqu	(%rdi), %xmm1
	movdqu	16(%rdi), %xmm0
	pxor	%xmm4, %xmm4
	movq	%rdi, %r9
	movdqa	.LC0(%rip), %xmm3
	cmpl	$1, 32(%r9)
	movdqa	%xmm1, %xmm2
	pcmpeqd	%xmm4, %xmm2
	pcmpeqd	%xmm0, %xmm4
	pand	%xmm3, %xmm2
	psubd	%xmm4, %xmm2
	movdqa	%xmm2, %xmm4
	psrldq	$8, %xmm4
	paddd	%xmm4, %xmm2
	movdqa	%xmm2, %xmm4
	psrldq	$4, %xmm4
	paddd	%xmm4, %xmm2
	movd	%xmm2, %edi
	adcl	$0, %edi
	imull	$-1431655765, %edi, %edx
	cmpl	$1431655765, %edx
	ja	.L247
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	cmpl	$8, %edi
	jg	.L44
	movslq	%edi, %rax
	movl	%edi, %ecx
	leaq	(%r9,%rax,4), %rbx
	leal	1(%rdi), %eax
	movq	%rax, %rbp
	leaq	(%r9,%rax,4), %rax
	movq	%rbx, %r8
	movq	%rax, -88(%rsp)
	leal	2(%rdi), %eax
	movq	%rax, %r12
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -80(%rsp)
	leal	3(%rdi), %eax
	movq	%rax, %r13
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -72(%rsp)
	leal	4(%rdi), %eax
	movq	%rax, %r14
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -64(%rsp)
	leal	5(%rdi), %eax
	movq	%rax, %r15
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -56(%rsp)
	leal	6(%rdi), %eax
	movl	%eax, -44(%rsp)
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -40(%rsp)
	leal	7(%rdi), %eax
	movl	%eax, -24(%rsp)
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -32(%rsp)
	leal	8(%rdi), %eax
	movl	%eax, -20(%rsp)
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -16(%rsp)
	jmp	.L67
	.p2align 4,,10
	.p2align 3
.L45:
	addl	$1, %ecx
	addq	$4, %r8
	cmpl	$9, %ecx
	je	.L253
.L67:
	movl	(%r8), %eax
	testl	%eax, %eax
	je	.L45
	movq	%rbx, %rdx
	movl	%edi, %eax
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L47:
	movl	%esi, %r11d
	subl	%r10d, %r11d
	cmpl	$1, %r11d
	je	.L254
.L46:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	$9, %eax
	je	.L45
.L66:
	movl	(%rdx), %esi
	cmpl	%ecx, %eax
	je	.L46
	testl	%esi, %esi
	je	.L46
	movl	(%r8), %r10d
	cmpl	%r10d, %esi
	jne	.L47
	movl	(%rbx), %r10d
	testl	%r10d, %r10d
	je	.L48
	cmpl	%edi, %eax
	je	.L48
	cmpl	%edi, %ecx
	je	.L48
	cmpl	%r10d, %esi
	jne	.L48
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rbx)
	.p2align 4,,10
	.p2align 3
.L48:
	cmpl	$9, %ebp
	je	.L46
	movq	-88(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L49
	cmpl	%ebp, %ecx
	je	.L49
	cmpl	%ebp, %eax
	je	.L49
	cmpl	(%r8), %esi
	jne	.L49
	movq	-88(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	.p2align 4,,10
	.p2align 3
.L49:
	cmpl	$8, %r12d
	ja	.L46
	movq	-80(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L50
	cmpl	%r12d, %ecx
	je	.L50
	cmpl	%r12d, %eax
	je	.L50
	cmpl	(%r8), %esi
	je	.L255
	.p2align 4,,10
	.p2align 3
.L50:
	cmpl	$8, %r13d
	ja	.L46
	movq	-72(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L51
	cmpl	%r13d, %ecx
	je	.L51
	cmpl	%r13d, %eax
	je	.L51
	cmpl	(%r8), %esi
	je	.L256
	.p2align 4,,10
	.p2align 3
.L51:
	cmpl	$8, %r14d
	ja	.L46
	movq	-64(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L52
	cmpl	%r14d, %ecx
	je	.L52
	cmpl	%r14d, %eax
	je	.L52
	cmpl	(%r8), %esi
	je	.L257
	.p2align 4,,10
	.p2align 3
.L52:
	cmpl	$8, %r15d
	ja	.L46
	movq	-56(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L53
	cmpl	%r15d, %ecx
	je	.L53
	cmpl	%r15d, %eax
	je	.L53
	cmpl	(%r8), %esi
	je	.L258
	.p2align 4,,10
	.p2align 3
.L53:
	movl	-44(%rsp), %r10d
	cmpl	$8, %r10d
	ja	.L46
	movq	-40(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L54
	cmpl	%r10d, %ecx
	je	.L54
	cmpl	%r10d, %eax
	je	.L54
	cmpl	(%r8), %esi
	je	.L259
	.p2align 4,,10
	.p2align 3
.L54:
	movl	-24(%rsp), %r10d
	cmpl	$8, %r10d
	ja	.L46
	movq	-32(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L55
	cmpl	%r10d, %ecx
	je	.L55
	cmpl	%r10d, %eax
	je	.L55
	cmpl	(%r8), %esi
	je	.L260
	.p2align 4,,10
	.p2align 3
.L55:
	cmpl	$8, -20(%rsp)
	jne	.L46
	movq	-16(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L46
	cmpl	$8, %ecx
	je	.L46
	cmpl	$8, %eax
	je	.L46
	cmpl	(%r8), %esi
	jne	.L46
.L252:
	movq	-16(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L253:
	movdqu	(%r9), %xmm1
	movdqu	16(%r9), %xmm0
.L44:
	pxor	%xmm2, %xmm2
	cmpl	$1, 32(%r9)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pcmpeqd	%xmm2, %xmm0
	pcmpeqd	%xmm2, %xmm1
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	pand	%xmm3, %xmm0
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	adcl	$0, %eax
	cmpl	$9, %eax
	sete	%al
	movzbl	%al, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L254:
	.cfi_restore_state
	movl	(%rbx), %r10d
	testl	%r10d, %r10d
	je	.L57
	cmpl	%edi, %ecx
	je	.L57
	cmpl	%edi, %eax
	je	.L57
	subl	%esi, %r10d
	cmpl	$1, %r10d
	jne	.L57
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rbx)
	.p2align 4,,10
	.p2align 3
.L57:
	cmpl	$9, %ebp
	je	.L46
	movq	-88(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L58
	cmpl	%ebp, %ecx
	je	.L58
	cmpl	%ebp, %eax
	je	.L58
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L261
	.p2align 4,,10
	.p2align 3
.L58:
	cmpl	$8, %r12d
	ja	.L46
	movq	-80(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L59
	cmpl	%r12d, %ecx
	je	.L59
	cmpl	%r12d, %eax
	je	.L59
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L262
	.p2align 4,,10
	.p2align 3
.L59:
	cmpl	$8, %r13d
	ja	.L46
	movq	-72(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L60
	cmpl	%r13d, %ecx
	je	.L60
	cmpl	%r13d, %eax
	je	.L60
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L263
	.p2align 4,,10
	.p2align 3
.L60:
	cmpl	$8, %r14d
	ja	.L46
	movq	-64(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L61
	cmpl	%r14d, %ecx
	je	.L61
	cmpl	%r14d, %eax
	je	.L61
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L264
	.p2align 4,,10
	.p2align 3
.L61:
	cmpl	$8, %r15d
	ja	.L46
	movq	-56(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L62
	cmpl	%r15d, %ecx
	je	.L62
	cmpl	%r15d, %eax
	je	.L62
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L265
	.p2align 4,,10
	.p2align 3
.L62:
	movl	-44(%rsp), %r11d
	cmpl	$8, %r11d
	ja	.L46
	movq	-40(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L63
	cmpl	%r11d, %ecx
	je	.L63
	cmpl	%r11d, %eax
	je	.L63
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L266
	.p2align 4,,10
	.p2align 3
.L63:
	movl	-24(%rsp), %r11d
	cmpl	$8, %r11d
	ja	.L46
	movq	-32(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L64
	cmpl	%r11d, %ecx
	je	.L64
	cmpl	%r11d, %eax
	je	.L64
	subl	(%rdx), %esi
	cmpl	$1, %esi
	je	.L267
	.p2align 4,,10
	.p2align 3
.L64:
	cmpl	$8, -20(%rsp)
	jne	.L46
	movq	-16(%rsp), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	.L46
	cmpl	$8, %ecx
	je	.L46
	cmpl	$8, %eax
	je	.L46
	subl	(%rdx), %esi
	cmpl	$1, %esi
	jne	.L46
	jmp	.L252
	.p2align 4,,10
	.p2align 3
.L247:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xorl	%eax, %eax
	ret
.L255:
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movq	-80(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L50
.L261:
	movq	-88(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L58
.L256:
	movq	-72(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L51
.L262:
	movq	-80(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L59
.L257:
	movq	-64(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L52
.L263:
	movq	-72(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L60
.L258:
	movq	-56(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L53
.L264:
	movq	-64(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L61
.L259:
	movq	-40(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L54
.L265:
	movq	-56(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L62
.L260:
	movq	-32(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L55
.L266:
	movq	-40(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L63
.L267:
	movq	-32(%rsp), %rsi
	movl	$0, (%r8)
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	jmp	.L64
	.cfi_endproc
.LFE25:
	.size	judge, .-judge
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	" %c"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-260(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	movq	%rbx, %rdi
	subq	$296, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-260(%rbp), %rdx
	movq	%rsp, %rdi
	leaq	15(,%rdx,4), %rcx
	movq	%rdx, %rsi
	movq	%rcx, %rax
	andq	$-4096, %rcx
	subq	%rcx, %rdi
	andq	$-16, %rax
	cmpq	%rdi, %rsp
	je	.L270
.L421:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L421
.L270:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L422
.L271:
	pxor	%xmm0, %xmm0
	movq	%rsp, -296(%rbp)
	movl	$0, -176(%rbp)
	movl	$0, -80(%rbp)
	movl	$0, -128(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -144(%rbp)
	testl	%esi, %esi
	jle	.L342
	movq	%rsp, %rdi
	salq	$2, %rdx
	xorl	%esi, %esi
	leaq	-220(%rbp), %r14
	call	memset@PLT
	leaq	-256(%rbp), %rax
	leaq	-56(%rbp), %r13
	movq	$0, -280(%rbp)
	movq	%rax, -328(%rbp)
	leaq	-65(%rbp), %rax
	leaq	.LC2(%rip), %r12
	movq	%rax, -320(%rbp)
	leaq	-208(%rbp), %rax
	movq	%rax, -288(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -304(%rbp)
	leaq	-160(%rbp), %rax
	movq	%rax, -312(%rbp)
	.p2align 4,,10
	.p2align 3
.L341:
	movq	-328(%rbp), %r15
	.p2align 4,,10
	.p2align 3
.L273:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	cmpq	%r14, %r15
	jne	.L273
	movq	-320(%rbp), %r15
	.p2align 4,,10
	.p2align 3
.L274:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	cmpq	%r13, %r15
	jne	.L274
	movzbl	-65(%rbp), %eax
	cmpb	$82, %al
	je	.L275
	cmpb	$71, %al
	je	.L276
	cmpb	$66, %al
	je	.L277
	movl	-160(%rbp), %edi
	movl	-112(%rbp), %esi
	movl	-208(%rbp), %ecx
.L278:
	movzbl	-64(%rbp), %eax
	cmpb	$82, %al
	je	.L279
.L424:
	cmpb	$71, %al
	je	.L280
	cmpb	$66, %al
	jne	.L281
	movl	-252(%rbp), %eax
	movl	%eax, -156(%rbp)
	.p2align 4,,10
	.p2align 3
.L281:
	movzbl	-63(%rbp), %eax
	cmpb	$82, %al
	je	.L282
	cmpb	$71, %al
	je	.L283
	cmpb	$66, %al
	jne	.L284
	movl	-248(%rbp), %eax
	movl	%eax, -152(%rbp)
	.p2align 4,,10
	.p2align 3
.L284:
	movzbl	-62(%rbp), %eax
	cmpb	$82, %al
	je	.L285
	cmpb	$71, %al
	je	.L286
	cmpb	$66, %al
	jne	.L287
	movl	-244(%rbp), %eax
	movl	%eax, -148(%rbp)
	.p2align 4,,10
	.p2align 3
.L287:
	movzbl	-61(%rbp), %eax
	cmpb	$82, %al
	je	.L288
	cmpb	$71, %al
	je	.L289
	cmpb	$66, %al
	jne	.L290
	movl	-240(%rbp), %eax
	movl	%eax, -144(%rbp)
	.p2align 4,,10
	.p2align 3
.L290:
	movzbl	-60(%rbp), %eax
	cmpb	$82, %al
	je	.L291
	cmpb	$71, %al
	je	.L292
	cmpb	$66, %al
	jne	.L293
	movl	-236(%rbp), %eax
	movl	%eax, -140(%rbp)
	.p2align 4,,10
	.p2align 3
.L293:
	movzbl	-59(%rbp), %eax
	cmpb	$82, %al
	je	.L294
	cmpb	$71, %al
	je	.L295
	cmpb	$66, %al
	jne	.L296
	movl	-232(%rbp), %eax
	movl	%eax, -136(%rbp)
	.p2align 4,,10
	.p2align 3
.L296:
	movzbl	-58(%rbp), %eax
	cmpb	$82, %al
	je	.L297
	cmpb	$71, %al
	je	.L298
	cmpb	$66, %al
	jne	.L299
	movl	-228(%rbp), %eax
	movl	%eax, -132(%rbp)
	.p2align 4,,10
	.p2align 3
.L299:
	movzbl	-57(%rbp), %eax
	cmpb	$82, %al
	je	.L300
	cmpb	$71, %al
	je	.L301
	cmpb	$66, %al
	jne	.L302
	movl	-224(%rbp), %eax
	movl	%eax, -128(%rbp)
	.p2align 4,,10
	.p2align 3
.L302:
	movq	-288(%rbp), %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L315:
	movd	4(%rax), %xmm0
	movd	%ecx, %xmm1
	punpckldq	%xmm1, %xmm0
	cmpl	4(%rax), %ecx
	jle	.L303
	movq	%xmm0, (%rax)
.L303:
	cmpl	$9, %edx
	je	.L304
	movl	(%rax), %ecx
	movl	8(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L305
	movl	%r8d, (%rax)
	movl	%ecx, 8(%rax)
.L305:
	cmpl	$8, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	12(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L307
	movl	%r8d, (%rax)
	movl	%ecx, 12(%rax)
.L307:
	cmpl	$7, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	16(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L308
	movl	%r8d, (%rax)
	movl	%ecx, 16(%rax)
.L308:
	cmpl	$6, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	20(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L309
	movl	%r8d, (%rax)
	movl	%ecx, 20(%rax)
.L309:
	cmpl	$5, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	24(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L310
	movl	%r8d, (%rax)
	movl	%ecx, 24(%rax)
.L310:
	cmpl	$4, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	28(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	.L311
	movl	%r8d, (%rax)
	movl	%ecx, 28(%rax)
.L311:
	cmpl	$3, %edx
	je	.L306
	movl	(%rax), %ecx
	movl	32(%rax), %r8d
	cmpl	%ecx, %r8d
	jge	.L312
	movl	%r8d, (%rax)
	movl	%ecx, 32(%rax)
.L312:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$10, %edx
	je	.L304
	movl	(%rax), %ecx
	jmp	.L315
	.p2align 4,,10
	.p2align 3
.L304:
	movq	-304(%rbp), %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L314:
	movd	4(%rax), %xmm0
	movd	%esi, %xmm2
	punpckldq	%xmm2, %xmm0
	cmpl	4(%rax), %esi
	jle	.L316
	movq	%xmm0, (%rax)
.L316:
	cmpl	$9, %edx
	je	.L317
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L318
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L318:
	cmpl	$8, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	12(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L320
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L320:
	cmpl	$7, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	16(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L321
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L321:
	cmpl	$6, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	20(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L322
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L322:
	cmpl	$5, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	24(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L323
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L323:
	cmpl	$4, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	28(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L324
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L324:
	cmpl	$3, %edx
	je	.L319
	movl	(%rax), %ecx
	movl	32(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L325
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L325:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$10, %edx
	je	.L317
	movl	(%rax), %esi
	jmp	.L314
	.p2align 4,,10
	.p2align 3
.L317:
	movq	-312(%rbp), %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L327:
	movd	4(%rax), %xmm0
	movd	%edi, %xmm3
	punpckldq	%xmm3, %xmm0
	cmpl	%edi, 4(%rax)
	jge	.L328
	movq	%xmm0, (%rax)
.L328:
	cmpl	$9, %edx
	je	.L329
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L330
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L330:
	cmpl	$8, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	12(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L332
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L332:
	cmpl	$7, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	16(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L333
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L333:
	cmpl	$6, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	20(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L334
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L334:
	cmpl	$5, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	24(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L335
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L335:
	cmpl	$4, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	28(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L336
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L336:
	cmpl	$3, %edx
	je	.L331
	movl	(%rax), %ecx
	movl	32(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L337
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L337:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$10, %edx
	je	.L329
	movl	(%rax), %edi
	jmp	.L327
	.p2align 4,,10
	.p2align 3
.L329:
	movq	-288(%rbp), %rdi
	xorl	%eax, %eax
	call	judge
	cmpl	$1, %eax
	je	.L338
.L340:
	xorl	%eax, %eax
.L339:
	movq	-280(%rbp), %rdi
	pxor	%xmm0, %xmm0
	movq	-296(%rbp), %rdx
	movl	$0, -176(%rbp)
	movl	$0, -80(%rbp)
	movl	%eax, (%rdx,%rdi,4)
	movl	-260(%rbp), %eax
	addq	$1, %rdi
	movl	$0, -128(%rbp)
	movq	%rdi, -280(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -144(%rbp)
	cmpl	%edi, %eax
	jg	.L341
	testl	%eax, %eax
	jle	.L342
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r12
	movq	%rdx, %r13
	.p2align 4,,10
	.p2align 3
.L343:
	movl	0(%r13,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -260(%rbp)
	jg	.L343
.L342:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L423
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L338:
	.cfi_restore_state
	movq	-304(%rbp), %rdi
	xorl	%eax, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L340
	movq	-312(%rbp), %rdi
	xorl	%eax, %eax
	call	judge
	subl	$1, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L339
	.p2align 4,,10
	.p2align 3
.L331:
	addq	$4, %rax
	addl	$1, %edx
	movl	(%rax), %edi
	jmp	.L327
	.p2align 4,,10
	.p2align 3
.L306:
	addq	$4, %rax
	addl	$1, %edx
	movl	(%rax), %ecx
	jmp	.L315
	.p2align 4,,10
	.p2align 3
.L319:
	addq	$4, %rax
	addl	$1, %edx
	movl	(%rax), %esi
	jmp	.L314
.L300:
	movl	-224(%rbp), %eax
	movl	%eax, -176(%rbp)
	jmp	.L302
.L297:
	movl	-228(%rbp), %eax
	movl	%eax, -180(%rbp)
	jmp	.L299
.L294:
	movl	-232(%rbp), %eax
	movl	%eax, -184(%rbp)
	jmp	.L296
.L291:
	movl	-236(%rbp), %eax
	movl	%eax, -188(%rbp)
	jmp	.L293
.L288:
	movl	-240(%rbp), %eax
	movl	%eax, -192(%rbp)
	jmp	.L290
.L285:
	movl	-244(%rbp), %eax
	movl	%eax, -196(%rbp)
	jmp	.L287
.L282:
	movl	-248(%rbp), %eax
	movl	%eax, -200(%rbp)
	jmp	.L284
.L275:
	movl	-256(%rbp), %ecx
	movzbl	-64(%rbp), %eax
	movl	-160(%rbp), %edi
	movl	-112(%rbp), %esi
	movl	%ecx, -208(%rbp)
	cmpb	$82, %al
	jne	.L424
.L279:
	movl	-252(%rbp), %eax
	movl	%eax, -204(%rbp)
	jmp	.L281
.L289:
	movl	-240(%rbp), %eax
	movl	%eax, -96(%rbp)
	jmp	.L290
.L286:
	movl	-244(%rbp), %eax
	movl	%eax, -100(%rbp)
	jmp	.L287
.L283:
	movl	-248(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L284
.L280:
	movl	-252(%rbp), %eax
	movl	%eax, -108(%rbp)
	jmp	.L281
.L276:
	movl	-256(%rbp), %esi
	movl	-160(%rbp), %edi
	movl	-208(%rbp), %ecx
	movl	%esi, -112(%rbp)
	jmp	.L278
.L295:
	movl	-232(%rbp), %eax
	movl	%eax, -88(%rbp)
	jmp	.L296
.L292:
	movl	-236(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L293
.L301:
	movl	-224(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L302
.L298:
	movl	-228(%rbp), %eax
	movl	%eax, -84(%rbp)
	jmp	.L299
.L277:
	movl	-256(%rbp), %edi
	movl	-112(%rbp), %esi
	movl	-208(%rbp), %ecx
	movl	%edi, -160(%rbp)
	jmp	.L278
.L422:
	orq	$0, -8(%rsp,%rax)
	jmp	.L271
.L423:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>

int main(void){

	char mark[9];
	int num[9], r_num[9], b_num[9], g_num[9], set, i, j;
	

	scanf("%d", &set);	/* ???????????°?????\??? */
	int ans[set];

	for(i = 0 ; i < 9 ; i++){	/* ????????????????????? */
		r_num[i] = 0;
		g_num[i] = 0;
		b_num[i] = 0;
	}

	for(i = 0 ; i < set ; i++){
		ans[i] = 0;
	}

	for(i = 0 ; i < set ; i++){	/* ???????????°?????°????????? */

	for(j = 0 ; j < 9 ; j++){
		scanf("%d", &num[j]);
	}
		for(j = 0 ; j < 9 ; j++){
			if(j == 9){
				scanf("%c", &mark[j]);
			}
		else{
			scanf(" %c", &mark[j]);
		}
	}

	for(j = 0 ; j < 9 ; j++){		/* ????????¨?????????????????? */
		if(mark[j] == 'R'){
			r_num[j] = num[j];
	}
			else if(mark[j] == 'G'){
				g_num[j] = num[j];
			}
			else if(mark[j] == 'B'){
				b_num[j] = num[j];
			}
		}

	sort(r_num);	/* ??????????????? */
	sort(g_num);	/* ??????????????? */
	sort(b_num);	/* ??????????????? */

		if(judge(r_num) == 1 && judge(g_num) == 1 && judge(b_num) == 1){	/* ???????????? */
			ans[i] = 1;
			}
	else{

		ans[i] = 0;
	}

		for(j = 0 ; j < 9 ; j++){	/* ????????????????????? */
			r_num[j] = 0;
			g_num[j] = 0;
			b_num[j] = 0;
		}
	}

		for(i = 0 ; i < set ; i++){
			printf("%d\n", ans[i]);
		}

	return 0;
}

void sort(int num[]){

	int p, q, tmp;

	for(p = 0; p < 8; p++){
		for(q = p + 1; q < 9; q++){
			if(num[p] > num[q]){
				tmp = num[p];
				num[p] = num[q];
				num[q] = tmp;
				}
			}
		}   
	}

int judge(int num[]){

	int cnt = 0;
	int i, j, k;

	for(i = 0; i < 9; i++){
		if(num[i] == 0){
			cnt++;			/* ???????????????0?????°??????????????? */
		}
	}
			if(cnt % 3 != 0){		/* 0?????°???3????????°??§???????????°0????????? */
		return 0;
	}

	for(i = cnt; i < 9; i++){	/* ???????????¶?????????????????????????????? */
		if(num[i] != 0){
			for(j = cnt; j < 9; j++){
				if(num[j] != 0 && j != i){
					if(num[i] == num[j]){
						for(k = cnt; k < 9; k++){
							if(num[k] != 0 && (k != i && k != j)){
								if(num[i] == num[k]){
									num[i] = 0;
									num[j] = 0;
									num[k] = 0;
								}
							}
						}
					}

					else if(num[j] - num[i] == 1){
						for(k = cnt; k < 9; k++){
							if(num[k] != 0 && (k != i && k != j)){
								if(num[k] - num[j] == 1){
									num[i] = 0;
									num[j] = 0;
									num[k] = 0;
								}
							}
						}
					}
				}
			}
		}
	}
	cnt = 0;
	for(i = 0; i < 9; i++){
		if(num[i] == 0){
			cnt++;
		}
	}
			if(cnt == 9){
				return 1;
			}
		else
	{
		return 0;
	}

}
5
1 2 3 3 4 5 7 7 7
R R R R R R G G G
1 2 2 3 4 4 4 4 5
R R R R R R R R R
1 2 3 4 4 4 5 5 5
R R B R R R R R R
1 1 1 3 4 5 6 6 6
R R B G G G R R R
2 2 2 3 3 3 1 1 2
R G B R G B R G B
 5
1 2 3 3 4 5 7 7 7
R R R R R R G G G
1 2 2 3 4 4 4 4 5
R R R R R R R R R
1 2 3 4 4 4 5 5 5
R R B R R R R R R
1 1 2 3 4 5 6 6 6
R R B G G G R R R
2 2 2 3 3 3 1 1 1
R G B R G B R G B
 5
1 1 3 3 4 5 7 7 7
R R R R R R G G G
1 2 2 3 4 4 4 4 5
R R R R R R R R R
1 2 3 4 4 4 5 5 5
R R B R R R R R R
1 1 1 3 4 5 6 6 6
R R B G G G R R R
2 2 2 3 3 3 1 1 3
R G B R G B R G B
 5
1 3 0 3 4 5 5 7 7
R R R R R R G G G
1 2 2 3 5 4 4 4 5
R R R R R R R R R
1 2 3 4 6 4 5 7 5
R R B R R R R R R
1 1 2 3 4 5 6 6 6
R R B G G G R R R
2 2 2 3 3 3 1 1 1
R G B R G B R G B
 5
0 2 3 3 4 5 7 7 7
R R R R R S G G G
1 2 2 3 4 2 4 2 4
R R R R R R R R R
1 2 3 4 4 4 5 5 5
R R B R R R R R R
1 1 2 3 4 5 6 6 6
R Q B G G G R R S
2 2 2 3 3 3 0 1 1
R G B R G B R G B
 5
1 2 3 3 4 5 7 7 7
R R R R R R G G G
1 2 2 3 4 4 4 4 5
R R R R R R R R R
1 2 3 4 4 4 5 5 5
R R B R R R R R R
1 1 1 3 4 5 6 6 6
R R B G G G R R R
2 2 2 3 3 3 1 1 3
R G B R G B R G B
 5
1 2 3 3 4 5 7 7 7
R R R R R R G G G
1 2 2 3 4 4 4 4 5
R R R R R R R R Q
1 2 3 4 4 4 5 5 5
R R B R R R R R R
1 1 1 3 4 5 6 6 6
R R B G G G R R R
2 2 2 3 3 3 1 1 3
R G B R G B R G B
 5
1 2 3 3 4 5 7 7 7
R R R R R R G G G
1 2 2 3 4 4 4 4 5
R R R R R S R R Q
1 2 3 4 4 4 5 5 5
R R B R R R R R R
1 1 1 3 4 5 6 6 6
R R B G G G R R R
2 2 2 3 3 3 1 1 3
R G B R G B R G B
 5
1 2 3 3 4 5 7 7 7
R R R R R R G G G
1 2 2 3 4 4 4 4 5
R R R R R R R R R
1 2 3 4 4 4 5 5 5
R R B R R R R R R
1 1 1 3 4 5 6 6 6
R R B G G G R R S
2 2 2 3 3 3 1 1 2
R G B R G B R G B
 5
1 2 3 3 4 5 7 7 7
R R R R R R G G G
1 2 2 3 4 4 4 4 5
R R R R R R R R Q
1 0 3 4 4 4 5 5 5
R R B R R R R R R
1 1 1 3 4 5 6 6 6
R R B G G G R R R
2 2 2 3 3 3 1 1 3
R G B R G B R G B

1
0
0
0
0
 1
0
0
0
1
 0
0
0
0
0
 0
0
0
0
1
 0
1
0
0
0
 1
0
0
0
0
 1
0
0
0
0
 1
0
0
0
0
 1
0
0
0
0
 1
0
0
0
0

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){

	char mark[9];
	int num[9], r_num[9], b_num[9], g_num[9], set, i, j;
	

	scanf("%d", &set);	/* ???????????°?????\??? */
	int ans[set];

	for(i = 0 ; i < 9 ; i++){	/* ????????????????????? */
		r_num[i] = 0;
		g_num[i] = 0;
		b_num[i] = 0;
	}

	for(i = 0 ; i < set ; i++){
		ans[i] = 0;
	}

	for(i = 0 ; i < set ; i++){	/* ???????????°?????°????????? */

	for(j = 0 ; j < 9 ; j++){
		scanf("%d", &num[j]);
	}
		for(j = 0 ; j < 9 ; j++){
			if(j == 9){
				scanf("%c", &mark[j]);
			}
		else{
			scanf(" %c", &mark[j]);
		}
	}

	for(j = 0 ; j < 9 ; j++){		/* ????????¨?????????????????? */
		if(mark[j] == 'R'){
			r_num[j] = num[j];
	}
			else if(mark[j] == 'G'){
				g_num[j] = num[j];
			}
			else if(mark[j] == 'B'){
				b_num[j] = num[j];
			}
		}

	sort(r_num);	/* ??????????????? */
	sort(g_num);	/* ??????????????? */
	sort(b_num);	/* ??????????????? */

		if(judge(r_num) == 1 && judge(g_num) == 1 && judge(b_num) == 1){	/* ???????????? */
			ans[i] = 1;
			}
	else{

		ans[i] = 0;
	}

		for(j = 0 ; j < 9 ; j++){	/* ????????????????????? */
			r_num[j] = 0;
			g_num[j] = 0;
			b_num[j] = 0;
		}
	}

		for(i = 0 ; i < set ; i++){
			printf("%d\n", ans[i]);
		}

	return 0;
}

void sort(int num[]){

	int p, q, tmp;

	for(p = 0; p < 8; p++){
		for(q = p + 1; q < 9; q++){
			if(num[p] > num[q]){
				tmp = num[p];
				num[p] = num[q];
				num[q] = tmp;
				}
			}
		}   
	}

int judge(int num[]){

	int cnt = 0;
	int i, j, k;

	for(i = 0; i < 9; i++){
		if(num[i] == 0){
			cnt++;			/* ???????????????0?????°??????????????? */
		}
	}
			if(cnt % 3 != 0){		/* 0?????°???3????????°??§???????????°0????????? */
		return 0;
	}

	for(i = cnt; i < 9; i++){	/* ???????????¶?????????????????????????????? */
		if(num[i] != 0){
			for(j = cnt; j < 9; j++){
				if(num[j] != 0 && j != i){
					if(num[i] == num[j]){
						for(k = cnt; k < 9; k++){
							if(num[k] != 0 && (k != i && k != j)){
								if(num[i] == num[k]){
									num[i] = 0;
									num[j] = 0;
									num[k] = 0;
								}
							}
						}
					}

					else if(num[j] - num[i] == 1){
						for(k = cnt; k < 9; k++){
							if(num[k] != 0 && (k != i && k != j)){
								if(num[k] - num[j] == 1){
									num[i] = 0;
									num[j] = 0;
									num[k] = 0;
								}
							}
						}
					}
				}
			}
		}
	}
	cnt = 0;
	for(i = 0; i < 9; i++){
		if(num[i] == 0){
			cnt++;
		}
	}
			if(cnt == 9){
				return 1;
			}
		else
	{
		return 0;
	}

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	" %c"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$248, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-284(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-284(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -272(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -264(%rbp)
	movl	$0, -280(%rbp)
	jmp	.L5
.L6:
	movl	-280(%rbp), %eax
	cltq
	movl	$0, -208(%rbp,%rax,4)
	movl	-280(%rbp), %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	movl	-280(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -280(%rbp)
.L5:
	cmpl	$8, -280(%rbp)
	jle	.L6
	movl	$0, -280(%rbp)
	jmp	.L7
.L8:
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -280(%rbp)
.L7:
	movl	-284(%rbp), %eax
	cmpl	%eax, -280(%rbp)
	jl	.L8
	movl	$0, -280(%rbp)
	jmp	.L9
.L25:
	movl	$0, -276(%rbp)
	jmp	.L10
.L11:
	leaq	-256(%rbp), %rdx
	movl	-276(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -276(%rbp)
.L10:
	cmpl	$8, -276(%rbp)
	jle	.L11
	movl	$0, -276(%rbp)
	jmp	.L12
.L15:
	cmpl	$9, -276(%rbp)
	jne	.L13
	leaq	-65(%rbp), %rdx
	movl	-276(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L14
.L13:
	leaq	-65(%rbp), %rdx
	movl	-276(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L14:
	addl	$1, -276(%rbp)
.L12:
	cmpl	$8, -276(%rbp)
	jle	.L15
	movl	$0, -276(%rbp)
	jmp	.L16
.L20:
	movl	-276(%rbp), %eax
	cltq
	movzbl	-65(%rbp,%rax), %eax
	cmpb	$82, %al
	jne	.L17
	movl	-276(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -208(%rbp,%rax,4)
	jmp	.L18
.L17:
	movl	-276(%rbp), %eax
	cltq
	movzbl	-65(%rbp,%rax), %eax
	cmpb	$71, %al
	jne	.L19
	movl	-276(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -112(%rbp,%rax,4)
	jmp	.L18
.L19:
	movl	-276(%rbp), %eax
	cltq
	movzbl	-65(%rbp,%rax), %eax
	cmpb	$66, %al
	jne	.L18
	movl	-276(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
.L18:
	addl	$1, -276(%rbp)
.L16:
	cmpl	$8, -276(%rbp)
	jle	.L20
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	sort
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	sort
	leaq	-160(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	sort
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L21
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L21
	leaq	-160(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L21
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	jmp	.L22
.L21:
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
.L22:
	movl	$0, -276(%rbp)
	jmp	.L23
.L24:
	movl	-276(%rbp), %eax
	cltq
	movl	$0, -208(%rbp,%rax,4)
	movl	-276(%rbp), %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	movl	-276(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -276(%rbp)
.L23:
	cmpl	$8, -276(%rbp)
	jle	.L24
	addl	$1, -280(%rbp)
.L9:
	movl	-284(%rbp), %eax
	cmpl	%eax, -280(%rbp)
	jl	.L25
	movl	$0, -280(%rbp)
	jmp	.L26
.L27:
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -280(%rbp)
.L26:
	movl	-284(%rbp), %eax
	cmpl	%eax, -280(%rbp)
	jl	.L27
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	sort
	.type	sort, @function
sort:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L31
.L35:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L32
.L34:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L33
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
.L33:
	addl	$1, -8(%rbp)
.L32:
	cmpl	$8, -8(%rbp)
	jle	.L34
	addl	$1, -12(%rbp)
.L31:
	cmpl	$7, -12(%rbp)
	jle	.L35
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sort, .-sort
	.globl	judge
	.type	judge, @function
judge:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L37
.L39:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L38
	addl	$1, -16(%rbp)
.L38:
	addl	$1, -12(%rbp)
.L37:
	cmpl	$8, -12(%rbp)
	jle	.L39
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L40
	movl	$0, %eax
	jmp	.L41
.L40:
	movl	-16(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L42
.L54:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L43
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L44
.L53:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L45
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L45
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jne	.L46
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L47
.L49:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L48
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L48
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L48
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jne	.L48
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L48:
	addl	$1, -4(%rbp)
.L47:
	cmpl	$8, -4(%rbp)
	jle	.L49
	jmp	.L45
.L46:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L45
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L50
.L52:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L51
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L51
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L51
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L51
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L51:
	addl	$1, -4(%rbp)
.L50:
	cmpl	$8, -4(%rbp)
	jle	.L52
.L45:
	addl	$1, -8(%rbp)
.L44:
	cmpl	$8, -8(%rbp)
	jle	.L53
.L43:
	addl	$1, -12(%rbp)
.L42:
	cmpl	$8, -12(%rbp)
	jle	.L54
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L55
.L57:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L56
	addl	$1, -16(%rbp)
.L56:
	addl	$1, -12(%rbp)
.L55:
	cmpl	$8, -12(%rbp)
	jle	.L57
	cmpl	$9, -16(%rbp)
	jne	.L58
	movl	$1, %eax
	jmp	.L41
.L58:
	movl	$0, %eax
.L41:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	judge, .-judge
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	" %c"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$248, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-284(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-284(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -272(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -264(%rbp)
	movl	$0, -280(%rbp)
	jmp	.L5
.L6:
	movl	-280(%rbp), %eax
	cltq
	movl	$0, -208(%rbp,%rax,4)
	movl	-280(%rbp), %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	movl	-280(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -280(%rbp)
.L5:
	cmpl	$8, -280(%rbp)
	jle	.L6
	movl	$0, -280(%rbp)
	jmp	.L7
.L8:
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -280(%rbp)
.L7:
	movl	-284(%rbp), %eax
	cmpl	%eax, -280(%rbp)
	jl	.L8
	movl	$0, -280(%rbp)
	jmp	.L9
.L25:
	movl	$0, -276(%rbp)
	jmp	.L10
.L11:
	leaq	-256(%rbp), %rdx
	movl	-276(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -276(%rbp)
.L10:
	cmpl	$8, -276(%rbp)
	jle	.L11
	movl	$0, -276(%rbp)
	jmp	.L12
.L15:
	cmpl	$9, -276(%rbp)
	jne	.L13
	leaq	-65(%rbp), %rdx
	movl	-276(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L14
.L13:
	leaq	-65(%rbp), %rdx
	movl	-276(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L14:
	addl	$1, -276(%rbp)
.L12:
	cmpl	$8, -276(%rbp)
	jle	.L15
	movl	$0, -276(%rbp)
	jmp	.L16
.L20:
	movl	-276(%rbp), %eax
	cltq
	movzbl	-65(%rbp,%rax), %eax
	cmpb	$82, %al
	jne	.L17
	movl	-276(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -208(%rbp,%rax,4)
	jmp	.L18
.L17:
	movl	-276(%rbp), %eax
	cltq
	movzbl	-65(%rbp,%rax), %eax
	cmpb	$71, %al
	jne	.L19
	movl	-276(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -112(%rbp,%rax,4)
	jmp	.L18
.L19:
	movl	-276(%rbp), %eax
	cltq
	movzbl	-65(%rbp,%rax), %eax
	cmpb	$66, %al
	jne	.L18
	movl	-276(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
.L18:
	addl	$1, -276(%rbp)
.L16:
	cmpl	$8, -276(%rbp)
	jle	.L20
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	sort
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	sort
	leaq	-160(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	sort
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L21
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L21
	leaq	-160(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	judge
	cmpl	$1, %eax
	jne	.L21
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	jmp	.L22
.L21:
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
.L22:
	movl	$0, -276(%rbp)
	jmp	.L23
.L24:
	movl	-276(%rbp), %eax
	cltq
	movl	$0, -208(%rbp,%rax,4)
	movl	-276(%rbp), %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	movl	-276(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -276(%rbp)
.L23:
	cmpl	$8, -276(%rbp)
	jle	.L24
	addl	$1, -280(%rbp)
.L9:
	movl	-284(%rbp), %eax
	cmpl	%eax, -280(%rbp)
	jl	.L25
	movl	$0, -280(%rbp)
	jmp	.L26
.L27:
	movq	-264(%rbp), %rax
	movl	-280(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -280(%rbp)
.L26:
	movl	-284(%rbp), %eax
	cmpl	%eax, -280(%rbp)
	jl	.L27
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	sort
	.type	sort, @function
sort:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L31
.L35:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L32
.L34:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L33
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
.L33:
	addl	$1, -8(%rbp)
.L32:
	cmpl	$8, -8(%rbp)
	jle	.L34
	addl	$1, -12(%rbp)
.L31:
	cmpl	$7, -12(%rbp)
	jle	.L35
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sort, .-sort
	.globl	judge
	.type	judge, @function
judge:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L37
.L39:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L38
	addl	$1, -16(%rbp)
.L38:
	addl	$1, -12(%rbp)
.L37:
	cmpl	$8, -12(%rbp)
	jle	.L39
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L40
	movl	$0, %eax
	jmp	.L41
.L40:
	movl	-16(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L42
.L54:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L43
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L44
.L53:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L45
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L45
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jne	.L46
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L47
.L49:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L48
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L48
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L48
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jne	.L48
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L48:
	addl	$1, -4(%rbp)
.L47:
	cmpl	$8, -4(%rbp)
	jle	.L49
	jmp	.L45
.L46:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L45
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L50
.L52:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L51
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L51
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L51
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L51
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L51:
	addl	$1, -4(%rbp)
.L50:
	cmpl	$8, -4(%rbp)
	jle	.L52
.L45:
	addl	$1, -8(%rbp)
.L44:
	cmpl	$8, -8(%rbp)
	jle	.L53
.L43:
	addl	$1, -12(%rbp)
.L42:
	cmpl	$8, -12(%rbp)
	jle	.L54
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L55
.L57:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L56
	addl	$1, -16(%rbp)
.L56:
	addl	$1, -12(%rbp)
.L55:
	cmpl	$8, -12(%rbp)
	jle	.L57
	cmpl	$9, -16(%rbp)
	jne	.L58
	movl	$1, %eax
	jmp	.L41
.L58:
	movl	$0, %eax
.L41:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	judge, .-judge
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
