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>

long long max(long long a,long long b){
  if(a > b){
    return a;
  }
  return b;
}

int main(void){
  int N;
  long long counter;
  scanf("%d",&N);

  int T,A;
  long long point[2] = {0,0};
  for(int i = 0;i < N;i++){
    scanf("%d%d",&T,&A);
    if(i == 0){
      point[0] = T;
      point[1] = A;
    }
    if(point[0] <= T && point[1] <= A){
      point[0] = T;
      point[1] = A;
    }else{
      counter = max((point[0]+T-1)/T,(point[1]+A-1)/A);
      point[0] = T*counter;
      point[1] = A*counter;
    }
  }

  printf("%lld\n",point[0]+point[1]);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovge	%rdi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld\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
	leaq	.LC0(%rip), %rdi
	xorl	%r15d, %r15d
	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
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	movslq	16(%rsp), %r15
	movslq	20(%rsp), %rbx
.L6:
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%r14d, %r14d
	je	.L14
	movslq	16(%rsp), %rcx
	movslq	20(%rsp), %rsi
	cmpq	%r15, %rcx
	jge	.L15
.L7:
	leaq	-1(%rbx,%rsi), %rbx
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	leaq	-1(%rcx,%r15), %rax
	cqto
	idivq	%rcx
	cmpq	%rax, %rbx
	cmovl	%rax, %rbx
	addl	$1, %r14d
	imulq	%rbx, %rcx
	imulq	%rsi, %rbx
	movq	%rcx, %r15
	cmpl	%r14d, 12(%rsp)
	jg	.L8
.L4:
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L15:
	.cfi_restore_state
	cmpq	%rsi, %rbx
	jg	.L7
	movq	%rsi, %rbx
	movq	%rcx, %r15
	jmp	.L6
.L16:
	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:
```

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
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovge	%rdi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld\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
	leaq	.LC0(%rip), %rdi
	xorl	%r15d, %r15d
	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
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	movslq	16(%rsp), %r15
	movslq	20(%rsp), %rbx
.L6:
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%r14d, %r14d
	je	.L14
	movslq	16(%rsp), %rcx
	movslq	20(%rsp), %rsi
	cmpq	%r15, %rcx
	jge	.L15
.L7:
	leaq	-1(%rbx,%rsi), %rbx
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	leaq	-1(%rcx,%r15), %rax
	cqto
	idivq	%rcx
	cmpq	%rax, %rbx
	cmovl	%rax, %rbx
	addl	$1, %r14d
	imulq	%rbx, %rcx
	imulq	%rsi, %rbx
	movq	%rcx, %r15
	cmpl	%r14d, 12(%rsp)
	jg	.L8
.L4:
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L15:
	.cfi_restore_state
	cmpq	%rsi, %rbx
	jg	.L7
	movq	%rsi, %rbx
	movq	%rcx, %r15
	jmp	.L6
.L16:
	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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovge	%rdi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld\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
	leaq	.LC0(%rip), %rdi
	xorl	%r15d, %r15d
	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
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	movslq	16(%rsp), %r15
	movslq	20(%rsp), %rbx
.L6:
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%r14d, %r14d
	je	.L14
	movslq	16(%rsp), %rcx
	movslq	20(%rsp), %rsi
	cmpq	%r15, %rcx
	jge	.L15
.L7:
	leaq	-1(%rbx,%rsi), %rbx
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	leaq	-1(%rcx,%r15), %rax
	cqto
	idivq	%rcx
	cmpq	%rax, %rbx
	cmovl	%rax, %rbx
	addl	$1, %r14d
	imulq	%rbx, %rcx
	imulq	%rsi, %rbx
	movq	%rcx, %r15
	cmpl	%r14d, 12(%rsp)
	jg	.L8
.L4:
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L15:
	.cfi_restore_state
	cmpq	%rsi, %rbx
	jg	.L7
	movq	%rsi, %rbx
	movq	%rcx, %r15
	jmp	.L6
.L16:
	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:
```
```c
#include <stdio.h>

long long max(long long a,long long b){
  if(a > b){
    return a;
  }
  return b;
}

int main(void){
  int N;
  long long counter;
  scanf("%d",&N);

  int T,A;
  long long point[2] = {0,0};
  for(int i = 0;i < N;i++){
    scanf("%d%d",&T,&A);
    if(i == 0){
      point[0] = T;
      point[1] = A;
    }
    if(point[0] <= T && point[1] <= A){
      point[0] = T;
      point[1] = A;
    }else{
      counter = max((point[0]+T-1)/T,(point[1]+A-1)/A);
      point[0] = T*counter;
      point[1] = A*counter;
    }
  }

  printf("%lld\n",point[0]+point[1]);
  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

long long max(long long a,long long b){
  if(a > b){
    return a;
  }
  return b;
}

int main(void){
  int N;
  long long counter;
  scanf("%d",&N);

  int T,A;
  long long point[2] = {0,0};
  for(int i = 0;i < N;i++){
    scanf("%d%d",&T,&A);
    if(i == 0){
      point[0] = T;
      point[1] = A;
    }
    if(point[0] <= T && point[1] <= A){
      point[0] = T;
      point[1] = A;
    }else{
      counter = max((point[0]+T-1)/T,(point[1]+A-1)/A);
      point[0] = T*counter;
      point[1] = A*counter;
    }
  }

  printf("%lld\n",point[0]+point[1]);
  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:

5
3 1
48 17
31 199
231 23
3 2
 4
1 1
1 1
1 9
1 100
 3
3 3
1 1
3 2
 3
4 3
1 1
3 1
 3
4 3
1 2
3 1
 3
2 3
1 1
1 2
 4
1 2
1 1
1 9
1 100
 5
3 10
48 28
31 199
319 23
3 2
 3
4 3
1 1
1 2
 5
3 10
48 28
31 199
300 23
3 2

6930
 101
 10
 16
 32
 9
 202
 9570
 12
 9000

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>

long long max(long long a,long long b){
  if(a > b){
    return a;
  }
  return b;
}

int main(void){
  int N;
  long long counter;
  scanf("%d",&N);

  int T,A;
  long long point[2] = {0,0};
  for(int i = 0;i < N;i++){
    scanf("%d%d",&T,&A);
    if(i == 0){
      point[0] = T;
      point[1] = A;
    }
    if(point[0] <= T && point[1] <= A){
      point[0] = T;
      point[1] = A;
    }else{
      counter = max((point[0]+T-1)/T,(point[1]+A-1)/A);
      point[0] = T*counter;
      point[1] = A*counter;
    }
  }

  printf("%lld\n",point[0]+point[1]);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovge	%rdi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld\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
	leaq	.LC0(%rip), %rdi
	xorl	%r15d, %r15d
	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
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	movslq	16(%rsp), %r15
	movslq	20(%rsp), %rbx
.L6:
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%r14d, %r14d
	je	.L14
	movslq	16(%rsp), %rcx
	movslq	20(%rsp), %rsi
	cmpq	%r15, %rcx
	jge	.L15
.L7:
	leaq	-1(%rbx,%rsi), %rbx
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	leaq	-1(%rcx,%r15), %rax
	cqto
	idivq	%rcx
	cmpq	%rax, %rbx
	cmovl	%rax, %rbx
	addl	$1, %r14d
	imulq	%rbx, %rcx
	imulq	%rsi, %rbx
	movq	%rcx, %r15
	cmpl	%r14d, 12(%rsp)
	jg	.L8
.L4:
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L15:
	.cfi_restore_state
	cmpq	%rsi, %rbx
	jg	.L7
	movq	%rsi, %rbx
	movq	%rcx, %r15
	jmp	.L6
.L16:
	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:
```

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
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovge	%rdi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld\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
	leaq	.LC0(%rip), %rdi
	xorl	%r15d, %r15d
	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
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	movslq	16(%rsp), %r15
	movslq	20(%rsp), %rbx
.L6:
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%r14d, %r14d
	je	.L14
	movslq	16(%rsp), %rcx
	movslq	20(%rsp), %rsi
	cmpq	%r15, %rcx
	jge	.L15
.L7:
	leaq	-1(%rbx,%rsi), %rbx
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	leaq	-1(%rcx,%r15), %rax
	cqto
	idivq	%rcx
	cmpq	%rax, %rbx
	cmovl	%rax, %rbx
	addl	$1, %r14d
	imulq	%rbx, %rcx
	imulq	%rsi, %rbx
	movq	%rcx, %r15
	cmpl	%r14d, 12(%rsp)
	jg	.L8
.L4:
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$40, %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
.L15:
	.cfi_restore_state
	cmpq	%rsi, %rbx
	jg	.L7
	movq	%rsi, %rbx
	movq	%rcx, %r15
	jmp	.L6
.L16:
	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:
```