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 <stdlib.h>
#include <limits.h>

int n, q, i; 
int* D;

void initValue(void);
int min(int a, int b);
void initRMQ( int n_);
void update(int k, int a);
int findMin(int a, int b);
int query(int a , int b, int k, int l, int r);


int main(int argc, char* argv[]){

    initValue();
	
	initRMQ(n);


	int a, b;
	int com, ans;
	
    while(q > 0){
		
        scanf("%d %d %d",&com, &a, &b);
		
        if(com){
			ans = findMin(a,b);
			printf("%d\n",ans);
		}else{
			update(a,b);
		}	
		q--;
	}

	return 0;
}

int min(int a, int b){
	if(a > b){
	return b;
	}else{
	return a;
	}
}

void initValue(void){

	scanf("%d %d", &n, &q);
	return;
}

void initRMQ(int n_){
	
	n = 1;
	while(n < n_){
		n *= 2;
	}
	
	D = malloc(sizeof(int)* (2 * n - 1));
	
    if(D == NULL){
		printf("Init Array Failed, no memory or size is wrong\n");
		return;
	}

	for(i = 0; i< 2*n-1 ; i++){
		D[i] = INT_MAX;
	}
	return;
}


void update(int k , int a){
	k += n - 1;
	D[k] = a;
	
    while (k > 0){
		k = (k-1)/2;
		D[k] = min(D[k*2+1], D[k*2+2]);
	}
}

int findMin(int a, int b){
	
	return query( a, b+1, 0, 0, n);
}

int query(int a, int b, int k , int l , int r){
	
	if(r <= a || b <= l){
		return INT_MAX;
	}
	if(a <= l && r <= b){
		return D[k];
	}
	
	int vl = query(a, b, k * 2 + 1, l , (l + r) / 2);
	
	int vr = query(a, b, k * 2 + 2, (l + r)/2, r);
	return min(vl, vr);
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	q
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	D
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	call	initValue
	movl	n(%rip), %eax
	movl	%eax, %edi
	call	initRMQ
	jmp	.L2
.L5:
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	je	.L3
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	findMin
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L4
.L3:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	update
.L4:
	movl	q(%rip), %eax
	subl	$1, %eax
	movl	%eax, q(%rip)
.L2:
	movl	q(%rip), %eax
	testl	%eax, %eax
	jg	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	min
	.type	min, @function
min:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L9
	movl	-8(%rbp), %eax
	jmp	.L10
.L9:
	movl	-4(%rbp), %eax
.L10:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
.LC2:
	.string	"%d %d"
	.text
	.globl	initValue
	.type	initValue, @function
initValue:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	q(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	initValue, .-initValue
	.section	.rodata
	.align 8
.LC3:
	.string	"Init Array Failed, no memory or size is wrong"
	.text
	.globl	initRMQ
	.type	initRMQ, @function
initRMQ:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	$1, n(%rip)
	jmp	.L14
.L15:
	movl	n(%rip), %eax
	addl	%eax, %eax
	movl	%eax, n(%rip)
.L14:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jg	.L15
	movl	n(%rip), %eax
	addl	%eax, %eax
	subl	$1, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, D(%rip)
	movq	D(%rip), %rax
	testq	%rax, %rax
	jne	.L16
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L16:
	movl	$0, i(%rip)
	jmp	.L18
.L19:
	movq	D(%rip), %rdx
	movl	i(%rip), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$2147483647, (%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L18:
	movl	n(%rip), %eax
	addl	%eax, %eax
	leal	-1(%rax), %edx
	movl	i(%rip), %eax
	cmpl	%eax, %edx
	jg	.L19
	nop
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	initRMQ, .-initRMQ
	.globl	update
	.type	update, @function
update:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$8, %rsp
	.cfi_offset 3, -24
	movl	%edi, -12(%rbp)
	movl	%esi, -16(%rbp)
	movl	n(%rip), %eax
	subl	$1, %eax
	addl	%eax, -12(%rbp)
	movq	D(%rip), %rdx
	movl	-12(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rdx)
	jmp	.L21
.L22:
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12(%rbp)
	movq	D(%rip), %rdx
	movl	-12(%rbp), %eax
	addl	%eax, %eax
	cltq
	addq	$2, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	D(%rip), %rcx
	movl	-12(%rbp), %eax
	addl	%eax, %eax
	cltq
	addq	$1, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	movq	D(%rip), %rsi
	movl	-12(%rbp), %ecx
	movslq	%ecx, %rcx
	salq	$2, %rcx
	leaq	(%rsi,%rcx), %rbx
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, (%rbx)
.L21:
	cmpl	$0, -12(%rbp)
	jg	.L22
	nop
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	update, .-update
	.globl	findMin
	.type	findMin, @function
findMin:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	n(%rip), %edx
	movl	-8(%rbp), %eax
	leal	1(%rax), %esi
	movl	-4(%rbp), %eax
	movl	%edx, %r8d
	movl	$0, %ecx
	movl	$0, %edx
	movl	%eax, %edi
	call	query
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	findMin, .-findMin
	.globl	query
	.type	query, @function
query:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -36(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L26
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jg	.L27
.L26:
	movl	$2147483647, %eax
	jmp	.L28
.L27:
	movl	-20(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jg	.L29
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jg	.L29
	movq	D(%rip), %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	jmp	.L28
.L29:
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edi
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	query
	movl	%eax, -8(%rbp)
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edi
	movl	-28(%rbp), %eax
	addl	$1, %eax
	leal	(%rax,%rax), %edx
	movl	-36(%rbp), %ecx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edi, %ecx
	movl	%eax, %edi
	call	query
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	query, .-query
	.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
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB40:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE40:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	initValue
	.type	initValue, @function
initValue:
.LFB41:
	.cfi_startproc
	endbr64
	leaq	q(%rip), %rdx
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	jmp	__isoc99_scanf@PLT
	.cfi_endproc
.LFE41:
	.size	initValue, .-initValue
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Init Array Failed, no memory or size is wrong"
	.text
	.p2align 4
	.globl	initRMQ
	.type	initRMQ, @function
initRMQ:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$1, n(%rip)
	cmpl	$1, %edi
	jle	.L5
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%eax, %edx
	addl	%eax, %eax
	cmpl	%edi, %eax
	jl	.L6
	leal	-1(,%rdx,4), %ebx
	movl	%eax, n(%rip)
	movslq	%ebx, %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movq	%rax, D(%rip)
	testq	%rax, %rax
	je	.L11
	testl	%ebx, %ebx
	movl	$1, %esi
	cmovg	%ebx, %esi
	cmpl	$3, %ebx
	je	.L8
	movl	%esi, %ecx
	movdqa	.LC2(%rip), %xmm0
	movq	%rax, %rdx
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	16(%rax,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movups	%xmm0, (%rdx)
	addq	$16, %rdx
	cmpq	%rcx, %rdx
	jne	.L9
	movl	%esi, %edx
	andl	$-4, %edx
	andl	$3, %esi
	je	.L10
	movslq	%edx, %rcx
	addl	$1, %edx
	movl	$2147483647, (%rax,%rcx,4)
	leaq	0(,%rcx,4), %rsi
	cmpl	%edx, %ebx
	jle	.L10
.L12:
	addl	$1, %edx
	movl	$2147483647, 4(%rax,%rsi)
	cmpl	%ebx, %edx
	jge	.L10
	movl	$2147483647, 8(%rax,%rsi)
.L10:
	movl	%ebx, i(%rip)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	movl	$4, %edi
	call	malloc@PLT
	movq	%rax, D(%rip)
	testq	%rax, %rax
	je	.L11
	movl	$1, %ebx
	movl	$2147483647, (%rax)
	movl	%ebx, i(%rip)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	movl	$2147483647, (%rax)
	xorl	%esi, %esi
	movl	$1, %edx
	jmp	.L12
.L11:
	leaq	.LC1(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	puts@PLT
	.cfi_endproc
.LFE42:
	.size	initRMQ, .-initRMQ
	.p2align 4
	.globl	update
	.type	update, @function
update:
.LFB43:
	.cfi_startproc
	endbr64
	movl	n(%rip), %eax
	movl	%esi, %r8d
	movq	D(%rip), %rsi
	leal	-1(%rax,%rdi), %ecx
	movslq	%ecx, %rax
	movl	%r8d, (%rsi,%rax,4)
	testl	%ecx, %ecx
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L22:
	leal	-1(%rcx), %eax
	movl	%eax, %ecx
	andl	$-2, %eax
	cltq
	sarl	%ecx
	movl	8(%rsi,%rax,4), %edx
	movl	4(%rsi,%rax,4), %eax
	movslq	%ecx, %rdi
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	%edx, (%rsi,%rdi,4)
	testl	%ecx, %ecx
	jne	.L22
.L20:
	ret
	.cfi_endproc
.LFE43:
	.size	update, .-update
	.p2align 4
	.globl	query
	.type	query, @function
query:
.LFB45:
	.cfi_startproc
	endbr64
	cmpl	%edi, %r8d
	jle	.L39
	cmpl	%ecx, %esi
	jle	.L39
	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
	movl	%r8d, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edx, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	cmpl	%ecx, %edi
	setle	%al
	cmpl	%esi, %r8d
	setle	%r14b
	testb	%al, %al
	je	.L26
	testb	%r14b, %r14b
	je	.L26
	movq	D(%rip), %rax
	movl	(%rax,%rbx,4), %r11d
.L24:
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r11d, %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
.L26:
	.cfi_restore_state
	leal	0(%rbp,%rcx), %edx
	leal	(%rbx,%rbx), %r13d
	addl	$1, %ebx
	movl	%edx, %r12d
	leal	2(%r13), %r10d
	shrl	$31, %r12d
	addl	%edx, %r12d
	leal	1(%r13), %edx
	sarl	%r12d
	cmpl	%r12d, %edi
	jge	.L40
	cmpl	%r12d, %esi
	movl	%eax, %r8d
	setge	%r9b
	andb	%r9b, %r8b
	je	.L28
	movq	D(%rip), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %r11d
	cmpl	%r12d, %esi
	je	.L24
.L30:
	leal	0(%rbp,%r12), %eax
	leal	3(%r13), %r10d
	movl	%eax, %r15d
	leal	1(,%rbx,4), %ebx
	leal	(%r10,%r10), %r9d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	cmpl	%r15d, %edi
	jge	.L42
	cmpl	%r15d, %esi
	jl	.L36
	testb	%r8b, %r8b
	je	.L36
	movq	D(%rip), %rax
	movslq	%ebx, %rbx
	movl	(%rax,%rbx,4), %ebx
	cmpl	%r15d, %esi
	je	.L37
.L38:
	leal	0(%rbp,%r15), %eax
	leal	1(,%r10,4), %edx
	movl	%r15d, %ecx
	movl	%r11d, 16(%rsp)
	movl	%eax, %r12d
	movl	%r9d, 12(%rsp)
	shrl	$31, %r12d
	movl	%esi, 8(%rsp)
	addl	%eax, %r12d
	movl	%edi, 4(%rsp)
	sarl	%r12d
	movl	%r12d, %r8d
	call	query
	movl	12(%rsp), %r9d
	movl	%ebp, %r8d
	movl	%r12d, %ecx
	movl	8(%rsp), %esi
	movl	4(%rsp), %edi
	movl	%eax, %r13d
	leal	2(%r9,%r9), %edx
	call	query
	cmpl	%r13d, %ebx
	movl	16(%rsp), %r11d
	cmovle	%ebx, %r13d
	cmpl	%eax, %r13d
	cmovle	%r13d, %eax
	movl	%eax, %ebx
.L37:
	cmpl	%ebx, %r11d
	cmovg	%ebx, %r11d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	movl	$2147483647, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_def_cfa_offset 96
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	leal	(%rcx,%r12), %r8d
	leal	0(,%rbx,4), %r11d
	movl	%r8d, %r15d
	movl	%r11d, 4(%rsp)
	leal	1(%rdx,%rdx), %edx
	shrl	$31, %r15d
	addl	%r8d, %r15d
	sarl	%r15d
	cmpl	%r15d, %edi
	jge	.L41
	cmpl	%r15d, %esi
	jl	.L32
	testb	%al, %al
	je	.L32
	movq	D(%rip), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %r11d
	cmpl	%r15d, %esi
	je	.L27
.L34:
	leal	(%r12,%r15), %eax
	movl	%r15d, %ecx
	movl	%r11d, 24(%rsp)
	leal	1(,%rbx,8), %edx
	movl	%eax, %r9d
	movl	%r10d, 20(%rsp)
	shrl	$31, %r9d
	movl	%esi, 8(%rsp)
	addl	%eax, %r9d
	movl	%edi, 12(%rsp)
	sarl	%r9d
	movl	%r9d, %r8d
	movl	%r9d, 16(%rsp)
	call	query
	movl	12(%rsp), %edi
	movl	8(%rsp), %esi
	movl	%r12d, %r8d
	movl	%eax, %r15d
	movl	4(%rsp), %eax
	movl	16(%rsp), %ecx
	movl	%edi, 4(%rsp)
	leal	2(%rax,%rax), %edx
	call	query
	movl	24(%rsp), %r11d
	movl	4(%rsp), %edi
	movl	8(%rsp), %esi
	movl	20(%rsp), %r10d
	cmpl	%r11d, %r15d
	cmovg	%r11d, %r15d
	cmpl	%eax, %r15d
	cmovle	%r15d, %eax
	movl	%eax, %r11d
.L27:
	cmpl	%r12d, %esi
	jle	.L24
	cmpl	%r12d, %edi
	setle	%al
	movl	%eax, %r8d
	testb	%r14b, %r14b
	je	.L30
	testb	%al, %al
	je	.L30
	movq	D(%rip), %rax
	movslq	%r10d, %r10
	movl	(%rax,%r10,4), %eax
	cmpl	%eax, %r11d
	cmovg	%eax, %r11d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$2147483647, %r11d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L36:
	leal	(%r12,%r15), %eax
	addl	%ebx, %ebx
	movl	%r12d, %ecx
	movl	%r11d, 20(%rsp)
	movl	%eax, %r13d
	leal	1(%rbx), %edx
	movl	%r9d, 16(%rsp)
	shrl	$31, %r13d
	movl	%r10d, 12(%rsp)
	addl	%eax, %r13d
	movl	%esi, 8(%rsp)
	sarl	%r13d
	movl	%edi, 4(%rsp)
	movl	%r13d, %r8d
	call	query
	movl	8(%rsp), %esi
	movl	4(%rsp), %edi
	leal	2(%rbx), %edx
	movl	%r15d, %r8d
	movl	%r13d, %ecx
	movl	%eax, %r12d
	call	query
	movl	4(%rsp), %edi
	movl	8(%rsp), %esi
	cmpl	%eax, %r12d
	movl	12(%rsp), %r10d
	movl	16(%rsp), %r9d
	cmovle	%r12d, %eax
	movl	20(%rsp), %r11d
	movl	%eax, %ebx
.L35:
	cmpl	%r15d, %esi
	jle	.L37
	cmpl	%r15d, %edi
	jg	.L38
	testb	%r14b, %r14b
	je	.L38
	movq	D(%rip), %rax
	movslq	%r9d, %r9
	movl	(%rax,%r9,4), %eax
	cmpl	%eax, %ebx
	cmovg	%eax, %ebx
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L32:
	leal	(%rcx,%r15), %eax
	leal	1(%rdx,%rdx), %edx
	movl	%r10d, 28(%rsp)
	movl	%eax, %r11d
	movb	%r9b, 24(%rsp)
	shrl	$31, %r11d
	movl	%esi, 16(%rsp)
	addl	%eax, %r11d
	movl	%edi, 12(%rsp)
	sarl	%r11d
	movl	%r11d, %r8d
	movl	%r11d, 20(%rsp)
	call	query
	movl	20(%rsp), %ecx
	movl	16(%rsp), %esi
	movl	%r15d, %r8d
	movl	12(%rsp), %edi
	leal	0(,%rbx,8), %edx
	movl	%eax, 8(%rsp)
	call	query
	movl	8(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	16(%rsp), %esi
	movzbl	24(%rsp), %r9d
	cmpl	%eax, %ecx
	movl	%ecx, %r11d
	movl	28(%rsp), %r10d
	cmovg	%eax, %r11d
.L31:
	cmpl	%r15d, %esi
	jle	.L27
	cmpl	%r15d, %edi
	jg	.L34
	testb	%r9b, %r9b
	je	.L34
	movslq	4(%rsp), %rdx
	movq	D(%rip), %rax
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %r11d
	cmovg	%eax, %r11d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L42:
	movl	$2147483647, %ebx
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L41:
	movl	$2147483647, %r11d
	jmp	.L31
	.cfi_endproc
.LFE45:
	.size	query, .-query
	.p2align 4
	.globl	findMin
	.type	findMin, @function
findMin:
.LFB44:
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	n(%rip), %ebx
	cmpl	%edi, %ebx
	jle	.L98
	leal	1(%rsi), %ebp
	testl	%ebp, %ebp
	jle	.L98
	testl	%edi, %edi
	movl	%edi, %r14d
	setle	%al
	cmpl	%ebp, %ebx
	setle	%r15b
	testb	%al, %al
	je	.L85
	testb	%r15b, %r15b
	je	.L85
	movq	D(%rip), %rax
	movl	(%rax), %r13d
.L83:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r13d, %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
.L85:
	.cfi_restore_state
	movl	%ebx, %r12d
	shrl	$31, %r12d
	addl	%ebx, %r12d
	sarl	%r12d
	cmpl	%r12d, %r14d
	jge	.L99
	cmpl	%r12d, %ebp
	movl	%eax, %edx
	setge	%r10b
	andb	%r10b, %dl
	je	.L87
	movq	D(%rip), %rax
	movl	4(%rax), %r13d
	cmpl	%r12d, %ebp
	je	.L83
.L89:
	leal	(%rbx,%r12), %eax
	movl	%eax, %r9d
	shrl	$31, %r9d
	addl	%eax, %r9d
	sarl	%r9d
	cmpl	%r9d, %r14d
	jge	.L101
	cmpl	%r9d, %ebp
	jl	.L95
	testb	%dl, %dl
	je	.L95
	movq	D(%rip), %rax
	movl	20(%rax), %r12d
	cmpl	%r9d, %ebp
	je	.L96
.L97:
	leal	(%rbx,%r9), %eax
	movl	%r9d, %ecx
	movl	$13, %edx
	movl	%ebp, %esi
	movl	%eax, %r10d
	movl	%r14d, %edi
	shrl	$31, %r10d
	addl	%eax, %r10d
	sarl	%r10d
	movl	%r10d, %r8d
	movl	%r10d, 4(%rsp)
	call	query
	movl	4(%rsp), %ecx
	movl	%ebx, %r8d
	movl	%ebp, %esi
	movl	%eax, %r15d
	movl	$14, %edx
	movl	%r14d, %edi
	call	query
	cmpl	%r15d, %r12d
	cmovle	%r12d, %r15d
	cmpl	%eax, %r15d
	cmovle	%r15d, %eax
	movl	%eax, %r12d
.L96:
	cmpl	%r12d, %r13d
	cmovg	%r12d, %r13d
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L98:
	movl	$2147483647, %r13d
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L87:
	testl	%ebx, %ebx
	leal	3(%rbx), %r9d
	cmovns	%ebx, %r9d
	sarl	$2, %r9d
	cmpl	%r9d, %r14d
	jge	.L100
	cmpl	%r9d, %ebp
	jl	.L91
	testb	%al, %al
	je	.L91
	movq	D(%rip), %rax
	movl	12(%rax), %r13d
	cmpl	%r9d, %ebp
	je	.L86
.L93:
	leal	(%r12,%r9), %eax
	movl	%r9d, %ecx
	movl	$9, %edx
	movl	%ebp, %esi
	movl	%eax, %r10d
	movl	%r14d, %edi
	shrl	$31, %r10d
	addl	%eax, %r10d
	sarl	%r10d
	movl	%r10d, %r8d
	movl	%r10d, 8(%rsp)
	call	query
	movl	8(%rsp), %ecx
	movl	%r12d, %r8d
	movl	%ebp, %esi
	movl	$10, %edx
	movl	%r14d, %edi
	movl	%eax, 4(%rsp)
	call	query
	movl	4(%rsp), %r9d
	cmpl	%r9d, %r13d
	cmovle	%r13d, %r9d
	cmpl	%eax, %r9d
	cmovle	%r9d, %eax
	movl	%eax, %r13d
.L86:
	cmpl	%r12d, %ebp
	jle	.L83
	cmpl	%r12d, %r14d
	setle	%al
	movl	%eax, %edx
	testb	%r15b, %r15b
	je	.L89
	testb	%al, %al
	je	.L89
	movq	D(%rip), %rax
	movl	8(%rax), %eax
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L99:
	movl	$2147483647, %r13d
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L95:
	leal	(%r12,%r9), %eax
	movl	%r12d, %ecx
	movl	$11, %edx
	movl	%ebp, %esi
	movl	%eax, %r10d
	movl	%r14d, %edi
	movl	%r9d, 4(%rsp)
	shrl	$31, %r10d
	addl	%eax, %r10d
	sarl	%r10d
	movl	%r10d, %r8d
	movl	%r10d, 8(%rsp)
	call	query
	movl	4(%rsp), %r8d
	movl	8(%rsp), %ecx
	movl	%ebp, %esi
	movl	$12, %edx
	movl	%r14d, %edi
	movl	%eax, %r12d
	call	query
	movl	4(%rsp), %r9d
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
.L94:
	cmpl	%r9d, %ebp
	jle	.L96
	cmpl	%r9d, %r14d
	jg	.L97
	testb	%r15b, %r15b
	je	.L97
	movq	D(%rip), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L91:
	testl	%ebx, %ebx
	leal	7(%rbx), %r13d
	movl	$7, %edx
	movl	%ebp, %esi
	cmovns	%ebx, %r13d
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	movl	%r9d, 4(%rsp)
	movb	%r10b, 15(%rsp)
	sarl	$3, %r13d
	movl	%r13d, %r8d
	call	query
	movl	4(%rsp), %r8d
	movl	%r13d, %ecx
	movl	%ebp, %esi
	movl	$8, %edx
	movl	%r14d, %edi
	movl	%eax, 8(%rsp)
	call	query
	movl	8(%rsp), %r11d
	movl	4(%rsp), %r9d
	movzbl	15(%rsp), %r10d
	cmpl	%eax, %r11d
	cmovle	%r11d, %eax
	movl	%eax, %r13d
.L90:
	cmpl	%r9d, %ebp
	jle	.L86
	cmpl	%r9d, %r14d
	jg	.L93
	testb	%r10b, %r10b
	je	.L93
	movq	D(%rip), %rax
	movl	16(%rax), %eax
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L101:
	movl	$2147483647, %r12d
	jmp	.L94
	.p2align 4,,10
	.p2align 3
.L100:
	movl	$2147483647, %r13d
	jmp	.L90
	.cfi_endproc
.LFE44:
	.size	findMin, .-findMin
	.section	.rodata.str1.1
.LC3:
	.string	"%d %d %d"
.LC4:
	.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	q(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %rdi
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edi
	call	initRMQ
	movl	q(%rip), %edx
	testl	%edx, %edx
	jle	.L175
	leaq	64(%rsp), %rbp
	leaq	60(%rsp), %r14
	leaq	68(%rsp), %rbx
	leaq	.LC3(%rip), %r15
	jmp	.L140
	.p2align 4,,10
	.p2align 3
.L277:
	movl	64(%rsp), %eax
	movl	60(%rsp), %edi
	movl	n(%rip), %r12d
	leal	1(%rax), %esi
	cmpl	%r12d, %edi
	jge	.L177
	testl	%esi, %esi
	jle	.L177
	testl	%edi, %edi
	setle	%r8b
	cmpl	%esi, %r12d
	setle	12(%rsp)
	movzbl	12(%rsp), %eax
	testb	%r8b, %r8b
	je	.L143
	testb	%al, %al
	je	.L143
	movq	D(%rip), %rax
	movl	(%rax), %edx
.L142:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L172:
	movl	q(%rip), %eax
	subl	$1, %eax
	movl	%eax, q(%rip)
	testl	%eax, %eax
	jle	.L175
.L140:
	movq	%rbp, %rcx
	movq	%r14, %rdx
	movq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	68(%rsp), %eax
	testl	%eax, %eax
	jne	.L277
	movl	n(%rip), %edx
	movl	60(%rsp), %eax
	movq	D(%rip), %rsi
	leal	-1(%rdx,%rax), %ecx
	movl	64(%rsp), %edx
	movslq	%ecx, %rax
	movl	%edx, (%rsi,%rax,4)
	testl	%ecx, %ecx
	jle	.L172
	.p2align 4,,10
	.p2align 3
.L173:
	leal	-1(%rcx), %eax
	movl	%eax, %ecx
	andl	$-2, %eax
	cltq
	sarl	%ecx
	movl	8(%rsi,%rax,4), %edx
	movl	4(%rsi,%rax,4), %eax
	movslq	%ecx, %rdi
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	%edx, (%rsi,%rdi,4)
	testl	%ecx, %ecx
	jne	.L173
	jmp	.L172
	.p2align 4,,10
	.p2align 3
.L143:
	movl	%r12d, %r11d
	shrl	$31, %r11d
	addl	%r12d, %r11d
	sarl	%r11d
	cmpl	%r11d, %edi
	jge	.L178
	cmpl	%r11d, %esi
	movl	%r8d, %ecx
	setge	%r9b
	andb	%r9b, %cl
	je	.L145
	movq	D(%rip), %rax
	movl	4(%rax), %r13d
	cmpl	%r11d, %esi
	je	.L278
.L147:
	leal	(%r12,%r11), %eax
	movl	$2, %r9d
	cltd
	idivl	%r9d
	movl	%eax, %r10d
	cmpl	%eax, %edi
	jge	.L190
	cmpl	%eax, %esi
	setge	16(%rsp)
	movzbl	16(%rsp), %r8d
	andb	%cl, %r8b
	je	.L161
	movq	D(%rip), %rax
	movl	20(%rax), %r9d
	cmpl	%r10d, %esi
	je	.L195
.L163:
	leal	(%r12,%r10), %eax
	movl	$2, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r11d
	cmpl	%eax, %edi
	jge	.L196
	cmpl	%eax, %esi
	jl	.L169
	testb	%r8b, %r8b
	je	.L169
	movq	D(%rip), %rax
	movl	52(%rax), %r10d
	cmpl	%r11d, %esi
	je	.L198
.L171:
	leal	(%r12,%r11), %eax
	movl	$2, %ecx
	movl	%r10d, 32(%rsp)
	cltd
	movl	%r9d, 28(%rsp)
	idivl	%ecx
	movl	%esi, 24(%rsp)
	movl	%edi, 20(%rsp)
	movl	%r11d, %ecx
	movl	$29, %edx
	movl	%eax, %r8d
	movl	%eax, 12(%rsp)
	call	query
	movl	12(%rsp), %ecx
	movl	24(%rsp), %esi
	movl	%r12d, %r8d
	movl	20(%rsp), %edi
	movl	$30, %edx
	movl	%eax, 16(%rsp)
	call	query
	movl	16(%rsp), %r11d
	movl	28(%rsp), %r9d
	movl	32(%rsp), %r10d
	cmpl	%eax, %r11d
	cmovg	%eax, %r11d
.L170:
	cmpl	%r11d, %r10d
	cmovg	%r11d, %r10d
	jmp	.L162
	.p2align 4,,10
	.p2align 3
.L175:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L279
	addq	$88, %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
.L177:
	.cfi_restore_state
	movl	$2147483647, %edx
	jmp	.L142
.L145:
	movl	%r12d, %eax
	movl	$4, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r10d
	cmpl	%eax, %edi
	jge	.L180
	cmpl	%eax, %esi
	setge	16(%rsp)
	movzbl	16(%rsp), %ecx
	andb	%r8b, %cl
	je	.L149
	movq	D(%rip), %rax
	movl	12(%rax), %r13d
	cmpl	%r10d, %esi
	je	.L185
.L151:
	leal	(%r11,%r10), %eax
	movl	$2, %r8d
	cltd
	idivl	%r8d
	movl	%eax, 16(%rsp)
	movl	%eax, %edx
	cmpl	%eax, %edi
	jge	.L186
	cmpl	%eax, %esi
	jl	.L157
	testb	%cl, %cl
	je	.L157
	movq	D(%rip), %rax
	movl	36(%rax), %r10d
	cmpl	%edx, %esi
	je	.L188
.L159:
	movl	%r10d, 36(%rsp)
	movl	16(%rsp), %r10d
	movl	$2, %ecx
	movl	%r11d, 24(%rsp)
	leal	(%r11,%r10), %eax
	movl	%esi, 20(%rsp)
	cltd
	movl	%edi, 32(%rsp)
	idivl	%ecx
	movl	%r10d, %ecx
	movl	$21, %edx
	movl	%eax, %r8d
	movl	%eax, 16(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	16(%rsp), %ecx
	movl	$22, %edx
	movl	20(%rsp), %esi
	movl	24(%rsp), %r8d
	movl	%eax, 28(%rsp)
	movl	%edi, 16(%rsp)
	call	query
	movl	28(%rsp), %r9d
	movl	16(%rsp), %edi
	movl	20(%rsp), %esi
	movl	24(%rsp), %r11d
	cmpl	%eax, %r9d
	movl	36(%rsp), %r10d
	cmovle	%r9d, %eax
	movl	%eax, %edx
.L158:
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	jmp	.L150
.L178:
	movl	$2147483647, %r13d
.L144:
	movl	$2147483647, %r9d
	cmpl	%r11d, %esi
	jle	.L146
	cmpl	%r11d, %edi
	setle	%al
	cmpb	$0, 12(%rsp)
	movl	%eax, %ecx
	je	.L147
	testb	%al, %al
	je	.L147
	movq	D(%rip), %rax
	movl	8(%rax), %r9d
.L146:
	cmpl	%r9d, %r13d
	movl	%r9d, %edx
	cmovle	%r13d, %edx
	jmp	.L142
.L149:
	movl	%r12d, %eax
	movl	$8, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	cmpl	%eax, %edi
	jge	.L182
	cmpl	%eax, %esi
	jl	.L153
	testb	%r8b, %r8b
	je	.L153
	movq	D(%rip), %rax
	movl	28(%rax), %eax
	movl	%eax, 20(%rsp)
	cmpl	%r13d, %esi
	je	.L184
.L155:
	leal	(%r10,%r13), %eax
	movl	$2, %ecx
	movl	%r11d, 40(%rsp)
	cltd
	movb	%r9b, 36(%rsp)
	idivl	%ecx
	movl	%r10d, 28(%rsp)
	movl	%esi, 24(%rsp)
	movl	%edi, 32(%rsp)
	movl	%r13d, %ecx
	movl	$17, %edx
	movl	%eax, %r8d
	movl	%eax, 16(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	16(%rsp), %ecx
	movl	$18, %edx
	movl	24(%rsp), %esi
	movl	28(%rsp), %r8d
	movl	%eax, %r13d
	movl	%edi, 16(%rsp)
	call	query
	movl	16(%rsp), %edi
	movl	24(%rsp), %esi
	cmpl	%eax, %r13d
	movl	28(%rsp), %r10d
	movzbl	36(%rsp), %r9d
	cmovg	%eax, %r13d
	movl	40(%rsp), %r11d
.L154:
	movl	20(%rsp), %eax
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
.L148:
	cmpl	%r10d, %esi
	jle	.L185
	cmpl	%r10d, %edi
	setle	%al
	movl	%eax, %ecx
	testb	%r9b, %r9b
	je	.L151
	testb	%al, %al
	je	.L151
	movq	D(%rip), %rax
	movl	16(%rax), %edx
.L150:
	cmpl	%r13d, %edx
	cmovle	%edx, %r13d
	jmp	.L144
.L161:
	leal	(%r11,%rax), %eax
	cltd
	idivl	%r9d
	movl	%eax, %r9d
	cmpl	%eax, %edi
	jge	.L192
	cmpl	%eax, %esi
	jl	.L165
	testb	%cl, %cl
	je	.L165
	movq	D(%rip), %rax
	movl	44(%rax), %r11d
	cmpl	%r9d, %esi
	je	.L194
.L167:
	leal	(%r10,%r9), %eax
	movl	$2, %ecx
	movl	%r11d, 36(%rsp)
	cltd
	movl	%r10d, 24(%rsp)
	idivl	%ecx
	movl	%esi, 20(%rsp)
	movl	%edi, 32(%rsp)
	movl	%r9d, %ecx
	movl	$25, %edx
	movl	%eax, %r8d
	movl	%eax, 16(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	16(%rsp), %ecx
	movl	$26, %edx
	movl	20(%rsp), %esi
	movl	24(%rsp), %r8d
	movl	%eax, 28(%rsp)
	movl	%edi, 16(%rsp)
	call	query
	movl	28(%rsp), %r9d
	movl	16(%rsp), %edi
	movl	20(%rsp), %esi
	movl	24(%rsp), %r10d
	cmpl	%eax, %r9d
	movl	36(%rsp), %r11d
	cmovg	%eax, %r9d
.L166:
	cmpl	%r9d, %r11d
	cmovle	%r11d, %r9d
.L160:
	cmpl	%r10d, %esi
	jle	.L195
	cmpl	%r10d, %edi
	setle	%al
	cmpb	$0, 12(%rsp)
	movl	%eax, %r8d
	je	.L163
	testb	%al, %al
	je	.L163
	movq	D(%rip), %rax
	movl	24(%rax), %r10d
.L162:
	cmpl	%r10d, %r9d
	cmovg	%r10d, %r9d
	jmp	.L146
.L278:
	movl	$2147483647, %r9d
	jmp	.L146
.L180:
	movl	$2147483647, %r13d
	jmp	.L148
.L190:
	movl	$2147483647, %r9d
	jmp	.L160
.L195:
	movl	$2147483647, %r10d
	jmp	.L162
.L185:
	movl	$2147483647, %edx
	jmp	.L150
.L157:
	movl	16(%rsp), %eax
	movl	$2, %ecx
	movl	%r11d, 40(%rsp)
	movb	%r9b, 36(%rsp)
	addl	%r10d, %eax
	movl	%esi, 24(%rsp)
	cltd
	movl	%edi, 32(%rsp)
	idivl	%ecx
	movl	%r10d, %ecx
	movl	$19, %edx
	movl	%eax, %r8d
	movl	%eax, 20(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	20(%rsp), %ecx
	movl	$20, %edx
	movl	24(%rsp), %esi
	movl	16(%rsp), %r8d
	movl	%eax, 28(%rsp)
	movl	%edi, 20(%rsp)
	call	query
	movl	28(%rsp), %r10d
	movl	20(%rsp), %edi
	movl	24(%rsp), %esi
	movzbl	36(%rsp), %r9d
	cmpl	%eax, %r10d
	movl	40(%rsp), %r11d
	cmovg	%eax, %r10d
.L156:
	movl	16(%rsp), %eax
	cmpl	%eax, %esi
	jle	.L188
	cmpl	%eax, %edi
	jg	.L159
	testb	%r9b, %r9b
	je	.L159
	movq	D(%rip), %rax
	movl	40(%rax), %edx
	jmp	.L158
.L165:
	leal	(%r11,%r9), %eax
	movl	$2, %ecx
	movl	%r10d, 40(%rsp)
	cltd
	movl	%r9d, 28(%rsp)
	idivl	%ecx
	movl	%esi, 24(%rsp)
	movl	%edi, 36(%rsp)
	movl	%r11d, %ecx
	movl	$23, %edx
	movl	%eax, %r8d
	movl	%eax, 20(%rsp)
	call	query
	movl	36(%rsp), %edi
	movl	20(%rsp), %ecx
	movl	$24, %edx
	movl	24(%rsp), %esi
	movl	28(%rsp), %r8d
	movl	%eax, 32(%rsp)
	movl	%edi, 20(%rsp)
	call	query
	movl	32(%rsp), %r11d
	movl	20(%rsp), %edi
	movl	24(%rsp), %esi
	movl	28(%rsp), %r9d
	cmpl	%eax, %r11d
	movl	40(%rsp), %r10d
	cmovg	%eax, %r11d
.L164:
	cmpl	%r9d, %esi
	jle	.L194
	cmpl	%r9d, %edi
	jg	.L167
	cmpb	$0, 16(%rsp)
	je	.L167
	movq	D(%rip), %rax
	movl	48(%rax), %r9d
	jmp	.L166
.L153:
	movl	%r12d, %eax
	movl	$16, %ecx
	movl	%r10d, 44(%rsp)
	cltd
	movl	%r11d, 40(%rsp)
	idivl	%ecx
	movb	%r9b, 36(%rsp)
	movl	%esi, 28(%rsp)
	movl	%edi, 32(%rsp)
	xorl	%ecx, %ecx
	movl	$15, %edx
	movl	%eax, %r8d
	movl	%eax, 24(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	24(%rsp), %ecx
	movl	%r13d, %r8d
	movl	28(%rsp), %esi
	movl	$16, %edx
	movl	%eax, 20(%rsp)
	movl	%edi, 24(%rsp)
	call	query
	movl	20(%rsp), %edi
	movl	28(%rsp), %esi
	movzbl	36(%rsp), %r9d
	movl	40(%rsp), %r11d
	cmpl	%eax, %edi
	movl	44(%rsp), %r10d
	cmovle	%edi, %eax
	movl	24(%rsp), %edi
	movl	%eax, 20(%rsp)
.L152:
	cmpl	%r13d, %esi
	jle	.L184
	cmpl	%r13d, %edi
	jg	.L155
	cmpb	$0, 16(%rsp)
	je	.L155
	movq	D(%rip), %rax
	movl	32(%rax), %r13d
	jmp	.L154
.L169:
	leal	(%r10,%r11), %eax
	movl	$2, %ecx
	movl	%r9d, 36(%rsp)
	cltd
	movl	%r11d, 24(%rsp)
	idivl	%ecx
	movl	%esi, 20(%rsp)
	movl	%edi, 32(%rsp)
	movl	%r10d, %ecx
	movl	$27, %edx
	movl	%eax, %r8d
	movl	%eax, 16(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	16(%rsp), %ecx
	movl	$28, %edx
	movl	20(%rsp), %esi
	movl	24(%rsp), %r8d
	movl	%eax, 28(%rsp)
	movl	%edi, 16(%rsp)
	call	query
	movl	28(%rsp), %r10d
	movl	16(%rsp), %edi
	movl	20(%rsp), %esi
	movl	24(%rsp), %r11d
	cmpl	%eax, %r10d
	movl	36(%rsp), %r9d
	cmovg	%eax, %r10d
.L168:
	cmpl	%r11d, %esi
	jle	.L198
	cmpl	%r11d, %edi
	jg	.L171
	cmpb	$0, 12(%rsp)
	je	.L171
	movq	D(%rip), %rax
	movl	56(%rax), %r11d
	jmp	.L170
.L182:
	movl	$2147483647, 20(%rsp)
	jmp	.L152
.L186:
	movl	$2147483647, %r10d
	jmp	.L156
.L196:
	movl	$2147483647, %r10d
	jmp	.L168
.L192:
	movl	$2147483647, %r11d
	jmp	.L164
.L198:
	movl	$2147483647, %r11d
	jmp	.L170
.L188:
	movl	$2147483647, %edx
	jmp	.L158
.L184:
	movl	$2147483647, %r13d
	jmp	.L154
.L194:
	movl	$2147483647, %r9d
	jmp	.L166
.L279:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	D
	.bss
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	q
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.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
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB40:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE40:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	initValue
	.type	initValue, @function
initValue:
.LFB41:
	.cfi_startproc
	endbr64
	leaq	q(%rip), %rdx
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	jmp	__isoc99_scanf@PLT
	.cfi_endproc
.LFE41:
	.size	initValue, .-initValue
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Init Array Failed, no memory or size is wrong"
	.text
	.p2align 4
	.globl	initRMQ
	.type	initRMQ, @function
initRMQ:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$1, n(%rip)
	cmpl	$1, %edi
	jle	.L5
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%eax, %edx
	addl	%eax, %eax
	cmpl	%edi, %eax
	jl	.L6
	leal	-1(,%rdx,4), %ebx
	movl	%eax, n(%rip)
	movslq	%ebx, %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movq	%rax, D(%rip)
	testq	%rax, %rax
	je	.L11
	testl	%ebx, %ebx
	movl	$1, %esi
	cmovg	%ebx, %esi
	cmpl	$3, %ebx
	je	.L8
	movl	%esi, %ecx
	movdqa	.LC2(%rip), %xmm0
	movq	%rax, %rdx
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	16(%rax,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movups	%xmm0, (%rdx)
	addq	$16, %rdx
	cmpq	%rcx, %rdx
	jne	.L9
	movl	%esi, %edx
	andl	$-4, %edx
	andl	$3, %esi
	je	.L10
	movslq	%edx, %rcx
	addl	$1, %edx
	movl	$2147483647, (%rax,%rcx,4)
	leaq	0(,%rcx,4), %rsi
	cmpl	%edx, %ebx
	jle	.L10
.L12:
	addl	$1, %edx
	movl	$2147483647, 4(%rax,%rsi)
	cmpl	%ebx, %edx
	jge	.L10
	movl	$2147483647, 8(%rax,%rsi)
.L10:
	movl	%ebx, i(%rip)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	movl	$4, %edi
	call	malloc@PLT
	movq	%rax, D(%rip)
	testq	%rax, %rax
	je	.L11
	movl	$1, %ebx
	movl	$2147483647, (%rax)
	movl	%ebx, i(%rip)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	movl	$2147483647, (%rax)
	xorl	%esi, %esi
	movl	$1, %edx
	jmp	.L12
.L11:
	leaq	.LC1(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	puts@PLT
	.cfi_endproc
.LFE42:
	.size	initRMQ, .-initRMQ
	.p2align 4
	.globl	update
	.type	update, @function
update:
.LFB43:
	.cfi_startproc
	endbr64
	movl	n(%rip), %eax
	movl	%esi, %r8d
	movq	D(%rip), %rsi
	leal	-1(%rax,%rdi), %ecx
	movslq	%ecx, %rax
	movl	%r8d, (%rsi,%rax,4)
	testl	%ecx, %ecx
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L22:
	leal	-1(%rcx), %eax
	movl	%eax, %ecx
	andl	$-2, %eax
	cltq
	sarl	%ecx
	movl	8(%rsi,%rax,4), %edx
	movl	4(%rsi,%rax,4), %eax
	movslq	%ecx, %rdi
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	%edx, (%rsi,%rdi,4)
	testl	%ecx, %ecx
	jne	.L22
.L20:
	ret
	.cfi_endproc
.LFE43:
	.size	update, .-update
	.p2align 4
	.globl	query
	.type	query, @function
query:
.LFB45:
	.cfi_startproc
	endbr64
	cmpl	%edi, %r8d
	jle	.L39
	cmpl	%ecx, %esi
	jle	.L39
	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
	movl	%r8d, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edx, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	cmpl	%ecx, %edi
	setle	%al
	cmpl	%esi, %r8d
	setle	%r14b
	testb	%al, %al
	je	.L26
	testb	%r14b, %r14b
	je	.L26
	movq	D(%rip), %rax
	movl	(%rax,%rbx,4), %r11d
.L24:
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r11d, %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
.L26:
	.cfi_restore_state
	leal	0(%rbp,%rcx), %edx
	leal	(%rbx,%rbx), %r13d
	addl	$1, %ebx
	movl	%edx, %r12d
	leal	2(%r13), %r10d
	shrl	$31, %r12d
	addl	%edx, %r12d
	leal	1(%r13), %edx
	sarl	%r12d
	cmpl	%r12d, %edi
	jge	.L40
	cmpl	%r12d, %esi
	movl	%eax, %r8d
	setge	%r9b
	andb	%r9b, %r8b
	je	.L28
	movq	D(%rip), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %r11d
	cmpl	%r12d, %esi
	je	.L24
.L30:
	leal	0(%rbp,%r12), %eax
	leal	3(%r13), %r10d
	movl	%eax, %r15d
	leal	1(,%rbx,4), %ebx
	leal	(%r10,%r10), %r9d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	cmpl	%r15d, %edi
	jge	.L42
	cmpl	%r15d, %esi
	jl	.L36
	testb	%r8b, %r8b
	je	.L36
	movq	D(%rip), %rax
	movslq	%ebx, %rbx
	movl	(%rax,%rbx,4), %ebx
	cmpl	%r15d, %esi
	je	.L37
.L38:
	leal	0(%rbp,%r15), %eax
	leal	1(,%r10,4), %edx
	movl	%r15d, %ecx
	movl	%r11d, 16(%rsp)
	movl	%eax, %r12d
	movl	%r9d, 12(%rsp)
	shrl	$31, %r12d
	movl	%esi, 8(%rsp)
	addl	%eax, %r12d
	movl	%edi, 4(%rsp)
	sarl	%r12d
	movl	%r12d, %r8d
	call	query
	movl	12(%rsp), %r9d
	movl	%ebp, %r8d
	movl	%r12d, %ecx
	movl	8(%rsp), %esi
	movl	4(%rsp), %edi
	movl	%eax, %r13d
	leal	2(%r9,%r9), %edx
	call	query
	cmpl	%r13d, %ebx
	movl	16(%rsp), %r11d
	cmovle	%ebx, %r13d
	cmpl	%eax, %r13d
	cmovle	%r13d, %eax
	movl	%eax, %ebx
.L37:
	cmpl	%ebx, %r11d
	cmovg	%ebx, %r11d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	movl	$2147483647, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_def_cfa_offset 96
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	leal	(%rcx,%r12), %r8d
	leal	0(,%rbx,4), %r11d
	movl	%r8d, %r15d
	movl	%r11d, 4(%rsp)
	leal	1(%rdx,%rdx), %edx
	shrl	$31, %r15d
	addl	%r8d, %r15d
	sarl	%r15d
	cmpl	%r15d, %edi
	jge	.L41
	cmpl	%r15d, %esi
	jl	.L32
	testb	%al, %al
	je	.L32
	movq	D(%rip), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %r11d
	cmpl	%r15d, %esi
	je	.L27
.L34:
	leal	(%r12,%r15), %eax
	movl	%r15d, %ecx
	movl	%r11d, 24(%rsp)
	leal	1(,%rbx,8), %edx
	movl	%eax, %r9d
	movl	%r10d, 20(%rsp)
	shrl	$31, %r9d
	movl	%esi, 8(%rsp)
	addl	%eax, %r9d
	movl	%edi, 12(%rsp)
	sarl	%r9d
	movl	%r9d, %r8d
	movl	%r9d, 16(%rsp)
	call	query
	movl	12(%rsp), %edi
	movl	8(%rsp), %esi
	movl	%r12d, %r8d
	movl	%eax, %r15d
	movl	4(%rsp), %eax
	movl	16(%rsp), %ecx
	movl	%edi, 4(%rsp)
	leal	2(%rax,%rax), %edx
	call	query
	movl	24(%rsp), %r11d
	movl	4(%rsp), %edi
	movl	8(%rsp), %esi
	movl	20(%rsp), %r10d
	cmpl	%r11d, %r15d
	cmovg	%r11d, %r15d
	cmpl	%eax, %r15d
	cmovle	%r15d, %eax
	movl	%eax, %r11d
.L27:
	cmpl	%r12d, %esi
	jle	.L24
	cmpl	%r12d, %edi
	setle	%al
	movl	%eax, %r8d
	testb	%r14b, %r14b
	je	.L30
	testb	%al, %al
	je	.L30
	movq	D(%rip), %rax
	movslq	%r10d, %r10
	movl	(%rax,%r10,4), %eax
	cmpl	%eax, %r11d
	cmovg	%eax, %r11d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$2147483647, %r11d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L36:
	leal	(%r12,%r15), %eax
	addl	%ebx, %ebx
	movl	%r12d, %ecx
	movl	%r11d, 20(%rsp)
	movl	%eax, %r13d
	leal	1(%rbx), %edx
	movl	%r9d, 16(%rsp)
	shrl	$31, %r13d
	movl	%r10d, 12(%rsp)
	addl	%eax, %r13d
	movl	%esi, 8(%rsp)
	sarl	%r13d
	movl	%edi, 4(%rsp)
	movl	%r13d, %r8d
	call	query
	movl	8(%rsp), %esi
	movl	4(%rsp), %edi
	leal	2(%rbx), %edx
	movl	%r15d, %r8d
	movl	%r13d, %ecx
	movl	%eax, %r12d
	call	query
	movl	4(%rsp), %edi
	movl	8(%rsp), %esi
	cmpl	%eax, %r12d
	movl	12(%rsp), %r10d
	movl	16(%rsp), %r9d
	cmovle	%r12d, %eax
	movl	20(%rsp), %r11d
	movl	%eax, %ebx
.L35:
	cmpl	%r15d, %esi
	jle	.L37
	cmpl	%r15d, %edi
	jg	.L38
	testb	%r14b, %r14b
	je	.L38
	movq	D(%rip), %rax
	movslq	%r9d, %r9
	movl	(%rax,%r9,4), %eax
	cmpl	%eax, %ebx
	cmovg	%eax, %ebx
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L32:
	leal	(%rcx,%r15), %eax
	leal	1(%rdx,%rdx), %edx
	movl	%r10d, 28(%rsp)
	movl	%eax, %r11d
	movb	%r9b, 24(%rsp)
	shrl	$31, %r11d
	movl	%esi, 16(%rsp)
	addl	%eax, %r11d
	movl	%edi, 12(%rsp)
	sarl	%r11d
	movl	%r11d, %r8d
	movl	%r11d, 20(%rsp)
	call	query
	movl	20(%rsp), %ecx
	movl	16(%rsp), %esi
	movl	%r15d, %r8d
	movl	12(%rsp), %edi
	leal	0(,%rbx,8), %edx
	movl	%eax, 8(%rsp)
	call	query
	movl	8(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	16(%rsp), %esi
	movzbl	24(%rsp), %r9d
	cmpl	%eax, %ecx
	movl	%ecx, %r11d
	movl	28(%rsp), %r10d
	cmovg	%eax, %r11d
.L31:
	cmpl	%r15d, %esi
	jle	.L27
	cmpl	%r15d, %edi
	jg	.L34
	testb	%r9b, %r9b
	je	.L34
	movslq	4(%rsp), %rdx
	movq	D(%rip), %rax
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %r11d
	cmovg	%eax, %r11d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L42:
	movl	$2147483647, %ebx
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L41:
	movl	$2147483647, %r11d
	jmp	.L31
	.cfi_endproc
.LFE45:
	.size	query, .-query
	.p2align 4
	.globl	findMin
	.type	findMin, @function
findMin:
.LFB44:
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	n(%rip), %ebx
	cmpl	%edi, %ebx
	jle	.L98
	leal	1(%rsi), %ebp
	testl	%ebp, %ebp
	jle	.L98
	testl	%edi, %edi
	movl	%edi, %r14d
	setle	%al
	cmpl	%ebp, %ebx
	setle	%r15b
	testb	%al, %al
	je	.L85
	testb	%r15b, %r15b
	je	.L85
	movq	D(%rip), %rax
	movl	(%rax), %r13d
.L83:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r13d, %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
.L85:
	.cfi_restore_state
	movl	%ebx, %r12d
	shrl	$31, %r12d
	addl	%ebx, %r12d
	sarl	%r12d
	cmpl	%r12d, %r14d
	jge	.L99
	cmpl	%r12d, %ebp
	movl	%eax, %edx
	setge	%r10b
	andb	%r10b, %dl
	je	.L87
	movq	D(%rip), %rax
	movl	4(%rax), %r13d
	cmpl	%r12d, %ebp
	je	.L83
.L89:
	leal	(%rbx,%r12), %eax
	movl	%eax, %r9d
	shrl	$31, %r9d
	addl	%eax, %r9d
	sarl	%r9d
	cmpl	%r9d, %r14d
	jge	.L101
	cmpl	%r9d, %ebp
	jl	.L95
	testb	%dl, %dl
	je	.L95
	movq	D(%rip), %rax
	movl	20(%rax), %r12d
	cmpl	%r9d, %ebp
	je	.L96
.L97:
	leal	(%rbx,%r9), %eax
	movl	%r9d, %ecx
	movl	$13, %edx
	movl	%ebp, %esi
	movl	%eax, %r10d
	movl	%r14d, %edi
	shrl	$31, %r10d
	addl	%eax, %r10d
	sarl	%r10d
	movl	%r10d, %r8d
	movl	%r10d, 4(%rsp)
	call	query
	movl	4(%rsp), %ecx
	movl	%ebx, %r8d
	movl	%ebp, %esi
	movl	%eax, %r15d
	movl	$14, %edx
	movl	%r14d, %edi
	call	query
	cmpl	%r15d, %r12d
	cmovle	%r12d, %r15d
	cmpl	%eax, %r15d
	cmovle	%r15d, %eax
	movl	%eax, %r12d
.L96:
	cmpl	%r12d, %r13d
	cmovg	%r12d, %r13d
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L98:
	movl	$2147483647, %r13d
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L87:
	testl	%ebx, %ebx
	leal	3(%rbx), %r9d
	cmovns	%ebx, %r9d
	sarl	$2, %r9d
	cmpl	%r9d, %r14d
	jge	.L100
	cmpl	%r9d, %ebp
	jl	.L91
	testb	%al, %al
	je	.L91
	movq	D(%rip), %rax
	movl	12(%rax), %r13d
	cmpl	%r9d, %ebp
	je	.L86
.L93:
	leal	(%r12,%r9), %eax
	movl	%r9d, %ecx
	movl	$9, %edx
	movl	%ebp, %esi
	movl	%eax, %r10d
	movl	%r14d, %edi
	shrl	$31, %r10d
	addl	%eax, %r10d
	sarl	%r10d
	movl	%r10d, %r8d
	movl	%r10d, 8(%rsp)
	call	query
	movl	8(%rsp), %ecx
	movl	%r12d, %r8d
	movl	%ebp, %esi
	movl	$10, %edx
	movl	%r14d, %edi
	movl	%eax, 4(%rsp)
	call	query
	movl	4(%rsp), %r9d
	cmpl	%r9d, %r13d
	cmovle	%r13d, %r9d
	cmpl	%eax, %r9d
	cmovle	%r9d, %eax
	movl	%eax, %r13d
.L86:
	cmpl	%r12d, %ebp
	jle	.L83
	cmpl	%r12d, %r14d
	setle	%al
	movl	%eax, %edx
	testb	%r15b, %r15b
	je	.L89
	testb	%al, %al
	je	.L89
	movq	D(%rip), %rax
	movl	8(%rax), %eax
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L99:
	movl	$2147483647, %r13d
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L95:
	leal	(%r12,%r9), %eax
	movl	%r12d, %ecx
	movl	$11, %edx
	movl	%ebp, %esi
	movl	%eax, %r10d
	movl	%r14d, %edi
	movl	%r9d, 4(%rsp)
	shrl	$31, %r10d
	addl	%eax, %r10d
	sarl	%r10d
	movl	%r10d, %r8d
	movl	%r10d, 8(%rsp)
	call	query
	movl	4(%rsp), %r8d
	movl	8(%rsp), %ecx
	movl	%ebp, %esi
	movl	$12, %edx
	movl	%r14d, %edi
	movl	%eax, %r12d
	call	query
	movl	4(%rsp), %r9d
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
.L94:
	cmpl	%r9d, %ebp
	jle	.L96
	cmpl	%r9d, %r14d
	jg	.L97
	testb	%r15b, %r15b
	je	.L97
	movq	D(%rip), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L91:
	testl	%ebx, %ebx
	leal	7(%rbx), %r13d
	movl	$7, %edx
	movl	%ebp, %esi
	cmovns	%ebx, %r13d
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	movl	%r9d, 4(%rsp)
	movb	%r10b, 15(%rsp)
	sarl	$3, %r13d
	movl	%r13d, %r8d
	call	query
	movl	4(%rsp), %r8d
	movl	%r13d, %ecx
	movl	%ebp, %esi
	movl	$8, %edx
	movl	%r14d, %edi
	movl	%eax, 8(%rsp)
	call	query
	movl	8(%rsp), %r11d
	movl	4(%rsp), %r9d
	movzbl	15(%rsp), %r10d
	cmpl	%eax, %r11d
	cmovle	%r11d, %eax
	movl	%eax, %r13d
.L90:
	cmpl	%r9d, %ebp
	jle	.L86
	cmpl	%r9d, %r14d
	jg	.L93
	testb	%r10b, %r10b
	je	.L93
	movq	D(%rip), %rax
	movl	16(%rax), %eax
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L101:
	movl	$2147483647, %r12d
	jmp	.L94
	.p2align 4,,10
	.p2align 3
.L100:
	movl	$2147483647, %r13d
	jmp	.L90
	.cfi_endproc
.LFE44:
	.size	findMin, .-findMin
	.section	.rodata.str1.1
.LC3:
	.string	"%d %d %d"
.LC4:
	.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	q(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %rdi
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edi
	call	initRMQ
	movl	q(%rip), %edx
	testl	%edx, %edx
	jle	.L175
	leaq	64(%rsp), %rbp
	leaq	60(%rsp), %r14
	leaq	68(%rsp), %rbx
	leaq	.LC3(%rip), %r15
	jmp	.L140
	.p2align 4,,10
	.p2align 3
.L277:
	movl	64(%rsp), %eax
	movl	60(%rsp), %edi
	movl	n(%rip), %r12d
	leal	1(%rax), %esi
	cmpl	%r12d, %edi
	jge	.L177
	testl	%esi, %esi
	jle	.L177
	testl	%edi, %edi
	setle	%r8b
	cmpl	%esi, %r12d
	setle	12(%rsp)
	movzbl	12(%rsp), %eax
	testb	%r8b, %r8b
	je	.L143
	testb	%al, %al
	je	.L143
	movq	D(%rip), %rax
	movl	(%rax), %edx
.L142:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L172:
	movl	q(%rip), %eax
	subl	$1, %eax
	movl	%eax, q(%rip)
	testl	%eax, %eax
	jle	.L175
.L140:
	movq	%rbp, %rcx
	movq	%r14, %rdx
	movq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	68(%rsp), %eax
	testl	%eax, %eax
	jne	.L277
	movl	n(%rip), %edx
	movl	60(%rsp), %eax
	movq	D(%rip), %rsi
	leal	-1(%rdx,%rax), %ecx
	movl	64(%rsp), %edx
	movslq	%ecx, %rax
	movl	%edx, (%rsi,%rax,4)
	testl	%ecx, %ecx
	jle	.L172
	.p2align 4,,10
	.p2align 3
.L173:
	leal	-1(%rcx), %eax
	movl	%eax, %ecx
	andl	$-2, %eax
	cltq
	sarl	%ecx
	movl	8(%rsi,%rax,4), %edx
	movl	4(%rsi,%rax,4), %eax
	movslq	%ecx, %rdi
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	%edx, (%rsi,%rdi,4)
	testl	%ecx, %ecx
	jne	.L173
	jmp	.L172
	.p2align 4,,10
	.p2align 3
.L143:
	movl	%r12d, %r11d
	shrl	$31, %r11d
	addl	%r12d, %r11d
	sarl	%r11d
	cmpl	%r11d, %edi
	jge	.L178
	cmpl	%r11d, %esi
	movl	%r8d, %ecx
	setge	%r9b
	andb	%r9b, %cl
	je	.L145
	movq	D(%rip), %rax
	movl	4(%rax), %r13d
	cmpl	%r11d, %esi
	je	.L278
.L147:
	leal	(%r12,%r11), %eax
	movl	$2, %r9d
	cltd
	idivl	%r9d
	movl	%eax, %r10d
	cmpl	%eax, %edi
	jge	.L190
	cmpl	%eax, %esi
	setge	16(%rsp)
	movzbl	16(%rsp), %r8d
	andb	%cl, %r8b
	je	.L161
	movq	D(%rip), %rax
	movl	20(%rax), %r9d
	cmpl	%r10d, %esi
	je	.L195
.L163:
	leal	(%r12,%r10), %eax
	movl	$2, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r11d
	cmpl	%eax, %edi
	jge	.L196
	cmpl	%eax, %esi
	jl	.L169
	testb	%r8b, %r8b
	je	.L169
	movq	D(%rip), %rax
	movl	52(%rax), %r10d
	cmpl	%r11d, %esi
	je	.L198
.L171:
	leal	(%r12,%r11), %eax
	movl	$2, %ecx
	movl	%r10d, 32(%rsp)
	cltd
	movl	%r9d, 28(%rsp)
	idivl	%ecx
	movl	%esi, 24(%rsp)
	movl	%edi, 20(%rsp)
	movl	%r11d, %ecx
	movl	$29, %edx
	movl	%eax, %r8d
	movl	%eax, 12(%rsp)
	call	query
	movl	12(%rsp), %ecx
	movl	24(%rsp), %esi
	movl	%r12d, %r8d
	movl	20(%rsp), %edi
	movl	$30, %edx
	movl	%eax, 16(%rsp)
	call	query
	movl	16(%rsp), %r11d
	movl	28(%rsp), %r9d
	movl	32(%rsp), %r10d
	cmpl	%eax, %r11d
	cmovg	%eax, %r11d
.L170:
	cmpl	%r11d, %r10d
	cmovg	%r11d, %r10d
	jmp	.L162
	.p2align 4,,10
	.p2align 3
.L175:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L279
	addq	$88, %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
.L177:
	.cfi_restore_state
	movl	$2147483647, %edx
	jmp	.L142
.L145:
	movl	%r12d, %eax
	movl	$4, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r10d
	cmpl	%eax, %edi
	jge	.L180
	cmpl	%eax, %esi
	setge	16(%rsp)
	movzbl	16(%rsp), %ecx
	andb	%r8b, %cl
	je	.L149
	movq	D(%rip), %rax
	movl	12(%rax), %r13d
	cmpl	%r10d, %esi
	je	.L185
.L151:
	leal	(%r11,%r10), %eax
	movl	$2, %r8d
	cltd
	idivl	%r8d
	movl	%eax, 16(%rsp)
	movl	%eax, %edx
	cmpl	%eax, %edi
	jge	.L186
	cmpl	%eax, %esi
	jl	.L157
	testb	%cl, %cl
	je	.L157
	movq	D(%rip), %rax
	movl	36(%rax), %r10d
	cmpl	%edx, %esi
	je	.L188
.L159:
	movl	%r10d, 36(%rsp)
	movl	16(%rsp), %r10d
	movl	$2, %ecx
	movl	%r11d, 24(%rsp)
	leal	(%r11,%r10), %eax
	movl	%esi, 20(%rsp)
	cltd
	movl	%edi, 32(%rsp)
	idivl	%ecx
	movl	%r10d, %ecx
	movl	$21, %edx
	movl	%eax, %r8d
	movl	%eax, 16(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	16(%rsp), %ecx
	movl	$22, %edx
	movl	20(%rsp), %esi
	movl	24(%rsp), %r8d
	movl	%eax, 28(%rsp)
	movl	%edi, 16(%rsp)
	call	query
	movl	28(%rsp), %r9d
	movl	16(%rsp), %edi
	movl	20(%rsp), %esi
	movl	24(%rsp), %r11d
	cmpl	%eax, %r9d
	movl	36(%rsp), %r10d
	cmovle	%r9d, %eax
	movl	%eax, %edx
.L158:
	cmpl	%r10d, %edx
	cmovg	%r10d, %edx
	jmp	.L150
.L178:
	movl	$2147483647, %r13d
.L144:
	movl	$2147483647, %r9d
	cmpl	%r11d, %esi
	jle	.L146
	cmpl	%r11d, %edi
	setle	%al
	cmpb	$0, 12(%rsp)
	movl	%eax, %ecx
	je	.L147
	testb	%al, %al
	je	.L147
	movq	D(%rip), %rax
	movl	8(%rax), %r9d
.L146:
	cmpl	%r9d, %r13d
	movl	%r9d, %edx
	cmovle	%r13d, %edx
	jmp	.L142
.L149:
	movl	%r12d, %eax
	movl	$8, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	cmpl	%eax, %edi
	jge	.L182
	cmpl	%eax, %esi
	jl	.L153
	testb	%r8b, %r8b
	je	.L153
	movq	D(%rip), %rax
	movl	28(%rax), %eax
	movl	%eax, 20(%rsp)
	cmpl	%r13d, %esi
	je	.L184
.L155:
	leal	(%r10,%r13), %eax
	movl	$2, %ecx
	movl	%r11d, 40(%rsp)
	cltd
	movb	%r9b, 36(%rsp)
	idivl	%ecx
	movl	%r10d, 28(%rsp)
	movl	%esi, 24(%rsp)
	movl	%edi, 32(%rsp)
	movl	%r13d, %ecx
	movl	$17, %edx
	movl	%eax, %r8d
	movl	%eax, 16(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	16(%rsp), %ecx
	movl	$18, %edx
	movl	24(%rsp), %esi
	movl	28(%rsp), %r8d
	movl	%eax, %r13d
	movl	%edi, 16(%rsp)
	call	query
	movl	16(%rsp), %edi
	movl	24(%rsp), %esi
	cmpl	%eax, %r13d
	movl	28(%rsp), %r10d
	movzbl	36(%rsp), %r9d
	cmovg	%eax, %r13d
	movl	40(%rsp), %r11d
.L154:
	movl	20(%rsp), %eax
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
.L148:
	cmpl	%r10d, %esi
	jle	.L185
	cmpl	%r10d, %edi
	setle	%al
	movl	%eax, %ecx
	testb	%r9b, %r9b
	je	.L151
	testb	%al, %al
	je	.L151
	movq	D(%rip), %rax
	movl	16(%rax), %edx
.L150:
	cmpl	%r13d, %edx
	cmovle	%edx, %r13d
	jmp	.L144
.L161:
	leal	(%r11,%rax), %eax
	cltd
	idivl	%r9d
	movl	%eax, %r9d
	cmpl	%eax, %edi
	jge	.L192
	cmpl	%eax, %esi
	jl	.L165
	testb	%cl, %cl
	je	.L165
	movq	D(%rip), %rax
	movl	44(%rax), %r11d
	cmpl	%r9d, %esi
	je	.L194
.L167:
	leal	(%r10,%r9), %eax
	movl	$2, %ecx
	movl	%r11d, 36(%rsp)
	cltd
	movl	%r10d, 24(%rsp)
	idivl	%ecx
	movl	%esi, 20(%rsp)
	movl	%edi, 32(%rsp)
	movl	%r9d, %ecx
	movl	$25, %edx
	movl	%eax, %r8d
	movl	%eax, 16(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	16(%rsp), %ecx
	movl	$26, %edx
	movl	20(%rsp), %esi
	movl	24(%rsp), %r8d
	movl	%eax, 28(%rsp)
	movl	%edi, 16(%rsp)
	call	query
	movl	28(%rsp), %r9d
	movl	16(%rsp), %edi
	movl	20(%rsp), %esi
	movl	24(%rsp), %r10d
	cmpl	%eax, %r9d
	movl	36(%rsp), %r11d
	cmovg	%eax, %r9d
.L166:
	cmpl	%r9d, %r11d
	cmovle	%r11d, %r9d
.L160:
	cmpl	%r10d, %esi
	jle	.L195
	cmpl	%r10d, %edi
	setle	%al
	cmpb	$0, 12(%rsp)
	movl	%eax, %r8d
	je	.L163
	testb	%al, %al
	je	.L163
	movq	D(%rip), %rax
	movl	24(%rax), %r10d
.L162:
	cmpl	%r10d, %r9d
	cmovg	%r10d, %r9d
	jmp	.L146
.L278:
	movl	$2147483647, %r9d
	jmp	.L146
.L180:
	movl	$2147483647, %r13d
	jmp	.L148
.L190:
	movl	$2147483647, %r9d
	jmp	.L160
.L195:
	movl	$2147483647, %r10d
	jmp	.L162
.L185:
	movl	$2147483647, %edx
	jmp	.L150
.L157:
	movl	16(%rsp), %eax
	movl	$2, %ecx
	movl	%r11d, 40(%rsp)
	movb	%r9b, 36(%rsp)
	addl	%r10d, %eax
	movl	%esi, 24(%rsp)
	cltd
	movl	%edi, 32(%rsp)
	idivl	%ecx
	movl	%r10d, %ecx
	movl	$19, %edx
	movl	%eax, %r8d
	movl	%eax, 20(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	20(%rsp), %ecx
	movl	$20, %edx
	movl	24(%rsp), %esi
	movl	16(%rsp), %r8d
	movl	%eax, 28(%rsp)
	movl	%edi, 20(%rsp)
	call	query
	movl	28(%rsp), %r10d
	movl	20(%rsp), %edi
	movl	24(%rsp), %esi
	movzbl	36(%rsp), %r9d
	cmpl	%eax, %r10d
	movl	40(%rsp), %r11d
	cmovg	%eax, %r10d
.L156:
	movl	16(%rsp), %eax
	cmpl	%eax, %esi
	jle	.L188
	cmpl	%eax, %edi
	jg	.L159
	testb	%r9b, %r9b
	je	.L159
	movq	D(%rip), %rax
	movl	40(%rax), %edx
	jmp	.L158
.L165:
	leal	(%r11,%r9), %eax
	movl	$2, %ecx
	movl	%r10d, 40(%rsp)
	cltd
	movl	%r9d, 28(%rsp)
	idivl	%ecx
	movl	%esi, 24(%rsp)
	movl	%edi, 36(%rsp)
	movl	%r11d, %ecx
	movl	$23, %edx
	movl	%eax, %r8d
	movl	%eax, 20(%rsp)
	call	query
	movl	36(%rsp), %edi
	movl	20(%rsp), %ecx
	movl	$24, %edx
	movl	24(%rsp), %esi
	movl	28(%rsp), %r8d
	movl	%eax, 32(%rsp)
	movl	%edi, 20(%rsp)
	call	query
	movl	32(%rsp), %r11d
	movl	20(%rsp), %edi
	movl	24(%rsp), %esi
	movl	28(%rsp), %r9d
	cmpl	%eax, %r11d
	movl	40(%rsp), %r10d
	cmovg	%eax, %r11d
.L164:
	cmpl	%r9d, %esi
	jle	.L194
	cmpl	%r9d, %edi
	jg	.L167
	cmpb	$0, 16(%rsp)
	je	.L167
	movq	D(%rip), %rax
	movl	48(%rax), %r9d
	jmp	.L166
.L153:
	movl	%r12d, %eax
	movl	$16, %ecx
	movl	%r10d, 44(%rsp)
	cltd
	movl	%r11d, 40(%rsp)
	idivl	%ecx
	movb	%r9b, 36(%rsp)
	movl	%esi, 28(%rsp)
	movl	%edi, 32(%rsp)
	xorl	%ecx, %ecx
	movl	$15, %edx
	movl	%eax, %r8d
	movl	%eax, 24(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	24(%rsp), %ecx
	movl	%r13d, %r8d
	movl	28(%rsp), %esi
	movl	$16, %edx
	movl	%eax, 20(%rsp)
	movl	%edi, 24(%rsp)
	call	query
	movl	20(%rsp), %edi
	movl	28(%rsp), %esi
	movzbl	36(%rsp), %r9d
	movl	40(%rsp), %r11d
	cmpl	%eax, %edi
	movl	44(%rsp), %r10d
	cmovle	%edi, %eax
	movl	24(%rsp), %edi
	movl	%eax, 20(%rsp)
.L152:
	cmpl	%r13d, %esi
	jle	.L184
	cmpl	%r13d, %edi
	jg	.L155
	cmpb	$0, 16(%rsp)
	je	.L155
	movq	D(%rip), %rax
	movl	32(%rax), %r13d
	jmp	.L154
.L169:
	leal	(%r10,%r11), %eax
	movl	$2, %ecx
	movl	%r9d, 36(%rsp)
	cltd
	movl	%r11d, 24(%rsp)
	idivl	%ecx
	movl	%esi, 20(%rsp)
	movl	%edi, 32(%rsp)
	movl	%r10d, %ecx
	movl	$27, %edx
	movl	%eax, %r8d
	movl	%eax, 16(%rsp)
	call	query
	movl	32(%rsp), %edi
	movl	16(%rsp), %ecx
	movl	$28, %edx
	movl	20(%rsp), %esi
	movl	24(%rsp), %r8d
	movl	%eax, 28(%rsp)
	movl	%edi, 16(%rsp)
	call	query
	movl	28(%rsp), %r10d
	movl	16(%rsp), %edi
	movl	20(%rsp), %esi
	movl	24(%rsp), %r11d
	cmpl	%eax, %r10d
	movl	36(%rsp), %r9d
	cmovg	%eax, %r10d
.L168:
	cmpl	%r11d, %esi
	jle	.L198
	cmpl	%r11d, %edi
	jg	.L171
	cmpb	$0, 12(%rsp)
	je	.L171
	movq	D(%rip), %rax
	movl	56(%rax), %r11d
	jmp	.L170
.L182:
	movl	$2147483647, 20(%rsp)
	jmp	.L152
.L186:
	movl	$2147483647, %r10d
	jmp	.L156
.L196:
	movl	$2147483647, %r10d
	jmp	.L168
.L192:
	movl	$2147483647, %r11d
	jmp	.L164
.L198:
	movl	$2147483647, %r11d
	jmp	.L170
.L188:
	movl	$2147483647, %edx
	jmp	.L158
.L184:
	movl	$2147483647, %r13d
	jmp	.L154
.L194:
	movl	$2147483647, %r9d
	jmp	.L166
.L279:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	D
	.bss
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	q
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.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 <stdlib.h>
#include <limits.h>

int n, q, i; 
int* D;

void initValue(void);
int min(int a, int b);
void initRMQ( int n_);
void update(int k, int a);
int findMin(int a, int b);
int query(int a , int b, int k, int l, int r);


int main(int argc, char* argv[]){

    initValue();
	
	initRMQ(n);


	int a, b;
	int com, ans;
	
    while(q > 0){
		
        scanf("%d %d %d",&com, &a, &b);
		
        if(com){
			ans = findMin(a,b);
			printf("%d\n",ans);
		}else{
			update(a,b);
		}	
		q--;
	}

	return 0;
}

int min(int a, int b){
	if(a > b){
	return b;
	}else{
	return a;
	}
}

void initValue(void){

	scanf("%d %d", &n, &q);
	return;
}

void initRMQ(int n_){
	
	n = 1;
	while(n < n_){
		n *= 2;
	}
	
	D = malloc(sizeof(int)* (2 * n - 1));
	
    if(D == NULL){
		printf("Init Array Failed, no memory or size is wrong\n");
		return;
	}

	for(i = 0; i< 2*n-1 ; i++){
		D[i] = INT_MAX;
	}
	return;
}


void update(int k , int a){
	k += n - 1;
	D[k] = a;
	
    while (k > 0){
		k = (k-1)/2;
		D[k] = min(D[k*2+1], D[k*2+2]);
	}
}

int findMin(int a, int b){
	
	return query( a, b+1, 0, 0, n);
}

int query(int a, int b, int k , int l , int r){
	
	if(r <= a || b <= l){
		return INT_MAX;
	}
	if(a <= l && r <= b){
		return D[k];
	}
	
	int vl = query(a, b, k * 2 + 1, l , (l + r) / 2);
	
	int vr = query(a, b, k * 2 + 2, (l + r)/2, r);
	return min(vl, vr);
}



1 3
1 -1 0
0 0 5
1 0 0
 3 5
0 0 1
0 1 2
0 2 3
1 0 2
1 1 4
 1 3
1 -1 0
0 0 9
1 0 0
 3 5
0 0 1
0 2 2
0 2 3
1 0 2
1 1 2
 1 3
1 -1 0
0 0 5
0 0 0
 1 3
1 -1 0
0 0 15
1 0 0
 3 5
0 0 1
0 2 2
0 2 3
1 0 2
0 1 2
 3 5
0 0 1
0 0 2
0 2 6
1 0 2
1 1 4
 3 5
0 0 2
0 2 2
0 2 3
1 0 2
0 1 2
 1 3
1 -1 0
0 0 4
1 0 0

2147483647
5
 1
2
 2147483647
9
 1
3
 2147483647
 2147483647
15
 1
 2
6
 2
 2147483647
4

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 <stdlib.h>
#include <limits.h>

int n, q, i; 
int* D;

void initValue(void);
int min(int a, int b);
void initRMQ( int n_);
void update(int k, int a);
int findMin(int a, int b);
int query(int a , int b, int k, int l, int r);


int main(int argc, char* argv[]){

    initValue();
	
	initRMQ(n);


	int a, b;
	int com, ans;
	
    while(q > 0){
		
        scanf("%d %d %d",&com, &a, &b);
		
        if(com){
			ans = findMin(a,b);
			printf("%d\n",ans);
		}else{
			update(a,b);
		}	
		q--;
	}

	return 0;
}

int min(int a, int b){
	if(a > b){
	return b;
	}else{
	return a;
	}
}

void initValue(void){

	scanf("%d %d", &n, &q);
	return;
}

void initRMQ(int n_){
	
	n = 1;
	while(n < n_){
		n *= 2;
	}
	
	D = malloc(sizeof(int)* (2 * n - 1));
	
    if(D == NULL){
		printf("Init Array Failed, no memory or size is wrong\n");
		return;
	}

	for(i = 0; i< 2*n-1 ; i++){
		D[i] = INT_MAX;
	}
	return;
}


void update(int k , int a){
	k += n - 1;
	D[k] = a;
	
    while (k > 0){
		k = (k-1)/2;
		D[k] = min(D[k*2+1], D[k*2+2]);
	}
}

int findMin(int a, int b){
	
	return query( a, b+1, 0, 0, n);
}

int query(int a, int b, int k , int l , int r){
	
	if(r <= a || b <= l){
		return INT_MAX;
	}
	if(a <= l && r <= b){
		return D[k];
	}
	
	int vl = query(a, b, k * 2 + 1, l , (l + r) / 2);
	
	int vr = query(a, b, k * 2 + 2, (l + r)/2, r);
	return min(vl, vr);
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	q
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	D
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	call	initValue
	movl	n(%rip), %eax
	movl	%eax, %edi
	call	initRMQ
	jmp	.L2
.L5:
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	je	.L3
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	findMin
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L4
.L3:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	update
.L4:
	movl	q(%rip), %eax
	subl	$1, %eax
	movl	%eax, q(%rip)
.L2:
	movl	q(%rip), %eax
	testl	%eax, %eax
	jg	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	min
	.type	min, @function
min:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L9
	movl	-8(%rbp), %eax
	jmp	.L10
.L9:
	movl	-4(%rbp), %eax
.L10:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
.LC2:
	.string	"%d %d"
	.text
	.globl	initValue
	.type	initValue, @function
initValue:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	q(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	initValue, .-initValue
	.section	.rodata
	.align 8
.LC3:
	.string	"Init Array Failed, no memory or size is wrong"
	.text
	.globl	initRMQ
	.type	initRMQ, @function
initRMQ:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	$1, n(%rip)
	jmp	.L14
.L15:
	movl	n(%rip), %eax
	addl	%eax, %eax
	movl	%eax, n(%rip)
.L14:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jg	.L15
	movl	n(%rip), %eax
	addl	%eax, %eax
	subl	$1, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, D(%rip)
	movq	D(%rip), %rax
	testq	%rax, %rax
	jne	.L16
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L16:
	movl	$0, i(%rip)
	jmp	.L18
.L19:
	movq	D(%rip), %rdx
	movl	i(%rip), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$2147483647, (%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L18:
	movl	n(%rip), %eax
	addl	%eax, %eax
	leal	-1(%rax), %edx
	movl	i(%rip), %eax
	cmpl	%eax, %edx
	jg	.L19
	nop
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	initRMQ, .-initRMQ
	.globl	update
	.type	update, @function
update:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$8, %rsp
	.cfi_offset 3, -24
	movl	%edi, -12(%rbp)
	movl	%esi, -16(%rbp)
	movl	n(%rip), %eax
	subl	$1, %eax
	addl	%eax, -12(%rbp)
	movq	D(%rip), %rdx
	movl	-12(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rdx)
	jmp	.L21
.L22:
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12(%rbp)
	movq	D(%rip), %rdx
	movl	-12(%rbp), %eax
	addl	%eax, %eax
	cltq
	addq	$2, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	D(%rip), %rcx
	movl	-12(%rbp), %eax
	addl	%eax, %eax
	cltq
	addq	$1, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	movq	D(%rip), %rsi
	movl	-12(%rbp), %ecx
	movslq	%ecx, %rcx
	salq	$2, %rcx
	leaq	(%rsi,%rcx), %rbx
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, (%rbx)
.L21:
	cmpl	$0, -12(%rbp)
	jg	.L22
	nop
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	update, .-update
	.globl	findMin
	.type	findMin, @function
findMin:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	n(%rip), %edx
	movl	-8(%rbp), %eax
	leal	1(%rax), %esi
	movl	-4(%rbp), %eax
	movl	%edx, %r8d
	movl	$0, %ecx
	movl	$0, %edx
	movl	%eax, %edi
	call	query
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	findMin, .-findMin
	.globl	query
	.type	query, @function
query:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -36(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L26
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jg	.L27
.L26:
	movl	$2147483647, %eax
	jmp	.L28
.L27:
	movl	-20(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jg	.L29
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jg	.L29
	movq	D(%rip), %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	jmp	.L28
.L29:
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edi
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	query
	movl	%eax, -8(%rbp)
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edi
	movl	-28(%rbp), %eax
	addl	$1, %eax
	leal	(%rax,%rax), %edx
	movl	-36(%rbp), %ecx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edi, %ecx
	movl	%eax, %edi
	call	query
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	query, .-query
	.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
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	q
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	D
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	call	initValue
	movl	n(%rip), %eax
	movl	%eax, %edi
	call	initRMQ
	jmp	.L2
.L5:
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	je	.L3
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	findMin
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L4
.L3:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	update
.L4:
	movl	q(%rip), %eax
	subl	$1, %eax
	movl	%eax, q(%rip)
.L2:
	movl	q(%rip), %eax
	testl	%eax, %eax
	jg	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	min
	.type	min, @function
min:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L9
	movl	-8(%rbp), %eax
	jmp	.L10
.L9:
	movl	-4(%rbp), %eax
.L10:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
.LC2:
	.string	"%d %d"
	.text
	.globl	initValue
	.type	initValue, @function
initValue:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	q(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	initValue, .-initValue
	.section	.rodata
	.align 8
.LC3:
	.string	"Init Array Failed, no memory or size is wrong"
	.text
	.globl	initRMQ
	.type	initRMQ, @function
initRMQ:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	$1, n(%rip)
	jmp	.L14
.L15:
	movl	n(%rip), %eax
	addl	%eax, %eax
	movl	%eax, n(%rip)
.L14:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jg	.L15
	movl	n(%rip), %eax
	addl	%eax, %eax
	subl	$1, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, D(%rip)
	movq	D(%rip), %rax
	testq	%rax, %rax
	jne	.L16
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L16:
	movl	$0, i(%rip)
	jmp	.L18
.L19:
	movq	D(%rip), %rdx
	movl	i(%rip), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$2147483647, (%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L18:
	movl	n(%rip), %eax
	addl	%eax, %eax
	leal	-1(%rax), %edx
	movl	i(%rip), %eax
	cmpl	%eax, %edx
	jg	.L19
	nop
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	initRMQ, .-initRMQ
	.globl	update
	.type	update, @function
update:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$8, %rsp
	.cfi_offset 3, -24
	movl	%edi, -12(%rbp)
	movl	%esi, -16(%rbp)
	movl	n(%rip), %eax
	subl	$1, %eax
	addl	%eax, -12(%rbp)
	movq	D(%rip), %rdx
	movl	-12(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rdx)
	jmp	.L21
.L22:
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12(%rbp)
	movq	D(%rip), %rdx
	movl	-12(%rbp), %eax
	addl	%eax, %eax
	cltq
	addq	$2, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	D(%rip), %rcx
	movl	-12(%rbp), %eax
	addl	%eax, %eax
	cltq
	addq	$1, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	movq	D(%rip), %rsi
	movl	-12(%rbp), %ecx
	movslq	%ecx, %rcx
	salq	$2, %rcx
	leaq	(%rsi,%rcx), %rbx
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, (%rbx)
.L21:
	cmpl	$0, -12(%rbp)
	jg	.L22
	nop
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	update, .-update
	.globl	findMin
	.type	findMin, @function
findMin:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	n(%rip), %edx
	movl	-8(%rbp), %eax
	leal	1(%rax), %esi
	movl	-4(%rbp), %eax
	movl	%edx, %r8d
	movl	$0, %ecx
	movl	$0, %edx
	movl	%eax, %edi
	call	query
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	findMin, .-findMin
	.globl	query
	.type	query, @function
query:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -36(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L26
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jg	.L27
.L26:
	movl	$2147483647, %eax
	jmp	.L28
.L27:
	movl	-20(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jg	.L29
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jg	.L29
	movq	D(%rip), %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	jmp	.L28
.L29:
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edi
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	query
	movl	%eax, -8(%rbp)
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edi
	movl	-28(%rbp), %eax
	addl	$1, %eax
	leal	(%rax,%rax), %edx
	movl	-36(%rbp), %ecx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edi, %ecx
	movl	%eax, %edi
	call	query
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	query, .-query
	.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:
