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>
#include <string.h>
#include <stdlib.h>

//1000000000

typedef struct {
    long long int A;
    long long int B;
} Array;
int main(int argc, const char * argv[]) {
    long long int N;
    scanf("%lld\n", &N);
    Array *array = malloc(sizeof(Array) * N);
    memset(array, 0, sizeof(array) * N);
    for(int i = 0; i < N; i++) {
        Array *a = array + i;
        scanf("%lld %lld", &(a->A), &(a->B));
    }
    
    long long int total = 0;
    long long int increase = 0;
    for (long long int i = N - 1; i >= 0; i--) {
        Array *a = array + i;
        long long int v = a->A + increase;
        long long int tmp = v / a->B;
        if(v % a->B > 0) {
            tmp++;
            
            tmp = tmp * a->B - v;
            total += tmp;
            
            increase += tmp;
        }
        
    }
    
    free(array);
    
    printf("%lld\n", total);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%lld %lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movl	%edi, -100(%rbp)
	movq	%rsi, -112(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-80(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	-80(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -84(%rbp)
	jmp	.L2
.L3:
	movl	-84(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	leaq	8(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L2:
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movq	-80(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L3
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	-80(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L4
.L6:
	movq	-56(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rcx
	movq	-32(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rcx
	movq	-32(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	jle	.L5
	addq	$1, -24(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	imulq	-24(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rax
	addq	%rax, -72(%rbp)
	movq	-24(%rbp), %rax
	addq	%rax, -64(%rbp)
.L5:
	subq	$1, -56(%rbp)
.L4:
	cmpq	$0, -56(%rbp)
	jns	.L6
	movq	-48(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-72(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%lld %lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rbx
	movq	%rbx, %rdi
	salq	$4, %rdi
	call	malloc@PLT
	xorl	%esi, %esi
	leaq	0(,%rbx,8), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbp
	call	memset@PLT
	testq	%rbx, %rbx
	jle	.L8
	movq	%rbp, %rbx
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rcx
	addq	$1, %r13
	addq	$16, %rbx
	cmpq	%r13, %rcx
	jg	.L3
	testq	%rcx, %rcx
	jle	.L8
	salq	$4, %rcx
	xorl	%r13d, %r13d
	addq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	-16(%rcx), %rsi
	movq	-8(%rcx), %rdi
	addq	%r13, %rsi
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	testq	%rdx, %rdx
	jle	.L4
	addq	$1, %rax
	imulq	%rdi, %rax
	subq	%rsi, %rax
	addq	%rax, %r13
.L4:
	subq	$16, %rcx
	cmpq	%rcx, %rbp
	jne	.L5
.L2:
	movq	%rbp, %rdi
	call	free@PLT
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.L8:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L2
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%lld %lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rbx
	movq	%rbx, %rdi
	salq	$4, %rdi
	call	malloc@PLT
	xorl	%esi, %esi
	leaq	0(,%rbx,8), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbp
	call	memset@PLT
	testq	%rbx, %rbx
	jle	.L8
	movq	%rbp, %rbx
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rcx
	addq	$1, %r13
	addq	$16, %rbx
	cmpq	%r13, %rcx
	jg	.L3
	testq	%rcx, %rcx
	jle	.L8
	salq	$4, %rcx
	xorl	%r13d, %r13d
	addq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	-16(%rcx), %rsi
	movq	-8(%rcx), %rdi
	addq	%r13, %rsi
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	testq	%rdx, %rdx
	jle	.L4
	addq	$1, %rax
	imulq	%rdi, %rax
	subq	%rsi, %rax
	addq	%rax, %r13
.L4:
	subq	$16, %rcx
	cmpq	%rcx, %rbp
	jne	.L5
.L2:
	movq	%rbp, %rdi
	call	free@PLT
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.L8:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L2
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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>
#include <string.h>
#include <stdlib.h>

//1000000000

typedef struct {
    long long int A;
    long long int B;
} Array;
int main(int argc, const char * argv[]) {
    long long int N;
    scanf("%lld\n", &N);
    Array *array = malloc(sizeof(Array) * N);
    memset(array, 0, sizeof(array) * N);
    for(int i = 0; i < N; i++) {
        Array *a = array + i;
        scanf("%lld %lld", &(a->A), &(a->B));
    }
    
    long long int total = 0;
    long long int increase = 0;
    for (long long int i = N - 1; i >= 0; i--) {
        Array *a = array + i;
        long long int v = a->A + increase;
        long long int tmp = v / a->B;
        if(v % a->B > 0) {
            tmp++;
            
            tmp = tmp * a->B - v;
            total += tmp;
            
            increase += tmp;
        }
        
    }
    
    free(array);
    
    printf("%lld\n", total);
    return 0;
}

7
3 1
4 1
5 12
2 6
5 3
5 8
9 7
 3
3 5
2 2
9 4
 3
3 4
2 2
9 4
 3
2 4
2 1
9 4
 7
4 1
4 2
5 12
2 4
6 4
5 8
10 3
 7
4 1
4 2
5 12
2 4
6 1
5 8
13 6
 7
5 2
4 2
5 12
2 4
6 1
1 8
17 6
 7
3 1
4 1
5 9
2 6
5 3
5 8
6 7
 3
3 5
2 2
18 4
 7
4 1
4 1
6 12
2 4
6 3
5 8
10 7

19
 7
 5
 6
 8
 20
 21
 4
 2
 18

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>
#include <string.h>
#include <stdlib.h>

//1000000000

typedef struct {
    long long int A;
    long long int B;
} Array;
int main(int argc, const char * argv[]) {
    long long int N;
    scanf("%lld\n", &N);
    Array *array = malloc(sizeof(Array) * N);
    memset(array, 0, sizeof(array) * N);
    for(int i = 0; i < N; i++) {
        Array *a = array + i;
        scanf("%lld %lld", &(a->A), &(a->B));
    }
    
    long long int total = 0;
    long long int increase = 0;
    for (long long int i = N - 1; i >= 0; i--) {
        Array *a = array + i;
        long long int v = a->A + increase;
        long long int tmp = v / a->B;
        if(v % a->B > 0) {
            tmp++;
            
            tmp = tmp * a->B - v;
            total += tmp;
            
            increase += tmp;
        }
        
    }
    
    free(array);
    
    printf("%lld\n", total);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%lld %lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movl	%edi, -100(%rbp)
	movq	%rsi, -112(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-80(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	-80(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -84(%rbp)
	jmp	.L2
.L3:
	movl	-84(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	leaq	8(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L2:
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movq	-80(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L3
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	-80(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L4
.L6:
	movq	-56(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rcx
	movq	-32(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rcx
	movq	-32(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	jle	.L5
	addq	$1, -24(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	imulq	-24(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rax
	addq	%rax, -72(%rbp)
	movq	-24(%rbp), %rax
	addq	%rax, -64(%rbp)
.L5:
	subq	$1, -56(%rbp)
.L4:
	cmpq	$0, -56(%rbp)
	jns	.L6
	movq	-48(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-72(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%lld %lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movl	%edi, -100(%rbp)
	movq	%rsi, -112(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-80(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	-80(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -84(%rbp)
	jmp	.L2
.L3:
	movl	-84(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	leaq	8(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L2:
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movq	-80(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L3
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	-80(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L4
.L6:
	movq	-56(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rcx
	movq	-32(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rcx
	movq	-32(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	jle	.L5
	addq	$1, -24(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	imulq	-24(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rax
	addq	%rax, -72(%rbp)
	movq	-24(%rbp), %rax
	addq	%rax, -64(%rbp)
.L5:
	subq	$1, -56(%rbp)
.L4:
	cmpq	$0, -56(%rbp)
	jns	.L6
	movq	-48(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-72(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
