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

```c
#include<stdio.h>
#include<math.h>
#include<limits.h>
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define N 1000

int main(){
	int n,i,q,com,x,y,j;
	int a[N];
	int mini[N];
	int maxi[N];
	int b;
	int min=INT_MAX;
	int max=INT_MIN;
	
	scanf("%d",&n);
	b=sqrt(n);
	
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		min=MIN(min,a[i]);
		max=MAX(max,a[i]);
		
		if(i%b==b-1){
			mini[i/b]=min;
			maxi[i/b]=max;
			min=INT_MAX;
			max=INT_MIN;
		}
	}
	
	scanf("%d",&q);
	for(i=0;i<q;i++){
		scanf("%d %d %d",&com,&x,&y);
		
		if(com){
			max=INT_MIN;
			if((y-1)/b-x/b <=1){
				for(j=x;j<=y-1;j++)max=MAX(max,a[j]);
			}
			else {
				for(j=x;j<=MIN(y-1,(x/b+1)*b-1);j++)max=MAX(max,a[j]);
				
				for(j=x/b+1;j<(y-1)/b;j++)max=MAX(max,maxi[j]);
			
				for(j=MAX(x,(y-1)/b*b);j<=y-1;j++)max=MAX(max,a[j]);
			}
			
			printf("%d\n",max);
		}
		
		else {
			min=INT_MAX;
			if((y-1)/b-x/b <=1){
				for(j=x;j<=y-1;j++)min=MIN(min,a[j]);
			}
			else {
				for(j=x;j<=MIN(y-1,(x/b+1)*b-1);j++)min=MIN(min,a[j]);
				
				for(j=x/b+1;j<(y-1)/b;j++)min=MIN(min,mini[j]);
			
				for(j=MAX(x,(y-1)/b*b);j<=y-1;j++)min=MIN(min,a[j]);
			}
			
			printf("%d\n",min);
		}
	}
	
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3872, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2147483647, -12028(%rbp)
	movl	$-2147483648, -12024(%rbp)
	leaq	-12056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12056(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -12020(%rbp)
	movl	$0, -12036(%rbp)
	jmp	.L2
.L4:
	leaq	-12016(%rbp), %rdx
	movl	-12036(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12036(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	movl	-12036(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	movl	-12036(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	movl	-12020(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-12036(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	cltq
	movl	-12028(%rbp), %edx
	movl	%edx, -8016(%rbp,%rax,4)
	movl	-12036(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	cltq
	movl	-12024(%rbp), %edx
	movl	%edx, -4016(%rbp,%rax,4)
	movl	$2147483647, -12028(%rbp)
	movl	$-2147483648, -12024(%rbp)
.L3:
	addl	$1, -12036(%rbp)
.L2:
	movl	-12056(%rbp), %eax
	cmpl	%eax, -12036(%rbp)
	jl	.L4
	leaq	-12052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12036(%rbp)
	jmp	.L5
.L32:
	leaq	-12040(%rbp), %rcx
	leaq	-12044(%rbp), %rdx
	leaq	-12048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12048(%rbp), %eax
	testl	%eax, %eax
	je	.L6
	movl	$-2147483648, -12024(%rbp)
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %ecx
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jg	.L7
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L8
.L9:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L8:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L9
	jmp	.L10
.L7:
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L11
.L14:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L11:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12040(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L12
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	jmp	.L13
.L12:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	subl	$1, %eax
.L13:
	cmpl	-12032(%rbp), %eax
	jge	.L14
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L15
.L16:
	movl	-12032(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L15:
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	cmpl	%eax, -12032(%rbp)
	jl	.L16
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12044(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L17
.L18:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L17:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L18
.L10:
	movl	-12024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L6:
	movl	$2147483647, -12028(%rbp)
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %ecx
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jg	.L20
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L21
.L22:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L21:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L22
	jmp	.L23
.L20:
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L24
.L27:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L24:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12040(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L25
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	jmp	.L26
.L25:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	subl	$1, %eax
.L26:
	cmpl	-12032(%rbp), %eax
	jge	.L27
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L28
.L29:
	movl	-12032(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L28:
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	cmpl	%eax, -12032(%rbp)
	jl	.L29
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12044(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L30
.L31:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L30:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L31
.L23:
	movl	-12028(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	addl	$1, -12036(%rbp)
.L5:
	movl	-12052(%rbp), %eax
	cmpl	%eax, -12036(%rbp)
	jl	.L32
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC4:
	.string	"%d %d %d"
.LC5:
	.string	"%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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$3880, %rsp
	.cfi_def_cfa_offset 12128
	leaq	.LC2(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 12056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ebp
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebp, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L73
	sqrtsd	%xmm0, %xmm0
.L4:
	cvttsd2sil	%xmm0, %ebx
	testl	%ebp, %ebp
	jle	.L10
	leal	-1(%rbx), %eax
	leaq	48(%rsp), %r12
	movl	$-2147483648, %r15d
	xorl	%ebp, %ebp
	movl	%eax, 12(%rsp)
	movl	$2147483647, %r13d
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movl	(%r12), %eax
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
	cmpl	%eax, %r15d
	cmovl	%eax, %r15d
	movl	%ebp, %eax
	cltd
	idivl	%ebx
	cmpl	12(%rsp), %edx
	je	.L85
	addl	$1, %ebp
	addq	$4, %r12
	cmpl	%ebp, 28(%rsp)
	jg	.L11
.L10:
	leaq	32(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L7
	xorl	%ebp, %ebp
	leaq	44(%rsp), %r14
	leaq	40(%rsp), %r13
	leaq	36(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %esi
	leal	-1(%rsi), %r9d
	movl	%r9d, %eax
	cltd
	idivl	%ebx
	movl	36(%rsp), %edx
	testl	%edx, %edx
	je	.L12
	movl	40(%rsp), %r8d
	movl	%eax, %edi
	movl	%r8d, %eax
	cltd
	idivl	%ebx
	movl	%edi, %edx
	subl	%eax, %edx
	cmpl	$1, %edx
	jle	.L13
	leal	1(%rax), %r10d
	movl	%r10d, %edx
	imull	%ebx, %edx
	leal	-1(%rdx), %ecx
	cmpl	%edx, %esi
	movl	$-2147483648, %edx
	cmovge	%ecx, %r9d
	cmpl	%r9d, %r8d
	jg	.L15
	movl	%r9d, %edx
	subl	%r8d, %edx
	leal	1(%rdx), %r11d
	cmpl	$2, %edx
	jbe	.L59
	movslq	%r8d, %rdx
	movdqa	.LC0(%rip), %xmm2
	leaq	48(%rsp,%rdx,4), %rcx
	movl	%r11d, %edx
	shrl	$2, %edx
	leal	-1(%rdx), %r15d
	leaq	16(%rcx), %rdx
	salq	$4, %r15
	addq	%rdx, %r15
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L86:
	addq	$16, %rdx
.L22:
	movdqu	(%rcx), %xmm0
	movq	%rdx, %rcx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %r15
	jne	.L86
	movdqa	%xmm2, %xmm1
	movl	%r11d, %r15d
	psrldq	$8, %xmm1
	andl	$-4, %r15d
	movdqa	%xmm1, %xmm0
	leal	(%r15,%r8), %ecx
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%r15d, %r11d
	je	.L15
.L21:
	movslq	%ecx, %r11
	movl	48(%rsp,%r11,4), %r11d
	cmpl	%r11d, %edx
	cmovl	%r11d, %edx
	leal	1(%rcx), %r11d
	cmpl	%r11d, %r9d
	jl	.L15
	movslq	%r11d, %r11
	movl	48(%rsp,%r11,4), %r11d
	cmpl	%r11d, %edx
	cmovl	%r11d, %edx
	addl	$2, %ecx
	cmpl	%ecx, %r9d
	jl	.L15
	movslq	%ecx, %rcx
	movl	48(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
.L15:
	cmpl	%r10d, %edi
	jle	.L24
	movl	%edi, %ecx
	subl	%eax, %ecx
	leal	-1(%rcx), %r9d
	subl	$2, %ecx
	cmpl	$2, %ecx
	jbe	.L25
	cltq
	movd	%edx, %xmm3
	leaq	8052(%rsp,%rax,4), %rcx
	movl	%r9d, %eax
	pshufd	$0, %xmm3, %xmm2
	shrl	$2, %eax
	leaq	16(%rcx), %rdx
	subl	$1, %eax
	salq	$4, %rax
	addq	%rdx, %rax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L87:
	addq	$16, %rdx
.L26:
	movdqu	(%rcx), %xmm0
	movq	%rdx, %rcx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L87
	movdqa	%xmm2, %xmm1
	movl	%r9d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	movdqa	%xmm1, %xmm0
	addl	%eax, %r10d
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %r9d
	je	.L24
.L25:
	movslq	%r10d, %rax
	movl	8048(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	leal	1(%r10), %eax
	cmpl	%eax, %edi
	jle	.L24
	cltq
	movl	8048(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	addl	$2, %r10d
	cmpl	%r10d, %edi
	jle	.L24
	movslq	%r10d, %r10
	movl	8048(%rsp,%r10,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L24:
	movl	%edi, %eax
	imull	%ebx, %eax
	cmpl	%r8d, %eax
	cmovl	%r8d, %eax
	cmpl	%eax, %esi
	jle	.L37
	movl	%esi, %r8d
	subl	%eax, %r8d
	leal	-1(%r8), %ecx
	cmpl	$2, %ecx
	jbe	.L29
	movd	%edx, %xmm4
	movslq	%eax, %rdx
	leaq	48(%rsp,%rdx,4), %rcx
	movl	%r8d, %edx
	pshufd	$0, %xmm4, %xmm2
	shrl	$2, %edx
	leal	-1(%rdx), %edi
	leaq	16(%rcx), %rdx
	salq	$4, %rdi
	addq	%rdx, %rdi
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L88:
	addq	$16, %rdx
.L30:
	movdqu	(%rcx), %xmm0
	movq	%rdx, %rcx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rdi
	jne	.L88
	movdqa	%xmm2, %xmm1
	movl	%r8d, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	movdqa	%xmm1, %xmm0
	addl	%ecx, %eax
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%ecx, %r8d
	je	.L37
.L29:
	movslq	%eax, %rcx
	movl	48(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	leal	1(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L37
	movslq	%ecx, %rcx
	movl	48(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	addl	$2, %eax
	cmpl	%eax, %esi
	jle	.L37
	cltq
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addl	$1, %ebp
	cmpl	%ebp, 32(%rsp)
	jg	.L6
.L7:
	movq	12056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L89
	addq	$12072, %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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	40(%rsp), %edi
	movl	%eax, %ecx
	movl	%edi, %eax
	cltd
	idivl	%ebx
	movl	%ecx, %edx
	subl	%eax, %edx
	cmpl	$1, %edx
	jle	.L34
	leal	1(%rax), %r10d
	movl	%r10d, %edx
	imull	%ebx, %edx
	leal	-1(%rdx), %r8d
	cmpl	%edx, %esi
	movl	$2147483647, %edx
	cmovge	%r8d, %r9d
	cmpl	%r9d, %edi
	jg	.L36
	movl	%r9d, %edx
	subl	%edi, %edx
	leal	1(%rdx), %r11d
	cmpl	$2, %edx
	jbe	.L62
	movslq	%edi, %rdx
	movdqa	.LC1(%rip), %xmm0
	leaq	48(%rsp,%rdx,4), %r8
	movl	%r11d, %edx
	shrl	$2, %edx
	leal	-1(%rdx), %r15d
	leaq	16(%r8), %rdx
	salq	$4, %r15
	addq	%rdx, %r15
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L90:
	addq	$16, %rdx
.L43:
	movdqu	(%r8), %xmm2
	movq	%rdx, %r8
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	cmpq	%r15, %rdx
	jne	.L90
	movdqa	%xmm0, %xmm2
	movl	%r11d, %r15d
	psrldq	$8, %xmm2
	andl	$-4, %r15d
	movdqa	%xmm2, %xmm1
	leal	(%r15,%rdi), %r8d
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%r15d, %r11d
	je	.L36
.L42:
	movslq	%r8d, %r11
	movl	48(%rsp,%r11,4), %r11d
	cmpl	%r11d, %edx
	cmovg	%r11d, %edx
	leal	1(%r8), %r11d
	cmpl	%r11d, %r9d
	jl	.L36
	movslq	%r11d, %r11
	movl	48(%rsp,%r11,4), %r11d
	cmpl	%r11d, %edx
	cmovg	%r11d, %edx
	addl	$2, %r8d
	cmpl	%r8d, %r9d
	jl	.L36
	movslq	%r8d, %r8
	movl	48(%rsp,%r8,4), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
.L36:
	cmpl	%r10d, %ecx
	jle	.L45
	movl	%ecx, %r8d
	subl	%eax, %r8d
	leal	-1(%r8), %r9d
	subl	$2, %r8d
	cmpl	$2, %r8d
	jbe	.L46
	cltq
	movd	%edx, %xmm5
	leaq	4052(%rsp,%rax,4), %rdx
	movl	%r9d, %eax
	pshufd	$0, %xmm5, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %r8d
	leaq	16(%rdx), %rax
	salq	$4, %r8
	addq	%rax, %r8
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L91:
	addq	$16, %rax
.L47:
	movdqu	(%rdx), %xmm2
	movq	%rax, %rdx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %r8
	jne	.L91
	movdqa	%xmm0, %xmm2
	movl	%r9d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm1
	addl	%eax, %r10d
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %r9d
	je	.L45
.L46:
	movslq	%r10d, %rax
	movl	4048(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	leal	1(%r10), %eax
	cmpl	%eax, %ecx
	jle	.L45
	cltq
	movl	4048(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	addl	$2, %r10d
	cmpl	%r10d, %ecx
	jle	.L45
	movslq	%r10d, %r10
	movl	4048(%rsp,%r10,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L45:
	imull	%ebx, %ecx
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	cmpl	%ecx, %esi
	jle	.L37
	movl	%esi, %r8d
	subl	%ecx, %r8d
	leal	-1(%r8), %eax
	cmpl	$2, %eax
	jbe	.L50
	movslq	%ecx, %rax
	movd	%edx, %xmm6
	leaq	48(%rsp,%rax,4), %rdx
	movl	%r8d, %eax
	pshufd	$0, %xmm6, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %edi
	leaq	16(%rdx), %rax
	salq	$4, %rdi
	addq	%rax, %rdi
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L92:
	addq	$16, %rax
.L51:
	movdqu	(%rdx), %xmm2
	movq	%rax, %rdx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %rdi
	jne	.L92
	movdqa	%xmm0, %xmm2
	movl	%r8d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm1
	addl	%eax, %ecx
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %r8d
	je	.L37
.L50:
	movslq	%ecx, %rax
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	leal	1(%rcx), %eax
	cmpl	%eax, %esi
	jle	.L37
	cltq
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	addl	$2, %ecx
	cmpl	%ecx, %esi
	jle	.L37
	movslq	%ecx, %rcx
	movl	48(%rsp,%rcx,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L85:
	cltq
	addl	$1, %ebp
	addq	$4, %r12
	movl	%r13d, 4048(%rsp,%rax,4)
	movl	%r15d, 8048(%rsp,%rax,4)
	cmpl	%ebp, 28(%rsp)
	jle	.L10
	movl	$-2147483648, %r15d
	movl	$2147483647, %r13d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L34:
	cmpl	%edi, %esi
	jle	.L60
	movl	%esi, %r8d
	subl	%edi, %r8d
	leal	-1(%r8), %eax
	cmpl	$2, %eax
	jbe	.L61
	movslq	%edi, %rax
	movdqa	.LC1(%rip), %xmm0
	leaq	48(%rsp,%rax,4), %rdx
	movl	%r8d, %eax
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L93:
	addq	$16, %rax
.L39:
	movdqu	(%rdx), %xmm2
	movq	%rax, %rdx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %rcx
	jne	.L93
	movdqa	%xmm0, %xmm2
	movl	%r8d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm1
	addl	%eax, %edi
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %r8d
	je	.L37
.L38:
	movslq	%edi, %rax
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	leal	1(%rdi), %eax
	cmpl	%eax, %esi
	jle	.L37
	cltq
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	addl	$2, %edi
	cmpl	%edi, %esi
	jle	.L37
	movslq	%edi, %rdi
	movl	48(%rsp,%rdi,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%r8d, %esi
	jle	.L57
	movl	%esi, %edi
	subl	%r8d, %edi
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L58
	movslq	%r8d, %rax
	movdqa	.LC0(%rip), %xmm2
	leaq	48(%rsp,%rax,4), %rdx
	movl	%edi, %eax
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L94:
	addq	$16, %rax
.L18:
	movdqu	(%rdx), %xmm0
	movq	%rax, %rdx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rcx
	jne	.L94
	movdqa	%xmm2, %xmm1
	movl	%edi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	movdqa	%xmm1, %xmm0
	addl	%eax, %r8d
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%edi, %eax
	je	.L37
.L17:
	movslq	%r8d, %rax
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	leal	1(%r8), %eax
	cmpl	%eax, %esi
	jle	.L37
	cltq
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	addl	$2, %r8d
	cmpl	%r8d, %esi
	jle	.L37
	movslq	%r8d, %r8
	movl	48(%rsp,%r8,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	jmp	.L37
.L59:
	movl	%r8d, %ecx
	movl	$-2147483648, %edx
	jmp	.L21
.L62:
	movl	%edi, %r8d
	movl	$2147483647, %edx
	jmp	.L42
.L57:
	movl	$-2147483648, %edx
	jmp	.L37
.L60:
	movl	$2147483647, %edx
	jmp	.L37
.L58:
	movl	$-2147483648, %edx
	jmp	.L17
.L61:
	movl	$2147483647, %edx
	jmp	.L38
.L89:
	call	__stack_chk_fail@PLT
.L73:
	call	sqrt@PLT
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-2147483648
	.long	-2147483648
	.long	-2147483648
	.long	-2147483648
	.align 16
.LC1:
	.long	2147483647
	.long	2147483647
	.long	2147483647
	.long	2147483647
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC4:
	.string	"%d %d %d"
.LC5:
	.string	"%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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$3880, %rsp
	.cfi_def_cfa_offset 12128
	leaq	.LC2(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 12056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ebp
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebp, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L73
	sqrtsd	%xmm0, %xmm0
.L4:
	cvttsd2sil	%xmm0, %ebx
	testl	%ebp, %ebp
	jle	.L10
	leal	-1(%rbx), %eax
	leaq	48(%rsp), %r12
	movl	$-2147483648, %r15d
	xorl	%ebp, %ebp
	movl	%eax, 12(%rsp)
	movl	$2147483647, %r13d
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movl	(%r12), %eax
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
	cmpl	%eax, %r15d
	cmovl	%eax, %r15d
	movl	%ebp, %eax
	cltd
	idivl	%ebx
	cmpl	12(%rsp), %edx
	je	.L85
	addl	$1, %ebp
	addq	$4, %r12
	cmpl	%ebp, 28(%rsp)
	jg	.L11
.L10:
	leaq	32(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L7
	xorl	%ebp, %ebp
	leaq	44(%rsp), %r14
	leaq	40(%rsp), %r13
	leaq	36(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %esi
	leal	-1(%rsi), %r9d
	movl	%r9d, %eax
	cltd
	idivl	%ebx
	movl	36(%rsp), %edx
	testl	%edx, %edx
	je	.L12
	movl	40(%rsp), %r8d
	movl	%eax, %edi
	movl	%r8d, %eax
	cltd
	idivl	%ebx
	movl	%edi, %edx
	subl	%eax, %edx
	cmpl	$1, %edx
	jle	.L13
	leal	1(%rax), %r10d
	movl	%r10d, %edx
	imull	%ebx, %edx
	leal	-1(%rdx), %ecx
	cmpl	%edx, %esi
	movl	$-2147483648, %edx
	cmovge	%ecx, %r9d
	cmpl	%r9d, %r8d
	jg	.L15
	movl	%r9d, %edx
	subl	%r8d, %edx
	leal	1(%rdx), %r11d
	cmpl	$2, %edx
	jbe	.L59
	movslq	%r8d, %rdx
	movdqa	.LC0(%rip), %xmm2
	leaq	48(%rsp,%rdx,4), %rcx
	movl	%r11d, %edx
	shrl	$2, %edx
	leal	-1(%rdx), %r15d
	leaq	16(%rcx), %rdx
	salq	$4, %r15
	addq	%rdx, %r15
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L86:
	addq	$16, %rdx
.L22:
	movdqu	(%rcx), %xmm0
	movq	%rdx, %rcx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %r15
	jne	.L86
	movdqa	%xmm2, %xmm1
	movl	%r11d, %r15d
	psrldq	$8, %xmm1
	andl	$-4, %r15d
	movdqa	%xmm1, %xmm0
	leal	(%r15,%r8), %ecx
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%r15d, %r11d
	je	.L15
.L21:
	movslq	%ecx, %r11
	movl	48(%rsp,%r11,4), %r11d
	cmpl	%r11d, %edx
	cmovl	%r11d, %edx
	leal	1(%rcx), %r11d
	cmpl	%r11d, %r9d
	jl	.L15
	movslq	%r11d, %r11
	movl	48(%rsp,%r11,4), %r11d
	cmpl	%r11d, %edx
	cmovl	%r11d, %edx
	addl	$2, %ecx
	cmpl	%ecx, %r9d
	jl	.L15
	movslq	%ecx, %rcx
	movl	48(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
.L15:
	cmpl	%r10d, %edi
	jle	.L24
	movl	%edi, %ecx
	subl	%eax, %ecx
	leal	-1(%rcx), %r9d
	subl	$2, %ecx
	cmpl	$2, %ecx
	jbe	.L25
	cltq
	movd	%edx, %xmm3
	leaq	8052(%rsp,%rax,4), %rcx
	movl	%r9d, %eax
	pshufd	$0, %xmm3, %xmm2
	shrl	$2, %eax
	leaq	16(%rcx), %rdx
	subl	$1, %eax
	salq	$4, %rax
	addq	%rdx, %rax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L87:
	addq	$16, %rdx
.L26:
	movdqu	(%rcx), %xmm0
	movq	%rdx, %rcx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L87
	movdqa	%xmm2, %xmm1
	movl	%r9d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	movdqa	%xmm1, %xmm0
	addl	%eax, %r10d
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %r9d
	je	.L24
.L25:
	movslq	%r10d, %rax
	movl	8048(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	leal	1(%r10), %eax
	cmpl	%eax, %edi
	jle	.L24
	cltq
	movl	8048(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	addl	$2, %r10d
	cmpl	%r10d, %edi
	jle	.L24
	movslq	%r10d, %r10
	movl	8048(%rsp,%r10,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L24:
	movl	%edi, %eax
	imull	%ebx, %eax
	cmpl	%r8d, %eax
	cmovl	%r8d, %eax
	cmpl	%eax, %esi
	jle	.L37
	movl	%esi, %r8d
	subl	%eax, %r8d
	leal	-1(%r8), %ecx
	cmpl	$2, %ecx
	jbe	.L29
	movd	%edx, %xmm4
	movslq	%eax, %rdx
	leaq	48(%rsp,%rdx,4), %rcx
	movl	%r8d, %edx
	pshufd	$0, %xmm4, %xmm2
	shrl	$2, %edx
	leal	-1(%rdx), %edi
	leaq	16(%rcx), %rdx
	salq	$4, %rdi
	addq	%rdx, %rdi
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L88:
	addq	$16, %rdx
.L30:
	movdqu	(%rcx), %xmm0
	movq	%rdx, %rcx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rdi
	jne	.L88
	movdqa	%xmm2, %xmm1
	movl	%r8d, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	movdqa	%xmm1, %xmm0
	addl	%ecx, %eax
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%ecx, %r8d
	je	.L37
.L29:
	movslq	%eax, %rcx
	movl	48(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	leal	1(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L37
	movslq	%ecx, %rcx
	movl	48(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	addl	$2, %eax
	cmpl	%eax, %esi
	jle	.L37
	cltq
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addl	$1, %ebp
	cmpl	%ebp, 32(%rsp)
	jg	.L6
.L7:
	movq	12056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L89
	addq	$12072, %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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	40(%rsp), %edi
	movl	%eax, %ecx
	movl	%edi, %eax
	cltd
	idivl	%ebx
	movl	%ecx, %edx
	subl	%eax, %edx
	cmpl	$1, %edx
	jle	.L34
	leal	1(%rax), %r10d
	movl	%r10d, %edx
	imull	%ebx, %edx
	leal	-1(%rdx), %r8d
	cmpl	%edx, %esi
	movl	$2147483647, %edx
	cmovge	%r8d, %r9d
	cmpl	%r9d, %edi
	jg	.L36
	movl	%r9d, %edx
	subl	%edi, %edx
	leal	1(%rdx), %r11d
	cmpl	$2, %edx
	jbe	.L62
	movslq	%edi, %rdx
	movdqa	.LC1(%rip), %xmm0
	leaq	48(%rsp,%rdx,4), %r8
	movl	%r11d, %edx
	shrl	$2, %edx
	leal	-1(%rdx), %r15d
	leaq	16(%r8), %rdx
	salq	$4, %r15
	addq	%rdx, %r15
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L90:
	addq	$16, %rdx
.L43:
	movdqu	(%r8), %xmm2
	movq	%rdx, %r8
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	cmpq	%r15, %rdx
	jne	.L90
	movdqa	%xmm0, %xmm2
	movl	%r11d, %r15d
	psrldq	$8, %xmm2
	andl	$-4, %r15d
	movdqa	%xmm2, %xmm1
	leal	(%r15,%rdi), %r8d
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%r15d, %r11d
	je	.L36
.L42:
	movslq	%r8d, %r11
	movl	48(%rsp,%r11,4), %r11d
	cmpl	%r11d, %edx
	cmovg	%r11d, %edx
	leal	1(%r8), %r11d
	cmpl	%r11d, %r9d
	jl	.L36
	movslq	%r11d, %r11
	movl	48(%rsp,%r11,4), %r11d
	cmpl	%r11d, %edx
	cmovg	%r11d, %edx
	addl	$2, %r8d
	cmpl	%r8d, %r9d
	jl	.L36
	movslq	%r8d, %r8
	movl	48(%rsp,%r8,4), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
.L36:
	cmpl	%r10d, %ecx
	jle	.L45
	movl	%ecx, %r8d
	subl	%eax, %r8d
	leal	-1(%r8), %r9d
	subl	$2, %r8d
	cmpl	$2, %r8d
	jbe	.L46
	cltq
	movd	%edx, %xmm5
	leaq	4052(%rsp,%rax,4), %rdx
	movl	%r9d, %eax
	pshufd	$0, %xmm5, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %r8d
	leaq	16(%rdx), %rax
	salq	$4, %r8
	addq	%rax, %r8
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L91:
	addq	$16, %rax
.L47:
	movdqu	(%rdx), %xmm2
	movq	%rax, %rdx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %r8
	jne	.L91
	movdqa	%xmm0, %xmm2
	movl	%r9d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm1
	addl	%eax, %r10d
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %r9d
	je	.L45
.L46:
	movslq	%r10d, %rax
	movl	4048(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	leal	1(%r10), %eax
	cmpl	%eax, %ecx
	jle	.L45
	cltq
	movl	4048(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	addl	$2, %r10d
	cmpl	%r10d, %ecx
	jle	.L45
	movslq	%r10d, %r10
	movl	4048(%rsp,%r10,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L45:
	imull	%ebx, %ecx
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	cmpl	%ecx, %esi
	jle	.L37
	movl	%esi, %r8d
	subl	%ecx, %r8d
	leal	-1(%r8), %eax
	cmpl	$2, %eax
	jbe	.L50
	movslq	%ecx, %rax
	movd	%edx, %xmm6
	leaq	48(%rsp,%rax,4), %rdx
	movl	%r8d, %eax
	pshufd	$0, %xmm6, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %edi
	leaq	16(%rdx), %rax
	salq	$4, %rdi
	addq	%rax, %rdi
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L92:
	addq	$16, %rax
.L51:
	movdqu	(%rdx), %xmm2
	movq	%rax, %rdx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %rdi
	jne	.L92
	movdqa	%xmm0, %xmm2
	movl	%r8d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm1
	addl	%eax, %ecx
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %r8d
	je	.L37
.L50:
	movslq	%ecx, %rax
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	leal	1(%rcx), %eax
	cmpl	%eax, %esi
	jle	.L37
	cltq
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	addl	$2, %ecx
	cmpl	%ecx, %esi
	jle	.L37
	movslq	%ecx, %rcx
	movl	48(%rsp,%rcx,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L85:
	cltq
	addl	$1, %ebp
	addq	$4, %r12
	movl	%r13d, 4048(%rsp,%rax,4)
	movl	%r15d, 8048(%rsp,%rax,4)
	cmpl	%ebp, 28(%rsp)
	jle	.L10
	movl	$-2147483648, %r15d
	movl	$2147483647, %r13d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L34:
	cmpl	%edi, %esi
	jle	.L60
	movl	%esi, %r8d
	subl	%edi, %r8d
	leal	-1(%r8), %eax
	cmpl	$2, %eax
	jbe	.L61
	movslq	%edi, %rax
	movdqa	.LC1(%rip), %xmm0
	leaq	48(%rsp,%rax,4), %rdx
	movl	%r8d, %eax
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L93:
	addq	$16, %rax
.L39:
	movdqu	(%rdx), %xmm2
	movq	%rax, %rdx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %rcx
	jne	.L93
	movdqa	%xmm0, %xmm2
	movl	%r8d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm1
	addl	%eax, %edi
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%eax, %r8d
	je	.L37
.L38:
	movslq	%edi, %rax
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	leal	1(%rdi), %eax
	cmpl	%eax, %esi
	jle	.L37
	cltq
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	addl	$2, %edi
	cmpl	%edi, %esi
	jle	.L37
	movslq	%edi, %rdi
	movl	48(%rsp,%rdi,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%r8d, %esi
	jle	.L57
	movl	%esi, %edi
	subl	%r8d, %edi
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L58
	movslq	%r8d, %rax
	movdqa	.LC0(%rip), %xmm2
	leaq	48(%rsp,%rax,4), %rdx
	movl	%edi, %eax
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L94:
	addq	$16, %rax
.L18:
	movdqu	(%rdx), %xmm0
	movq	%rax, %rdx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rcx
	jne	.L94
	movdqa	%xmm2, %xmm1
	movl	%edi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	movdqa	%xmm1, %xmm0
	addl	%eax, %r8d
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%edi, %eax
	je	.L37
.L17:
	movslq	%r8d, %rax
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	leal	1(%r8), %eax
	cmpl	%eax, %esi
	jle	.L37
	cltq
	movl	48(%rsp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	addl	$2, %r8d
	cmpl	%r8d, %esi
	jle	.L37
	movslq	%r8d, %r8
	movl	48(%rsp,%r8,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	jmp	.L37
.L59:
	movl	%r8d, %ecx
	movl	$-2147483648, %edx
	jmp	.L21
.L62:
	movl	%edi, %r8d
	movl	$2147483647, %edx
	jmp	.L42
.L57:
	movl	$-2147483648, %edx
	jmp	.L37
.L60:
	movl	$2147483647, %edx
	jmp	.L37
.L58:
	movl	$-2147483648, %edx
	jmp	.L17
.L61:
	movl	$2147483647, %edx
	jmp	.L38
.L89:
	call	__stack_chk_fail@PLT
.L73:
	call	sqrt@PLT
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-2147483648
	.long	-2147483648
	.long	-2147483648
	.long	-2147483648
	.align 16
.LC1:
	.long	2147483647
	.long	2147483647
	.long	2147483647
	.long	2147483647
	.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:

#include<stdio.h>
#include<math.h>
#include<limits.h>
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define N 1000

int main(){
	int n,i,q,com,x,y,j;
	int a[N];
	int mini[N];
	int maxi[N];
	int b;
	int min=INT_MAX;
	int max=INT_MIN;
	
	scanf("%d",&n);
	b=sqrt(n);
	
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		min=MIN(min,a[i]);
		max=MAX(max,a[i]);
		
		if(i%b==b-1){
			mini[i/b]=min;
			maxi[i/b]=max;
			min=INT_MAX;
			max=INT_MIN;
		}
	}
	
	scanf("%d",&q);
	for(i=0;i<q;i++){
		scanf("%d %d %d",&com,&x,&y);
		
		if(com){
			max=INT_MIN;
			if((y-1)/b-x/b <=1){
				for(j=x;j<=y-1;j++)max=MAX(max,a[j]);
			}
			else {
				for(j=x;j<=MIN(y-1,(x/b+1)*b-1);j++)max=MAX(max,a[j]);
				
				for(j=x/b+1;j<(y-1)/b;j++)max=MAX(max,maxi[j]);
			
				for(j=MAX(x,(y-1)/b*b);j<=y-1;j++)max=MAX(max,a[j]);
			}
			
			printf("%d\n",max);
		}
		
		else {
			min=INT_MAX;
			if((y-1)/b-x/b <=1){
				for(j=x;j<=y-1;j++)min=MIN(min,a[j]);
			}
			else {
				for(j=x;j<=MIN(y-1,(x/b+1)*b-1);j++)min=MIN(min,a[j]);
				
				for(j=x/b+1;j<(y-1)/b;j++)min=MIN(min,mini[j]);
			
				for(j=MAX(x,(y-1)/b*b);j<=y-1;j++)min=MIN(min,a[j]);
			}
			
			printf("%d\n",min);
		}
	}
	
	return 0;
}

7
8 3 0 1 9 1 4
3
0 0 3
0 1 5
1 0 7
 7
8 3 0 0 9 1 4
3
0 0 3
1 1 5
1 0 7
 7
8 3 0 0 9 1 4
6
0 0 3
1 1 5
1 0 7
 7
8 3 0 1 14 1 4
3
0 1 3
0 1 5
1 0 7
 7
2 2 -1 2 9 1 0
3
0 0 3
0 1 5
1 0 7
 7
8 3 7 1 9 1 4
3
1 0 3
0 1 5
1 0 7
 7
8 3 0 -1 9 1 4
3
0 0 3
0 1 5
1 0 7
 7
8 3 0 1 6 1 4
3
0 0 3
1 1 5
1 0 7
 7
8 3 0 1 9 1 4
5
0 1 3
1 1 5
1 0 7
 7
2 2 0 1 9 1 0
3
1 0 4
0 1 5
1 0 7

0
0
9
 0
9
9
 0
9
9
9
9
9
 0
0
14
 -1
-1
9
 8
1
9
 0
-1
9
 0
6
8
 0
9
9
9
9
 2
0
9

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

```c
#include<stdio.h>
#include<math.h>
#include<limits.h>
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define N 1000

int main(){
	int n,i,q,com,x,y,j;
	int a[N];
	int mini[N];
	int maxi[N];
	int b;
	int min=INT_MAX;
	int max=INT_MIN;
	
	scanf("%d",&n);
	b=sqrt(n);
	
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		min=MIN(min,a[i]);
		max=MAX(max,a[i]);
		
		if(i%b==b-1){
			mini[i/b]=min;
			maxi[i/b]=max;
			min=INT_MAX;
			max=INT_MIN;
		}
	}
	
	scanf("%d",&q);
	for(i=0;i<q;i++){
		scanf("%d %d %d",&com,&x,&y);
		
		if(com){
			max=INT_MIN;
			if((y-1)/b-x/b <=1){
				for(j=x;j<=y-1;j++)max=MAX(max,a[j]);
			}
			else {
				for(j=x;j<=MIN(y-1,(x/b+1)*b-1);j++)max=MAX(max,a[j]);
				
				for(j=x/b+1;j<(y-1)/b;j++)max=MAX(max,maxi[j]);
			
				for(j=MAX(x,(y-1)/b*b);j<=y-1;j++)max=MAX(max,a[j]);
			}
			
			printf("%d\n",max);
		}
		
		else {
			min=INT_MAX;
			if((y-1)/b-x/b <=1){
				for(j=x;j<=y-1;j++)min=MIN(min,a[j]);
			}
			else {
				for(j=x;j<=MIN(y-1,(x/b+1)*b-1);j++)min=MIN(min,a[j]);
				
				for(j=x/b+1;j<(y-1)/b;j++)min=MIN(min,mini[j]);
			
				for(j=MAX(x,(y-1)/b*b);j<=y-1;j++)min=MIN(min,a[j]);
			}
			
			printf("%d\n",min);
		}
	}
	
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3872, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2147483647, -12028(%rbp)
	movl	$-2147483648, -12024(%rbp)
	leaq	-12056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12056(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -12020(%rbp)
	movl	$0, -12036(%rbp)
	jmp	.L2
.L4:
	leaq	-12016(%rbp), %rdx
	movl	-12036(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12036(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	movl	-12036(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	movl	-12036(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	movl	-12020(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-12036(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	cltq
	movl	-12028(%rbp), %edx
	movl	%edx, -8016(%rbp,%rax,4)
	movl	-12036(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	cltq
	movl	-12024(%rbp), %edx
	movl	%edx, -4016(%rbp,%rax,4)
	movl	$2147483647, -12028(%rbp)
	movl	$-2147483648, -12024(%rbp)
.L3:
	addl	$1, -12036(%rbp)
.L2:
	movl	-12056(%rbp), %eax
	cmpl	%eax, -12036(%rbp)
	jl	.L4
	leaq	-12052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12036(%rbp)
	jmp	.L5
.L32:
	leaq	-12040(%rbp), %rcx
	leaq	-12044(%rbp), %rdx
	leaq	-12048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12048(%rbp), %eax
	testl	%eax, %eax
	je	.L6
	movl	$-2147483648, -12024(%rbp)
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %ecx
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jg	.L7
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L8
.L9:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L8:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L9
	jmp	.L10
.L7:
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L11
.L14:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L11:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12040(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L12
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	jmp	.L13
.L12:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	subl	$1, %eax
.L13:
	cmpl	-12032(%rbp), %eax
	jge	.L14
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L15
.L16:
	movl	-12032(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L15:
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	cmpl	%eax, -12032(%rbp)
	jl	.L16
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12044(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L17
.L18:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L17:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L18
.L10:
	movl	-12024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L6:
	movl	$2147483647, -12028(%rbp)
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %ecx
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jg	.L20
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L21
.L22:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L21:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L22
	jmp	.L23
.L20:
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L24
.L27:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L24:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12040(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L25
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	jmp	.L26
.L25:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	subl	$1, %eax
.L26:
	cmpl	-12032(%rbp), %eax
	jge	.L27
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L28
.L29:
	movl	-12032(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L28:
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	cmpl	%eax, -12032(%rbp)
	jl	.L29
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12044(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L30
.L31:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L30:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L31
.L23:
	movl	-12028(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	addl	$1, -12036(%rbp)
.L5:
	movl	-12052(%rbp), %eax
	cmpl	%eax, -12036(%rbp)
	jl	.L32
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3872, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2147483647, -12028(%rbp)
	movl	$-2147483648, -12024(%rbp)
	leaq	-12056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12056(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -12020(%rbp)
	movl	$0, -12036(%rbp)
	jmp	.L2
.L4:
	leaq	-12016(%rbp), %rdx
	movl	-12036(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12036(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	movl	-12036(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	movl	-12036(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	movl	-12020(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-12036(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	cltq
	movl	-12028(%rbp), %edx
	movl	%edx, -8016(%rbp,%rax,4)
	movl	-12036(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	cltq
	movl	-12024(%rbp), %edx
	movl	%edx, -4016(%rbp,%rax,4)
	movl	$2147483647, -12028(%rbp)
	movl	$-2147483648, -12024(%rbp)
.L3:
	addl	$1, -12036(%rbp)
.L2:
	movl	-12056(%rbp), %eax
	cmpl	%eax, -12036(%rbp)
	jl	.L4
	leaq	-12052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12036(%rbp)
	jmp	.L5
.L32:
	leaq	-12040(%rbp), %rcx
	leaq	-12044(%rbp), %rdx
	leaq	-12048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12048(%rbp), %eax
	testl	%eax, %eax
	je	.L6
	movl	$-2147483648, -12024(%rbp)
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %ecx
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jg	.L7
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L8
.L9:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L8:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L9
	jmp	.L10
.L7:
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L11
.L14:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L11:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12040(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L12
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	jmp	.L13
.L12:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	subl	$1, %eax
.L13:
	cmpl	-12032(%rbp), %eax
	jge	.L14
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L15
.L16:
	movl	-12032(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L15:
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	cmpl	%eax, -12032(%rbp)
	jl	.L16
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12044(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L17
.L18:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12024(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12024(%rbp)
	addl	$1, -12032(%rbp)
.L17:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L18
.L10:
	movl	-12024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L6:
	movl	$2147483647, -12028(%rbp)
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %ecx
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jg	.L20
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L21
.L22:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L21:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L22
	jmp	.L23
.L20:
	movl	-12044(%rbp), %eax
	movl	%eax, -12032(%rbp)
	jmp	.L24
.L27:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L24:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12040(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L25
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	jmp	.L26
.L25:
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	imull	-12020(%rbp), %eax
	subl	$1, %eax
.L26:
	cmpl	-12032(%rbp), %eax
	jge	.L27
	movl	-12044(%rbp), %eax
	cltd
	idivl	-12020(%rbp)
	addl	$1, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L28
.L29:
	movl	-12032(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L28:
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	cmpl	%eax, -12032(%rbp)
	jl	.L29
	movl	-12040(%rbp), %eax
	subl	$1, %eax
	cltd
	idivl	-12020(%rbp)
	imull	-12020(%rbp), %eax
	movl	%eax, %edx
	movl	-12044(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -12032(%rbp)
	jmp	.L30
.L31:
	movl	-12032(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %eax
	movl	-12028(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12028(%rbp)
	addl	$1, -12032(%rbp)
.L30:
	movl	-12040(%rbp), %eax
	cmpl	%eax, -12032(%rbp)
	jl	.L31
.L23:
	movl	-12028(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	addl	$1, -12036(%rbp)
.L5:
	movl	-12052(%rbp), %eax
	cmpl	%eax, -12036(%rbp)
	jl	.L32
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
