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 taxfree(int r, int p) {
  int i;
  for(i=p;i>0;i--) if(i*(100+r)/100 == p) break;
  return i;
}

int solve(int x, int y, int s){
  int a,b,da,db,i,max=0;
  for(a=1;a<s;a++){
    b=s-a;
    da = taxfree(x,a)*(100+y)/100;
    db = taxfree(x,b)*(100+y)/100;
    if(da+db > max) max=da+db;
  }
  return max;
}

int main(){
  int x,y,s;
  
  while(1){
    scanf("%d %d %d", &x, &y, &s);
    if(x==0 && y==0 && s==0) break;

    printf("%d\n", solve(x,y,s));
    /* printf("%d\n", taxfree(x,s)); */
  }
  
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	taxfree
	.type	taxfree, @function
taxfree:
.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	-24(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movl	-20(%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
	cmpl	%eax, -24(%rbp)
	je	.L7
	subl	$1, -4(%rbp)
.L2:
	cmpl	$0, -4(%rbp)
	jg	.L5
	jmp	.L4
.L7:
	nop
.L4:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	taxfree, .-taxfree
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	$0, -16(%rbp)
	movl	$1, -20(%rbp)
	jmp	.L9
.L11:
	movl	-44(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	taxfree
	movl	-40(%rbp), %edx
	addl	$100, %edx
	imull	%edx, %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
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	taxfree
	movl	-40(%rbp), %edx
	addl	$100, %edx
	imull	%edx, %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
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jge	.L10
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -16(%rbp)
.L10:
	addl	$1, -20(%rbp)
.L9:
	movl	-20(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	.L11
	movl	-16(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L16:
	leaq	-12(%rbp), %rcx
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	je	.L20
.L14:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %ecx
	movl	-20(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	solve
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L16
.L20:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	taxfree
	.type	taxfree, @function
taxfree:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L5
	addl	$100, %edi
	movl	%esi, %ecx
	imull	%edi, %ecx
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1374389535, %rax, %rax
	sarl	$31, %edx
	sarq	$37, %rax
	subl	%edx, %eax
	cmpl	%eax, %esi
	je	.L1
	subl	%edi, %ecx
	movl	%esi, %eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%ecx, %rdx
	movl	%ecx, %r8d
	subl	%edi, %ecx
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$37, %rdx
	subl	%r8d, %edx
	cmpl	%esi, %edx
	je	.L1
.L3:
	subl	$1, %eax
	jne	.L4
	ret
.L5:
	movl	%esi, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	taxfree, .-taxfree
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB24:
	.cfi_startproc
	endbr64
	cmpl	$1, %edx
	jle	.L16
	leal	-1(%rdx), %r9d
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$-100, %r8d
	xorl	%r10d, %r10d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leal	100(%rdi), %r13d
	subl	%edi, %r8d
	movl	$1, %edi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	%r13d, %r11d
	leal	100(%rsi), %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%r9d, %ebx
	imull	%r13d, %ebx
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%r11d, %edx
	movl	%edi, %ecx
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1374389535, %rax, %rax
	sarl	$31, %esi
	sarq	$37, %rax
	subl	%esi, %eax
	cmpl	%eax, %edi
	je	.L9
	addl	%r8d, %edx
	subl	$1, %ecx
	jne	.L10
.L11:
	movl	%ebx, %edx
	movl	%r9d, %esi
	.p2align 4,,10
	.p2align 3
.L13:
	movslq	%edx, %rax
	movl	%edx, %r14d
	imulq	$1374389535, %rax, %rax
	sarl	$31, %r14d
	sarq	$37, %rax
	subl	%r14d, %eax
	cmpl	%eax, %r9d
	je	.L12
	addl	%r8d, %edx
	subl	$1, %esi
	jne	.L13
.L14:
	cmpl	%ecx, %r10d
	cmovl	%ecx, %r10d
	addl	$1, %edi
	subl	$1, %r9d
	addl	%r8d, %ebx
	addl	%r13d, %r11d
	cmpl	%edi, %ebp
	jne	.L15
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movl	%r10d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	imull	%r12d, %esi
	movslq	%esi, %rax
	sarl	$31, %esi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%esi, %eax
	addl	%eax, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %eax
	imull	%r12d, %eax
	movslq	%eax, %rcx
	sarl	$31, %eax
	imulq	$1374389535, %rcx, %rcx
	sarq	$37, %rcx
	subl	%eax, %ecx
	jmp	.L11
.L16:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	solve, .-solve
	.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:
.LFB25:
	.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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	36(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L33:
	movq	8(%rsp), %rsi
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	movl	32(%rsp), %r15d
	movl	36(%rsp), %eax
	movl	%edx, %ecx
	orl	%r15d, %ecx
	orl	%eax, %ecx
	je	.L25
	cmpl	$1, %eax
	jle	.L36
	leal	100(%rdx), %r12d
	leal	-2(%rax), %r11d
	movl	$-100, %edi
	xorl	%r13d, %r13d
	imull	%r12d, %r11d
	addl	$100, %r15d
	leal	-1(%rax), %r9d
	movl	%r12d, %r14d
	movl	$1, %r10d
	subl	%edx, %edi
	.p2align 4,,10
	.p2align 3
.L32:
	movl	%r14d, %edx
	movl	%r10d, %ecx
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1374389535, %rax, %rax
	sarl	$31, %esi
	sarq	$37, %rax
	subl	%esi, %eax
	cmpl	%r10d, %eax
	je	.L27
	addl	%edi, %edx
	subl	$1, %ecx
	jne	.L28
.L29:
	leal	(%r12,%r11), %eax
	movslq	%eax, %rdx
	sarl	$31, %eax
	imulq	$1374389535, %rdx, %rdx
	sarq	$37, %rdx
	subl	%eax, %edx
	cmpl	%edx, %r9d
	je	.L30
	movl	%r11d, %esi
	movl	%r9d, %edx
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	%esi, %rax
	movl	%esi, %r8d
	addl	%edi, %esi
	imulq	$1374389535, %rax, %rax
	sarl	$31, %r8d
	sarq	$37, %rax
	subl	%r8d, %eax
	cmpl	%eax, %r9d
	je	.L30
.L34:
	subl	$1, %edx
	jne	.L31
.L30:
	imull	%r15d, %edx
	movslq	%edx, %rax
	sarl	$31, %edx
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%edx, %eax
	addl	%ecx, %eax
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	addl	$1, %r10d
	subl	%r12d, %r11d
	addl	%r12d, %r14d
	subl	$1, %r9d
	jne	.L32
.L26:
	movl	%r13d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%ecx, %eax
	imull	%r15d, %eax
	movslq	%eax, %rcx
	sarl	$31, %eax
	imulq	$1374389535, %rcx, %rcx
	sarq	$37, %rcx
	subl	%eax, %ecx
	jmp	.L29
.L36:
	xorl	%r13d, %r13d
	jmp	.L26
.L25:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$56, %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
.L42:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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	taxfree
	.type	taxfree, @function
taxfree:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L5
	addl	$100, %edi
	movl	%esi, %ecx
	imull	%edi, %ecx
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1374389535, %rax, %rax
	sarl	$31, %edx
	sarq	$37, %rax
	subl	%edx, %eax
	cmpl	%eax, %esi
	je	.L1
	subl	%edi, %ecx
	movl	%esi, %eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%ecx, %rdx
	movl	%ecx, %r8d
	subl	%edi, %ecx
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$37, %rdx
	subl	%r8d, %edx
	cmpl	%esi, %edx
	je	.L1
.L3:
	subl	$1, %eax
	jne	.L4
	ret
.L5:
	movl	%esi, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	taxfree, .-taxfree
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB24:
	.cfi_startproc
	endbr64
	cmpl	$1, %edx
	jle	.L16
	leal	-1(%rdx), %r9d
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$-100, %r8d
	xorl	%r10d, %r10d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leal	100(%rdi), %r13d
	subl	%edi, %r8d
	movl	$1, %edi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	%r13d, %r11d
	leal	100(%rsi), %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%r9d, %ebx
	imull	%r13d, %ebx
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%r11d, %edx
	movl	%edi, %ecx
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1374389535, %rax, %rax
	sarl	$31, %esi
	sarq	$37, %rax
	subl	%esi, %eax
	cmpl	%eax, %edi
	je	.L9
	addl	%r8d, %edx
	subl	$1, %ecx
	jne	.L10
.L11:
	movl	%ebx, %edx
	movl	%r9d, %esi
	.p2align 4,,10
	.p2align 3
.L13:
	movslq	%edx, %rax
	movl	%edx, %r14d
	imulq	$1374389535, %rax, %rax
	sarl	$31, %r14d
	sarq	$37, %rax
	subl	%r14d, %eax
	cmpl	%eax, %r9d
	je	.L12
	addl	%r8d, %edx
	subl	$1, %esi
	jne	.L13
.L14:
	cmpl	%ecx, %r10d
	cmovl	%ecx, %r10d
	addl	$1, %edi
	subl	$1, %r9d
	addl	%r8d, %ebx
	addl	%r13d, %r11d
	cmpl	%edi, %ebp
	jne	.L15
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movl	%r10d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	imull	%r12d, %esi
	movslq	%esi, %rax
	sarl	$31, %esi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%esi, %eax
	addl	%eax, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %eax
	imull	%r12d, %eax
	movslq	%eax, %rcx
	sarl	$31, %eax
	imulq	$1374389535, %rcx, %rcx
	sarq	$37, %rcx
	subl	%eax, %ecx
	jmp	.L11
.L16:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	solve, .-solve
	.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:
.LFB25:
	.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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	36(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L33:
	movq	8(%rsp), %rsi
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	movl	32(%rsp), %r15d
	movl	36(%rsp), %eax
	movl	%edx, %ecx
	orl	%r15d, %ecx
	orl	%eax, %ecx
	je	.L25
	cmpl	$1, %eax
	jle	.L36
	leal	100(%rdx), %r12d
	leal	-2(%rax), %r11d
	movl	$-100, %edi
	xorl	%r13d, %r13d
	imull	%r12d, %r11d
	addl	$100, %r15d
	leal	-1(%rax), %r9d
	movl	%r12d, %r14d
	movl	$1, %r10d
	subl	%edx, %edi
	.p2align 4,,10
	.p2align 3
.L32:
	movl	%r14d, %edx
	movl	%r10d, %ecx
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1374389535, %rax, %rax
	sarl	$31, %esi
	sarq	$37, %rax
	subl	%esi, %eax
	cmpl	%r10d, %eax
	je	.L27
	addl	%edi, %edx
	subl	$1, %ecx
	jne	.L28
.L29:
	leal	(%r12,%r11), %eax
	movslq	%eax, %rdx
	sarl	$31, %eax
	imulq	$1374389535, %rdx, %rdx
	sarq	$37, %rdx
	subl	%eax, %edx
	cmpl	%edx, %r9d
	je	.L30
	movl	%r11d, %esi
	movl	%r9d, %edx
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	%esi, %rax
	movl	%esi, %r8d
	addl	%edi, %esi
	imulq	$1374389535, %rax, %rax
	sarl	$31, %r8d
	sarq	$37, %rax
	subl	%r8d, %eax
	cmpl	%eax, %r9d
	je	.L30
.L34:
	subl	$1, %edx
	jne	.L31
.L30:
	imull	%r15d, %edx
	movslq	%edx, %rax
	sarl	$31, %edx
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%edx, %eax
	addl	%ecx, %eax
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	addl	$1, %r10d
	subl	%r12d, %r11d
	addl	%r12d, %r14d
	subl	$1, %r9d
	jne	.L32
.L26:
	movl	%r13d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%ecx, %eax
	imull	%r15d, %eax
	movslq	%eax, %rcx
	sarl	$31, %eax
	imulq	$1374389535, %rcx, %rcx
	sarq	$37, %rcx
	subl	%eax, %ecx
	jmp	.L29
.L36:
	xorl	%r13d, %r13d
	jmp	.L26
.L25:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$56, %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
.L42:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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 taxfree(int r, int p) {
  int i;
  for(i=p;i>0;i--) if(i*(100+r)/100 == p) break;
  return i;
}

int solve(int x, int y, int s){
  int a,b,da,db,i,max=0;
  for(a=1;a<s;a++){
    b=s-a;
    da = taxfree(x,a)*(100+y)/100;
    db = taxfree(x,b)*(100+y)/100;
    if(da+db > max) max=da+db;
  }
  return max;
}

int main(){
  int x,y,s;
  
  while(1){
    scanf("%d %d %d", &x, &y, &s);
    if(x==0 && y==0 && s==0) break;

    printf("%d\n", solve(x,y,s));
    /* printf("%d\n", taxfree(x,s)); */
  }
  
  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 taxfree(int r, int p) {
  int i;
  for(i=p;i>0;i--) if(i*(100+r)/100 == p) break;
  return i;
}

int solve(int x, int y, int s){
  int a,b,da,db,i,max=0;
  for(a=1;a<s;a++){
    b=s-a;
    da = taxfree(x,a)*(100+y)/100;
    db = taxfree(x,b)*(100+y)/100;
    if(da+db > max) max=da+db;
  }
  return max;
}

int main(){
  int x,y,s;
  
  while(1){
    scanf("%d %d %d", &x, &y, &s);
    if(x==0 && y==0 && s==0) break;

    printf("%d\n", solve(x,y,s));
    /* printf("%d\n", taxfree(x,s)); */
  }
  
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	taxfree
	.type	taxfree, @function
taxfree:
.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	-24(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movl	-20(%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
	cmpl	%eax, -24(%rbp)
	je	.L7
	subl	$1, -4(%rbp)
.L2:
	cmpl	$0, -4(%rbp)
	jg	.L5
	jmp	.L4
.L7:
	nop
.L4:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	taxfree, .-taxfree
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	$0, -16(%rbp)
	movl	$1, -20(%rbp)
	jmp	.L9
.L11:
	movl	-44(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	taxfree
	movl	-40(%rbp), %edx
	addl	$100, %edx
	imull	%edx, %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
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	taxfree
	movl	-40(%rbp), %edx
	addl	$100, %edx
	imull	%edx, %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
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jge	.L10
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -16(%rbp)
.L10:
	addl	$1, -20(%rbp)
.L9:
	movl	-20(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	.L11
	movl	-16(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L16:
	leaq	-12(%rbp), %rcx
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	je	.L20
.L14:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %ecx
	movl	-20(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	solve
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L16
.L20:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	taxfree
	.type	taxfree, @function
taxfree:
.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	-24(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movl	-20(%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
	cmpl	%eax, -24(%rbp)
	je	.L7
	subl	$1, -4(%rbp)
.L2:
	cmpl	$0, -4(%rbp)
	jg	.L5
	jmp	.L4
.L7:
	nop
.L4:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	taxfree, .-taxfree
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	$0, -16(%rbp)
	movl	$1, -20(%rbp)
	jmp	.L9
.L11:
	movl	-44(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	taxfree
	movl	-40(%rbp), %edx
	addl	$100, %edx
	imull	%edx, %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
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	taxfree
	movl	-40(%rbp), %edx
	addl	$100, %edx
	imull	%edx, %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
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jge	.L10
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -16(%rbp)
.L10:
	addl	$1, -20(%rbp)
.L9:
	movl	-20(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	.L11
	movl	-16(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L16:
	leaq	-12(%rbp), %rcx
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	je	.L20
.L14:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %ecx
	movl	-20(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	solve
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L16
.L20:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
