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 shouhi(int n,int m){
	return n*(100+m)/100;
}

int main(){
	int X,Y,s,a,b,i,A=0,B=0;
	for(i=0;i<1000;i++){
		scanf("%d %d %d",&X,&Y,&s);
		A=0;B=0;
		if((X==0)&&(Y==0)&&(s==0)){
			return 0;}
		for(a=1;a<1000;a++){
			for(b=a;b<1000;b++){
				if((shouhi(a,X) + shouhi(b,X) == s) && (shouhi(a,Y) + shouhi(b,Y) >= shouhi(A,Y) + shouhi(B,Y))){
					A = a; B = b;
				}
			}
		}
		printf("%d\n",shouhi(A,Y) + shouhi(B,Y));
	}
					
	return 0;
	}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	shouhi
	.type	shouhi, @function
shouhi:
.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, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %eax
	addl	$100, %eax
	imull	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	shouhi, .-shouhi
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.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
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L4
.L12:
	leaq	-48(%rbp), %rcx
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$0, %eax
	jmp	.L13
.L5:
	movl	$1, -44(%rbp)
	jmp	.L7
.L11:
	movl	-44(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L8
.L10:
	movl	-56(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %ebx
	movl	-56(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	leal	(%rbx,%rax), %edx
	movl	-48(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L9
	movl	-52(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %ebx
	movl	-52(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	addl	%eax, %ebx
	movl	-52(%rbp), %edx
	movl	-32(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %r12d
	movl	-52(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	addl	%r12d, %eax
	cmpl	%eax, %ebx
	jl	.L9
	movl	-44(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
.L9:
	addl	$1, -40(%rbp)
.L8:
	cmpl	$999, -40(%rbp)
	jle	.L10
	addl	$1, -44(%rbp)
.L7:
	cmpl	$999, -44(%rbp)
	jle	.L11
	movl	-52(%rbp), %edx
	movl	-32(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %ebx
	movl	-52(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	addl	%ebx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -36(%rbp)
.L4:
	cmpl	$999, -36(%rbp)
	jle	.L12
	movl	$0, %eax
.L13:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.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	shouhi
	.type	shouhi, @function
shouhi:
.LFB23:
	.cfi_startproc
	endbr64
	addl	$100, %esi
	imull	%edi, %esi
	movslq	%esi, %rax
	sarl	$31, %esi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	shouhi, .-shouhi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	68(%rsp), %rax
	movl	$1000, 20(%rsp)
	movq	%rax, 32(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	60(%rsp), %rax
	movq	%rax, 40(%rsp)
.L8:
	movq	32(%rsp), %rcx
	movq	24(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	movq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %ebp
	movl	64(%rsp), %r9d
	movl	68(%rsp), %r14d
	movl	%ebp, %eax
	orl	%r9d, %eax
	orl	%r14d, %eax
	je	.L9
	addl	$100, %r9d
	addl	$100, %ebp
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movl	%r9d, 16(%rsp)
	movl	%ebp, %ebx
	movl	$1, %r15d
	movl	%r9d, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	%ebx, %r10
	movl	%ebx, %eax
	movl	%r15d, %edx
	imulq	$1374389535, %r10, %r10
	sarl	$31, %eax
	sarq	$37, %r10
	subl	%eax, %r10d
	movslq	12(%rsp), %rax
	movq	%rax, %rdi
	imulq	$1374389535, %rax, %rax
	sarl	$31, %edi
	sarq	$37, %rax
	subl	%edi, %eax
	movl	16(%rsp), %edi
	movl	%eax, 8(%rsp)
	movl	%ebx, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	%eax, %rcx
	movl	%eax, %esi
	imulq	$1374389535, %rcx, %rcx
	sarl	$31, %esi
	sarq	$37, %rcx
	subl	%esi, %ecx
	addl	%r10d, %ecx
	cmpl	%ecx, %r14d
	jne	.L5
	movslq	%edi, %rsi
	movl	%r9d, %r8d
	movl	%edi, %ecx
	movl	%r9d, %r11d
	imulq	$1374389535, %rsi, %rsi
	sarl	$31, %ecx
	imull	%r13d, %r8d
	imull	%r12d, %r11d
	sarq	$37, %rsi
	subl	%ecx, %esi
	movslq	%r8d, %rcx
	sarl	$31, %r8d
	addl	8(%rsp), %esi
	imulq	$1374389535, %rcx, %rcx
	sarq	$37, %rcx
	subl	%r8d, %ecx
	movslq	%r11d, %r8
	sarl	$31, %r11d
	imulq	$1374389535, %r8, %r8
	sarq	$37, %r8
	subl	%r11d, %r8d
	addl	%r8d, %ecx
	cmpl	%ecx, %esi
	cmovge	%edx, %r12d
	cmovge	%r15d, %r13d
.L5:
	addl	$1, %edx
	addl	%ebp, %eax
	addl	%r9d, %edi
	cmpl	$1000, %edx
	jne	.L6
	addl	$1, %r15d
	addl	%r9d, 12(%rsp)
	addl	%ebp, %ebx
	addl	%r9d, 16(%rsp)
	cmpl	$1000, %r15d
	jne	.L7
	imull	%r9d, %r12d
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	imull	%r13d, %r9d
	movslq	%r12d, %rdx
	sarl	$31, %r12d
	movslq	%r9d, %rax
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %r9d
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rdx
	sarq	$37, %rax
	subl	%r12d, %edx
	subl	%r9d, %eax
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subl	$1, 20(%rsp)
	jne	.L8
.L9:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$88, %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
.L16:
	.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	shouhi
	.type	shouhi, @function
shouhi:
.LFB23:
	.cfi_startproc
	endbr64
	addl	$100, %esi
	imull	%edi, %esi
	movslq	%esi, %rax
	sarl	$31, %esi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	shouhi, .-shouhi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	68(%rsp), %rax
	movl	$1000, 20(%rsp)
	movq	%rax, 32(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	60(%rsp), %rax
	movq	%rax, 40(%rsp)
.L8:
	movq	32(%rsp), %rcx
	movq	24(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	movq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %ebp
	movl	64(%rsp), %r9d
	movl	68(%rsp), %r14d
	movl	%ebp, %eax
	orl	%r9d, %eax
	orl	%r14d, %eax
	je	.L9
	addl	$100, %r9d
	addl	$100, %ebp
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movl	%r9d, 16(%rsp)
	movl	%ebp, %ebx
	movl	$1, %r15d
	movl	%r9d, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	%ebx, %r10
	movl	%ebx, %eax
	movl	%r15d, %edx
	imulq	$1374389535, %r10, %r10
	sarl	$31, %eax
	sarq	$37, %r10
	subl	%eax, %r10d
	movslq	12(%rsp), %rax
	movq	%rax, %rdi
	imulq	$1374389535, %rax, %rax
	sarl	$31, %edi
	sarq	$37, %rax
	subl	%edi, %eax
	movl	16(%rsp), %edi
	movl	%eax, 8(%rsp)
	movl	%ebx, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	%eax, %rcx
	movl	%eax, %esi
	imulq	$1374389535, %rcx, %rcx
	sarl	$31, %esi
	sarq	$37, %rcx
	subl	%esi, %ecx
	addl	%r10d, %ecx
	cmpl	%ecx, %r14d
	jne	.L5
	movslq	%edi, %rsi
	movl	%r9d, %r8d
	movl	%edi, %ecx
	movl	%r9d, %r11d
	imulq	$1374389535, %rsi, %rsi
	sarl	$31, %ecx
	imull	%r13d, %r8d
	imull	%r12d, %r11d
	sarq	$37, %rsi
	subl	%ecx, %esi
	movslq	%r8d, %rcx
	sarl	$31, %r8d
	addl	8(%rsp), %esi
	imulq	$1374389535, %rcx, %rcx
	sarq	$37, %rcx
	subl	%r8d, %ecx
	movslq	%r11d, %r8
	sarl	$31, %r11d
	imulq	$1374389535, %r8, %r8
	sarq	$37, %r8
	subl	%r11d, %r8d
	addl	%r8d, %ecx
	cmpl	%ecx, %esi
	cmovge	%edx, %r12d
	cmovge	%r15d, %r13d
.L5:
	addl	$1, %edx
	addl	%ebp, %eax
	addl	%r9d, %edi
	cmpl	$1000, %edx
	jne	.L6
	addl	$1, %r15d
	addl	%r9d, 12(%rsp)
	addl	%ebp, %ebx
	addl	%r9d, 16(%rsp)
	cmpl	$1000, %r15d
	jne	.L7
	imull	%r9d, %r12d
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	imull	%r13d, %r9d
	movslq	%r12d, %rdx
	sarl	$31, %r12d
	movslq	%r9d, %rax
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %r9d
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rdx
	sarq	$37, %rax
	subl	%r12d, %edx
	subl	%r9d, %eax
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subl	$1, 20(%rsp)
	jne	.L8
.L9:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$88, %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
.L16:
	.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>

int shouhi(int n,int m){
	return n*(100+m)/100;
}

int main(){
	int X,Y,s,a,b,i,A=0,B=0;
	for(i=0;i<1000;i++){
		scanf("%d %d %d",&X,&Y,&s);
		A=0;B=0;
		if((X==0)&&(Y==0)&&(s==0)){
			return 0;}
		for(a=1;a<1000;a++){
			for(b=a;b<1000;b++){
				if((shouhi(a,X) + shouhi(b,X) == s) && (shouhi(a,Y) + shouhi(b,Y) >= shouhi(A,Y) + shouhi(B,Y))){
					A = a; B = b;
				}
			}
		}
		printf("%d\n",shouhi(A,Y) + shouhi(B,Y));
	}
					
	return 0;
	}
5 8 105
8 5 105
1 2 24
4 98 24
12 13 26
1 22 23
1 13 201
13 16 112
2 24 50
1 82 61
1 84 125
1 99 999
99 1 999
98 99 999
1 99 11
99 1 12
0 0 0
 5 8 105
8 5 105
1 2 24
4 98 24
12 5 26
1 22 23
1 13 201
13 16 112
2 24 50
1 82 61
1 84 125
1 99 999
99 1 999
98 99 999
1 99 11
99 1 12
0 0 0
 5 8 105
8 5 105
1 2 24
99 98 24
12 13 26
1 22 23
1 19 201
13 16 112
2 24 50
1 82 61
1 84 125
1 99 999
99 1 999
98 99 999
1 99 11
99 1 12
0 0 0
 5 8 105
8 5 105
1 2 24
4 98 24
12 5 26
1 22 23
1 13 201
13 13 112
2 24 50
1 82 61
1 84 125
1 99 999
99 1 999
98 99 999
1 99 11
99 1 12
0 0 0
 5 8 105
8 5 105
1 2 24
4 98 24
12 5 26
1 22 23
1 13 201
13 13 112
3 24 50
1 82 61
1 84 125
1 99 999
99 2 999
98 99 999
1 99 11
99 1 12
0 0 0
 5 8 105
8 5 105
1 2 24
99 98 24
11 13 26
2 22 23
1 19 201
13 16 112
2 24 50
1 82 61
1 84 125
1 99 999
99 1 999
98 99 999
2 99 11
99 1 12
0 0 0
 5 8 105
8 5 105
1 2 24
4 98 24
12 5 26
1 22 23
1 13 201
13 13 112
3 24 50
2 82 61
1 84 125
1 99 999
99 2 999
98 99 999
1 99 11
99 1 12
0 0 0
 5 8 105
8 5 105
1 2 24
99 98 24
11 13 26
2 22 23
1 19 201
13 16 112
2 24 50
1 82 61
1 84 125
1 2 999
99 1 999
98 99 999
2 99 11
99 1 12
0 0 0
 5 8 105
8 5 105
1 2 24
4 98 24
12 5 26
1 22 23
1 13 201
13 13 28
3 24 50
2 82 61
1 84 125
1 99 999
99 2 999
98 99 999
1 99 11
99 1 12
0 0 0
 5 8 105
8 5 105
1 2 24
99 98 24
11 13 26
2 22 23
1 19 201
13 16 112
2 24 14
1 82 61
1 84 125
1 2 999
99 1 999
98 99 999
2 99 11
99 1 12
0 0 0

109
103
24
46
26
27
225
116
62
111
230
1972
508
1004
20
7
 109
103
24
46
25
27
225
116
62
111
230
1972
508
1004
20
7
 109
103
24
24
26
27
237
116
62
111
230
1972
508
1004
20
7
 109
103
24
46
25
27
225
112
62
111
230
1972
508
1004
20
7
 109
103
24
46
25
27
225
112
62
111
230
1972
513
1004
20
7
 109
103
24
24
28
27
237
116
62
111
230
1972
508
1004
20
7
 109
103
24
46
25
27
225
112
62
110
230
1972
513
1004
20
7
 109
103
24
24
28
27
237
116
62
111
230
1009
508
1004
20
7
 109
103
24
46
25
27
225
28
62
110
230
1972
513
1004
20
7
 109
103
24
24
28
27
237
116
17
111
230
1009
508
1004
20
7

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 shouhi(int n,int m){
	return n*(100+m)/100;
}

int main(){
	int X,Y,s,a,b,i,A=0,B=0;
	for(i=0;i<1000;i++){
		scanf("%d %d %d",&X,&Y,&s);
		A=0;B=0;
		if((X==0)&&(Y==0)&&(s==0)){
			return 0;}
		for(a=1;a<1000;a++){
			for(b=a;b<1000;b++){
				if((shouhi(a,X) + shouhi(b,X) == s) && (shouhi(a,Y) + shouhi(b,Y) >= shouhi(A,Y) + shouhi(B,Y))){
					A = a; B = b;
				}
			}
		}
		printf("%d\n",shouhi(A,Y) + shouhi(B,Y));
	}
					
	return 0;
	}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	shouhi
	.type	shouhi, @function
shouhi:
.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, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %eax
	addl	$100, %eax
	imull	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	shouhi, .-shouhi
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.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
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L4
.L12:
	leaq	-48(%rbp), %rcx
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$0, %eax
	jmp	.L13
.L5:
	movl	$1, -44(%rbp)
	jmp	.L7
.L11:
	movl	-44(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L8
.L10:
	movl	-56(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %ebx
	movl	-56(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	leal	(%rbx,%rax), %edx
	movl	-48(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L9
	movl	-52(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %ebx
	movl	-52(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	addl	%eax, %ebx
	movl	-52(%rbp), %edx
	movl	-32(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %r12d
	movl	-52(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	addl	%r12d, %eax
	cmpl	%eax, %ebx
	jl	.L9
	movl	-44(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
.L9:
	addl	$1, -40(%rbp)
.L8:
	cmpl	$999, -40(%rbp)
	jle	.L10
	addl	$1, -44(%rbp)
.L7:
	cmpl	$999, -44(%rbp)
	jle	.L11
	movl	-52(%rbp), %edx
	movl	-32(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %ebx
	movl	-52(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	addl	%ebx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -36(%rbp)
.L4:
	cmpl	$999, -36(%rbp)
	jle	.L12
	movl	$0, %eax
.L13:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.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	shouhi
	.type	shouhi, @function
shouhi:
.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, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %eax
	addl	$100, %eax
	imull	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	shouhi, .-shouhi
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.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
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L4
.L12:
	leaq	-48(%rbp), %rcx
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$0, %eax
	jmp	.L13
.L5:
	movl	$1, -44(%rbp)
	jmp	.L7
.L11:
	movl	-44(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L8
.L10:
	movl	-56(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %ebx
	movl	-56(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	leal	(%rbx,%rax), %edx
	movl	-48(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L9
	movl	-52(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %ebx
	movl	-52(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	addl	%eax, %ebx
	movl	-52(%rbp), %edx
	movl	-32(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %r12d
	movl	-52(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	addl	%r12d, %eax
	cmpl	%eax, %ebx
	jl	.L9
	movl	-44(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
.L9:
	addl	$1, -40(%rbp)
.L8:
	cmpl	$999, -40(%rbp)
	jle	.L10
	addl	$1, -44(%rbp)
.L7:
	cmpl	$999, -44(%rbp)
	jle	.L11
	movl	-52(%rbp), %edx
	movl	-32(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	movl	%eax, %ebx
	movl	-52(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	shouhi
	addl	%ebx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -36(%rbp)
.L4:
	cmpl	$999, -36(%rbp)
	jle	.L12
	movl	$0, %eax
.L13:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.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:
