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 main() {
  int n = 0;
  int h = 0;
  int destn = 0;
  int lx;
  int ly;
  int x;
  int y;
  int result = 0;
  int big;
  int small;
  int xs;
  int ys;
  int i = 0;

  scanf("%d%d%d", &n, &h, &destn);
  for(i = 0; i < destn; ++i) {
    scanf("%d%d", &x, &y);
    if(i >= 1) {
      xs = lx - x;
      ys = ly - y;
      if((xs > 0 && ys > 0) || (xs < 0 && ys < 0)) {
        xs = abs(xs);
        ys = abs(ys);
        if(xs > ys) {
          big = xs;
          small = ys;
        } else {
          big = ys;
          small = xs;
        }
        result += (small + big - small);
      } else {
        result += (abs(xs) + abs(ys));
      }
    }
    lx = x;
    ly = y;
  }
  printf("%d\n", result);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	$0, 20(%rsp)
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 28(%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %rbp
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbx
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jg	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %r14d
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L8:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%r12d, %eax
	movl	32(%rsp), %r12d
	movl	%r15d, %edx
	movl	36(%rsp), %r15d
	subl	%r12d, %eax
	subl	%r15d, %edx
	testl	%eax, %eax
	jle	.L12
	testl	%edx, %edx
	jg	.L4
.L12:
	testl	%edx, %eax
	js	.L4
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	addl	$1, %r14d
	addl	%edx, %eax
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L21:
	.cfi_restore_state
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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%d%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	$0, 20(%rsp)
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 28(%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %rbp
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbx
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jg	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %r14d
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L8:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%r12d, %eax
	movl	32(%rsp), %r12d
	movl	%r15d, %edx
	movl	36(%rsp), %r15d
	subl	%r12d, %eax
	subl	%r15d, %edx
	testl	%eax, %eax
	jle	.L12
	testl	%edx, %edx
	jg	.L4
.L12:
	testl	%edx, %eax
	js	.L4
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	addl	$1, %r14d
	addl	%edx, %eax
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L21:
	.cfi_restore_state
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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%d%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	$0, 20(%rsp)
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 28(%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %rbp
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbx
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jg	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %r14d
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L8:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%r12d, %eax
	movl	32(%rsp), %r12d
	movl	%r15d, %edx
	movl	36(%rsp), %r15d
	subl	%r12d, %eax
	subl	%r15d, %edx
	testl	%eax, %eax
	jle	.L12
	testl	%edx, %edx
	jg	.L4
.L12:
	testl	%edx, %eax
	js	.L4
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	addl	$1, %r14d
	addl	%edx, %eax
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L21:
	.cfi_restore_state
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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>

int main() {
  int n = 0;
  int h = 0;
  int destn = 0;
  int lx;
  int ly;
  int x;
  int y;
  int result = 0;
  int big;
  int small;
  int xs;
  int ys;
  int i = 0;

  scanf("%d%d%d", &n, &h, &destn);
  for(i = 0; i < destn; ++i) {
    scanf("%d%d", &x, &y);
    if(i >= 1) {
      xs = lx - x;
      ys = ly - y;
      if((xs > 0 && ys > 0) || (xs < 0 && ys < 0)) {
        xs = abs(xs);
        ys = abs(ys);
        if(xs > ys) {
          big = xs;
          small = ys;
        } else {
          big = ys;
          small = xs;
        }
        result += (small + big - small);
      } else {
        result += (abs(xs) + abs(ys));
      }
    }
    lx = x;
    ly = y;
  }
  printf("%d\n", result);
  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 main() {
  int n = 0;
  int h = 0;
  int destn = 0;
  int lx;
  int ly;
  int x;
  int y;
  int result = 0;
  int big;
  int small;
  int xs;
  int ys;
  int i = 0;

  scanf("%d%d%d", &n, &h, &destn);
  for(i = 0; i < destn; ++i) {
    scanf("%d%d", &x, &y);
    if(i >= 1) {
      xs = lx - x;
      ys = ly - y;
      if((xs > 0 && ys > 0) || (xs < 0 && ys < 0)) {
        xs = abs(xs);
        ys = abs(ys);
        if(xs > ys) {
          big = xs;
          small = ys;
        } else {
          big = ys;
          small = xs;
        }
        result += (small + big - small);
      } else {
        result += (abs(xs) + abs(ys));
      }
    }
    lx = x;
    ly = y;
  }
  printf("%d\n", result);
  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 main() {
  int n = 0;
  int h = 0;
  int destn = 0;
  int lx;
  int ly;
  int x;
  int y;
  int result = 0;
  int big;
  int small;
  int xs;
  int ys;
  int i = 0;

  scanf("%d%d%d", &n, &h, &destn);
  for(i = 0; i < destn; ++i) {
    scanf("%d%d", &x, &y);
    if(i >= 1) {
      xs = lx - x;
      ys = ly - y;
      if((xs > 0 && ys > 0) || (xs < 0 && ys < 0)) {
        xs = abs(xs);
        ys = abs(ys);
        if(xs > ys) {
          big = xs;
          small = ys;
        } else {
          big = ys;
          small = xs;
        }
        result += (small + big - small);
      } else {
        result += (abs(xs) + abs(ys));
      }
    }
    lx = x;
    ly = y;
  }
  printf("%d\n", result);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	$0, 20(%rsp)
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 28(%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %rbp
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbx
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jg	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %r14d
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L8:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%r12d, %eax
	movl	32(%rsp), %r12d
	movl	%r15d, %edx
	movl	36(%rsp), %r15d
	subl	%r12d, %eax
	subl	%r15d, %edx
	testl	%eax, %eax
	jle	.L12
	testl	%edx, %edx
	jg	.L4
.L12:
	testl	%edx, %eax
	js	.L4
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	addl	$1, %r14d
	addl	%edx, %eax
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L21:
	.cfi_restore_state
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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%d%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	$0, 20(%rsp)
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 28(%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %rbp
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbx
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %r12d
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jg	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %r14d
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L8:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%r12d, %eax
	movl	32(%rsp), %r12d
	movl	%r15d, %edx
	movl	36(%rsp), %r15d
	subl	%r12d, %eax
	subl	%r15d, %edx
	testl	%eax, %eax
	jle	.L12
	testl	%edx, %edx
	jg	.L4
.L12:
	testl	%edx, %eax
	js	.L4
	movl	%eax, %esi
	negl	%esi
	cmovns	%esi, %eax
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	addl	$1, %r14d
	addl	%edx, %eax
	addl	%eax, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L21:
	.cfi_restore_state
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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:
```