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>

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

int main(void)
{
    int n;
    int sum;
    int x[1024], y[1024];
    int i;

    scanf("%*d %*d %d", &n);
    scanf("%d %d", x, y);
    sum = 0;
    for (i = 1; i < n; ++i){
        int dx, dy;
        scanf("%d %d", x + i, y + i);
        dx = x[i] - x[i - 1];
        dy = y[i] - y[i - 1];
        if (0 <= dx * dy){
            sum += max(abs(dx), abs(dy));
        }
        else {
            sum += abs(dx) + abs(dy);
        }
    }

    printf("%d\n", sum);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB39:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%*d %*d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$32, %rsp
	.cfi_def_cfa_offset 8272
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8216(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbx, %rdi
	leaq	4112(%rsp), %rdx
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L9
	leaq	20(%rsp), %r13
	leaq	4116(%rsp), %rbp
	movl	$1, %r14d
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	%eax, %r12d
.L6:
	addl	$1, %r14d
	addq	$4, %r13
	addq	$4, %rbp
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L7:
	movq	%rbp, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	0(%r13), %edx
	subl	-4(%r13), %edx
	movl	0(%rbp), %eax
	movl	%edx, %ecx
	subl	-4(%rbp), %eax
	imull	%eax, %ecx
	testl	%ecx, %ecx
	jns	.L12
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	addl	%edx, %eax
	addl	%eax, %r12d
	jmp	.L6
.L9:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$8224, %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
.L13:
	.cfi_restore_state
	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:
```

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:
.LFB39:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%*d %*d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$32, %rsp
	.cfi_def_cfa_offset 8272
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8216(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbx, %rdi
	leaq	4112(%rsp), %rdx
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L9
	leaq	20(%rsp), %r13
	leaq	4116(%rsp), %rbp
	movl	$1, %r14d
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	%eax, %r12d
.L6:
	addl	$1, %r14d
	addq	$4, %r13
	addq	$4, %rbp
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L7:
	movq	%rbp, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	0(%r13), %edx
	subl	-4(%r13), %edx
	movl	0(%rbp), %eax
	movl	%edx, %ecx
	subl	-4(%rbp), %eax
	imull	%eax, %ecx
	testl	%ecx, %ecx
	jns	.L12
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	addl	%edx, %eax
	addl	%eax, %r12d
	jmp	.L6
.L9:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$8224, %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
.L13:
	.cfi_restore_state
	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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB39:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%*d %*d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$32, %rsp
	.cfi_def_cfa_offset 8272
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8216(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbx, %rdi
	leaq	4112(%rsp), %rdx
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L9
	leaq	20(%rsp), %r13
	leaq	4116(%rsp), %rbp
	movl	$1, %r14d
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	%eax, %r12d
.L6:
	addl	$1, %r14d
	addq	$4, %r13
	addq	$4, %rbp
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L7:
	movq	%rbp, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	0(%r13), %edx
	subl	-4(%r13), %edx
	movl	0(%rbp), %eax
	movl	%edx, %ecx
	subl	-4(%rbp), %eax
	imull	%eax, %ecx
	testl	%ecx, %ecx
	jns	.L12
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	addl	%edx, %eax
	addl	%eax, %r12d
	jmp	.L6
.L9:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$8224, %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
.L13:
	.cfi_restore_state
	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:
```
```c
#include <stdio.h>
#include <stdlib.h>

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

int main(void)
{
    int n;
    int sum;
    int x[1024], y[1024];
    int i;

    scanf("%*d %*d %d", &n);
    scanf("%d %d", x, y);
    sum = 0;
    for (i = 1; i < n; ++i){
        int dx, dy;
        scanf("%d %d", x + i, y + i);
        dx = x[i] - x[i - 1];
        dy = y[i] - y[i - 1];
        if (0 <= dx * dy){
            sum += max(abs(dx), abs(dy));
        }
        else {
            sum += abs(dx) + abs(dy);
        }
    }

    printf("%d\n", sum);

    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>

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

int main(void)
{
    int n;
    int sum;
    int x[1024], y[1024];
    int i;

    scanf("%*d %*d %d", &n);
    scanf("%d %d", x, y);
    sum = 0;
    for (i = 1; i < n; ++i){
        int dx, dy;
        scanf("%d %d", x + i, y + i);
        dx = x[i] - x[i - 1];
        dy = y[i] - y[i - 1];
        if (0 <= dx * dy){
            sum += max(abs(dx), abs(dy));
        }
        else {
            sum += abs(dx) + abs(dy);
        }
    }

    printf("%d\n", sum);

    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:

4 3 3
1 1
3 3
4 1

5

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>

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

int main(void)
{
    int n;
    int sum;
    int x[1024], y[1024];
    int i;

    scanf("%*d %*d %d", &n);
    scanf("%d %d", x, y);
    sum = 0;
    for (i = 1; i < n; ++i){
        int dx, dy;
        scanf("%d %d", x + i, y + i);
        dx = x[i] - x[i - 1];
        dy = y[i] - y[i - 1];
        if (0 <= dx * dy){
            sum += max(abs(dx), abs(dy));
        }
        else {
            sum += abs(dx) + abs(dy);
        }
    }

    printf("%d\n", sum);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB39:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%*d %*d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$32, %rsp
	.cfi_def_cfa_offset 8272
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8216(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbx, %rdi
	leaq	4112(%rsp), %rdx
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L9
	leaq	20(%rsp), %r13
	leaq	4116(%rsp), %rbp
	movl	$1, %r14d
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	%eax, %r12d
.L6:
	addl	$1, %r14d
	addq	$4, %r13
	addq	$4, %rbp
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L7:
	movq	%rbp, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	0(%r13), %edx
	subl	-4(%r13), %edx
	movl	0(%rbp), %eax
	movl	%edx, %ecx
	subl	-4(%rbp), %eax
	imull	%eax, %ecx
	testl	%ecx, %ecx
	jns	.L12
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	addl	%edx, %eax
	addl	%eax, %r12d
	jmp	.L6
.L9:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$8224, %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
.L13:
	.cfi_restore_state
	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:
```

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:
.LFB39:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%*d %*d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$32, %rsp
	.cfi_def_cfa_offset 8272
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8216(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbx, %rdi
	leaq	4112(%rsp), %rdx
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L9
	leaq	20(%rsp), %r13
	leaq	4116(%rsp), %rbp
	movl	$1, %r14d
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	%eax, %r12d
.L6:
	addl	$1, %r14d
	addq	$4, %r13
	addq	$4, %rbp
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L7:
	movq	%rbp, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	0(%r13), %edx
	subl	-4(%r13), %edx
	movl	0(%rbp), %eax
	movl	%edx, %ecx
	subl	-4(%rbp), %eax
	imull	%eax, %ecx
	testl	%ecx, %ecx
	jns	.L12
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	addl	%edx, %eax
	addl	%eax, %r12d
	jmp	.L6
.L9:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$8224, %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
.L13:
	.cfi_restore_state
	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:
```