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>

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;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jle	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld\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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L5
.L9:
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -44(%rbp)
	jne	.L6
	movl	-52(%rbp), %eax
	cltq
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %eax
	cltq
	movq	%rax, -24(%rbp)
.L6:
	movq	-32(%rbp), %rdx
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L7
	movq	-24(%rbp), %rdx
	movl	-48(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L7
	movl	-52(%rbp), %eax
	cltq
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %eax
	cltq
	movq	%rax, -24(%rbp)
	jmp	.L8
.L7:
	movq	-24(%rbp), %rdx
	movl	-48(%rbp), %eax
	cltq
	addq	%rdx, %rax
	subq	$1, %rax
	movl	-48(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rax, %rcx
	movq	-32(%rbp), %rdx
	movl	-52(%rbp), %eax
	cltq
	addq	%rdx, %rax
	subq	$1, %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rsi
	cqto
	idivq	%rsi
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	cltq
	imulq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %eax
	cltq
	imulq	-40(%rbp), %rax
	movq	%rax, -24(%rbp)
.L8:
	addl	$1, -44(%rbp)
.L5:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L9
	movq	-32(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	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
	.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:

#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;
}
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 unoptimized 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;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jle	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld\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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L5
.L9:
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -44(%rbp)
	jne	.L6
	movl	-52(%rbp), %eax
	cltq
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %eax
	cltq
	movq	%rax, -24(%rbp)
.L6:
	movq	-32(%rbp), %rdx
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L7
	movq	-24(%rbp), %rdx
	movl	-48(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L7
	movl	-52(%rbp), %eax
	cltq
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %eax
	cltq
	movq	%rax, -24(%rbp)
	jmp	.L8
.L7:
	movq	-24(%rbp), %rdx
	movl	-48(%rbp), %eax
	cltq
	addq	%rdx, %rax
	subq	$1, %rax
	movl	-48(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rax, %rcx
	movq	-32(%rbp), %rdx
	movl	-52(%rbp), %eax
	cltq
	addq	%rdx, %rax
	subq	$1, %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rsi
	cqto
	idivq	%rsi
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	cltq
	imulq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %eax
	cltq
	imulq	-40(%rbp), %rax
	movq	%rax, -24(%rbp)
.L8:
	addl	$1, -44(%rbp)
.L5:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L9
	movq	-32(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jle	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%lld\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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L5
.L9:
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -44(%rbp)
	jne	.L6
	movl	-52(%rbp), %eax
	cltq
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %eax
	cltq
	movq	%rax, -24(%rbp)
.L6:
	movq	-32(%rbp), %rdx
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L7
	movq	-24(%rbp), %rdx
	movl	-48(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L7
	movl	-52(%rbp), %eax
	cltq
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %eax
	cltq
	movq	%rax, -24(%rbp)
	jmp	.L8
.L7:
	movq	-24(%rbp), %rdx
	movl	-48(%rbp), %eax
	cltq
	addq	%rdx, %rax
	subq	$1, %rax
	movl	-48(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rax, %rcx
	movq	-32(%rbp), %rdx
	movl	-52(%rbp), %eax
	cltq
	addq	%rdx, %rax
	subq	$1, %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rsi
	cqto
	idivq	%rsi
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	cltq
	imulq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %eax
	cltq
	imulq	-40(%rbp), %rax
	movq	%rax, -24(%rbp)
.L8:
	addl	$1, -44(%rbp)
.L5:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L9
	movq	-32(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
