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 <stdlib.h>
#define int long long
#define inf (int)(1e18)

int min(int a, int b){
	return a <= b ? a : b;
}

signed main(){
	int N, s, t, i, j, k, ans = 0;
	scanf("%lld", &N);
	int *a = (int *)malloc(sizeof(int) * N);
	int *b = (int *)malloc(sizeof(int) * N);
	for(i = 0; i < N; i++){
		scanf("%lld", &a[i]);
	}
	for(i = 0; i < N; i++){
		scanf("%lld", &b[i]);
	}
	int **dis = (int **)malloc(sizeof(int *) * 51);
	for(i = 0; i <= 50; i++){
		dis[i] = (int *)malloc(sizeof(int) * 51);
	}

	for(i = 0; i <= 50; i++){
		dis[i] = (int *)malloc(sizeof(int) * 51);
		for(j = 0; j <= 50; j++){
			dis[i][j] = i == j ? 0 : inf;
		}
	}
	for(i = 0; i <= 50; i++){
		for(j = 1; j <= 50; j++){
			dis[i][i % j] = min(dis[i][i % j], (int)1 << j);
		}
	}
	for(k = 0; k <= 50; k++){
		for(i = 0; i <= 50; i++){
			for(j = 0; j <= 50; j++){
				dis[i][j] = min(dis[i][j], dis[i][k] + dis[k][j]);
			}
		}
	}
	for(i = 0; i < N; i++){
		if(dis[a[i]][b[i]] == inf){
			printf("-1\n");
			return 0;
		}
	}

	for(s = 50; s >= 0; s--){
		for(t = 0; t <= s; t++){

			for(i = 0; i <= 50; i++){
				for(j = 0; j <= 50; j++){
					dis[i][j] = i == j ? 1 : 0;
				}
			}
			for(i = 0; i <= 50; i++){
				for(j = 1; j <= 50; j++){
					if((ans & ((int)1 << j)) != 0 || j <= t){
						dis[i][i % j] = 1;
					}
				}
			}
			for(k = 0; k <= 50; k++){
				for(i = 0; i <= 50; i++){
					for(j = 0; j <= 50; j++){
						dis[i][j] = dis[i][j] | (dis[i][k] & dis[k][j]);
					}
				}
			}
			int f = 1;
			for(i = 0; i < N; i++){
				if(dis[a[i]][b[i]] == 0){
					f = 0;
					break;
				}
			}
			if(f == 1){
				ans |= (int)1 << t;
				break;
			}

		}
	}

	printf("%lld\n", ans - 1);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.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), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"-1"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$0, -64(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-112(%rbp), %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L4
.L5:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -88(%rbp)
.L4:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L5
	movq	$0, -88(%rbp)
	jmp	.L6
.L7:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -88(%rbp)
.L6:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L7
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L8
.L9:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rbx
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, (%rbx)
	addq	$1, -88(%rbp)
.L8:
	cmpq	$50, -88(%rbp)
	jle	.L9
	movq	$0, -88(%rbp)
	jmp	.L10
.L15:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rbx
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -80(%rbp)
	jmp	.L11
.L14:
	movq	-88(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jne	.L12
	movl	$0, %eax
	jmp	.L13
.L12:
	movabsq	$1000000000000000000, %rax
.L13:
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rdx), %rcx
	movq	-80(%rbp), %rdx
	salq	$3, %rdx
	addq	%rcx, %rdx
	movq	%rax, (%rdx)
	addq	$1, -80(%rbp)
.L11:
	cmpq	$50, -80(%rbp)
	jle	.L14
	addq	$1, -88(%rbp)
.L10:
	cmpq	$50, -88(%rbp)
	jle	.L15
	movq	$0, -88(%rbp)
	jmp	.L16
.L19:
	movq	$1, -80(%rbp)
	jmp	.L17
.L18:
	movq	-80(%rbp), %rax
	movl	$1, %edx
	movq	%rdx, %rsi
	movl	%eax, %ecx
	salq	%cl, %rsi
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %rax
	cqto
	idivq	-80(%rbp)
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movq	-88(%rbp), %rax
	cqto
	idivq	-80(%rbp)
	movq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rdi,%rax), %rbx
	movq	%rcx, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L17:
	cmpq	$50, -80(%rbp)
	jle	.L18
	addq	$1, -88(%rbp)
.L16:
	cmpq	$50, -88(%rbp)
	jle	.L19
	movq	$0, -72(%rbp)
	jmp	.L20
.L25:
	movq	$0, -88(%rbp)
	jmp	.L21
.L24:
	movq	$0, -80(%rbp)
	jmp	.L22
.L23:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-72(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-32(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L22:
	cmpq	$50, -80(%rbp)
	jle	.L23
	addq	$1, -88(%rbp)
.L21:
	cmpq	$50, -88(%rbp)
	jle	.L24
	addq	$1, -72(%rbp)
.L20:
	cmpq	$50, -72(%rbp)
	jle	.L25
	movq	$0, -88(%rbp)
	jmp	.L26
.L29:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movabsq	$1000000000000000000, %rdx
	cmpq	%rdx, %rax
	jne	.L27
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L56
.L27:
	addq	$1, -88(%rbp)
.L26:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L29
	movq	$50, -104(%rbp)
	jmp	.L30
.L55:
	movq	$0, -96(%rbp)
	jmp	.L31
.L54:
	movq	$0, -88(%rbp)
	jmp	.L32
.L35:
	movq	$0, -80(%rbp)
	jmp	.L33
.L34:
	movq	-88(%rbp), %rax
	cmpq	-80(%rbp), %rax
	sete	%cl
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rax, %rdx
	movzbl	%cl, %eax
	movq	%rax, (%rdx)
	addq	$1, -80(%rbp)
.L33:
	cmpq	$50, -80(%rbp)
	jle	.L34
	addq	$1, -88(%rbp)
.L32:
	cmpq	$50, -88(%rbp)
	jle	.L35
	movq	$0, -88(%rbp)
	jmp	.L36
.L41:
	movq	$1, -80(%rbp)
	jmp	.L37
.L40:
	movq	-80(%rbp), %rax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L38
	movq	-80(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jg	.L39
.L38:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %rax
	cqto
	idivq	-80(%rbp)
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	$1, (%rax)
.L39:
	addq	$1, -80(%rbp)
.L37:
	cmpq	$50, -80(%rbp)
	jle	.L40
	addq	$1, -88(%rbp)
.L36:
	cmpq	$50, -88(%rbp)
	jle	.L41
	movq	$0, -72(%rbp)
	jmp	.L42
.L47:
	movq	$0, -88(%rbp)
	jmp	.L43
.L46:
	movq	$0, -80(%rbp)
	jmp	.L44
.L45:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-72(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-32(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rcx, %rsi
	andq	%rax, %rsi
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	orq	%rsi, %rdx
	movq	%rdx, (%rax)
	addq	$1, -80(%rbp)
.L44:
	cmpq	$50, -80(%rbp)
	jle	.L45
	addq	$1, -88(%rbp)
.L43:
	cmpq	$50, -88(%rbp)
	jle	.L46
	addq	$1, -72(%rbp)
.L42:
	cmpq	$50, -72(%rbp)
	jle	.L47
	movq	$1, -56(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L48
.L51:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L49
	movq	$0, -56(%rbp)
	jmp	.L50
.L49:
	addq	$1, -88(%rbp)
.L48:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L51
.L50:
	cmpq	$1, -56(%rbp)
	jne	.L52
	movq	-96(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	orq	%rax, -64(%rbp)
	jmp	.L53
.L52:
	addq	$1, -96(%rbp)
.L31:
	movq	-96(%rbp), %rax
	cmpq	-104(%rbp), %rax
	jle	.L54
.L53:
	subq	$1, -104(%rbp)
.L30:
	cmpq	$0, -104(%rbp)
	jns	.L55
	movq	-64(%rbp), %rax
	subq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L56:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	min
	.type	min, @function
min:
.LFB39:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"-1"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %r13
	leaq	0(,%r13,8), %rbp
	movq	%rbp, %rdi
	call	malloc@PLT
	movq	%rbp, %rdi
	movq	%rax, %r15
	call	malloc@PLT
	movq	%rax, %rbx
	testq	%r13, %r13
	jle	.L4
	movq	%r15, %r12
	xorl	%ebp, %ebp
.L5:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %r13
	addq	$8, %r12
	cmpq	%rbp, %r13
	jg	.L5
	testq	%r13, %r13
	jle	.L4
	movq	%rbx, %r12
	xorl	%ebp, %ebp
.L6:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %r13
	addq	$8, %r12
	cmpq	%rbp, %r13
	jg	.L6
.L4:
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, %r12
	leaq	408(%rax), %rbp
	movq	%rax, %r14
.L7:
	movl	$408, %edi
	addq	$8, %r14
	call	malloc@PLT
	movq	%rax, -8(%r14)
	cmpq	%rbp, %r14
	jne	.L7
	xorl	%r14d, %r14d
.L12:
	movl	$408, %edi
	call	malloc@PLT
	movabsq	$1000000000000000000, %rcx
	movq	%rax, (%r12,%r14,8)
	movq	%rax, %rdx
	xorl	%eax, %eax
.L11:
	cmpq	%r14, %rax
	je	.L8
	movq	%rcx, (%rdx,%rax,8)
	addq	$1, %rax
	cmpq	$51, %rax
	jne	.L11
	addq	$1, %r14
	cmpq	$51, %r14
	jne	.L12
.L87:
	xorl	%esi, %esi
	movl	$1, %edi
.L13:
	movq	(%r12,%rsi,8), %r8
	movl	$1, %ecx
.L14:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movq	%rdi, %rax
	salq	%cl, %rax
	leaq	(%r8,%rdx,8), %rdx
	movq	(%rdx), %r9
	cmpq	%r9, %rax
	cmovg	%r9, %rax
	addq	$1, %rcx
	movq	%rax, (%rdx)
	cmpq	$51, %rcx
	jne	.L14
	addq	$1, %rsi
	cmpq	$51, %rsi
	jne	.L13
	xorl	%edi, %edi
.L15:
	movq	(%r12,%rdi), %r9
	movq	%r12, %r8
.L20:
	movq	(%r8), %rsi
	xorl	%edx, %edx
	leaq	(%rsi,%rdi), %r10
.L16:
	movq	(%rsi,%rdx,8), %rcx
	movq	(%r9,%rdx,8), %rax
	addq	(%r10), %rax
	cmpq	%rcx, %rax
	cmovg	%rcx, %rax
	movq	%rax, (%rsi,%rdx,8)
	addq	$1, %rdx
	cmpq	$51, %rdx
	jne	.L16
	addq	$8, %r8
	cmpq	%r8, %rbp
	jne	.L20
	addq	$8, %rdi
	cmpq	$408, %rdi
	jne	.L15
	movabsq	$1000000000000000000, %rdx
	xorl	%eax, %eax
	testq	%r13, %r13
	jg	.L18
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %rax
	cmpq	%r13, %rax
	je	.L84
.L18:
	movq	(%r15,%rax,8), %rcx
	movq	(%rbx,%rax,8), %rsi
	movq	(%r12,%rcx,8), %rcx
	cmpq	%rdx, (%rcx,%rsi,8)
	jne	.L21
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L22:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L86
	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
.L8:
	.cfi_restore_state
	movq	$0, (%rdx,%rax,8)
	addq	$1, %rax
	cmpq	$51, %rax
	jne	.L11
	addq	$1, %r14
	cmpq	$51, %r14
	jne	.L12
	jmp	.L87
.L84:
	movq	$50, (%rsp)
	xorl	%r10d, %r10d
	movq	%r13, %r14
.L41:
	xorl	%ecx, %ecx
.L43:
	xorl	%esi, %esi
.L40:
	movq	(%r12,%rsi,8), %rdi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%edx, %edx
	cmpq	%rax, %rsi
	sete	%dl
	movq	%rdx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	$51, %rax
	jne	.L23
	addq	$1, %rsi
	cmpq	$51, %rsi
	jne	.L40
	movq	%r12, %r8
	xorl	%edi, %edi
.L24:
	movl	$1, %esi
	.p2align 4,,10
	.p2align 3
.L27:
	cmpq	%rsi, %rcx
	jge	.L52
	btq	%rsi, %r10
	jnc	.L25
.L52:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	movq	(%r8), %rax
	movq	$1, (%rax,%rdx,8)
.L25:
	addq	$1, %rsi
	cmpq	$51, %rsi
	jne	.L27
	addq	$1, %rdi
	addq	$8, %r8
	cmpq	$51, %rdi
	jne	.L24
	xorl	%r11d, %r11d
.L28:
	leaq	8(%r11), %rax
	movq	(%r12,%r11), %rdx
	movq	%r12, %r9
	movq	%rax, 8(%rsp)
	leaq	8(%rdx), %r13
	.p2align 4,,10
	.p2align 3
.L38:
	movq	(%r9), %rsi
	leaq	(%rsi,%r11), %rdi
	cmpq	%r13, %rsi
	je	.L53
	leaq	408(%rsi), %rax
	cmpq	%rax, %rdi
	jb	.L53
	movq	(%rdi), %xmm1
	xorl	%eax, %eax
	punpcklqdq	%xmm1, %xmm1
	.p2align 4,,10
	.p2align 3
.L31:
	movdqu	(%rdx,%rax), %xmm0
	movdqu	(%rsi,%rax), %xmm2
	pand	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movups	%xmm0, (%rsi,%rax)
	addq	$16, %rax
	cmpq	$400, %rax
	jne	.L31
	movq	400(%rdx), %rax
	andq	(%rdi), %rax
	orq	%rax, 400(%rsi)
.L29:
	addq	$8, %r9
	cmpq	%r9, %rbp
	jne	.L38
	cmpq	$408, 8(%rsp)
	je	.L88
	movq	8(%rsp), %r11
	jmp	.L28
.L53:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L30:
	movq	(%rdx,%rax,8), %r8
	andq	(%rdi), %r8
	orq	%r8, (%rsi,%rax,8)
	addq	$1, %rax
	cmpq	$51, %rax
	jne	.L30
	jmp	.L29
.L88:
	testq	%r14, %r14
	jle	.L37
	xorl	%eax, %eax
	jmp	.L36
.L89:
	addq	$1, %rax
	cmpq	%r14, %rax
	je	.L37
.L36:
	movq	(%r15,%rax,8), %rdx
	movq	(%rbx,%rax,8), %rsi
	movq	(%r12,%rdx,8), %rdx
	cmpq	$0, (%rdx,%rsi,8)
	jne	.L89
	addq	$1, %rcx
	cmpq	(%rsp), %rcx
	jle	.L43
	subq	$1, (%rsp)
	movq	(%rsp), %rax
	cmpq	$-1, %rax
	jne	.L41
.L90:
	leaq	-1(%r10), %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
.L37:
	movl	$1, %eax
	subq	$1, (%rsp)
	salq	%cl, %rax
	orq	%rax, %r10
	movq	(%rsp), %rax
	cmpq	$-1, %rax
	je	.L90
	xorl	%ecx, %ecx
	jmp	.L43
.L86:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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	min
	.type	min, @function
min:
.LFB39:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"-1"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %r13
	leaq	0(,%r13,8), %rbp
	movq	%rbp, %rdi
	call	malloc@PLT
	movq	%rbp, %rdi
	movq	%rax, %r15
	call	malloc@PLT
	movq	%rax, %rbx
	testq	%r13, %r13
	jle	.L4
	movq	%r15, %r12
	xorl	%ebp, %ebp
.L5:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %r13
	addq	$8, %r12
	cmpq	%rbp, %r13
	jg	.L5
	testq	%r13, %r13
	jle	.L4
	movq	%rbx, %r12
	xorl	%ebp, %ebp
.L6:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %r13
	addq	$8, %r12
	cmpq	%rbp, %r13
	jg	.L6
.L4:
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, %r12
	leaq	408(%rax), %rbp
	movq	%rax, %r14
.L7:
	movl	$408, %edi
	addq	$8, %r14
	call	malloc@PLT
	movq	%rax, -8(%r14)
	cmpq	%rbp, %r14
	jne	.L7
	xorl	%r14d, %r14d
.L12:
	movl	$408, %edi
	call	malloc@PLT
	movabsq	$1000000000000000000, %rcx
	movq	%rax, (%r12,%r14,8)
	movq	%rax, %rdx
	xorl	%eax, %eax
.L11:
	cmpq	%r14, %rax
	je	.L8
	movq	%rcx, (%rdx,%rax,8)
	addq	$1, %rax
	cmpq	$51, %rax
	jne	.L11
	addq	$1, %r14
	cmpq	$51, %r14
	jne	.L12
.L87:
	xorl	%esi, %esi
	movl	$1, %edi
.L13:
	movq	(%r12,%rsi,8), %r8
	movl	$1, %ecx
.L14:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movq	%rdi, %rax
	salq	%cl, %rax
	leaq	(%r8,%rdx,8), %rdx
	movq	(%rdx), %r9
	cmpq	%r9, %rax
	cmovg	%r9, %rax
	addq	$1, %rcx
	movq	%rax, (%rdx)
	cmpq	$51, %rcx
	jne	.L14
	addq	$1, %rsi
	cmpq	$51, %rsi
	jne	.L13
	xorl	%edi, %edi
.L15:
	movq	(%r12,%rdi), %r9
	movq	%r12, %r8
.L20:
	movq	(%r8), %rsi
	xorl	%edx, %edx
	leaq	(%rsi,%rdi), %r10
.L16:
	movq	(%rsi,%rdx,8), %rcx
	movq	(%r9,%rdx,8), %rax
	addq	(%r10), %rax
	cmpq	%rcx, %rax
	cmovg	%rcx, %rax
	movq	%rax, (%rsi,%rdx,8)
	addq	$1, %rdx
	cmpq	$51, %rdx
	jne	.L16
	addq	$8, %r8
	cmpq	%r8, %rbp
	jne	.L20
	addq	$8, %rdi
	cmpq	$408, %rdi
	jne	.L15
	movabsq	$1000000000000000000, %rdx
	xorl	%eax, %eax
	testq	%r13, %r13
	jg	.L18
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %rax
	cmpq	%r13, %rax
	je	.L84
.L18:
	movq	(%r15,%rax,8), %rcx
	movq	(%rbx,%rax,8), %rsi
	movq	(%r12,%rcx,8), %rcx
	cmpq	%rdx, (%rcx,%rsi,8)
	jne	.L21
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L22:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L86
	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
.L8:
	.cfi_restore_state
	movq	$0, (%rdx,%rax,8)
	addq	$1, %rax
	cmpq	$51, %rax
	jne	.L11
	addq	$1, %r14
	cmpq	$51, %r14
	jne	.L12
	jmp	.L87
.L84:
	movq	$50, (%rsp)
	xorl	%r10d, %r10d
	movq	%r13, %r14
.L41:
	xorl	%ecx, %ecx
.L43:
	xorl	%esi, %esi
.L40:
	movq	(%r12,%rsi,8), %rdi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%edx, %edx
	cmpq	%rax, %rsi
	sete	%dl
	movq	%rdx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	$51, %rax
	jne	.L23
	addq	$1, %rsi
	cmpq	$51, %rsi
	jne	.L40
	movq	%r12, %r8
	xorl	%edi, %edi
.L24:
	movl	$1, %esi
	.p2align 4,,10
	.p2align 3
.L27:
	cmpq	%rsi, %rcx
	jge	.L52
	btq	%rsi, %r10
	jnc	.L25
.L52:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	movq	(%r8), %rax
	movq	$1, (%rax,%rdx,8)
.L25:
	addq	$1, %rsi
	cmpq	$51, %rsi
	jne	.L27
	addq	$1, %rdi
	addq	$8, %r8
	cmpq	$51, %rdi
	jne	.L24
	xorl	%r11d, %r11d
.L28:
	leaq	8(%r11), %rax
	movq	(%r12,%r11), %rdx
	movq	%r12, %r9
	movq	%rax, 8(%rsp)
	leaq	8(%rdx), %r13
	.p2align 4,,10
	.p2align 3
.L38:
	movq	(%r9), %rsi
	leaq	(%rsi,%r11), %rdi
	cmpq	%r13, %rsi
	je	.L53
	leaq	408(%rsi), %rax
	cmpq	%rax, %rdi
	jb	.L53
	movq	(%rdi), %xmm1
	xorl	%eax, %eax
	punpcklqdq	%xmm1, %xmm1
	.p2align 4,,10
	.p2align 3
.L31:
	movdqu	(%rdx,%rax), %xmm0
	movdqu	(%rsi,%rax), %xmm2
	pand	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movups	%xmm0, (%rsi,%rax)
	addq	$16, %rax
	cmpq	$400, %rax
	jne	.L31
	movq	400(%rdx), %rax
	andq	(%rdi), %rax
	orq	%rax, 400(%rsi)
.L29:
	addq	$8, %r9
	cmpq	%r9, %rbp
	jne	.L38
	cmpq	$408, 8(%rsp)
	je	.L88
	movq	8(%rsp), %r11
	jmp	.L28
.L53:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L30:
	movq	(%rdx,%rax,8), %r8
	andq	(%rdi), %r8
	orq	%r8, (%rsi,%rax,8)
	addq	$1, %rax
	cmpq	$51, %rax
	jne	.L30
	jmp	.L29
.L88:
	testq	%r14, %r14
	jle	.L37
	xorl	%eax, %eax
	jmp	.L36
.L89:
	addq	$1, %rax
	cmpq	%r14, %rax
	je	.L37
.L36:
	movq	(%r15,%rax,8), %rdx
	movq	(%rbx,%rax,8), %rsi
	movq	(%r12,%rdx,8), %rdx
	cmpq	$0, (%rdx,%rsi,8)
	jne	.L89
	addq	$1, %rcx
	cmpq	(%rsp), %rcx
	jle	.L43
	subq	$1, (%rsp)
	movq	(%rsp), %rax
	cmpq	$-1, %rax
	jne	.L41
.L90:
	leaq	-1(%r10), %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
.L37:
	movl	$1, %eax
	subq	$1, (%rsp)
	salq	%cl, %rax
	orq	%rax, %r10
	movq	(%rsp), %rax
	cmpq	$-1, %rax
	je	.L90
	xorl	%ecx, %ecx
	jmp	.L43
.L86:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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 <stdlib.h>
#define int long long
#define inf (int)(1e18)

int min(int a, int b){
	return a <= b ? a : b;
}

signed main(){
	int N, s, t, i, j, k, ans = 0;
	scanf("%lld", &N);
	int *a = (int *)malloc(sizeof(int) * N);
	int *b = (int *)malloc(sizeof(int) * N);
	for(i = 0; i < N; i++){
		scanf("%lld", &a[i]);
	}
	for(i = 0; i < N; i++){
		scanf("%lld", &b[i]);
	}
	int **dis = (int **)malloc(sizeof(int *) * 51);
	for(i = 0; i <= 50; i++){
		dis[i] = (int *)malloc(sizeof(int) * 51);
	}

	for(i = 0; i <= 50; i++){
		dis[i] = (int *)malloc(sizeof(int) * 51);
		for(j = 0; j <= 50; j++){
			dis[i][j] = i == j ? 0 : inf;
		}
	}
	for(i = 0; i <= 50; i++){
		for(j = 1; j <= 50; j++){
			dis[i][i % j] = min(dis[i][i % j], (int)1 << j);
		}
	}
	for(k = 0; k <= 50; k++){
		for(i = 0; i <= 50; i++){
			for(j = 0; j <= 50; j++){
				dis[i][j] = min(dis[i][j], dis[i][k] + dis[k][j]);
			}
		}
	}
	for(i = 0; i < N; i++){
		if(dis[a[i]][b[i]] == inf){
			printf("-1\n");
			return 0;
		}
	}

	for(s = 50; s >= 0; s--){
		for(t = 0; t <= s; t++){

			for(i = 0; i <= 50; i++){
				for(j = 0; j <= 50; j++){
					dis[i][j] = i == j ? 1 : 0;
				}
			}
			for(i = 0; i <= 50; i++){
				for(j = 1; j <= 50; j++){
					if((ans & ((int)1 << j)) != 0 || j <= t){
						dis[i][i % j] = 1;
					}
				}
			}
			for(k = 0; k <= 50; k++){
				for(i = 0; i <= 50; i++){
					for(j = 0; j <= 50; j++){
						dis[i][j] = dis[i][j] | (dis[i][k] & dis[k][j]);
					}
				}
			}
			int f = 1;
			for(i = 0; i < N; i++){
				if(dis[a[i]][b[i]] == 0){
					f = 0;
					break;
				}
			}
			if(f == 1){
				ans |= (int)1 << t;
				break;
			}

		}
	}

	printf("%lld\n", ans - 1);
	return 0;
}
1
28
13
 3
19 15 5
0 0 0
 3
23 10 14
0 3 4
 2
8 13
5 10
 1
28
11
 3
23 10 14
0 4 4
 1
28
3
 3
23 10 26
0 4 4
 2
8 13
0 2
 1
28
5

32768
 2
 162
 -1
 131072
 96
 32
 2114
 144
 33024

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 <stdlib.h>
#define int long long
#define inf (int)(1e18)

int min(int a, int b){
	return a <= b ? a : b;
}

signed main(){
	int N, s, t, i, j, k, ans = 0;
	scanf("%lld", &N);
	int *a = (int *)malloc(sizeof(int) * N);
	int *b = (int *)malloc(sizeof(int) * N);
	for(i = 0; i < N; i++){
		scanf("%lld", &a[i]);
	}
	for(i = 0; i < N; i++){
		scanf("%lld", &b[i]);
	}
	int **dis = (int **)malloc(sizeof(int *) * 51);
	for(i = 0; i <= 50; i++){
		dis[i] = (int *)malloc(sizeof(int) * 51);
	}

	for(i = 0; i <= 50; i++){
		dis[i] = (int *)malloc(sizeof(int) * 51);
		for(j = 0; j <= 50; j++){
			dis[i][j] = i == j ? 0 : inf;
		}
	}
	for(i = 0; i <= 50; i++){
		for(j = 1; j <= 50; j++){
			dis[i][i % j] = min(dis[i][i % j], (int)1 << j);
		}
	}
	for(k = 0; k <= 50; k++){
		for(i = 0; i <= 50; i++){
			for(j = 0; j <= 50; j++){
				dis[i][j] = min(dis[i][j], dis[i][k] + dis[k][j]);
			}
		}
	}
	for(i = 0; i < N; i++){
		if(dis[a[i]][b[i]] == inf){
			printf("-1\n");
			return 0;
		}
	}

	for(s = 50; s >= 0; s--){
		for(t = 0; t <= s; t++){

			for(i = 0; i <= 50; i++){
				for(j = 0; j <= 50; j++){
					dis[i][j] = i == j ? 1 : 0;
				}
			}
			for(i = 0; i <= 50; i++){
				for(j = 1; j <= 50; j++){
					if((ans & ((int)1 << j)) != 0 || j <= t){
						dis[i][i % j] = 1;
					}
				}
			}
			for(k = 0; k <= 50; k++){
				for(i = 0; i <= 50; i++){
					for(j = 0; j <= 50; j++){
						dis[i][j] = dis[i][j] | (dis[i][k] & dis[k][j]);
					}
				}
			}
			int f = 1;
			for(i = 0; i < N; i++){
				if(dis[a[i]][b[i]] == 0){
					f = 0;
					break;
				}
			}
			if(f == 1){
				ans |= (int)1 << t;
				break;
			}

		}
	}

	printf("%lld\n", ans - 1);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.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), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"-1"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$0, -64(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-112(%rbp), %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L4
.L5:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -88(%rbp)
.L4:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L5
	movq	$0, -88(%rbp)
	jmp	.L6
.L7:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -88(%rbp)
.L6:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L7
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L8
.L9:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rbx
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, (%rbx)
	addq	$1, -88(%rbp)
.L8:
	cmpq	$50, -88(%rbp)
	jle	.L9
	movq	$0, -88(%rbp)
	jmp	.L10
.L15:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rbx
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -80(%rbp)
	jmp	.L11
.L14:
	movq	-88(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jne	.L12
	movl	$0, %eax
	jmp	.L13
.L12:
	movabsq	$1000000000000000000, %rax
.L13:
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rdx), %rcx
	movq	-80(%rbp), %rdx
	salq	$3, %rdx
	addq	%rcx, %rdx
	movq	%rax, (%rdx)
	addq	$1, -80(%rbp)
.L11:
	cmpq	$50, -80(%rbp)
	jle	.L14
	addq	$1, -88(%rbp)
.L10:
	cmpq	$50, -88(%rbp)
	jle	.L15
	movq	$0, -88(%rbp)
	jmp	.L16
.L19:
	movq	$1, -80(%rbp)
	jmp	.L17
.L18:
	movq	-80(%rbp), %rax
	movl	$1, %edx
	movq	%rdx, %rsi
	movl	%eax, %ecx
	salq	%cl, %rsi
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %rax
	cqto
	idivq	-80(%rbp)
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movq	-88(%rbp), %rax
	cqto
	idivq	-80(%rbp)
	movq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rdi,%rax), %rbx
	movq	%rcx, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L17:
	cmpq	$50, -80(%rbp)
	jle	.L18
	addq	$1, -88(%rbp)
.L16:
	cmpq	$50, -88(%rbp)
	jle	.L19
	movq	$0, -72(%rbp)
	jmp	.L20
.L25:
	movq	$0, -88(%rbp)
	jmp	.L21
.L24:
	movq	$0, -80(%rbp)
	jmp	.L22
.L23:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-72(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-32(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L22:
	cmpq	$50, -80(%rbp)
	jle	.L23
	addq	$1, -88(%rbp)
.L21:
	cmpq	$50, -88(%rbp)
	jle	.L24
	addq	$1, -72(%rbp)
.L20:
	cmpq	$50, -72(%rbp)
	jle	.L25
	movq	$0, -88(%rbp)
	jmp	.L26
.L29:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movabsq	$1000000000000000000, %rdx
	cmpq	%rdx, %rax
	jne	.L27
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L56
.L27:
	addq	$1, -88(%rbp)
.L26:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L29
	movq	$50, -104(%rbp)
	jmp	.L30
.L55:
	movq	$0, -96(%rbp)
	jmp	.L31
.L54:
	movq	$0, -88(%rbp)
	jmp	.L32
.L35:
	movq	$0, -80(%rbp)
	jmp	.L33
.L34:
	movq	-88(%rbp), %rax
	cmpq	-80(%rbp), %rax
	sete	%cl
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rax, %rdx
	movzbl	%cl, %eax
	movq	%rax, (%rdx)
	addq	$1, -80(%rbp)
.L33:
	cmpq	$50, -80(%rbp)
	jle	.L34
	addq	$1, -88(%rbp)
.L32:
	cmpq	$50, -88(%rbp)
	jle	.L35
	movq	$0, -88(%rbp)
	jmp	.L36
.L41:
	movq	$1, -80(%rbp)
	jmp	.L37
.L40:
	movq	-80(%rbp), %rax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L38
	movq	-80(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jg	.L39
.L38:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %rax
	cqto
	idivq	-80(%rbp)
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	$1, (%rax)
.L39:
	addq	$1, -80(%rbp)
.L37:
	cmpq	$50, -80(%rbp)
	jle	.L40
	addq	$1, -88(%rbp)
.L36:
	cmpq	$50, -88(%rbp)
	jle	.L41
	movq	$0, -72(%rbp)
	jmp	.L42
.L47:
	movq	$0, -88(%rbp)
	jmp	.L43
.L46:
	movq	$0, -80(%rbp)
	jmp	.L44
.L45:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-72(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-32(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rcx, %rsi
	andq	%rax, %rsi
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	orq	%rsi, %rdx
	movq	%rdx, (%rax)
	addq	$1, -80(%rbp)
.L44:
	cmpq	$50, -80(%rbp)
	jle	.L45
	addq	$1, -88(%rbp)
.L43:
	cmpq	$50, -88(%rbp)
	jle	.L46
	addq	$1, -72(%rbp)
.L42:
	cmpq	$50, -72(%rbp)
	jle	.L47
	movq	$1, -56(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L48
.L51:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L49
	movq	$0, -56(%rbp)
	jmp	.L50
.L49:
	addq	$1, -88(%rbp)
.L48:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L51
.L50:
	cmpq	$1, -56(%rbp)
	jne	.L52
	movq	-96(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	orq	%rax, -64(%rbp)
	jmp	.L53
.L52:
	addq	$1, -96(%rbp)
.L31:
	movq	-96(%rbp), %rax
	cmpq	-104(%rbp), %rax
	jle	.L54
.L53:
	subq	$1, -104(%rbp)
.L30:
	cmpq	$0, -104(%rbp)
	jns	.L55
	movq	-64(%rbp), %rax
	subq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L56:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	min
	.type	min, @function
min:
.LFB6:
	.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), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"-1"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$0, -64(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-112(%rbp), %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L4
.L5:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -88(%rbp)
.L4:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L5
	movq	$0, -88(%rbp)
	jmp	.L6
.L7:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -88(%rbp)
.L6:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L7
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L8
.L9:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rbx
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, (%rbx)
	addq	$1, -88(%rbp)
.L8:
	cmpq	$50, -88(%rbp)
	jle	.L9
	movq	$0, -88(%rbp)
	jmp	.L10
.L15:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rbx
	movl	$408, %edi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -80(%rbp)
	jmp	.L11
.L14:
	movq	-88(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jne	.L12
	movl	$0, %eax
	jmp	.L13
.L12:
	movabsq	$1000000000000000000, %rax
.L13:
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rdx), %rcx
	movq	-80(%rbp), %rdx
	salq	$3, %rdx
	addq	%rcx, %rdx
	movq	%rax, (%rdx)
	addq	$1, -80(%rbp)
.L11:
	cmpq	$50, -80(%rbp)
	jle	.L14
	addq	$1, -88(%rbp)
.L10:
	cmpq	$50, -88(%rbp)
	jle	.L15
	movq	$0, -88(%rbp)
	jmp	.L16
.L19:
	movq	$1, -80(%rbp)
	jmp	.L17
.L18:
	movq	-80(%rbp), %rax
	movl	$1, %edx
	movq	%rdx, %rsi
	movl	%eax, %ecx
	salq	%cl, %rsi
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %rax
	cqto
	idivq	-80(%rbp)
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movq	-88(%rbp), %rax
	cqto
	idivq	-80(%rbp)
	movq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rdi,%rax), %rbx
	movq	%rcx, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L17:
	cmpq	$50, -80(%rbp)
	jle	.L18
	addq	$1, -88(%rbp)
.L16:
	cmpq	$50, -88(%rbp)
	jle	.L19
	movq	$0, -72(%rbp)
	jmp	.L20
.L25:
	movq	$0, -88(%rbp)
	jmp	.L21
.L24:
	movq	$0, -80(%rbp)
	jmp	.L22
.L23:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-72(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-32(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L22:
	cmpq	$50, -80(%rbp)
	jle	.L23
	addq	$1, -88(%rbp)
.L21:
	cmpq	$50, -88(%rbp)
	jle	.L24
	addq	$1, -72(%rbp)
.L20:
	cmpq	$50, -72(%rbp)
	jle	.L25
	movq	$0, -88(%rbp)
	jmp	.L26
.L29:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movabsq	$1000000000000000000, %rdx
	cmpq	%rdx, %rax
	jne	.L27
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L56
.L27:
	addq	$1, -88(%rbp)
.L26:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L29
	movq	$50, -104(%rbp)
	jmp	.L30
.L55:
	movq	$0, -96(%rbp)
	jmp	.L31
.L54:
	movq	$0, -88(%rbp)
	jmp	.L32
.L35:
	movq	$0, -80(%rbp)
	jmp	.L33
.L34:
	movq	-88(%rbp), %rax
	cmpq	-80(%rbp), %rax
	sete	%cl
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rax, %rdx
	movzbl	%cl, %eax
	movq	%rax, (%rdx)
	addq	$1, -80(%rbp)
.L33:
	cmpq	$50, -80(%rbp)
	jle	.L34
	addq	$1, -88(%rbp)
.L32:
	cmpq	$50, -88(%rbp)
	jle	.L35
	movq	$0, -88(%rbp)
	jmp	.L36
.L41:
	movq	$1, -80(%rbp)
	jmp	.L37
.L40:
	movq	-80(%rbp), %rax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L38
	movq	-80(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jg	.L39
.L38:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %rax
	cqto
	idivq	-80(%rbp)
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	$1, (%rax)
.L39:
	addq	$1, -80(%rbp)
.L37:
	cmpq	$50, -80(%rbp)
	jle	.L40
	addq	$1, -88(%rbp)
.L36:
	cmpq	$50, -88(%rbp)
	jle	.L41
	movq	$0, -72(%rbp)
	jmp	.L42
.L47:
	movq	$0, -88(%rbp)
	jmp	.L43
.L46:
	movq	$0, -80(%rbp)
	jmp	.L44
.L45:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-72(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-32(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rcx, %rsi
	andq	%rax, %rsi
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	orq	%rsi, %rdx
	movq	%rdx, (%rax)
	addq	$1, -80(%rbp)
.L44:
	cmpq	$50, -80(%rbp)
	jle	.L45
	addq	$1, -88(%rbp)
.L43:
	cmpq	$50, -88(%rbp)
	jle	.L46
	addq	$1, -72(%rbp)
.L42:
	cmpq	$50, -72(%rbp)
	jle	.L47
	movq	$1, -56(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L48
.L51:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L49
	movq	$0, -56(%rbp)
	jmp	.L50
.L49:
	addq	$1, -88(%rbp)
.L48:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L51
.L50:
	cmpq	$1, -56(%rbp)
	jne	.L52
	movq	-96(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	orq	%rax, -64(%rbp)
	jmp	.L53
.L52:
	addq	$1, -96(%rbp)
.L31:
	movq	-96(%rbp), %rax
	cmpq	-104(%rbp), %rax
	jle	.L54
.L53:
	subq	$1, -104(%rbp)
.L30:
	cmpq	$0, -104(%rbp)
	jns	.L55
	movq	-64(%rbp), %rax
	subq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L56:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
