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>


void swap(int x,int y){
    int tmp;
    
    tmp=x;
    x=y;
    y=tmp;

}

int main(int argc, const char * argv[]) {
    
    int n,m,taro[100],hana[100],card,i=0,j = 0,tsum = 0,hsum = 0,flag = 0;
    
    while (1) {
        scanf("%d %d",&n,&m);
        
        if (n==0&&m==0) {
            break;
        }
        //card??\??????
        for (i = 0; i < n; i++) {
            scanf("%d",&card);
            taro[i] = card;
        }
        //card??\??????
        for (i = 0; i < m; i++) {
            scanf("%d",&card);
            hana[i] = card;
        }
        
        //?????????sort(??????)
        
        for (i = 0; i < n-1; i++) {
            for (j = n-1; j > i; j--) {
                //taro
                if (taro[j] < taro[j-1]) {
                    swap(taro[j],taro[j-1]);
                }
                //hana
                if (hana[j] < hana[j-1]) {
                    swap(hana[j],hana[j-1]);
                }
                
            }
        }
        
        for (i=0; i<n; i++) {
            tsum += taro[i];
        }
        
        for (i=0; i<m; i++) {
            hsum += hana[i];
        }
        
        //????????????????????§??????????????????????????????????°?
        for (i = 0; i < n; i++) {
            for (j = 0; j < m; j++) {
                if (tsum-(2*taro[i]) == hsum-(2*hana[j])) {
                    printf("%d %d\n",taro[i],hana[j]);
                    flag = 1;
                    break;
                }
            }
            if (flag==1) {
                //printf("flag1\n");
                break;
            }
        }
        
        if (flag == 0) {
            printf("-1\n");
        }
        
        flag = 0;
        tsum = 0;
        hsum = 0;
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$864, %rsp
	movl	%edi, -852(%rbp)
	movq	%rsi, -864(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -836(%rbp)
	movl	$0, -832(%rbp)
	movl	$0, -828(%rbp)
	movl	$0, -824(%rbp)
	movl	$0, -820(%rbp)
.L28:
	leaq	-844(%rbp), %rdx
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-848(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-844(%rbp), %eax
	testl	%eax, %eax
	je	.L32
.L3:
	movl	$0, -836(%rbp)
	jmp	.L5
.L6:
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-840(%rbp), %edx
	movl	-836(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -836(%rbp)
.L5:
	movl	-848(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L6
	movl	$0, -836(%rbp)
	jmp	.L7
.L8:
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-840(%rbp), %edx
	movl	-836(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	addl	$1, -836(%rbp)
.L7:
	movl	-844(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L8
	movl	$0, -836(%rbp)
	jmp	.L9
.L14:
	movl	-848(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -832(%rbp)
	jmp	.L10
.L13:
	movl	-832(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L11
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	swap
.L11:
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	swap
.L12:
	subl	$1, -832(%rbp)
.L10:
	movl	-832(%rbp), %eax
	cmpl	-836(%rbp), %eax
	jg	.L13
	addl	$1, -836(%rbp)
.L9:
	movl	-848(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -836(%rbp)
	jl	.L14
	movl	$0, -836(%rbp)
	jmp	.L15
.L16:
	movl	-836(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -828(%rbp)
	addl	$1, -836(%rbp)
.L15:
	movl	-848(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L16
	movl	$0, -836(%rbp)
	jmp	.L17
.L18:
	movl	-836(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	addl	%eax, -824(%rbp)
	addl	$1, -836(%rbp)
.L17:
	movl	-844(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L18
	movl	$0, -836(%rbp)
	jmp	.L19
.L26:
	movl	$0, -832(%rbp)
	jmp	.L20
.L23:
	movl	-836(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	leal	(%rax,%rax), %ecx
	movl	-828(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	leal	(%rax,%rax), %ecx
	movl	-824(%rbp), %eax
	subl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L21
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-836(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -820(%rbp)
	jmp	.L22
.L21:
	addl	$1, -832(%rbp)
.L20:
	movl	-844(%rbp), %eax
	cmpl	%eax, -832(%rbp)
	jl	.L23
.L22:
	cmpl	$1, -820(%rbp)
	je	.L33
	addl	$1, -836(%rbp)
.L19:
	movl	-848(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L26
	jmp	.L25
.L33:
	nop
.L25:
	cmpl	$0, -820(%rbp)
	jne	.L27
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L27:
	movl	$0, -820(%rbp)
	movl	$0, -828(%rbp)
	movl	$0, -824(%rbp)
	jmp	.L28
.L32:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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	swap
	.type	swap, @function
swap:
.LFB23:
	.cfi_startproc
	endbr64
	ret
	.cfi_endproc
.LFE23:
	.size	swap, .-swap
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
.L30:
	leaq	28(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L26:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jne	.L48
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L7
	jle	.L22
.L8:
	xorl	%r13d, %r13d
	leaq	432(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	24(%rsp), %edi
	movl	%eax, (%r12,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %edi
	jg	.L12
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L9
.L49:
	leal	-1(%rax), %esi
	cmpl	$2, %esi
	jbe	.L33
	movl	%eax, %ecx
	leaq	32(%rsp), %rdx
	pxor	%xmm0, %xmm0
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	48(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L14:
	paddd	(%rdx), %xmm0
	addq	$16, %rdx
	cmpq	%rcx, %rdx
	jne	.L14
	movdqa	%xmm0, %xmm1
	movl	%eax, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r11d
	testb	$3, %al
	je	.L18
.L13:
	movslq	%edx, %rcx
	addl	32(%rsp,%rcx,4), %r11d
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	.L18
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	32(%rsp,%rcx,4), %r11d
	cmpl	%edx, %eax
	jle	.L18
	movslq	%edx, %rdx
	addl	32(%rsp,%rdx,4), %r11d
.L18:
	xorl	%r8d, %r8d
	leal	-1(%rdi), %ecx
	testl	%edi, %edi
	jle	.L17
	leal	-1(%rdi), %ecx
	cmpl	$2, %ecx
	jbe	.L34
.L50:
	movl	%edi, %esi
	leaq	432(%rsp), %rdx
	pxor	%xmm0, %xmm0
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	leaq	448(%rsp,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L20:
	paddd	(%rdx), %xmm0
	addq	$16, %rdx
	cmpq	%rsi, %rdx
	jne	.L20
	movdqa	%xmm0, %xmm1
	movl	%edi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
	testb	$3, %dil
	je	.L23
.L19:
	movslq	%edx, %rsi
	addl	432(%rsp,%rsi,4), %r8d
	leal	1(%rdx), %esi
	cmpl	%edi, %esi
	jge	.L23
	movslq	%esi, %rsi
	addl	$2, %edx
	addl	432(%rsp,%rsi,4), %r8d
	cmpl	%edi, %edx
	jge	.L23
	movslq	%edx, %rdx
	addl	432(%rsp,%rdx,4), %r8d
.L23:
	testl	%eax, %eax
	jle	.L22
	leal	-1(%rax), %esi
.L17:
	leaq	32(%rsp), %r13
	leaq	36(%rsp,%rsi,4), %r15
	leaq	432(%rsp), %r12
	leaq	436(%rsp,%rcx,4), %r10
.L24:
	testl	%edi, %edi
	jle	.L29
	movl	0(%r13), %r14d
	movl	%r11d, %r9d
	leal	(%r14,%r14), %eax
	subl	%eax, %r9d
	movq	%r12, %rax
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$4, %rax
	cmpq	%r10, %rax
	je	.L29
.L27:
	movl	(%rax), %ecx
	movl	%r8d, %edx
	leal	(%rcx,%rcx), %esi
	subl	%esi, %edx
	cmpl	%edx, %r9d
	jne	.L25
	movl	%r14d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L29:
	addq	$4, %r13
	cmpq	%r15, %r13
	jne	.L24
.L22:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L48:
	jle	.L42
	xorl	%r12d, %r12d
	leaq	32(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	%eax, 0(%r13,%r12,4)
	movl	20(%rsp), %eax
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L5
.L42:
	movl	24(%rsp), %edi
	testl	%edi, %edi
	jg	.L8
	testl	%eax, %eax
	jg	.L49
.L9:
	testl	%edi, %edi
	jle	.L22
	leal	-1(%rdi), %ecx
	xorl	%r11d, %r11d
	cmpl	$2, %ecx
	ja	.L50
.L34:
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	jmp	.L19
.L33:
	xorl	%r11d, %r11d
	xorl	%edx, %edx
	jmp	.L13
.L7:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	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
	ret
.L51:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.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	swap
	.type	swap, @function
swap:
.LFB23:
	.cfi_startproc
	endbr64
	ret
	.cfi_endproc
.LFE23:
	.size	swap, .-swap
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
.L30:
	leaq	28(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L26:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jne	.L48
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L7
	jle	.L22
.L8:
	xorl	%r13d, %r13d
	leaq	432(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	24(%rsp), %edi
	movl	%eax, (%r12,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %edi
	jg	.L12
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L9
.L49:
	leal	-1(%rax), %esi
	cmpl	$2, %esi
	jbe	.L33
	movl	%eax, %ecx
	leaq	32(%rsp), %rdx
	pxor	%xmm0, %xmm0
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	48(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L14:
	paddd	(%rdx), %xmm0
	addq	$16, %rdx
	cmpq	%rcx, %rdx
	jne	.L14
	movdqa	%xmm0, %xmm1
	movl	%eax, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r11d
	testb	$3, %al
	je	.L18
.L13:
	movslq	%edx, %rcx
	addl	32(%rsp,%rcx,4), %r11d
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	.L18
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	32(%rsp,%rcx,4), %r11d
	cmpl	%edx, %eax
	jle	.L18
	movslq	%edx, %rdx
	addl	32(%rsp,%rdx,4), %r11d
.L18:
	xorl	%r8d, %r8d
	leal	-1(%rdi), %ecx
	testl	%edi, %edi
	jle	.L17
	leal	-1(%rdi), %ecx
	cmpl	$2, %ecx
	jbe	.L34
.L50:
	movl	%edi, %esi
	leaq	432(%rsp), %rdx
	pxor	%xmm0, %xmm0
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	leaq	448(%rsp,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L20:
	paddd	(%rdx), %xmm0
	addq	$16, %rdx
	cmpq	%rsi, %rdx
	jne	.L20
	movdqa	%xmm0, %xmm1
	movl	%edi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
	testb	$3, %dil
	je	.L23
.L19:
	movslq	%edx, %rsi
	addl	432(%rsp,%rsi,4), %r8d
	leal	1(%rdx), %esi
	cmpl	%edi, %esi
	jge	.L23
	movslq	%esi, %rsi
	addl	$2, %edx
	addl	432(%rsp,%rsi,4), %r8d
	cmpl	%edi, %edx
	jge	.L23
	movslq	%edx, %rdx
	addl	432(%rsp,%rdx,4), %r8d
.L23:
	testl	%eax, %eax
	jle	.L22
	leal	-1(%rax), %esi
.L17:
	leaq	32(%rsp), %r13
	leaq	36(%rsp,%rsi,4), %r15
	leaq	432(%rsp), %r12
	leaq	436(%rsp,%rcx,4), %r10
.L24:
	testl	%edi, %edi
	jle	.L29
	movl	0(%r13), %r14d
	movl	%r11d, %r9d
	leal	(%r14,%r14), %eax
	subl	%eax, %r9d
	movq	%r12, %rax
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$4, %rax
	cmpq	%r10, %rax
	je	.L29
.L27:
	movl	(%rax), %ecx
	movl	%r8d, %edx
	leal	(%rcx,%rcx), %esi
	subl	%esi, %edx
	cmpl	%edx, %r9d
	jne	.L25
	movl	%r14d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L29:
	addq	$4, %r13
	cmpq	%r15, %r13
	jne	.L24
.L22:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L48:
	jle	.L42
	xorl	%r12d, %r12d
	leaq	32(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	%eax, 0(%r13,%r12,4)
	movl	20(%rsp), %eax
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L5
.L42:
	movl	24(%rsp), %edi
	testl	%edi, %edi
	jg	.L8
	testl	%eax, %eax
	jg	.L49
.L9:
	testl	%edi, %edi
	jle	.L22
	leal	-1(%rdi), %ecx
	xorl	%r11d, %r11d
	cmpl	$2, %ecx
	ja	.L50
.L34:
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	jmp	.L19
.L33:
	xorl	%r11d, %r11d
	xorl	%edx, %edx
	jmp	.L13
.L7:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	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
	ret
.L51:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.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>


void swap(int x,int y){
    int tmp;
    
    tmp=x;
    x=y;
    y=tmp;

}

int main(int argc, const char * argv[]) {
    
    int n,m,taro[100],hana[100],card,i=0,j = 0,tsum = 0,hsum = 0,flag = 0;
    
    while (1) {
        scanf("%d %d",&n,&m);
        
        if (n==0&&m==0) {
            break;
        }
        //card??\??????
        for (i = 0; i < n; i++) {
            scanf("%d",&card);
            taro[i] = card;
        }
        //card??\??????
        for (i = 0; i < m; i++) {
            scanf("%d",&card);
            hana[i] = card;
        }
        
        //?????????sort(??????)
        
        for (i = 0; i < n-1; i++) {
            for (j = n-1; j > i; j--) {
                //taro
                if (taro[j] < taro[j-1]) {
                    swap(taro[j],taro[j-1]);
                }
                //hana
                if (hana[j] < hana[j-1]) {
                    swap(hana[j],hana[j-1]);
                }
                
            }
        }
        
        for (i=0; i<n; i++) {
            tsum += taro[i];
        }
        
        for (i=0; i<m; i++) {
            hsum += hana[i];
        }
        
        //????????????????????§??????????????????????????????????°?
        for (i = 0; i < n; i++) {
            for (j = 0; j < m; j++) {
                if (tsum-(2*taro[i]) == hsum-(2*hana[j])) {
                    printf("%d %d\n",taro[i],hana[j]);
                    flag = 1;
                    break;
                }
            }
            if (flag==1) {
                //printf("flag1\n");
                break;
            }
        }
        
        if (flag == 0) {
            printf("-1\n");
        }
        
        flag = 0;
        tsum = 0;
        hsum = 0;
    }
    return 0;
}
2 2
1
5
4
7
6 5
3
9
5
2
3
3
12
2
7
3
5
4 5
10
0
3
8
1
9
6
0
6
7 4
1
1
2
1
2
1
4
2
3
4
3
2 3
1
1
2
2
2
0 0
 2 2
1
5
4
7
6 5
3
9
5
2
3
3
12
2
7
3
5
4 5
10
0
3
8
1
9
6
0
6
7 4
1
1
2
1
2
1
4
2
3
4
6
2 3
1
1
2
2
2
0 0
 2 2
1
5
4
7
6 5
3
9
7
2
3
3
12
2
7
3
5
4 5
10
0
3
8
1
9
6
0
6
7 4
1
1
2
1
2
1
4
2
3
4
6
2 3
1
1
2
2
2
0 0
 2 2
1
5
4
7
6 5
3
9
7
2
3
3
12
2
7
3
5
4 5
10
0
2
8
1
9
6
0
6
7 4
1
1
2
1
2
1
4
2
3
4
6
2 3
1
1
2
2
2
0 0
 2 2
1
5
7
7
6 5
2
9
7
2
3
3
12
2
7
3
5
4 5
10
0
2
8
1
9
6
0
6
7 4
1
1
2
1
2
1
4
2
3
4
6
2 3
1
1
2
2
2
0 0
 2 2
1
5
4
7
6 5
3
9
5
2
3
3
11
2
7
3
5
4 5
10
0
3
8
1
9
6
0
6
7 4
1
1
2
1
2
1
4
2
3
4
6
2 3
1
1
2
2
2
0 0
 2 2
1
5
3
7
6 5
2
9
7
2
3
3
24
2
7
3
5
4 5
10
0
2
8
1
9
6
0
6
7 4
1
1
2
1
2
1
4
2
3
4
6
2 3
1
1
2
2
2
0 0
 2 2
1
5
3
7
6 5
2
9
7
2
3
3
24
2
7
3
5
4 5
10
0
2
8
1
9
6
0
6
7 4
1
1
2
1
2
1
4
2
2
4
6
2 3
1
1
2
2
2
0 0
 2 2
1
5
11
7
6 5
2
9
7
2
3
3
24
2
7
3
1
4 5
10
0
2
8
1
9
6
0
6
7 4
1
1
2
1
0
1
6
2
3
4
6
2 3
1
1
2
2
2
0 0
 2 2
1
5
3
7
6 5
2
9
7
2
3
3
24
2
7
3
5
4 5
10
0
2
8
1
9
6
0
6
7 4
1
1
2
1
2
1
4
2
2
4
6
2 3
1
1
4
2
2
0 0

-1
3 5
-1
2 2
-1
 -1
3 5
-1
-1
-1
 -1
2 3
-1
-1
-1
 -1
2 3
0 1
-1
-1
 -1
-1
0 1
-1
-1
 -1
-1
-1
-1
-1
 1 3
-1
0 1
-1
-1
 1 3
-1
0 1
1 2
-1
 1 7
-1
0 1
-1
-1
 1 3
-1
0 1
1 2
1 4

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>


void swap(int x,int y){
    int tmp;
    
    tmp=x;
    x=y;
    y=tmp;

}

int main(int argc, const char * argv[]) {
    
    int n,m,taro[100],hana[100],card,i=0,j = 0,tsum = 0,hsum = 0,flag = 0;
    
    while (1) {
        scanf("%d %d",&n,&m);
        
        if (n==0&&m==0) {
            break;
        }
        //card??\??????
        for (i = 0; i < n; i++) {
            scanf("%d",&card);
            taro[i] = card;
        }
        //card??\??????
        for (i = 0; i < m; i++) {
            scanf("%d",&card);
            hana[i] = card;
        }
        
        //?????????sort(??????)
        
        for (i = 0; i < n-1; i++) {
            for (j = n-1; j > i; j--) {
                //taro
                if (taro[j] < taro[j-1]) {
                    swap(taro[j],taro[j-1]);
                }
                //hana
                if (hana[j] < hana[j-1]) {
                    swap(hana[j],hana[j-1]);
                }
                
            }
        }
        
        for (i=0; i<n; i++) {
            tsum += taro[i];
        }
        
        for (i=0; i<m; i++) {
            hsum += hana[i];
        }
        
        //????????????????????§??????????????????????????????????°?
        for (i = 0; i < n; i++) {
            for (j = 0; j < m; j++) {
                if (tsum-(2*taro[i]) == hsum-(2*hana[j])) {
                    printf("%d %d\n",taro[i],hana[j]);
                    flag = 1;
                    break;
                }
            }
            if (flag==1) {
                //printf("flag1\n");
                break;
            }
        }
        
        if (flag == 0) {
            printf("-1\n");
        }
        
        flag = 0;
        tsum = 0;
        hsum = 0;
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$864, %rsp
	movl	%edi, -852(%rbp)
	movq	%rsi, -864(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -836(%rbp)
	movl	$0, -832(%rbp)
	movl	$0, -828(%rbp)
	movl	$0, -824(%rbp)
	movl	$0, -820(%rbp)
.L28:
	leaq	-844(%rbp), %rdx
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-848(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-844(%rbp), %eax
	testl	%eax, %eax
	je	.L32
.L3:
	movl	$0, -836(%rbp)
	jmp	.L5
.L6:
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-840(%rbp), %edx
	movl	-836(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -836(%rbp)
.L5:
	movl	-848(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L6
	movl	$0, -836(%rbp)
	jmp	.L7
.L8:
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-840(%rbp), %edx
	movl	-836(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	addl	$1, -836(%rbp)
.L7:
	movl	-844(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L8
	movl	$0, -836(%rbp)
	jmp	.L9
.L14:
	movl	-848(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -832(%rbp)
	jmp	.L10
.L13:
	movl	-832(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L11
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	swap
.L11:
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	swap
.L12:
	subl	$1, -832(%rbp)
.L10:
	movl	-832(%rbp), %eax
	cmpl	-836(%rbp), %eax
	jg	.L13
	addl	$1, -836(%rbp)
.L9:
	movl	-848(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -836(%rbp)
	jl	.L14
	movl	$0, -836(%rbp)
	jmp	.L15
.L16:
	movl	-836(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -828(%rbp)
	addl	$1, -836(%rbp)
.L15:
	movl	-848(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L16
	movl	$0, -836(%rbp)
	jmp	.L17
.L18:
	movl	-836(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	addl	%eax, -824(%rbp)
	addl	$1, -836(%rbp)
.L17:
	movl	-844(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L18
	movl	$0, -836(%rbp)
	jmp	.L19
.L26:
	movl	$0, -832(%rbp)
	jmp	.L20
.L23:
	movl	-836(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	leal	(%rax,%rax), %ecx
	movl	-828(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	leal	(%rax,%rax), %ecx
	movl	-824(%rbp), %eax
	subl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L21
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-836(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -820(%rbp)
	jmp	.L22
.L21:
	addl	$1, -832(%rbp)
.L20:
	movl	-844(%rbp), %eax
	cmpl	%eax, -832(%rbp)
	jl	.L23
.L22:
	cmpl	$1, -820(%rbp)
	je	.L33
	addl	$1, -836(%rbp)
.L19:
	movl	-848(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L26
	jmp	.L25
.L33:
	nop
.L25:
	cmpl	$0, -820(%rbp)
	jne	.L27
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L27:
	movl	$0, -820(%rbp)
	movl	$0, -828(%rbp)
	movl	$0, -824(%rbp)
	jmp	.L28
.L32:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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
	.globl	swap
	.type	swap, @function
swap:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$864, %rsp
	movl	%edi, -852(%rbp)
	movq	%rsi, -864(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -836(%rbp)
	movl	$0, -832(%rbp)
	movl	$0, -828(%rbp)
	movl	$0, -824(%rbp)
	movl	$0, -820(%rbp)
.L28:
	leaq	-844(%rbp), %rdx
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-848(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-844(%rbp), %eax
	testl	%eax, %eax
	je	.L32
.L3:
	movl	$0, -836(%rbp)
	jmp	.L5
.L6:
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-840(%rbp), %edx
	movl	-836(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -836(%rbp)
.L5:
	movl	-848(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L6
	movl	$0, -836(%rbp)
	jmp	.L7
.L8:
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-840(%rbp), %edx
	movl	-836(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	addl	$1, -836(%rbp)
.L7:
	movl	-844(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L8
	movl	$0, -836(%rbp)
	jmp	.L9
.L14:
	movl	-848(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -832(%rbp)
	jmp	.L10
.L13:
	movl	-832(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L11
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	swap
.L11:
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	swap
.L12:
	subl	$1, -832(%rbp)
.L10:
	movl	-832(%rbp), %eax
	cmpl	-836(%rbp), %eax
	jg	.L13
	addl	$1, -836(%rbp)
.L9:
	movl	-848(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -836(%rbp)
	jl	.L14
	movl	$0, -836(%rbp)
	jmp	.L15
.L16:
	movl	-836(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -828(%rbp)
	addl	$1, -836(%rbp)
.L15:
	movl	-848(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L16
	movl	$0, -836(%rbp)
	jmp	.L17
.L18:
	movl	-836(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	addl	%eax, -824(%rbp)
	addl	$1, -836(%rbp)
.L17:
	movl	-844(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L18
	movl	$0, -836(%rbp)
	jmp	.L19
.L26:
	movl	$0, -832(%rbp)
	jmp	.L20
.L23:
	movl	-836(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	leal	(%rax,%rax), %ecx
	movl	-828(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	leal	(%rax,%rax), %ecx
	movl	-824(%rbp), %eax
	subl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L21
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-836(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -820(%rbp)
	jmp	.L22
.L21:
	addl	$1, -832(%rbp)
.L20:
	movl	-844(%rbp), %eax
	cmpl	%eax, -832(%rbp)
	jl	.L23
.L22:
	cmpl	$1, -820(%rbp)
	je	.L33
	addl	$1, -836(%rbp)
.L19:
	movl	-848(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L26
	jmp	.L25
.L33:
	nop
.L25:
	cmpl	$0, -820(%rbp)
	jne	.L27
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L27:
	movl	$0, -820(%rbp)
	movl	$0, -828(%rbp)
	movl	$0, -824(%rbp)
	jmp	.L28
.L32:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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:
