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

#define max(a,b) (((a)>(b))?(a):(b))
#define min(a,b) (((a)>(b))?(b):(a))
#define abs(a)   (((a)<(0))?(-(a)):(a))

typedef long long ll;
typedef unsigned long long ull;

int main(void)
{
	int n, sum = 0, sum2 = 0;
	int* w;
	scanf("%d", &n);
	w = malloc(n * sizeof(int));
	for (size_t i = 0; i < n; i++)
	{
		scanf("%d", w + i);
		sum += w[i];
	}

	for (size_t i = 0; i < n; i++)
	{
		sum2 += w[i];
		if (sum <= sum2 * 2)
		{
			printf("%d", min(-(sum - sum2 - sum2), (sum - (sum2 - w[i]) - (sum2 - w[i]))));
			break;
		}
	}

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r15
	leaq	0(,%r15,4), %rdi
	call	malloc@PLT
	testq	%r15, %r15
	je	.L3
	movq	%rax, %r12
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movl	(%rbx), %ecx
	movslq	4(%rsp), %rsi
	addq	$4, %rbx
	addl	%r14d, %ecx
	movl	%ecx, %r14d
	cmpq	%rbp, %rsi
	ja	.L4
	testq	%rsi, %rsi
	je	.L3
	movl	(%r12), %edx
	leal	(%rdx,%rdx), %eax
	cmpl	%eax, %ecx
	jle	.L10
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rax,4), %edi
	addl	%edx, %edi
	leal	(%rdi,%rdi), %r8d
	cmpl	%ecx, %r8d
	jge	.L19
	movl	%edi, %edx
.L7:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L8
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %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
.L19:
	.cfi_restore_state
	movl	%edx, %eax
	movl	%edi, %edx
.L6:
	movl	%ecx, %esi
	subl	%eax, %ecx
	movl	$1, %edi
	subl	%edx, %esi
	subl	%eax, %ecx
	subl	%esi, %edx
	movq	%r13, %rsi
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	xorl	%eax, %eax
	jmp	.L6
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r15
	leaq	0(,%r15,4), %rdi
	call	malloc@PLT
	testq	%r15, %r15
	je	.L3
	movq	%rax, %r12
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movl	(%rbx), %ecx
	movslq	4(%rsp), %rsi
	addq	$4, %rbx
	addl	%r14d, %ecx
	movl	%ecx, %r14d
	cmpq	%rbp, %rsi
	ja	.L4
	testq	%rsi, %rsi
	je	.L3
	movl	(%r12), %edx
	leal	(%rdx,%rdx), %eax
	cmpl	%eax, %ecx
	jle	.L10
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rax,4), %edi
	addl	%edx, %edi
	leal	(%rdi,%rdi), %r8d
	cmpl	%ecx, %r8d
	jge	.L19
	movl	%edi, %edx
.L7:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L8
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %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
.L19:
	.cfi_restore_state
	movl	%edx, %eax
	movl	%edi, %edx
.L6:
	movl	%ecx, %esi
	subl	%eax, %ecx
	movl	$1, %edi
	subl	%edx, %esi
	subl	%eax, %ecx
	subl	%esi, %edx
	movq	%r13, %rsi
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	xorl	%eax, %eax
	jmp	.L6
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r15
	leaq	0(,%r15,4), %rdi
	call	malloc@PLT
	testq	%r15, %r15
	je	.L3
	movq	%rax, %r12
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movl	(%rbx), %ecx
	movslq	4(%rsp), %rsi
	addq	$4, %rbx
	addl	%r14d, %ecx
	movl	%ecx, %r14d
	cmpq	%rbp, %rsi
	ja	.L4
	testq	%rsi, %rsi
	je	.L3
	movl	(%r12), %edx
	leal	(%rdx,%rdx), %eax
	cmpl	%eax, %ecx
	jle	.L10
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rax,4), %edi
	addl	%edx, %edi
	leal	(%rdi,%rdi), %r8d
	cmpl	%ecx, %r8d
	jge	.L19
	movl	%edi, %edx
.L7:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L8
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %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
.L19:
	.cfi_restore_state
	movl	%edx, %eax
	movl	%edi, %edx
.L6:
	movl	%ecx, %esi
	subl	%eax, %ecx
	movl	$1, %edi
	subl	%edx, %esi
	subl	%eax, %ecx
	subl	%esi, %edx
	movq	%r13, %rsi
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	xorl	%eax, %eax
	jmp	.L6
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include<stdlib.h>
#include<math.h>
#include<assert.h>

#define max(a,b) (((a)>(b))?(a):(b))
#define min(a,b) (((a)>(b))?(b):(a))
#define abs(a)   (((a)<(0))?(-(a)):(a))

typedef long long ll;
typedef unsigned long long ull;

int main(void)
{
	int n, sum = 0, sum2 = 0;
	int* w;
	scanf("%d", &n);
	w = malloc(n * sizeof(int));
	for (size_t i = 0; i < n; i++)
	{
		scanf("%d", w + i);
		sum += w[i];
	}

	for (size_t i = 0; i < n; i++)
	{
		sum2 += w[i];
		if (sum <= sum2 * 2)
		{
			printf("%d", min(-(sum - sum2 - sum2), (sum - (sum2 - w[i]) - (sum2 - w[i]))));
			break;
		}
	}

	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<assert.h>

#define max(a,b) (((a)>(b))?(a):(b))
#define min(a,b) (((a)>(b))?(b):(a))
#define abs(a)   (((a)<(0))?(-(a)):(a))

typedef long long ll;
typedef unsigned long long ull;

int main(void)
{
	int n, sum = 0, sum2 = 0;
	int* w;
	scanf("%d", &n);
	w = malloc(n * sizeof(int));
	for (size_t i = 0; i < n; i++)
	{
		scanf("%d", w + i);
		sum += w[i];
	}

	for (size_t i = 0; i < n; i++)
	{
		sum2 += w[i];
		if (sum <= sum2 * 2)
		{
			printf("%d", min(-(sum - sum2 - sum2), (sum - (sum2 - w[i]) - (sum2 - w[i]))));
			break;
		}
	}

	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:

3
1 2 2
 4
2 3 1 1
 8
27 23 76 2 3 5 62 14
 3
1 1 2
 4
2 3 1 0
 8
27 30 76 2 3 5 62 14
 8
27 30 76 2 3 5 62 5
 8
27 30 76 2 3 2 62 5
 8
27 30 76 2 3 2 102 5
 8
27 30 99 2 3 2 102 5

1 3 40 0 2 47 56 59 19 42
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>
#include<stdlib.h>
#include<math.h>
#include<assert.h>

#define max(a,b) (((a)>(b))?(a):(b))
#define min(a,b) (((a)>(b))?(b):(a))
#define abs(a)   (((a)<(0))?(-(a)):(a))

typedef long long ll;
typedef unsigned long long ull;

int main(void)
{
	int n, sum = 0, sum2 = 0;
	int* w;
	scanf("%d", &n);
	w = malloc(n * sizeof(int));
	for (size_t i = 0; i < n; i++)
	{
		scanf("%d", w + i);
		sum += w[i];
	}

	for (size_t i = 0; i < n; i++)
	{
		sum2 += w[i];
		if (sum <= sum2 * 2)
		{
			printf("%d", min(-(sum - sum2 - sum2), (sum - (sum2 - w[i]) - (sum2 - w[i]))));
			break;
		}
	}

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r15
	leaq	0(,%r15,4), %rdi
	call	malloc@PLT
	testq	%r15, %r15
	je	.L3
	movq	%rax, %r12
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movl	(%rbx), %ecx
	movslq	4(%rsp), %rsi
	addq	$4, %rbx
	addl	%r14d, %ecx
	movl	%ecx, %r14d
	cmpq	%rbp, %rsi
	ja	.L4
	testq	%rsi, %rsi
	je	.L3
	movl	(%r12), %edx
	leal	(%rdx,%rdx), %eax
	cmpl	%eax, %ecx
	jle	.L10
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rax,4), %edi
	addl	%edx, %edi
	leal	(%rdi,%rdi), %r8d
	cmpl	%ecx, %r8d
	jge	.L19
	movl	%edi, %edx
.L7:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L8
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %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
.L19:
	.cfi_restore_state
	movl	%edx, %eax
	movl	%edi, %edx
.L6:
	movl	%ecx, %esi
	subl	%eax, %ecx
	movl	$1, %edi
	subl	%edx, %esi
	subl	%eax, %ecx
	subl	%esi, %edx
	movq	%r13, %rsi
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	xorl	%eax, %eax
	jmp	.L6
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r15
	leaq	0(,%r15,4), %rdi
	call	malloc@PLT
	testq	%r15, %r15
	je	.L3
	movq	%rax, %r12
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movl	(%rbx), %ecx
	movslq	4(%rsp), %rsi
	addq	$4, %rbx
	addl	%r14d, %ecx
	movl	%ecx, %r14d
	cmpq	%rbp, %rsi
	ja	.L4
	testq	%rsi, %rsi
	je	.L3
	movl	(%r12), %edx
	leal	(%rdx,%rdx), %eax
	cmpl	%eax, %ecx
	jle	.L10
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rax,4), %edi
	addl	%edx, %edi
	leal	(%rdi,%rdi), %r8d
	cmpl	%ecx, %r8d
	jge	.L19
	movl	%edi, %edx
.L7:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L8
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %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
.L19:
	.cfi_restore_state
	movl	%edx, %eax
	movl	%edi, %edx
.L6:
	movl	%ecx, %esi
	subl	%eax, %ecx
	movl	$1, %edi
	subl	%edx, %esi
	subl	%eax, %ecx
	subl	%esi, %edx
	movq	%r13, %rsi
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	xorl	%eax, %eax
	jmp	.L6
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
```