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<math.h>
int main(){
  int n,i,x,y,a;
  int b[4];
  b[0]=b[2]=0;
  scanf("%d%d%d",&b[1],&b[3],&n);
  for(i=0;i<n;i++){
    scanf("%d%d%d",&x,&y,&a);
    if(a==1)b[0]=b[0]<x?x:b[0];
    if(a==2)b[1]=b[1]>x?x:b[1];
    if(a==3)b[2]=b[2]<y?y:b[2];
    if(a==4)b[3]=b[3]>y?y:b[3];
  }
  printf("%d",b[0]<b[1]&&b[2]<b[3]?(b[1]-b[0])*(b[3]-b[2]):0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rcx
	leaq	28(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r13
	leaq	4(%rsp), %r12
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$2, %eax
	je	.L5
	cmpl	$3, %eax
	jne	.L18
	movl	24(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, 24(%rsp)
.L4:
	addl	$1, %ebx
	cmpl	%ebx, (%rsp)
	jle	.L2
.L9:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	16(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %ebx
	movl	%eax, 16(%rsp)
	cmpl	%ebx, (%rsp)
	jg	.L9
.L2:
	movl	16(%rsp), %ecx
	movl	20(%rsp), %eax
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	jge	.L10
	movl	24(%rsp), %edi
	movl	28(%rsp), %esi
	cmpl	%esi, %edi
	jl	.L19
.L10:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$48, %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
.L18:
	.cfi_restore_state
	cmpl	$4, %eax
	jne	.L4
	movl	28(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 28(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	20(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 20(%rsp)
	jmp	.L4
.L19:
	subl	%ecx, %eax
	subl	%edi, %esi
	imull	%esi, %eax
	movl	%eax, %edx
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rcx
	leaq	28(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r13
	leaq	4(%rsp), %r12
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$2, %eax
	je	.L5
	cmpl	$3, %eax
	jne	.L18
	movl	24(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, 24(%rsp)
.L4:
	addl	$1, %ebx
	cmpl	%ebx, (%rsp)
	jle	.L2
.L9:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	16(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %ebx
	movl	%eax, 16(%rsp)
	cmpl	%ebx, (%rsp)
	jg	.L9
.L2:
	movl	16(%rsp), %ecx
	movl	20(%rsp), %eax
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	jge	.L10
	movl	24(%rsp), %edi
	movl	28(%rsp), %esi
	cmpl	%esi, %edi
	jl	.L19
.L10:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$48, %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
.L18:
	.cfi_restore_state
	cmpl	$4, %eax
	jne	.L4
	movl	28(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 28(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	20(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 20(%rsp)
	jmp	.L4
.L19:
	subl	%ecx, %eax
	subl	%edi, %esi
	imull	%esi, %eax
	movl	%eax, %edx
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rcx
	leaq	28(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r13
	leaq	4(%rsp), %r12
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$2, %eax
	je	.L5
	cmpl	$3, %eax
	jne	.L18
	movl	24(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, 24(%rsp)
.L4:
	addl	$1, %ebx
	cmpl	%ebx, (%rsp)
	jle	.L2
.L9:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	16(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %ebx
	movl	%eax, 16(%rsp)
	cmpl	%ebx, (%rsp)
	jg	.L9
.L2:
	movl	16(%rsp), %ecx
	movl	20(%rsp), %eax
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	jge	.L10
	movl	24(%rsp), %edi
	movl	28(%rsp), %esi
	cmpl	%esi, %edi
	jl	.L19
.L10:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$48, %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
.L18:
	.cfi_restore_state
	cmpl	$4, %eax
	jne	.L4
	movl	28(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 28(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	20(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 20(%rsp)
	jmp	.L4
.L19:
	subl	%ecx, %eax
	subl	%edi, %esi
	imull	%esi, %eax
	movl	%eax, %edx
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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<math.h>
int main(){
  int n,i,x,y,a;
  int b[4];
  b[0]=b[2]=0;
  scanf("%d%d%d",&b[1],&b[3],&n);
  for(i=0;i<n;i++){
    scanf("%d%d%d",&x,&y,&a);
    if(a==1)b[0]=b[0]<x?x:b[0];
    if(a==2)b[1]=b[1]>x?x:b[1];
    if(a==3)b[2]=b[2]<y?y:b[2];
    if(a==4)b[3]=b[3]>y?y:b[3];
  }
  printf("%d",b[0]<b[1]&&b[2]<b[3]?(b[1]-b[0])*(b[3]-b[2]):0);
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<math.h>
int main(){
  int n,i,x,y,a;
  int b[4];
  b[0]=b[2]=0;
  scanf("%d%d%d",&b[1],&b[3],&n);
  for(i=0;i<n;i++){
    scanf("%d%d%d",&x,&y,&a);
    if(a==1)b[0]=b[0]<x?x:b[0];
    if(a==2)b[1]=b[1]>x?x:b[1];
    if(a==3)b[2]=b[2]<y?y:b[2];
    if(a==4)b[3]=b[3]>y?y:b[3];
  }
  printf("%d",b[0]<b[1]&&b[2]<b[3]?(b[1]-b[0])*(b[3]-b[2]):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 4 3
2 1 1
3 6 4
1 4 2
 5 4 2
2 1 1
6 3 4
 5 4 2
2 1 2
6 3 4
 10 10 5
1 6 1
4 1 1
6 9 4
9 4 2
3 1 4
 5 4 1
2 1 2
6 3 4
 5 4 3
2 0 2
2 6 2
1 4 2
 10 10 5
1 14 1
4 1 1
6 4 4
9 0 2
3 2 4
 10 10 5
1 6 1
4 1 3
6 9 4
9 4 2
3 0 3
 5 1 3
2 0 2
2 11 2
2 4 2
 5 6 3
2 0 2
3 11 2
2 4 2

0 9 6 5 8 4 10 64 2 12
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<math.h>
int main(){
  int n,i,x,y,a;
  int b[4];
  b[0]=b[2]=0;
  scanf("%d%d%d",&b[1],&b[3],&n);
  for(i=0;i<n;i++){
    scanf("%d%d%d",&x,&y,&a);
    if(a==1)b[0]=b[0]<x?x:b[0];
    if(a==2)b[1]=b[1]>x?x:b[1];
    if(a==3)b[2]=b[2]<y?y:b[2];
    if(a==4)b[3]=b[3]>y?y:b[3];
  }
  printf("%d",b[0]<b[1]&&b[2]<b[3]?(b[1]-b[0])*(b[3]-b[2]):0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rcx
	leaq	28(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r13
	leaq	4(%rsp), %r12
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$2, %eax
	je	.L5
	cmpl	$3, %eax
	jne	.L18
	movl	24(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, 24(%rsp)
.L4:
	addl	$1, %ebx
	cmpl	%ebx, (%rsp)
	jle	.L2
.L9:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	16(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %ebx
	movl	%eax, 16(%rsp)
	cmpl	%ebx, (%rsp)
	jg	.L9
.L2:
	movl	16(%rsp), %ecx
	movl	20(%rsp), %eax
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	jge	.L10
	movl	24(%rsp), %edi
	movl	28(%rsp), %esi
	cmpl	%esi, %edi
	jl	.L19
.L10:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$48, %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
.L18:
	.cfi_restore_state
	cmpl	$4, %eax
	jne	.L4
	movl	28(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 28(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	20(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 20(%rsp)
	jmp	.L4
.L19:
	subl	%ecx, %eax
	subl	%edi, %esi
	imull	%esi, %eax
	movl	%eax, %edx
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rcx
	leaq	28(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movl	$0, 24(%rsp)
	movl	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r13
	leaq	4(%rsp), %r12
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$2, %eax
	je	.L5
	cmpl	$3, %eax
	jne	.L18
	movl	24(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, 24(%rsp)
.L4:
	addl	$1, %ebx
	cmpl	%ebx, (%rsp)
	jle	.L2
.L9:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	16(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	addl	$1, %ebx
	movl	%eax, 16(%rsp)
	cmpl	%ebx, (%rsp)
	jg	.L9
.L2:
	movl	16(%rsp), %ecx
	movl	20(%rsp), %eax
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	jge	.L10
	movl	24(%rsp), %edi
	movl	28(%rsp), %esi
	cmpl	%esi, %edi
	jl	.L19
.L10:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$48, %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
.L18:
	.cfi_restore_state
	cmpl	$4, %eax
	jne	.L4
	movl	28(%rsp), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 28(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	20(%rsp), %eax
	movl	4(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	%eax, 20(%rsp)
	jmp	.L4
.L19:
	subl	%ecx, %eax
	subl	%edi, %esi
	imull	%esi, %eax
	movl	%eax, %edx
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```