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 MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define LARGE 100001

int a[LARGE];
int lazy[LARGE];
int b,n;

void update(int x){

	for(int i=x*b;i<=MIN(n-1,(x+1)*b-1);i++){
		a[i]=lazy[x];
	}
	lazy[x]=-1;
	
	return;
}

int main(){

	int q,i,j,com;
	int x,y,z;
	
	scanf("%d %d",&n,&q);
	
	b=sqrt(n);
	
	for(i=0;i<n;i++){
		a[i]=INT_MAX;
		lazy[i]=-1;
	}
	
	for(j=0;j<q;j++){
	
		scanf("%d",&com);
		
		if(com==1){/*find*/
			scanf("%d",&x);
			if(lazy[x/b]!=-1)update(x/b);
			printf("%d\n",a[x]);
		}
		
		else {/*update*/
			scanf("%d %d %d",&x,&y,&z);
			if(lazy[x/b]!=-1)update(x/b);
			for(i=x;i<=MIN(y,(x/b+1)*b-1);i++)a[i]=z;
			
			for(i=x/b+1;i<y/b;i++)lazy[i]=z;
			
			if(lazy[y/b]!=-1)update(y/b);
			for(i=MAX(x,y/b*b);i<=y;i++)a[i]=z;
		}
		
	}
	
	return 0;
	
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400004
a:
	.zero	400004
	.globl	lazy
	.align 32
	.type	lazy, @object
	.size	lazy, 400004
lazy:
	.zero	400004
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	update
	.type	update, @function
update:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	b(%rip), %eax
	movl	-20(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L2:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	b(%rip), %eax
	imull	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	n(%rip), %eax
	subl	$1, %eax
	jmp	.L4
.L3:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	b(%rip), %eax
	imull	%edx, %eax
	subl	$1, %eax
.L4:
	cmpl	-4(%rbp), %eax
	jge	.L5
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	$-1, (%rdx,%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	update, .-update
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d %d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-36(%rbp), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, b(%rip)
	movl	$0, -16(%rbp)
	jmp	.L8
.L9:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$2147483647, (%rdx,%rax)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L9
	movl	$0, -12(%rbp)
	jmp	.L10
.L22:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	cmpl	$1, %eax
	jne	.L11
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L12
	movl	-28(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	call	update
.L12:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L11:
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	movl	b(%rip), %edi
	cltd
	idivl	%edi
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L14
	movl	-28(%rbp), %eax
	movl	b(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %edi
	call	update
.L14:
	movl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L15
.L16:
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L15:
	movl	-28(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	leal	1(%rax), %edx
	movl	b(%rip), %eax
	imull	%edx, %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jle	.L16
	movl	-28(%rbp), %eax
	movl	b(%rip), %edi
	cltd
	idivl	%edi
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L17
.L18:
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	lazy(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L17:
	movl	-24(%rbp), %eax
	movl	b(%rip), %ecx
	cltd
	idivl	%ecx
	cmpl	%eax, -16(%rbp)
	jl	.L18
	movl	-24(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L19
	movl	-24(%rbp), %eax
	movl	b(%rip), %edi
	cltd
	idivl	%edi
	movl	%eax, %edi
	call	update
.L19:
	movl	-24(%rbp), %eax
	movl	b(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	b(%rip), %eax
	imull	%eax, %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -16(%rbp)
	jmp	.L20
.L21:
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L20:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L21
.L13:
	addl	$1, -12(%rbp)
.L10:
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L22
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	update
	.type	update, @function
update:
.LFB23:
	.cfi_startproc
	endbr64
	movl	b(%rip), %eax
	movl	n(%rip), %edx
	movl	%eax, %ecx
	leal	-1(%rdx), %esi
	imull	%edi, %ecx
	addl	%ecx, %eax
	leal	-1(%rax), %r8d
	cmpl	%edx, %eax
	cmovg	%esi, %r8d
	cmpl	%ecx, %r8d
	jl	.L13
	movl	%r8d, %eax
	leaq	lazy(%rip), %r10
	movslq	%edi, %rdi
	subl	%ecx, %eax
	leaq	a(%rip), %r9
	leal	1(%rax), %r11d
	cmpl	$2, %eax
	jbe	.L3
	movslq	%ecx, %rax
	leaq	a(%rip), %r9
	movd	(%r10,%rdi,4), %xmm1
	leaq	(%r9,%rax,4), %rdx
	movl	%r11d, %eax
	shrl	$2, %eax
	pshufd	$0, %xmm1, %xmm0
	leal	-1(%rax), %esi
	leaq	16(%rdx), %rax
	salq	$4, %rsi
	addq	%rax, %rsi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$16, %rax
.L4:
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rax, %rsi
	jne	.L14
	movl	%r11d, %eax
	andl	$-4, %eax
	addl	%eax, %ecx
	cmpl	%eax, %r11d
	je	.L2
.L3:
	movl	(%r10,%rdi,4), %edx
	movslq	%ecx, %rax
	movl	%edx, (%r9,%rax,4)
	leal	1(%rcx), %eax
	cmpl	%eax, %r8d
	jl	.L2
	cltq
	addl	$2, %ecx
	movl	%edx, (%r9,%rax,4)
	cmpl	%ecx, %r8d
	jl	.L2
	movslq	%ecx, %rcx
	movl	%edx, (%r9,%rcx,4)
.L2:
	movl	$-1, (%r10,%rdi,4)
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	lazy(%rip), %r10
	movslq	%edi, %rdi
	movl	$-1, (%r10,%rdi,4)
	ret
	.cfi_endproc
.LFE23:
	.size	update, .-update
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ebx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L83
	sqrtsd	%xmm0, %xmm0
.L18:
	cvttsd2sil	%xmm0, %eax
	movl	%eax, b(%rip)
	testl	%ebx, %ebx
	jle	.L25
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L64
	movl	%ebx, %edx
	leaq	a(%rip), %rcx
	movdqa	.LC2(%rip), %xmm0
	shrl	$2, %edx
	leaq	16(%rcx), %rsi
	movq	%rcx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L23:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L23
	movl	%ebx, %eax
	andl	$-4, %eax
	testb	$3, %bl
	je	.L24
.L22:
	movslq	%eax, %rdx
	movl	$2147483647, (%rcx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L24
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$2147483647, (%rcx,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L24
	cltq
	movl	$2147483647, (%rcx,%rax,4)
.L24:
	movl	%ebx, %edx
	leaq	lazy(%rip), %rbp
	movl	$255, %esi
	salq	$2, %rdx
	movq	%rbp, %rdi
	call	memset@PLT
.L25:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	40(%rsp), %rax
	leaq	44(%rsp), %r14
	xorl	%r12d, %r12d
	movq	%rax, (%rsp)
	leaq	52(%rsp), %rax
	movq	%r14, %r13
	leaq	lazy(%rip), %rbp
	movq	%rax, 16(%rsp)
	leaq	.LC3(%rip), %r15
	leaq	a(%rip), %rbx
	movl	%r12d, %r14d
	.p2align 4,,10
	.p2align 3
.L20:
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 40(%rsp)
	jne	.L26
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %esi
	movl	b(%rip), %ecx
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movslq	%eax, %r8
	movl	0(%rbp,%r8,4), %edi
	cmpl	$-1, %edi
	je	.L27
	imull	%ecx, %eax
	movl	n(%rip), %edx
	leal	-1(%rdx), %r10d
	addl	%eax, %ecx
	leal	-1(%rcx), %r9d
	cmpl	%edx, %ecx
	cmovle	%r9d, %r10d
	cmpl	%r10d, %eax
	jg	.L28
	movl	%r10d, %edx
	subl	%eax, %edx
	leal	1(%rdx), %r11d
	cmpl	$2, %edx
	jbe	.L29
	movslq	%eax, %rdx
	movd	%edi, %xmm5
	leaq	(%rbx,%rdx,4), %rcx
	movl	%r11d, %edx
	pshufd	$0, %xmm5, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %r9d
	leaq	16(%rcx), %rdx
	salq	$4, %r9
	addq	%rdx, %r9
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L92:
	addq	$16, %rdx
.L30:
	movups	%xmm0, (%rcx)
	movq	%rdx, %rcx
	cmpq	%rdx, %r9
	jne	.L92
	movl	%r11d, %edx
	andl	$-4, %edx
	addl	%edx, %eax
	cmpl	%edx, %r11d
	je	.L28
.L29:
	movslq	%eax, %rdx
	movl	%edi, (%rbx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %r10d
	jl	.L28
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	%edi, (%rbx,%rdx,4)
	cmpl	%eax, %r10d
	jl	.L28
	cltq
	movl	%edi, (%rbx,%rax,4)
.L28:
	movl	$-1, 0(%rbp,%r8,4)
.L27:
	movslq	%esi, %rax
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L32:
	addl	$1, %r14d
	cmpl	%r14d, 36(%rsp)
	jg	.L20
.L21:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L93
	addq	$72, %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
.L26:
	.cfi_restore_state
	movq	16(%rsp), %rcx
	leaq	48(%rsp), %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %edi
	movl	b(%rip), %esi
	movl	%edi, %eax
	cltd
	idivl	%esi
	movslq	%eax, %rcx
	movl	0(%rbp,%rcx,4), %r11d
	movq	%rcx, 8(%rsp)
	cmpl	$-1, %r11d
	jne	.L33
	leal	1(%rax), %ecx
	movl	%esi, %eax
	imull	%ecx, %eax
	leal	-1(%rax), %edx
.L34:
	movl	48(%rsp), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	cmpl	%edx, %edi
	jg	.L45
	movl	%edx, %eax
	movl	52(%rsp), %r11d
	subl	%edi, %eax
	leal	1(%rax), %r12d
	cmpl	$2, %eax
	jbe	.L65
	movslq	%edi, %rax
	movd	%r11d, %xmm2
	leaq	(%rbx,%rax,4), %r9
	movl	%r12d, %eax
	pshufd	$0, %xmm2, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %r10d
	leaq	16(%r9), %rax
	salq	$4, %r10
	addq	%rax, %r10
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L94:
	addq	$16, %rax
.L43:
	movups	%xmm0, (%r9)
	movq	%rax, %r9
	cmpq	%r10, %rax
	jne	.L94
	movl	%r12d, %r9d
	andl	$-4, %r9d
	leal	(%r9,%rdi), %eax
	cmpl	%r9d, %r12d
	je	.L45
.L42:
	movslq	%eax, %r9
	movl	%r11d, (%rbx,%r9,4)
	leal	1(%rax), %r9d
	cmpl	%r9d, %edx
	jl	.L45
	movslq	%r9d, %r9
	addl	$2, %eax
	movl	%r11d, (%rbx,%r9,4)
	cmpl	%eax, %edx
	jl	.L45
	cltq
	movl	%r11d, (%rbx,%rax,4)
.L45:
	movl	%r8d, %eax
	cltd
	idivl	%esi
	cmpl	%ecx, %eax
	jle	.L41
	movl	%eax, %r11d
	movl	52(%rsp), %r12d
	subl	%ecx, %r11d
	leal	-1(%r11), %edx
	cmpl	$2, %edx
	jbe	.L49
	movslq	%ecx, %rdx
	movd	%r12d, %xmm3
	leaq	0(%rbp,%rdx,4), %r9
	movl	%r11d, %edx
	pshufd	$0, %xmm3, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %r10d
	leaq	16(%r9), %rdx
	salq	$4, %r10
	addq	%rdx, %r10
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L95:
	addq	$16, %rdx
.L50:
	movups	%xmm0, (%r9)
	movq	%rdx, %r9
	cmpq	%rdx, %r10
	jne	.L95
	movl	%r11d, %edx
	andl	$-4, %edx
	addl	%edx, %ecx
	cmpl	%edx, %r11d
	je	.L41
.L49:
	movslq	%ecx, %rdx
	movl	%r12d, 0(%rbp,%rdx,4)
	leal	1(%rcx), %edx
	cmpl	%edx, %eax
	jle	.L41
	movslq	%edx, %rdx
	addl	$2, %ecx
	movl	%r12d, 0(%rbp,%rdx,4)
	cmpl	%ecx, %eax
	jle	.L41
	movslq	%ecx, %rcx
	movl	%r12d, 0(%rbp,%rcx,4)
.L41:
	movslq	%eax, %r10
	imull	%esi, %eax
	movl	0(%rbp,%r10,4), %r9d
	cmpl	$-1, %r9d
	je	.L48
	movl	n(%rip), %edx
	addl	%eax, %esi
	leal	-1(%rsi), %ecx
	leal	-1(%rdx), %r11d
	cmpl	%edx, %esi
	cmovle	%ecx, %r11d
	cmpl	%r11d, %eax
	jg	.L52
	movl	%r11d, %edx
	subl	%eax, %edx
	leal	1(%rdx), %r12d
	cmpl	$2, %edx
	jbe	.L66
	movslq	%eax, %rdx
	movd	%r9d, %xmm7
	leaq	(%rbx,%rdx,4), %rcx
	movl	%r12d, %edx
	pshufd	$0, %xmm7, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %esi
	leaq	16(%rcx), %rdx
	salq	$4, %rsi
	addq	%rdx, %rsi
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L96:
	addq	$16, %rdx
.L54:
	movups	%xmm0, (%rcx)
	movq	%rdx, %rcx
	cmpq	%rdx, %rsi
	jne	.L96
	movl	%r12d, %ecx
	andl	$-4, %ecx
	leal	(%rcx,%rax), %edx
	cmpl	%ecx, %r12d
	je	.L52
.L53:
	movslq	%edx, %rcx
	movl	%r9d, (%rbx,%rcx,4)
	leal	1(%rdx), %ecx
	cmpl	%ecx, %r11d
	jl	.L52
	movslq	%ecx, %rcx
	addl	$2, %edx
	movl	%r9d, (%rbx,%rcx,4)
	cmpl	%edx, %r11d
	jl	.L52
	movslq	%edx, %rdx
	movl	%r9d, (%rbx,%rdx,4)
.L52:
	movl	$-1, 0(%rbp,%r10,4)
.L48:
	cmpl	%eax, %edi
	cmovge	%edi, %eax
	cmpl	%eax, %r8d
	jl	.L32
	movl	%r8d, %edx
	movl	52(%rsp), %edi
	subl	%eax, %edx
	leal	1(%rdx), %r9d
	cmpl	$2, %edx
	jbe	.L57
	movslq	%eax, %rdx
	movd	%edi, %xmm4
	leaq	(%rbx,%rdx,4), %rcx
	movl	%r9d, %edx
	pshufd	$0, %xmm4, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %esi
	leaq	16(%rcx), %rdx
	salq	$4, %rsi
	addq	%rdx, %rsi
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L97:
	addq	$16, %rdx
.L58:
	movups	%xmm0, (%rcx)
	movq	%rdx, %rcx
	cmpq	%rsi, %rdx
	jne	.L97
	movl	%r9d, %edx
	andl	$-4, %edx
	addl	%edx, %eax
	cmpl	%edx, %r9d
	je	.L32
.L57:
	movslq	%eax, %rdx
	movl	%edi, (%rbx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %r8d
	jl	.L32
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	%edi, (%rbx,%rdx,4)
	cmpl	%eax, %r8d
	jl	.L32
	cltq
	movl	%edi, (%rbx,%rax,4)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%esi, %r9d
	movl	n(%rip), %r8d
	leal	1(%rax), %ecx
	imull	%eax, %r9d
	leal	-1(%r8), %r12d
	leal	(%rsi,%r9), %eax
	leal	-1(%rax), %edx
	cmpl	%r8d, %eax
	cmovle	%edx, %r12d
	cmpl	%r12d, %r9d
	jg	.L35
	movl	%r12d, %eax
	subl	%r9d, %eax
	leal	1(%rax), %r10d
	movl	%r10d, 28(%rsp)
	cmpl	$2, %eax
	jbe	.L36
	movslq	%r9d, %rax
	movd	%r11d, %xmm6
	leaq	(%rbx,%rax,4), %r8
	movl	%r10d, %eax
	pshufd	$0, %xmm6, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %r10d
	leaq	16(%r8), %rax
	salq	$4, %r10
	addq	%rax, %r10
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L98:
	addq	$16, %rax
.L37:
	movups	%xmm0, (%r8)
	movq	%rax, %r8
	cmpq	%r10, %rax
	jne	.L98
	movl	28(%rsp), %r8d
	movl	%r8d, %eax
	andl	$-4, %eax
	addl	%eax, %r9d
	cmpl	%eax, %r8d
	je	.L35
.L36:
	movslq	%r9d, %rax
	movl	%r11d, (%rbx,%rax,4)
	leal	1(%r9), %eax
	cmpl	%eax, %r12d
	jl	.L35
	cltq
	addl	$2, %r9d
	movl	%r11d, (%rbx,%rax,4)
	cmpl	%r9d, %r12d
	jl	.L35
	movslq	%r9d, %r9
	movl	%r11d, (%rbx,%r9,4)
.L35:
	movq	8(%rsp), %rax
	movl	$-1, 0(%rbp,%rax,4)
	jmp	.L34
.L65:
	movl	%edi, %eax
	jmp	.L42
.L66:
	movl	%eax, %edx
	jmp	.L53
.L64:
	xorl	%eax, %eax
	leaq	a(%rip), %rcx
	jmp	.L22
.L93:
	call	__stack_chk_fail@PLT
.L83:
	call	sqrt@PLT
	jmp	.L18
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	lazy
	.align 32
	.type	lazy, @object
	.size	lazy, 400004
lazy:
	.zero	400004
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400004
a:
	.zero	400004
	.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	update
	.type	update, @function
update:
.LFB23:
	.cfi_startproc
	endbr64
	movl	b(%rip), %eax
	movl	n(%rip), %edx
	movl	%eax, %ecx
	leal	-1(%rdx), %esi
	imull	%edi, %ecx
	addl	%ecx, %eax
	leal	-1(%rax), %r8d
	cmpl	%edx, %eax
	cmovg	%esi, %r8d
	cmpl	%ecx, %r8d
	jl	.L13
	movl	%r8d, %eax
	leaq	lazy(%rip), %r10
	movslq	%edi, %rdi
	subl	%ecx, %eax
	leaq	a(%rip), %r9
	leal	1(%rax), %r11d
	cmpl	$2, %eax
	jbe	.L3
	movslq	%ecx, %rax
	leaq	a(%rip), %r9
	movd	(%r10,%rdi,4), %xmm1
	leaq	(%r9,%rax,4), %rdx
	movl	%r11d, %eax
	shrl	$2, %eax
	pshufd	$0, %xmm1, %xmm0
	leal	-1(%rax), %esi
	leaq	16(%rdx), %rax
	salq	$4, %rsi
	addq	%rax, %rsi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$16, %rax
.L4:
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rax, %rsi
	jne	.L14
	movl	%r11d, %eax
	andl	$-4, %eax
	addl	%eax, %ecx
	cmpl	%eax, %r11d
	je	.L2
.L3:
	movl	(%r10,%rdi,4), %edx
	movslq	%ecx, %rax
	movl	%edx, (%r9,%rax,4)
	leal	1(%rcx), %eax
	cmpl	%eax, %r8d
	jl	.L2
	cltq
	addl	$2, %ecx
	movl	%edx, (%r9,%rax,4)
	cmpl	%ecx, %r8d
	jl	.L2
	movslq	%ecx, %rcx
	movl	%edx, (%r9,%rcx,4)
.L2:
	movl	$-1, (%r10,%rdi,4)
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	lazy(%rip), %r10
	movslq	%edi, %rdi
	movl	$-1, (%r10,%rdi,4)
	ret
	.cfi_endproc
.LFE23:
	.size	update, .-update
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ebx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L83
	sqrtsd	%xmm0, %xmm0
.L18:
	cvttsd2sil	%xmm0, %eax
	movl	%eax, b(%rip)
	testl	%ebx, %ebx
	jle	.L25
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L64
	movl	%ebx, %edx
	leaq	a(%rip), %rcx
	movdqa	.LC2(%rip), %xmm0
	shrl	$2, %edx
	leaq	16(%rcx), %rsi
	movq	%rcx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L23:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L23
	movl	%ebx, %eax
	andl	$-4, %eax
	testb	$3, %bl
	je	.L24
.L22:
	movslq	%eax, %rdx
	movl	$2147483647, (%rcx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L24
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$2147483647, (%rcx,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L24
	cltq
	movl	$2147483647, (%rcx,%rax,4)
.L24:
	movl	%ebx, %edx
	leaq	lazy(%rip), %rbp
	movl	$255, %esi
	salq	$2, %rdx
	movq	%rbp, %rdi
	call	memset@PLT
.L25:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	40(%rsp), %rax
	leaq	44(%rsp), %r14
	xorl	%r12d, %r12d
	movq	%rax, (%rsp)
	leaq	52(%rsp), %rax
	movq	%r14, %r13
	leaq	lazy(%rip), %rbp
	movq	%rax, 16(%rsp)
	leaq	.LC3(%rip), %r15
	leaq	a(%rip), %rbx
	movl	%r12d, %r14d
	.p2align 4,,10
	.p2align 3
.L20:
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 40(%rsp)
	jne	.L26
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %esi
	movl	b(%rip), %ecx
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movslq	%eax, %r8
	movl	0(%rbp,%r8,4), %edi
	cmpl	$-1, %edi
	je	.L27
	imull	%ecx, %eax
	movl	n(%rip), %edx
	leal	-1(%rdx), %r10d
	addl	%eax, %ecx
	leal	-1(%rcx), %r9d
	cmpl	%edx, %ecx
	cmovle	%r9d, %r10d
	cmpl	%r10d, %eax
	jg	.L28
	movl	%r10d, %edx
	subl	%eax, %edx
	leal	1(%rdx), %r11d
	cmpl	$2, %edx
	jbe	.L29
	movslq	%eax, %rdx
	movd	%edi, %xmm5
	leaq	(%rbx,%rdx,4), %rcx
	movl	%r11d, %edx
	pshufd	$0, %xmm5, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %r9d
	leaq	16(%rcx), %rdx
	salq	$4, %r9
	addq	%rdx, %r9
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L92:
	addq	$16, %rdx
.L30:
	movups	%xmm0, (%rcx)
	movq	%rdx, %rcx
	cmpq	%rdx, %r9
	jne	.L92
	movl	%r11d, %edx
	andl	$-4, %edx
	addl	%edx, %eax
	cmpl	%edx, %r11d
	je	.L28
.L29:
	movslq	%eax, %rdx
	movl	%edi, (%rbx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %r10d
	jl	.L28
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	%edi, (%rbx,%rdx,4)
	cmpl	%eax, %r10d
	jl	.L28
	cltq
	movl	%edi, (%rbx,%rax,4)
.L28:
	movl	$-1, 0(%rbp,%r8,4)
.L27:
	movslq	%esi, %rax
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L32:
	addl	$1, %r14d
	cmpl	%r14d, 36(%rsp)
	jg	.L20
.L21:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L93
	addq	$72, %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
.L26:
	.cfi_restore_state
	movq	16(%rsp), %rcx
	leaq	48(%rsp), %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %edi
	movl	b(%rip), %esi
	movl	%edi, %eax
	cltd
	idivl	%esi
	movslq	%eax, %rcx
	movl	0(%rbp,%rcx,4), %r11d
	movq	%rcx, 8(%rsp)
	cmpl	$-1, %r11d
	jne	.L33
	leal	1(%rax), %ecx
	movl	%esi, %eax
	imull	%ecx, %eax
	leal	-1(%rax), %edx
.L34:
	movl	48(%rsp), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	cmpl	%edx, %edi
	jg	.L45
	movl	%edx, %eax
	movl	52(%rsp), %r11d
	subl	%edi, %eax
	leal	1(%rax), %r12d
	cmpl	$2, %eax
	jbe	.L65
	movslq	%edi, %rax
	movd	%r11d, %xmm2
	leaq	(%rbx,%rax,4), %r9
	movl	%r12d, %eax
	pshufd	$0, %xmm2, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %r10d
	leaq	16(%r9), %rax
	salq	$4, %r10
	addq	%rax, %r10
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L94:
	addq	$16, %rax
.L43:
	movups	%xmm0, (%r9)
	movq	%rax, %r9
	cmpq	%r10, %rax
	jne	.L94
	movl	%r12d, %r9d
	andl	$-4, %r9d
	leal	(%r9,%rdi), %eax
	cmpl	%r9d, %r12d
	je	.L45
.L42:
	movslq	%eax, %r9
	movl	%r11d, (%rbx,%r9,4)
	leal	1(%rax), %r9d
	cmpl	%r9d, %edx
	jl	.L45
	movslq	%r9d, %r9
	addl	$2, %eax
	movl	%r11d, (%rbx,%r9,4)
	cmpl	%eax, %edx
	jl	.L45
	cltq
	movl	%r11d, (%rbx,%rax,4)
.L45:
	movl	%r8d, %eax
	cltd
	idivl	%esi
	cmpl	%ecx, %eax
	jle	.L41
	movl	%eax, %r11d
	movl	52(%rsp), %r12d
	subl	%ecx, %r11d
	leal	-1(%r11), %edx
	cmpl	$2, %edx
	jbe	.L49
	movslq	%ecx, %rdx
	movd	%r12d, %xmm3
	leaq	0(%rbp,%rdx,4), %r9
	movl	%r11d, %edx
	pshufd	$0, %xmm3, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %r10d
	leaq	16(%r9), %rdx
	salq	$4, %r10
	addq	%rdx, %r10
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L95:
	addq	$16, %rdx
.L50:
	movups	%xmm0, (%r9)
	movq	%rdx, %r9
	cmpq	%rdx, %r10
	jne	.L95
	movl	%r11d, %edx
	andl	$-4, %edx
	addl	%edx, %ecx
	cmpl	%edx, %r11d
	je	.L41
.L49:
	movslq	%ecx, %rdx
	movl	%r12d, 0(%rbp,%rdx,4)
	leal	1(%rcx), %edx
	cmpl	%edx, %eax
	jle	.L41
	movslq	%edx, %rdx
	addl	$2, %ecx
	movl	%r12d, 0(%rbp,%rdx,4)
	cmpl	%ecx, %eax
	jle	.L41
	movslq	%ecx, %rcx
	movl	%r12d, 0(%rbp,%rcx,4)
.L41:
	movslq	%eax, %r10
	imull	%esi, %eax
	movl	0(%rbp,%r10,4), %r9d
	cmpl	$-1, %r9d
	je	.L48
	movl	n(%rip), %edx
	addl	%eax, %esi
	leal	-1(%rsi), %ecx
	leal	-1(%rdx), %r11d
	cmpl	%edx, %esi
	cmovle	%ecx, %r11d
	cmpl	%r11d, %eax
	jg	.L52
	movl	%r11d, %edx
	subl	%eax, %edx
	leal	1(%rdx), %r12d
	cmpl	$2, %edx
	jbe	.L66
	movslq	%eax, %rdx
	movd	%r9d, %xmm7
	leaq	(%rbx,%rdx,4), %rcx
	movl	%r12d, %edx
	pshufd	$0, %xmm7, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %esi
	leaq	16(%rcx), %rdx
	salq	$4, %rsi
	addq	%rdx, %rsi
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L96:
	addq	$16, %rdx
.L54:
	movups	%xmm0, (%rcx)
	movq	%rdx, %rcx
	cmpq	%rdx, %rsi
	jne	.L96
	movl	%r12d, %ecx
	andl	$-4, %ecx
	leal	(%rcx,%rax), %edx
	cmpl	%ecx, %r12d
	je	.L52
.L53:
	movslq	%edx, %rcx
	movl	%r9d, (%rbx,%rcx,4)
	leal	1(%rdx), %ecx
	cmpl	%ecx, %r11d
	jl	.L52
	movslq	%ecx, %rcx
	addl	$2, %edx
	movl	%r9d, (%rbx,%rcx,4)
	cmpl	%edx, %r11d
	jl	.L52
	movslq	%edx, %rdx
	movl	%r9d, (%rbx,%rdx,4)
.L52:
	movl	$-1, 0(%rbp,%r10,4)
.L48:
	cmpl	%eax, %edi
	cmovge	%edi, %eax
	cmpl	%eax, %r8d
	jl	.L32
	movl	%r8d, %edx
	movl	52(%rsp), %edi
	subl	%eax, %edx
	leal	1(%rdx), %r9d
	cmpl	$2, %edx
	jbe	.L57
	movslq	%eax, %rdx
	movd	%edi, %xmm4
	leaq	(%rbx,%rdx,4), %rcx
	movl	%r9d, %edx
	pshufd	$0, %xmm4, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %esi
	leaq	16(%rcx), %rdx
	salq	$4, %rsi
	addq	%rdx, %rsi
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L97:
	addq	$16, %rdx
.L58:
	movups	%xmm0, (%rcx)
	movq	%rdx, %rcx
	cmpq	%rsi, %rdx
	jne	.L97
	movl	%r9d, %edx
	andl	$-4, %edx
	addl	%edx, %eax
	cmpl	%edx, %r9d
	je	.L32
.L57:
	movslq	%eax, %rdx
	movl	%edi, (%rbx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %r8d
	jl	.L32
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	%edi, (%rbx,%rdx,4)
	cmpl	%eax, %r8d
	jl	.L32
	cltq
	movl	%edi, (%rbx,%rax,4)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%esi, %r9d
	movl	n(%rip), %r8d
	leal	1(%rax), %ecx
	imull	%eax, %r9d
	leal	-1(%r8), %r12d
	leal	(%rsi,%r9), %eax
	leal	-1(%rax), %edx
	cmpl	%r8d, %eax
	cmovle	%edx, %r12d
	cmpl	%r12d, %r9d
	jg	.L35
	movl	%r12d, %eax
	subl	%r9d, %eax
	leal	1(%rax), %r10d
	movl	%r10d, 28(%rsp)
	cmpl	$2, %eax
	jbe	.L36
	movslq	%r9d, %rax
	movd	%r11d, %xmm6
	leaq	(%rbx,%rax,4), %r8
	movl	%r10d, %eax
	pshufd	$0, %xmm6, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %r10d
	leaq	16(%r8), %rax
	salq	$4, %r10
	addq	%rax, %r10
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L98:
	addq	$16, %rax
.L37:
	movups	%xmm0, (%r8)
	movq	%rax, %r8
	cmpq	%r10, %rax
	jne	.L98
	movl	28(%rsp), %r8d
	movl	%r8d, %eax
	andl	$-4, %eax
	addl	%eax, %r9d
	cmpl	%eax, %r8d
	je	.L35
.L36:
	movslq	%r9d, %rax
	movl	%r11d, (%rbx,%rax,4)
	leal	1(%r9), %eax
	cmpl	%eax, %r12d
	jl	.L35
	cltq
	addl	$2, %r9d
	movl	%r11d, (%rbx,%rax,4)
	cmpl	%r9d, %r12d
	jl	.L35
	movslq	%r9d, %r9
	movl	%r11d, (%rbx,%r9,4)
.L35:
	movq	8(%rsp), %rax
	movl	$-1, 0(%rbp,%rax,4)
	jmp	.L34
.L65:
	movl	%edi, %eax
	jmp	.L42
.L66:
	movl	%eax, %edx
	jmp	.L53
.L64:
	xorl	%eax, %eax
	leaq	a(%rip), %rcx
	jmp	.L22
.L93:
	call	__stack_chk_fail@PLT
.L83:
	call	sqrt@PLT
	jmp	.L18
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	lazy
	.align 32
	.type	lazy, @object
	.size	lazy, 400004
lazy:
	.zero	400004
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400004
a:
	.zero	400004
	.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<math.h>
#include<limits.h>
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define LARGE 100001

int a[LARGE];
int lazy[LARGE];
int b,n;

void update(int x){

	for(int i=x*b;i<=MIN(n-1,(x+1)*b-1);i++){
		a[i]=lazy[x];
	}
	lazy[x]=-1;
	
	return;
}

int main(){

	int q,i,j,com;
	int x,y,z;
	
	scanf("%d %d",&n,&q);
	
	b=sqrt(n);
	
	for(i=0;i<n;i++){
		a[i]=INT_MAX;
		lazy[i]=-1;
	}
	
	for(j=0;j<q;j++){
	
		scanf("%d",&com);
		
		if(com==1){/*find*/
			scanf("%d",&x);
			if(lazy[x/b]!=-1)update(x/b);
			printf("%d\n",a[x]);
		}
		
		else {/*update*/
			scanf("%d %d %d",&x,&y,&z);
			if(lazy[x/b]!=-1)update(x/b);
			for(i=x;i<=MIN(y,(x/b+1)*b-1);i++)a[i]=z;
			
			for(i=x/b+1;i<y/b;i++)lazy[i]=z;
			
			if(lazy[y/b]!=-1)update(y/b);
			for(i=MAX(x,y/b*b);i<=y;i++)a[i]=z;
		}
		
	}
	
	return 0;
	
}

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

2
2
 2147483647
5
 2
 2147483647
2147483647
 2147483647
2147483647
2
 2147483647
 2147483647
2147483647
 2147483647
2147483647
2147483647
 1
1
 1
1

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 MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define LARGE 100001

int a[LARGE];
int lazy[LARGE];
int b,n;

void update(int x){

	for(int i=x*b;i<=MIN(n-1,(x+1)*b-1);i++){
		a[i]=lazy[x];
	}
	lazy[x]=-1;
	
	return;
}

int main(){

	int q,i,j,com;
	int x,y,z;
	
	scanf("%d %d",&n,&q);
	
	b=sqrt(n);
	
	for(i=0;i<n;i++){
		a[i]=INT_MAX;
		lazy[i]=-1;
	}
	
	for(j=0;j<q;j++){
	
		scanf("%d",&com);
		
		if(com==1){/*find*/
			scanf("%d",&x);
			if(lazy[x/b]!=-1)update(x/b);
			printf("%d\n",a[x]);
		}
		
		else {/*update*/
			scanf("%d %d %d",&x,&y,&z);
			if(lazy[x/b]!=-1)update(x/b);
			for(i=x;i<=MIN(y,(x/b+1)*b-1);i++)a[i]=z;
			
			for(i=x/b+1;i<y/b;i++)lazy[i]=z;
			
			if(lazy[y/b]!=-1)update(y/b);
			for(i=MAX(x,y/b*b);i<=y;i++)a[i]=z;
		}
		
	}
	
	return 0;
	
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400004
a:
	.zero	400004
	.globl	lazy
	.align 32
	.type	lazy, @object
	.size	lazy, 400004
lazy:
	.zero	400004
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	update
	.type	update, @function
update:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	b(%rip), %eax
	movl	-20(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L2:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	b(%rip), %eax
	imull	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	n(%rip), %eax
	subl	$1, %eax
	jmp	.L4
.L3:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	b(%rip), %eax
	imull	%edx, %eax
	subl	$1, %eax
.L4:
	cmpl	-4(%rbp), %eax
	jge	.L5
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	$-1, (%rdx,%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	update, .-update
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d %d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-36(%rbp), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, b(%rip)
	movl	$0, -16(%rbp)
	jmp	.L8
.L9:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$2147483647, (%rdx,%rax)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L9
	movl	$0, -12(%rbp)
	jmp	.L10
.L22:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	cmpl	$1, %eax
	jne	.L11
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L12
	movl	-28(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	call	update
.L12:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L11:
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	movl	b(%rip), %edi
	cltd
	idivl	%edi
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L14
	movl	-28(%rbp), %eax
	movl	b(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %edi
	call	update
.L14:
	movl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L15
.L16:
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L15:
	movl	-28(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	leal	1(%rax), %edx
	movl	b(%rip), %eax
	imull	%edx, %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jle	.L16
	movl	-28(%rbp), %eax
	movl	b(%rip), %edi
	cltd
	idivl	%edi
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L17
.L18:
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	lazy(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L17:
	movl	-24(%rbp), %eax
	movl	b(%rip), %ecx
	cltd
	idivl	%ecx
	cmpl	%eax, -16(%rbp)
	jl	.L18
	movl	-24(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L19
	movl	-24(%rbp), %eax
	movl	b(%rip), %edi
	cltd
	idivl	%edi
	movl	%eax, %edi
	call	update
.L19:
	movl	-24(%rbp), %eax
	movl	b(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	b(%rip), %eax
	imull	%eax, %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -16(%rbp)
	jmp	.L20
.L21:
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L20:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L21
.L13:
	addl	$1, -12(%rbp)
.L10:
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L22
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400004
a:
	.zero	400004
	.globl	lazy
	.align 32
	.type	lazy, @object
	.size	lazy, 400004
lazy:
	.zero	400004
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	update
	.type	update, @function
update:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	b(%rip), %eax
	movl	-20(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L2:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	b(%rip), %eax
	imull	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	n(%rip), %eax
	subl	$1, %eax
	jmp	.L4
.L3:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	b(%rip), %eax
	imull	%edx, %eax
	subl	$1, %eax
.L4:
	cmpl	-4(%rbp), %eax
	jge	.L5
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	$-1, (%rdx,%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	update, .-update
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d %d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-36(%rbp), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, b(%rip)
	movl	$0, -16(%rbp)
	jmp	.L8
.L9:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$2147483647, (%rdx,%rax)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L9
	movl	$0, -12(%rbp)
	jmp	.L10
.L22:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	cmpl	$1, %eax
	jne	.L11
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L12
	movl	-28(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	call	update
.L12:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L11:
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	movl	b(%rip), %edi
	cltd
	idivl	%edi
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L14
	movl	-28(%rbp), %eax
	movl	b(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %edi
	call	update
.L14:
	movl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L15
.L16:
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L15:
	movl	-28(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	leal	1(%rax), %edx
	movl	b(%rip), %eax
	imull	%edx, %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jle	.L16
	movl	-28(%rbp), %eax
	movl	b(%rip), %edi
	cltd
	idivl	%edi
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L17
.L18:
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	lazy(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L17:
	movl	-24(%rbp), %eax
	movl	b(%rip), %ecx
	cltd
	idivl	%ecx
	cmpl	%eax, -16(%rbp)
	jl	.L18
	movl	-24(%rbp), %eax
	movl	b(%rip), %esi
	cltd
	idivl	%esi
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lazy(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L19
	movl	-24(%rbp), %eax
	movl	b(%rip), %edi
	cltd
	idivl	%edi
	movl	%eax, %edi
	call	update
.L19:
	movl	-24(%rbp), %eax
	movl	b(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	b(%rip), %eax
	imull	%eax, %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -16(%rbp)
	jmp	.L20
.L21:
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L20:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L21
.L13:
	addl	$1, -12(%rbp)
.L10:
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L22
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
