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

```c
#include <stdio.h>
int main(void) {
  int a[100],b[100],n,m,i,j,suma,sumb,total,a1,a2;
  while(1){
  	a1=-1;
  	a2=-1;
scanf("%d%d",&n,&m);
suma=sumb=0;
if(n==0&&m==0)break;
for(i=0;i<n;i++){
	scanf("%d",&a[i]);
	suma+=a[i];
}
for(i=0;i<m;i++){
	scanf("%d",&b[i]);
	sumb+=b[i];
}
total==suma+sumb;
if(total%2==1)break;
else{
for(i=0;i<n;i++){
for(j=0;j<m;j++){
	if((suma-a[i]+b[j])==(sumb-b[j]+a[i])){
		a1=a[i];
		a2=b[j];
	}
	if(a1!=-1)break;
}if(a1!=-1)break;
}
  }
  
if(a1!=-1)printf("%d% d\n",a1,a2);
else printf("-1\n");
}
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
.LC3:
	.string	"%d% d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebx
	testl	%ebx, %ebx
	jne	.L41
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L42
.L7:
	testl	%r14d, %r14d
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L44:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	leaq	432(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	0(%r13,%r15,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r14d
	addl	0(%r13,%r15,4), %r12d
	addq	$1, %r15
	cmpl	%r15d, %r14d
	jg	.L9
.L37:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	subl	$1, %eax
	leaq	32(%rsp), %r11
	leaq	432(%rsp), %r13
	leaq	36(%rsp,%rax,4), %r15
	leal	-1(%r14), %eax
	leaq	436(%rsp,%rax,4), %r9
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%r14d, %r14d
	jle	.L14
	movl	(%r11), %r8d
	movl	%ebx, %esi
	movq	%r13, %rdx
	subl	%r8d, %esi
	cmpl	$-1, %r8d
	setne	%dil
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$4, %rdx
	cmpq	%rdx, %r9
	je	.L14
.L13:
	movl	(%rdx), %ecx
	movl	%r12d, %eax
	subl	%ecx, %eax
	leal	(%rsi,%rcx), %r10d
	addl	%r8d, %eax
	cmpl	%r10d, %eax
	jne	.L22
	testb	%dil, %dil
	je	.L22
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %r11
	cmpq	%r11, %r15
	jne	.L18
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L41:
	jle	.L43
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r12,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	0(%r13,%r12,4), %ebx
	addq	$1, %r12
	cmpl	%r12d, 24(%rsp)
	jg	.L4
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	jg	.L44
.L21:
	xorl	%r12d, %r12d
	jmp	.L37
.L42:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	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
.L43:
	.cfi_restore_state
	movl	28(%rsp), %r14d
	xorl	%ebx, %ebx
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
.LC3:
	.string	"%d% d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebx
	testl	%ebx, %ebx
	jne	.L41
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L42
.L7:
	testl	%r14d, %r14d
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L44:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	leaq	432(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	0(%r13,%r15,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r14d
	addl	0(%r13,%r15,4), %r12d
	addq	$1, %r15
	cmpl	%r15d, %r14d
	jg	.L9
.L37:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	subl	$1, %eax
	leaq	32(%rsp), %r11
	leaq	432(%rsp), %r13
	leaq	36(%rsp,%rax,4), %r15
	leal	-1(%r14), %eax
	leaq	436(%rsp,%rax,4), %r9
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%r14d, %r14d
	jle	.L14
	movl	(%r11), %r8d
	movl	%ebx, %esi
	movq	%r13, %rdx
	subl	%r8d, %esi
	cmpl	$-1, %r8d
	setne	%dil
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$4, %rdx
	cmpq	%rdx, %r9
	je	.L14
.L13:
	movl	(%rdx), %ecx
	movl	%r12d, %eax
	subl	%ecx, %eax
	leal	(%rsi,%rcx), %r10d
	addl	%r8d, %eax
	cmpl	%r10d, %eax
	jne	.L22
	testb	%dil, %dil
	je	.L22
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %r11
	cmpq	%r11, %r15
	jne	.L18
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L41:
	jle	.L43
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r12,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	0(%r13,%r12,4), %ebx
	addq	$1, %r12
	cmpl	%r12d, 24(%rsp)
	jg	.L4
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	jg	.L44
.L21:
	xorl	%r12d, %r12d
	jmp	.L37
.L42:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	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
.L43:
	.cfi_restore_state
	movl	28(%rsp), %r14d
	xorl	%ebx, %ebx
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
.LC3:
	.string	"%d% d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebx
	testl	%ebx, %ebx
	jne	.L41
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L42
.L7:
	testl	%r14d, %r14d
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L44:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	leaq	432(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	0(%r13,%r15,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r14d
	addl	0(%r13,%r15,4), %r12d
	addq	$1, %r15
	cmpl	%r15d, %r14d
	jg	.L9
.L37:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	subl	$1, %eax
	leaq	32(%rsp), %r11
	leaq	432(%rsp), %r13
	leaq	36(%rsp,%rax,4), %r15
	leal	-1(%r14), %eax
	leaq	436(%rsp,%rax,4), %r9
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%r14d, %r14d
	jle	.L14
	movl	(%r11), %r8d
	movl	%ebx, %esi
	movq	%r13, %rdx
	subl	%r8d, %esi
	cmpl	$-1, %r8d
	setne	%dil
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$4, %rdx
	cmpq	%rdx, %r9
	je	.L14
.L13:
	movl	(%rdx), %ecx
	movl	%r12d, %eax
	subl	%ecx, %eax
	leal	(%rsi,%rcx), %r10d
	addl	%r8d, %eax
	cmpl	%r10d, %eax
	jne	.L22
	testb	%dil, %dil
	je	.L22
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %r11
	cmpq	%r11, %r15
	jne	.L18
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L41:
	jle	.L43
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r12,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	0(%r13,%r12,4), %ebx
	addq	$1, %r12
	cmpl	%r12d, 24(%rsp)
	jg	.L4
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	jg	.L44
.L21:
	xorl	%r12d, %r12d
	jmp	.L37
.L42:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	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
.L43:
	.cfi_restore_state
	movl	28(%rsp), %r14d
	xorl	%ebx, %ebx
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include <stdio.h>
int main(void) {
  int a[100],b[100],n,m,i,j,suma,sumb,total,a1,a2;
  while(1){
  	a1=-1;
  	a2=-1;
scanf("%d%d",&n,&m);
suma=sumb=0;
if(n==0&&m==0)break;
for(i=0;i<n;i++){
	scanf("%d",&a[i]);
	suma+=a[i];
}
for(i=0;i<m;i++){
	scanf("%d",&b[i]);
	sumb+=b[i];
}
total==suma+sumb;
if(total%2==1)break;
else{
for(i=0;i<n;i++){
for(j=0;j<m;j++){
	if((suma-a[i]+b[j])==(sumb-b[j]+a[i])){
		a1=a[i];
		a2=b[j];
	}
	if(a1!=-1)break;
}if(a1!=-1)break;
}
  }
  
if(a1!=-1)printf("%d% d\n",a1,a2);
else printf("-1\n");
}
  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int main(void) {
  int a[100],b[100],n,m,i,j,suma,sumb,total,a1,a2;
  while(1){
  	a1=-1;
  	a2=-1;
scanf("%d%d",&n,&m);
suma=sumb=0;
if(n==0&&m==0)break;
for(i=0;i<n;i++){
	scanf("%d",&a[i]);
	suma+=a[i];
}
for(i=0;i<m;i++){
	scanf("%d",&b[i]);
	sumb+=b[i];
}
total==suma+sumb;
if(total%2==1)break;
else{
for(i=0;i<n;i++){
for(j=0;j<m;j++){
	if((suma-a[i]+b[j])==(sumb-b[j]+a[i])){
		a1=a[i];
		a2=b[j];
	}
	if(a1!=-1)break;
}if(a1!=-1)break;
}
  }
  
if(a1!=-1)printf("%d% d\n",a1,a2);
else printf("-1\n");
}
  return 0;
}```

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.
Optimized Assembly Code:

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 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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int main(void) {
  int a[100],b[100],n,m,i,j,suma,sumb,total,a1,a2;
  while(1){
  	a1=-1;
  	a2=-1;
scanf("%d%d",&n,&m);
suma=sumb=0;
if(n==0&&m==0)break;
for(i=0;i<n;i++){
	scanf("%d",&a[i]);
	suma+=a[i];
}
for(i=0;i<m;i++){
	scanf("%d",&b[i]);
	sumb+=b[i];
}
total==suma+sumb;
if(total%2==1)break;
else{
for(i=0;i<n;i++){
for(j=0;j<m;j++){
	if((suma-a[i]+b[j])==(sumb-b[j]+a[i])){
		a1=a[i];
		a2=b[j];
	}
	if(a1!=-1)break;
}if(a1!=-1)break;
}
  }
  
if(a1!=-1)printf("%d% d\n",a1,a2);
else printf("-1\n");
}
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
.LC3:
	.string	"%d% d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebx
	testl	%ebx, %ebx
	jne	.L41
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L42
.L7:
	testl	%r14d, %r14d
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L44:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	leaq	432(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	0(%r13,%r15,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r14d
	addl	0(%r13,%r15,4), %r12d
	addq	$1, %r15
	cmpl	%r15d, %r14d
	jg	.L9
.L37:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	subl	$1, %eax
	leaq	32(%rsp), %r11
	leaq	432(%rsp), %r13
	leaq	36(%rsp,%rax,4), %r15
	leal	-1(%r14), %eax
	leaq	436(%rsp,%rax,4), %r9
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%r14d, %r14d
	jle	.L14
	movl	(%r11), %r8d
	movl	%ebx, %esi
	movq	%r13, %rdx
	subl	%r8d, %esi
	cmpl	$-1, %r8d
	setne	%dil
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$4, %rdx
	cmpq	%rdx, %r9
	je	.L14
.L13:
	movl	(%rdx), %ecx
	movl	%r12d, %eax
	subl	%ecx, %eax
	leal	(%rsi,%rcx), %r10d
	addl	%r8d, %eax
	cmpl	%r10d, %eax
	jne	.L22
	testb	%dil, %dil
	je	.L22
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %r11
	cmpq	%r11, %r15
	jne	.L18
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L41:
	jle	.L43
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r12,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	0(%r13,%r12,4), %ebx
	addq	$1, %r12
	cmpl	%r12d, 24(%rsp)
	jg	.L4
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	jg	.L44
.L21:
	xorl	%r12d, %r12d
	jmp	.L37
.L42:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	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
.L43:
	.cfi_restore_state
	movl	28(%rsp), %r14d
	xorl	%ebx, %ebx
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
.LC3:
	.string	"%d% d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebx
	testl	%ebx, %ebx
	jne	.L41
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L42
.L7:
	testl	%r14d, %r14d
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L44:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	leaq	432(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	0(%r13,%r15,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r14d
	addl	0(%r13,%r15,4), %r12d
	addq	$1, %r15
	cmpl	%r15d, %r14d
	jg	.L9
.L37:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	subl	$1, %eax
	leaq	32(%rsp), %r11
	leaq	432(%rsp), %r13
	leaq	36(%rsp,%rax,4), %r15
	leal	-1(%r14), %eax
	leaq	436(%rsp,%rax,4), %r9
	.p2align 4,,10
	.p2align 3
.L18:
	testl	%r14d, %r14d
	jle	.L14
	movl	(%r11), %r8d
	movl	%ebx, %esi
	movq	%r13, %rdx
	subl	%r8d, %esi
	cmpl	$-1, %r8d
	setne	%dil
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$4, %rdx
	cmpq	%rdx, %r9
	je	.L14
.L13:
	movl	(%rdx), %ecx
	movl	%r12d, %eax
	subl	%ecx, %eax
	leal	(%rsi,%rcx), %r10d
	addl	%r8d, %eax
	cmpl	%r10d, %eax
	jne	.L22
	testb	%dil, %dil
	je	.L22
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %r11
	cmpq	%r11, %r15
	jne	.L18
.L15:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L41:
	jle	.L43
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r12,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	0(%r13,%r12,4), %ebx
	addq	$1, %r12
	cmpl	%r12d, 24(%rsp)
	jg	.L4
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	jg	.L44
.L21:
	xorl	%r12d, %r12d
	jmp	.L37
.L42:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	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
.L43:
	.cfi_restore_state
	movl	28(%rsp), %r14d
	xorl	%ebx, %ebx
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```