Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
  AOJ 2100
  Title:Saizo
  @kankichi573
*/
#include <stdio.h>
#define max(x,y) (((x)>(y))?(x):(y))
int d,N;


main()
{
  int i,j,ret,prev,now,max_up,max_down,diff;
  scanf("%d",&d);
  for(i=0;i<d;i++)
    {
      scanf("%d",&N);
      scanf("%d",&prev);
      max_up=max_down=0;
      for(j=1;j<N;j++)
	{
	  scanf("%d",&now);
	  diff=now-prev;
	  if(diff>0)
	    max_up=max(max_up,diff);
	  else
	    max_down=max(max_down,-diff);
	  prev=now;
	}
      printf("%d %d\n",max_up,max_down);
    }
  return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	d(%rip), %rsi
	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
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	d(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	N(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	xorl	%r12d, %r12d
	call	__isoc99_scanf@PLT
	cmpl	$1, N(%rip)
	jle	.L3
	movl	$1, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, N(%rip)
	movl	%edx, 16(%rsp)
	jle	.L3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	testl	%ecx, %ecx
	jg	.L14
	subl	%edx, %eax
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	addl	$1, %r14d
	call	__printf_chk@PLT
	cmpl	%r14d, d(%rip)
	jg	.L7
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.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"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	d(%rip), %rsi
	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
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	d(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	N(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	xorl	%r12d, %r12d
	call	__isoc99_scanf@PLT
	cmpl	$1, N(%rip)
	jle	.L3
	movl	$1, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, N(%rip)
	movl	%edx, 16(%rsp)
	jle	.L3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	testl	%ecx, %ecx
	jg	.L14
	subl	%edx, %eax
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	addl	$1, %r14d
	call	__printf_chk@PLT
	cmpl	%r14d, d(%rip)
	jg	.L7
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.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"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	d(%rip), %rsi
	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
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	d(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	N(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	xorl	%r12d, %r12d
	call	__isoc99_scanf@PLT
	cmpl	$1, N(%rip)
	jle	.L3
	movl	$1, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, N(%rip)
	movl	%edx, 16(%rsp)
	jle	.L3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	testl	%ecx, %ecx
	jg	.L14
	subl	%edx, %eax
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	addl	$1, %r14d
	call	__printf_chk@PLT
	cmpl	%r14d, d(%rip)
	jg	.L7
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.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
/*
  AOJ 2100
  Title:Saizo
  @kankichi573
*/
#include <stdio.h>
#define max(x,y) (((x)>(y))?(x):(y))
int d,N;


main()
{
  int i,j,ret,prev,now,max_up,max_down,diff;
  scanf("%d",&d);
  for(i=0;i<d;i++)
    {
      scanf("%d",&N);
      scanf("%d",&prev);
      max_up=max_down=0;
      for(j=1;j<N;j++)
	{
	  scanf("%d",&now);
	  diff=now-prev;
	  if(diff>0)
	    max_up=max(max_up,diff);
	  else
	    max_down=max(max_down,-diff);
	  prev=now;
	}
      printf("%d %d\n",max_up,max_down);
    }
  return(0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
  AOJ 2100
  Title:Saizo
  @kankichi573
*/
#include <stdio.h>
#define max(x,y) (((x)>(y))?(x):(y))
int d,N;


main()
{
  int i,j,ret,prev,now,max_up,max_down,diff;
  scanf("%d",&d);
  for(i=0;i<d;i++)
    {
      scanf("%d",&N);
      scanf("%d",&prev);
      max_up=max_down=0;
      for(j=1;j<N;j++)
	{
	  scanf("%d",&now);
	  diff=now-prev;
	  if(diff>0)
	    max_up=max(max_up,diff);
	  else
	    max_down=max(max_down,-diff);
	  prev=now;
	}
      printf("%d %d\n",max_up,max_down);
    }
  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:

5
5
10 70 30 50 177
2
20 100
2
100 30
3
50 50 50
7
123 45 678 901 234 567 890
 5
5
10 70 5 50 177
2
20 100
2
100 30
3
50 50 50
7
123 45 678 901 234 567 890
 5
5
10 70 5 50 206
2
20 100
2
100 30
3
50 50 50
7
123 45 678 901 234 567 890
 5
5
10 70 30 50 90
2
20 100
2
100 30
3
52 50 50
7
123 45 678 901 234 567 890
 5
5
10 70 5 50 177
2
20 110
2
100 30
3
50 50 50
7
123 45 678 901 234 567 890
 5
5
10 70 5 50 206
2
20 100
2
100 30
3
50 50 50
7
123 82 678 901 234 567 890
 5
5
10 101 5 50 206
2
20 100
2
100 30
3
50 50 50
7
123 82 678 901 234 567 890
 5
5
10 70 30 50 90
2
20 100
2
100 30
3
52 50 50
7
123 65 678 901 234 567 955
 5
5
10 101 5 50 206
2
20 100
2
100 30
3
22 50 50
7
123 82 678 901 234 567 890
 5
5
10 101 5 50 390
2
20 100
2
100 30
3
22 50 50
7
123 82 678 901 234 567 890

127 40
80 0
0 70
0 0
633 667
 127 65
80 0
0 70
0 0
633 667
 156 65
80 0
0 70
0 0
633 667
 60 40
80 0
0 70
0 2
633 667
 127 65
90 0
0 70
0 0
633 667
 156 65
80 0
0 70
0 0
596 667
 156 96
80 0
0 70
0 0
596 667
 60 40
80 0
0 70
0 2
613 667
 156 96
80 0
0 70
28 0
596 667
 340 96
80 0
0 70
28 0
596 667

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
  AOJ 2100
  Title:Saizo
  @kankichi573
*/
#include <stdio.h>
#define max(x,y) (((x)>(y))?(x):(y))
int d,N;


main()
{
  int i,j,ret,prev,now,max_up,max_down,diff;
  scanf("%d",&d);
  for(i=0;i<d;i++)
    {
      scanf("%d",&N);
      scanf("%d",&prev);
      max_up=max_down=0;
      for(j=1;j<N;j++)
	{
	  scanf("%d",&now);
	  diff=now-prev;
	  if(diff>0)
	    max_up=max(max_up,diff);
	  else
	    max_down=max(max_down,-diff);
	  prev=now;
	}
      printf("%d %d\n",max_up,max_down);
    }
  return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	d(%rip), %rsi
	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
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	d(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	N(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	xorl	%r12d, %r12d
	call	__isoc99_scanf@PLT
	cmpl	$1, N(%rip)
	jle	.L3
	movl	$1, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, N(%rip)
	movl	%edx, 16(%rsp)
	jle	.L3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	testl	%ecx, %ecx
	jg	.L14
	subl	%edx, %eax
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	addl	$1, %r14d
	call	__printf_chk@PLT
	cmpl	%r14d, d(%rip)
	jg	.L7
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.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"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	d(%rip), %rsi
	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
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	d(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	N(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	xorl	%r12d, %r12d
	call	__isoc99_scanf@PLT
	cmpl	$1, N(%rip)
	jle	.L3
	movl	$1, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
.L5:
	addl	$1, %r15d
	cmpl	%r15d, N(%rip)
	movl	%edx, 16(%rsp)
	jle	.L3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	testl	%ecx, %ecx
	jg	.L14
	subl	%edx, %eax
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	addl	$1, %r14d
	call	__printf_chk@PLT
	cmpl	%r14d, d(%rip)
	jg	.L7
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.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:
```