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

```c
#pragma GCC optimize ("Ofast")
#pragma GCC target ("avx2")

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define NMAX 200001

int a[NMAX], up[NMAX], bt[NMAX];
int imos[NMAX];

void reset(int n) {
    for(int i = 0; i < n; i++) imos[i] = 0;
}

int get_int() {
    int res = 0;
    char c = getchar();
    while(c != EOF && c != ' ' && c != '\n') {
        res *= 10;
        res += c - '0';
        c = getchar();
    }
    return res;
}

void put_int(int n) {
    char c[30];
    int sz = 0;
    c[sz++] = (n % 10) + '0';
    n /= 10;
    while(n > 0) {
        c[sz++] = (n % 10) + '0';
        n /= 10;
    }
    for(int i = sz-1; i >= 0; i--) {
        putchar(c[i]);
    }
    putchar('\n');
}

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

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

int main(){

    int n, k;
    n = get_int();
    k = get_int();
    for(int i = 0; i < n; i++) a[i] = get_int();

    for(int itr = 0; itr < k; itr++) {
        reset(n+1);
        for(int i = 0; i < n; i++) {
            if(i > a[i]) bt[i] = i - a[i];
            else bt[i] = 0;
            if(n < i + a[i] + 1) up[i] = n;
            else up[i] = i + a[i] + 1;
        }
        for(int i = 0; i < n; i++){
            imos[bt[i]]++;
            imos[up[i]]--;
        }
        int acc = 0;
        for(int i = 0; i < n; i++){
            acc += imos[i];
            a[i] = acc;
        }
        int sum = 0;
        for(int i = 0; i < n; i++) sum += a[i];
        if(sum == n * n) break;
    }

    for(int i = 0; i < n; i++) put_int(a[i]);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800004
a:
	.zero	800004
	.globl	up
	.align 32
	.type	up, @object
	.size	up, 800004
up:
	.zero	800004
	.globl	bt
	.align 32
	.type	bt, @object
	.size	bt, 800004
bt:
	.zero	800004
	.globl	imos
	.align 32
	.type	imos, @object
	.size	imos, 800004
imos:
	.zero	800004
	.text
	.p2align 4
	.globl	reset
	.type	reset, @function
reset:
.LFB6:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L3
	movslq	%edi, %rdi
	xorl	%esi, %esi
	leaq	0(,%rdi,4), %rdx
	leaq	imos(%rip), %rdi
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	ret
	.cfi_endproc
.LFE6:
	.size	reset, .-reset
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L6
	movabsq	$-8589936642, %rcx
	btq	%rax, %rcx
	jnc	.L5
.L6:
	movabsq	$-8589936642, %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	leal	(%r12,%r12,4), %eax
	leal	-48(%rdx,%rax,2), %r12d
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L11
	btq	%rax, %rbx
	jc	.L11
.L5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int, .-get_int
	.p2align 4
	.globl	put_int
	.type	put_int, @function
put_int:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdx
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	imulq	$1717986919, %rdx, %rdx
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	sarq	$34, %rdx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	%edi, %eax
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edi, %eax
	leal	(%rdx,%rdx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	addl	$48, %eax
	movb	%al, (%rsp)
	cmpl	$9, %edi
	jle	.L20
	movl	$1, %ecx
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%edx, %rax
	movl	%edx, %esi
	movslq	%ecx, %r8
	imulq	$1717986919, %rax, %rax
	sarl	$31, %esi
	sarq	$34, %rax
	subl	%esi, %eax
	movl	%edx, %esi
	leal	(%rax,%rax,4), %edi
	addl	%edi, %edi
	subl	%edi, %esi
	addl	$48, %esi
	movb	%sil, (%rbx,%rcx)
	movl	%edx, %esi
	addq	$1, %rcx
	movl	%eax, %edx
	cmpl	$9, %esi
	jg	.L16
.L15:
	addq	%r8, %rbx
	leaq	-1(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L17:
	movsbl	(%rbx), %edi
	subq	$1, %rbx
	call	putchar@PLT
	cmpq	%rbx, %rbp
	jne	.L17
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xorl	%r8d, %r8d
	movq	%rsp, %rbx
	jmp	.L15
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE8:
	.size	put_int, .-put_int
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB9:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE9:
	.size	max, .-max
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB10:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE10:
	.size	min, .-min
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	andq	$-32, %rsp
	subq	$32, %rsp
	call	get_int
	movl	%eax, %r12d
	xorl	%eax, %eax
	call	get_int
	movl	%eax, 16(%rsp)
	testl	%r12d, %r12d
	jle	.L28
	leaq	4(%rbx), %rsi
	leal	-1(%r12), %eax
	movq	%rbx, %r15
	movq	%rsi, 24(%rsp)
	movq	%rax, %r13
	leaq	(%rsi,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L29:
	xorl	%eax, %eax
	addq	$4, %r15
	call	get_int
	movl	%eax, -4(%r15)
	cmpq	%r14, %r15
	jne	.L29
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jle	.L76
.L30:
	movl	%r12d, %eax
	movl	$0, 24(%rsp)
	movl	%r12d, %esi
	leaq	32+a(%rip), %r15
	imull	%r12d, %eax
	andl	$-8, %esi
	movl	%eax, 12(%rsp)
	leal	1(%r12), %eax
	movl	%eax, 8(%rsp)
	movl	%r12d, %eax
	shrl	$3, %eax
	subl	$1, %eax
	leaq	1(%rax), %r14
	salq	$5, %rax
	salq	$5, %r14
	addq	%rax, %r15
	.p2align 4,,10
	.p2align 3
.L53:
	movl	8(%rsp), %edi
	movl	%esi, 20(%rsp)
	call	reset
	testl	%r12d, %r12d
	movl	20(%rsp), %esi
	vmovdqa	.LC1(%rip), %ymm4
	vmovdqa	.LC2(%rip), %ymm5
	jle	.L55
	cmpl	$6, %r13d
	jbe	.L56
	vmovd	%r12d, %xmm6
	xorl	%ecx, %ecx
	vmovdqa	.LC0(%rip), %ymm3
	leaq	bt(%rip), %rdx
	vpbroadcastd	%xmm6, %ymm6
	leaq	up(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L35:
	vmovdqa	(%rbx,%rcx), %ymm1
	vmovdqa	%ymm3, %ymm0
	vpaddd	%ymm4, %ymm3, %ymm3
	vpcmpgtd	%ymm1, %ymm0, %ymm2
	vpsubd	%ymm1, %ymm0, %ymm7
	vpaddd	%ymm1, %ymm0, %ymm0
	vpaddd	%ymm5, %ymm0, %ymm1
	vpcmpgtd	%ymm0, %ymm6, %ymm0
	vpand	%ymm7, %ymm2, %ymm2
	vpblendvb	%ymm0, %ymm1, %ymm6, %ymm0
	vmovdqa	%ymm2, (%rdx,%rcx)
	vmovdqa	%ymm0, (%rax,%rcx)
	addq	$32, %rcx
	cmpq	%r14, %rcx
	jne	.L35
	cmpl	%esi, %r12d
	je	.L36
	movl	%esi, %edi
	movl	%esi, %ecx
.L34:
	movl	%r12d, %r8d
	subl	%edi, %r8d
	leal	-1(%r8), %r10d
	cmpl	$2, %r10d
	jbe	.L37
	vmovd	%ecx, %xmm7
	vmovdqa	(%rbx,%rdi,4), %xmm1
	vmovd	%r12d, %xmm6
	vpshufd	$0, %xmm7, %xmm0
	vpaddd	.LC3(%rip), %xmm0, %xmm0
	vpcmpgtd	%xmm1, %xmm0, %xmm2
	vpsubd	%xmm1, %xmm0, %xmm3
	vpaddd	%xmm1, %xmm0, %xmm0
	vpshufd	$0, %xmm6, %xmm1
	vpand	%xmm3, %xmm2, %xmm2
	vmovdqa	%xmm2, (%rdx,%rdi,4)
	vpaddd	.LC4(%rip), %xmm0, %xmm2
	vpcmpgtd	%xmm0, %xmm1, %xmm0
	vpblendvb	%xmm0, %xmm2, %xmm1, %xmm1
	vmovdqa	%xmm1, (%rax,%rdi,4)
	movl	%r8d, %edi
	andl	$-4, %edi
	addl	%edi, %ecx
	cmpl	%edi, %r8d
	je	.L36
.L37:
	movslq	%ecx, %r8
	movl	%ecx, %r10d
	xorl	%r9d, %r9d
	movl	(%rbx,%r8,4), %edi
	subl	%edi, %r10d
	cmpl	%ecx, %edi
	cmovge	%r9d, %r10d
	addl	%ecx, %edi
	cmpl	%edi, %r12d
	movl	%r10d, (%rdx,%r8,4)
	leal	1(%rdi), %r10d
	cmovle	%r12d, %r10d
	movl	%r10d, (%rax,%r8,4)
	leal	1(%rcx), %r8d
	cmpl	%r8d, %r12d
	jle	.L36
	movslq	%r8d, %r10
	movl	%r8d, %r11d
	movl	(%rbx,%r10,4), %edi
	subl	%edi, %r11d
	cmpl	%r8d, %edi
	cmovge	%r9d, %r11d
	addl	%r8d, %edi
	cmpl	%edi, %r12d
	leal	1(%rdi), %r8d
	cmovle	%r12d, %r8d
	addl	$2, %ecx
	movl	%r11d, (%rdx,%r10,4)
	movl	%r8d, (%rax,%r10,4)
	cmpl	%ecx, %r12d
	jle	.L36
	movslq	%ecx, %r8
	movl	%ecx, %r10d
	movl	(%rbx,%r8,4), %edi
	subl	%edi, %r10d
	cmpl	%ecx, %edi
	cmovge	%r9d, %r10d
	addl	%ecx, %edi
	leal	1(%rdi), %ecx
	cmpl	%edi, %r12d
	cmovle	%r12d, %ecx
	movl	%r10d, (%rdx,%r8,4)
	movl	%ecx, (%rax,%r8,4)
.L36:
	movl	%r13d, %r10d
	xorl	%edi, %edi
	leaq	imos(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	(%rdx,%rdi,4), %r8
	addl	$1, (%rcx,%r8,4)
	movslq	(%rax,%rdi,4), %r8
	subl	$1, (%rcx,%r8,4)
	movq	%rdi, %r8
	addq	$1, %rdi
	cmpq	%r8, %r10
	jne	.L46
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L47:
	addl	(%rcx,%rax,4), %edx
	movq	%rax, %rdi
	movl	%edx, (%rbx,%rax,4)
	addq	$1, %rax
	cmpq	%rdi, %r10
	jne	.L47
	cmpl	$6, %r13d
	jbe	.L62
	movq	%rbx, %rax
	vpxor	%xmm0, %xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L49:
	vpaddd	(%rax), %ymm0, %ymm0
	addq	$32, %rax
	cmpq	%rax, %r15
	jne	.L49
	vmovdqa	%xmm0, %xmm1
	vextracti128	$0x1, %ymm0, %xmm0
	vpaddd	%xmm0, %xmm1, %xmm0
	vpsrldq	$8, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vpsrldq	$4, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vmovd	%xmm0, %eax
	cmpl	%esi, %r12d
	je	.L33
	movl	%esi, %edx
.L48:
	movslq	%edx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	2(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	3(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	4(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	5(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	$6, %edx
	addl	(%rbx,%rcx,4), %eax
	cmpl	%edx, %r12d
	jle	.L33
	movslq	%edx, %rdx
	addl	(%rbx,%rdx,4), %eax
.L33:
	cmpl	%eax, 12(%rsp)
	je	.L52
.L77:
	addl	$1, 24(%rsp)
	movl	24(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jle	.L52
	vzeroupper
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L55:
	xorl	%eax, %eax
	cmpl	%eax, 12(%rsp)
	jne	.L77
	.p2align 4,,10
	.p2align 3
.L52:
	leaq	4+a(%rip), %rax
	movq	%rax, 24(%rsp)
	testl	%r12d, %r12d
	jle	.L78
	vzeroupper
.L31:
	movl	%r13d, %r13d
	leaq	a(%rip), %rbx
	leaq	(%rax,%r13,4), %r12
	.p2align 4,,10
	.p2align 3
.L54:
	movl	(%rbx), %edi
	addq	$4, %rbx
	call	put_int
	cmpq	%rbx, %r12
	jne	.L54
.L72:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L62:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L48
.L56:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	leaq	bt(%rip), %rdx
	leaq	up(%rip), %rax
	jmp	.L34
.L28:
	cmpl	$0, 16(%rsp)
	leal	-1(%r12), %r13d
	jg	.L30
	jmp	.L72
.L78:
	vzeroupper
	jmp	.L72
.L76:
	movq	24(%rsp), %rax
	jmp	.L31
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata.cst32,"aM",@progbits,32
	.align 32
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.align 32
.LC1:
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.align 32
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	reset
	.type	reset, @function
reset:
.LFB39:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L3
	movslq	%edi, %rdi
	xorl	%esi, %esi
	leaq	0(,%rdi,4), %rdx
	leaq	imos(%rip), %rdi
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	ret
	.cfi_endproc
.LFE39:
	.size	reset, .-reset
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L6
	movabsq	$-8589936642, %rcx
	btq	%rax, %rcx
	jnc	.L5
.L6:
	movabsq	$-8589936642, %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	leal	(%r12,%r12,4), %eax
	leal	-48(%rdx,%rax,2), %r12d
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L11
	btq	%rax, %rbx
	jc	.L11
.L5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	get_int, .-get_int
	.p2align 4
	.globl	put_int
	.type	put_int, @function
put_int:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdx
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	imulq	$1717986919, %rdx, %rdx
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	sarq	$34, %rdx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	%edi, %eax
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edi, %eax
	leal	(%rdx,%rdx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	addl	$48, %eax
	movb	%al, (%rsp)
	cmpl	$9, %edi
	jle	.L20
	movl	$1, %ecx
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%edx, %rax
	movl	%edx, %esi
	movslq	%ecx, %r8
	imulq	$1717986919, %rax, %rax
	sarl	$31, %esi
	sarq	$34, %rax
	subl	%esi, %eax
	movl	%edx, %esi
	leal	(%rax,%rax,4), %edi
	addl	%edi, %edi
	subl	%edi, %esi
	addl	$48, %esi
	movb	%sil, (%rbx,%rcx)
	movl	%edx, %esi
	addq	$1, %rcx
	movl	%eax, %edx
	cmpl	$9, %esi
	jg	.L16
.L15:
	addq	%r8, %rbx
	leaq	-1(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L17:
	movsbl	(%rbx), %edi
	movq	stdout(%rip), %rsi
	subq	$1, %rbx
	call	putc@PLT
	cmpq	%rbx, %rbp
	jne	.L17
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	movq	stdout(%rip), %rsi
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putc@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xorl	%r8d, %r8d
	movq	%rsp, %rbx
	jmp	.L15
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	put_int, .-put_int
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB42:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE42:
	.size	max, .-max
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB43:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE43:
	.size	min, .-min
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB44:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	.cfi_offset 15, -24
	leaq	a(%rip), %r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	andq	$-32, %rsp
	subq	$96, %rsp
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	call	get_int
	movl	%eax, %ebx
	xorl	%eax, %eax
	call	get_int
	movl	%eax, 32(%rsp)
	testl	%ebx, %ebx
	jle	.L28
	leal	-1(%rbx), %eax
	leaq	4(%r15), %rcx
	movl	%ebx, 28(%rsp)
	movq	%r15, %r13
	movl	%eax, 36(%rsp)
	leaq	(%rcx,%rax,4), %r14
	movabsq	$-8589936642, %r12
	movq	%rcx, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L32:
	call	getchar@PLT
	xorl	%ebx, %ebx
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	jbe	.L95
	.p2align 4,,10
	.p2align 3
.L84:
	leal	(%rbx,%rbx,4), %eax
	leal	-48(%rdx,%rax,2), %ebx
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L84
.L95:
	btq	%rax, %r12
	jc	.L84
	movl	%ebx, 0(%r13)
	addq	$4, %r13
	cmpq	%r14, %r13
	jne	.L32
	movl	32(%rsp), %eax
	movl	28(%rsp), %ebx
	testl	%eax, %eax
	jle	.L33
.L62:
	movl	%ebx, %eax
	movl	$0, 40(%rsp)
	movl	%ebx, %r14d
	leaq	32+a(%rip), %r12
	imull	%ebx, %eax
	andl	$-8, %r14d
	movl	%eax, 28(%rsp)
	movl	%ebx, %eax
	leaq	4(,%rax,4), %rax
	movq	%rax, 16(%rsp)
	movl	%ebx, %eax
	shrl	$3, %eax
	subl	$1, %eax
	leaq	1(%rax), %r13
	salq	$5, %rax
	salq	$5, %r13
	addq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L34:
	testl	%ebx, %ebx
	js	.L56
	leaq	imos(%rip), %rcx
	movq	16(%rsp), %rdx
	xorl	%esi, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	testl	%ebx, %ebx
	vmovdqa	.LC1(%rip), %ymm5
	vmovdqa	.LC2(%rip), %ymm4
	movq	%rax, %rcx
	jle	.L96
	cmpl	$6, 36(%rsp)
	jbe	.L66
	vmovd	%ebx, %xmm6
	xorl	%esi, %esi
	vmovdqa	.LC0(%rip), %ymm3
	leaq	bt(%rip), %rdx
	vpbroadcastd	%xmm6, %ymm6
	leaq	up(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L38:
	vmovdqa	(%r15,%rsi), %ymm0
	vmovdqa	%ymm3, %ymm1
	vpaddd	%ymm5, %ymm3, %ymm3
	vpcmpgtd	%ymm0, %ymm1, %ymm2
	vpsubd	%ymm0, %ymm1, %ymm7
	vpaddd	%ymm1, %ymm0, %ymm0
	vpaddd	%ymm4, %ymm0, %ymm1
	vpcmpgtd	%ymm0, %ymm6, %ymm0
	vpand	%ymm7, %ymm2, %ymm2
	vpblendvb	%ymm0, %ymm1, %ymm6, %ymm0
	vmovdqa	%ymm2, (%rdx,%rsi)
	vmovdqa	%ymm0, (%rax,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r13
	jne	.L38
	cmpl	%ebx, %r14d
	je	.L39
	movl	%r14d, %edi
	movl	%r14d, %esi
.L37:
	movl	%ebx, %r8d
	subl	%edi, %r8d
	leal	-1(%r8), %r9d
	cmpl	$2, %r9d
	jbe	.L40
	vmovd	%esi, %xmm7
	vmovdqa	(%r15,%rdi,4), %xmm1
	vmovd	%ebx, %xmm6
	vpshufd	$0, %xmm7, %xmm0
	vpaddd	.LC3(%rip), %xmm0, %xmm0
	vpcmpgtd	%xmm1, %xmm0, %xmm2
	vpsubd	%xmm1, %xmm0, %xmm3
	vpaddd	%xmm1, %xmm0, %xmm0
	vpshufd	$0, %xmm6, %xmm1
	vpand	%xmm3, %xmm2, %xmm2
	vmovdqa	%xmm2, (%rdx,%rdi,4)
	vpaddd	.LC4(%rip), %xmm0, %xmm2
	vpcmpgtd	%xmm0, %xmm1, %xmm0
	vpblendvb	%xmm0, %xmm2, %xmm1, %xmm1
	vmovdqa	%xmm1, (%rax,%rdi,4)
	movl	%r8d, %edi
	andl	$-4, %edi
	addl	%edi, %esi
	cmpl	%edi, %r8d
	je	.L39
.L40:
	movslq	%esi, %r9
	movl	%esi, %r10d
	xorl	%r8d, %r8d
	movl	(%r15,%r9,4), %edi
	subl	%edi, %r10d
	cmpl	%esi, %edi
	cmovge	%r8d, %r10d
	addl	%esi, %edi
	cmpl	%edi, %ebx
	movl	%r10d, (%rdx,%r9,4)
	leal	1(%rdi), %r10d
	leal	1(%rsi), %edi
	cmovle	%ebx, %r10d
	movl	%r10d, (%rax,%r9,4)
	cmpl	%edi, %ebx
	jle	.L39
	movslq	%edi, %r9
	movl	%edi, %r11d
	movl	(%r15,%r9,4), %r10d
	subl	%r10d, %r11d
	cmpl	%r10d, %edi
	cmovle	%r8d, %r11d
	addl	%r10d, %edi
	cmpl	%edi, %ebx
	leal	1(%rdi), %r10d
	cmovle	%ebx, %r10d
	addl	$2, %esi
	movl	%r11d, (%rdx,%r9,4)
	movl	%r10d, (%rax,%r9,4)
	cmpl	%esi, %ebx
	jle	.L39
	movslq	%esi, %r9
	movl	%esi, %r10d
	movl	(%r15,%r9,4), %edi
	subl	%edi, %r10d
	cmpl	%esi, %edi
	cmovge	%r8d, %r10d
	addl	%esi, %edi
	leal	1(%rdi), %esi
	cmpl	%edi, %ebx
	cmovle	%ebx, %esi
	movl	%r10d, (%rdx,%r9,4)
	movl	%esi, (%rax,%r9,4)
.L39:
	movl	36(%rsp), %r8d
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L49:
	movslq	(%rdx,%rsi,4), %rdi
	addl	$1, (%rcx,%rdi,4)
	movslq	(%rax,%rsi,4), %rdi
	subl	$1, (%rcx,%rdi,4)
	movq	%rsi, %rdi
	addq	$1, %rsi
	cmpq	%rdi, %r8
	jne	.L49
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L50:
	addl	(%rcx,%rax,4), %edx
	movq	%rax, %rsi
	movl	%edx, (%r15,%rax,4)
	addq	$1, %rax
	cmpq	%rsi, %r8
	jne	.L50
	cmpl	$6, 36(%rsp)
	jbe	.L72
	movq	%r15, %rax
	vpxor	%xmm0, %xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L52:
	vpaddd	(%rax), %ymm0, %ymm0
	addq	$32, %rax
	cmpq	%rax, %r12
	jne	.L52
	vextracti128	$0x1, %ymm0, %xmm1
	vpaddd	%xmm0, %xmm1, %xmm0
	vpsrldq	$8, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vpsrldq	$4, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vmovd	%xmm0, %eax
	cmpl	%ebx, %r14d
	je	.L93
	movl	%r14d, %edx
.L51:
	movslq	%edx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	2(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	3(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	4(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	5(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	$6, %edx
	addl	(%r15,%rcx,4), %eax
	cmpl	%edx, %ebx
	jle	.L93
	movslq	%edx, %rdx
	addl	(%r15,%rdx,4), %eax
	vzeroupper
.L36:
	cmpl	%eax, 28(%rsp)
	je	.L54
	addl	$1, 40(%rsp)
	movl	40(%rsp), %eax
	cmpl	%eax, 32(%rsp)
	jg	.L34
.L54:
	leaq	4+a(%rip), %rax
	movq	%rax, 40(%rsp)
	testl	%ebx, %ebx
	jle	.L61
.L33:
	movq	40(%rsp), %rbx
	movl	36(%rsp), %eax
	leaq	a(%rip), %r12
	leaq	(%rbx,%rax,4), %r14
	leaq	47(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	48(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L60:
	movslq	(%r12), %rdx
	movq	%rdx, %rax
	imulq	$1717986919, %rdx, %rdx
	movl	%eax, %ecx
	sarl	$31, %ecx
	sarq	$34, %rdx
	subl	%ecx, %edx
	movl	%eax, %ecx
	leal	(%rdx,%rdx,4), %esi
	addl	%esi, %esi
	subl	%esi, %ecx
	addl	$48, %ecx
	movb	%cl, 48(%rsp)
	cmpl	$9, %eax
	jle	.L73
	movl	$1, %esi
	.p2align 4,,10
	.p2align 3
.L58:
	movslq	%edx, %rax
	movl	%edx, %edi
	movl	%esi, %ecx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edi
	sarq	$34, %rax
	subl	%edi, %eax
	movl	%edx, %edi
	leal	(%rax,%rax,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %edi
	addl	$48, %edi
	movb	%dil, (%rbx,%rsi)
	movl	%edx, %edi
	addq	$1, %rsi
	movl	%eax, %edx
	cmpl	$9, %edi
	jg	.L58
.L57:
	movslq	%ecx, %rdx
	movq	40(%rsp), %r15
	leaq	(%rbx,%rdx), %r13
	.p2align 4,,10
	.p2align 3
.L59:
	movsbl	0(%r13), %edi
	movq	stdout(%rip), %rsi
	subq	$1, %r13
	call	putc@PLT
	cmpq	%r13, %r15
	jne	.L59
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addq	$4, %r12
	call	putc@PLT
	cmpq	%r12, %r14
	jne	.L60
.L61:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L97
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L93:
	.cfi_restore_state
	vzeroupper
	jmp	.L36
.L96:
	vzeroupper
	.p2align 4,,10
	.p2align 3
.L56:
	xorl	%eax, %eax
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L73:
	xorl	%ecx, %ecx
	jmp	.L57
.L72:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L51
.L66:
	xorl	%edi, %edi
	xorl	%esi, %esi
	leaq	bt(%rip), %rdx
	leaq	up(%rip), %rax
	jmp	.L37
.L28:
	leal	-1(%rbx), %eax
	cmpl	$0, 32(%rsp)
	movl	%eax, 36(%rsp)
	jg	.L62
	jmp	.L61
.L97:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE44:
	.size	main, .-main
	.globl	imos
	.bss
	.align 32
	.type	imos, @object
	.size	imos, 800004
imos:
	.zero	800004
	.globl	bt
	.align 32
	.type	bt, @object
	.size	bt, 800004
bt:
	.zero	800004
	.globl	up
	.align 32
	.type	up, @object
	.size	up, 800004
up:
	.zero	800004
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800004
a:
	.zero	800004
	.section	.rodata.cst32,"aM",@progbits,32
	.align 32
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.align 32
.LC1:
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.align 32
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC3,.LC0
	.set	.LC4,.LC2
	.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	reset
	.type	reset, @function
reset:
.LFB39:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L3
	movslq	%edi, %rdi
	xorl	%esi, %esi
	leaq	0(,%rdi,4), %rdx
	leaq	imos(%rip), %rdi
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	ret
	.cfi_endproc
.LFE39:
	.size	reset, .-reset
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L6
	movabsq	$-8589936642, %rcx
	btq	%rax, %rcx
	jnc	.L5
.L6:
	movabsq	$-8589936642, %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	leal	(%r12,%r12,4), %eax
	leal	-48(%rdx,%rax,2), %r12d
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L11
	btq	%rax, %rbx
	jc	.L11
.L5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	get_int, .-get_int
	.p2align 4
	.globl	put_int
	.type	put_int, @function
put_int:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdx
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	imulq	$1717986919, %rdx, %rdx
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	sarq	$34, %rdx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	%edi, %eax
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edi, %eax
	leal	(%rdx,%rdx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	addl	$48, %eax
	movb	%al, (%rsp)
	cmpl	$9, %edi
	jle	.L20
	movl	$1, %ecx
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%edx, %rax
	movl	%edx, %esi
	movslq	%ecx, %r8
	imulq	$1717986919, %rax, %rax
	sarl	$31, %esi
	sarq	$34, %rax
	subl	%esi, %eax
	movl	%edx, %esi
	leal	(%rax,%rax,4), %edi
	addl	%edi, %edi
	subl	%edi, %esi
	addl	$48, %esi
	movb	%sil, (%rbx,%rcx)
	movl	%edx, %esi
	addq	$1, %rcx
	movl	%eax, %edx
	cmpl	$9, %esi
	jg	.L16
.L15:
	addq	%r8, %rbx
	leaq	-1(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L17:
	movsbl	(%rbx), %edi
	movq	stdout(%rip), %rsi
	subq	$1, %rbx
	call	putc@PLT
	cmpq	%rbx, %rbp
	jne	.L17
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	movq	stdout(%rip), %rsi
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putc@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xorl	%r8d, %r8d
	movq	%rsp, %rbx
	jmp	.L15
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	put_int, .-put_int
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB42:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE42:
	.size	max, .-max
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB43:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE43:
	.size	min, .-min
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB44:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	.cfi_offset 15, -24
	leaq	a(%rip), %r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	andq	$-32, %rsp
	subq	$96, %rsp
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	call	get_int
	movl	%eax, %ebx
	xorl	%eax, %eax
	call	get_int
	movl	%eax, 32(%rsp)
	testl	%ebx, %ebx
	jle	.L28
	leal	-1(%rbx), %eax
	leaq	4(%r15), %rcx
	movl	%ebx, 28(%rsp)
	movq	%r15, %r13
	movl	%eax, 36(%rsp)
	leaq	(%rcx,%rax,4), %r14
	movabsq	$-8589936642, %r12
	movq	%rcx, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L32:
	call	getchar@PLT
	xorl	%ebx, %ebx
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	jbe	.L95
	.p2align 4,,10
	.p2align 3
.L84:
	leal	(%rbx,%rbx,4), %eax
	leal	-48(%rdx,%rax,2), %ebx
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L84
.L95:
	btq	%rax, %r12
	jc	.L84
	movl	%ebx, 0(%r13)
	addq	$4, %r13
	cmpq	%r14, %r13
	jne	.L32
	movl	32(%rsp), %eax
	movl	28(%rsp), %ebx
	testl	%eax, %eax
	jle	.L33
.L62:
	movl	%ebx, %eax
	movl	$0, 40(%rsp)
	movl	%ebx, %r14d
	leaq	32+a(%rip), %r12
	imull	%ebx, %eax
	andl	$-8, %r14d
	movl	%eax, 28(%rsp)
	movl	%ebx, %eax
	leaq	4(,%rax,4), %rax
	movq	%rax, 16(%rsp)
	movl	%ebx, %eax
	shrl	$3, %eax
	subl	$1, %eax
	leaq	1(%rax), %r13
	salq	$5, %rax
	salq	$5, %r13
	addq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L34:
	testl	%ebx, %ebx
	js	.L56
	leaq	imos(%rip), %rcx
	movq	16(%rsp), %rdx
	xorl	%esi, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	testl	%ebx, %ebx
	vmovdqa	.LC1(%rip), %ymm5
	vmovdqa	.LC2(%rip), %ymm4
	movq	%rax, %rcx
	jle	.L96
	cmpl	$6, 36(%rsp)
	jbe	.L66
	vmovd	%ebx, %xmm6
	xorl	%esi, %esi
	vmovdqa	.LC0(%rip), %ymm3
	leaq	bt(%rip), %rdx
	vpbroadcastd	%xmm6, %ymm6
	leaq	up(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L38:
	vmovdqa	(%r15,%rsi), %ymm0
	vmovdqa	%ymm3, %ymm1
	vpaddd	%ymm5, %ymm3, %ymm3
	vpcmpgtd	%ymm0, %ymm1, %ymm2
	vpsubd	%ymm0, %ymm1, %ymm7
	vpaddd	%ymm1, %ymm0, %ymm0
	vpaddd	%ymm4, %ymm0, %ymm1
	vpcmpgtd	%ymm0, %ymm6, %ymm0
	vpand	%ymm7, %ymm2, %ymm2
	vpblendvb	%ymm0, %ymm1, %ymm6, %ymm0
	vmovdqa	%ymm2, (%rdx,%rsi)
	vmovdqa	%ymm0, (%rax,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r13
	jne	.L38
	cmpl	%ebx, %r14d
	je	.L39
	movl	%r14d, %edi
	movl	%r14d, %esi
.L37:
	movl	%ebx, %r8d
	subl	%edi, %r8d
	leal	-1(%r8), %r9d
	cmpl	$2, %r9d
	jbe	.L40
	vmovd	%esi, %xmm7
	vmovdqa	(%r15,%rdi,4), %xmm1
	vmovd	%ebx, %xmm6
	vpshufd	$0, %xmm7, %xmm0
	vpaddd	.LC3(%rip), %xmm0, %xmm0
	vpcmpgtd	%xmm1, %xmm0, %xmm2
	vpsubd	%xmm1, %xmm0, %xmm3
	vpaddd	%xmm1, %xmm0, %xmm0
	vpshufd	$0, %xmm6, %xmm1
	vpand	%xmm3, %xmm2, %xmm2
	vmovdqa	%xmm2, (%rdx,%rdi,4)
	vpaddd	.LC4(%rip), %xmm0, %xmm2
	vpcmpgtd	%xmm0, %xmm1, %xmm0
	vpblendvb	%xmm0, %xmm2, %xmm1, %xmm1
	vmovdqa	%xmm1, (%rax,%rdi,4)
	movl	%r8d, %edi
	andl	$-4, %edi
	addl	%edi, %esi
	cmpl	%edi, %r8d
	je	.L39
.L40:
	movslq	%esi, %r9
	movl	%esi, %r10d
	xorl	%r8d, %r8d
	movl	(%r15,%r9,4), %edi
	subl	%edi, %r10d
	cmpl	%esi, %edi
	cmovge	%r8d, %r10d
	addl	%esi, %edi
	cmpl	%edi, %ebx
	movl	%r10d, (%rdx,%r9,4)
	leal	1(%rdi), %r10d
	leal	1(%rsi), %edi
	cmovle	%ebx, %r10d
	movl	%r10d, (%rax,%r9,4)
	cmpl	%edi, %ebx
	jle	.L39
	movslq	%edi, %r9
	movl	%edi, %r11d
	movl	(%r15,%r9,4), %r10d
	subl	%r10d, %r11d
	cmpl	%r10d, %edi
	cmovle	%r8d, %r11d
	addl	%r10d, %edi
	cmpl	%edi, %ebx
	leal	1(%rdi), %r10d
	cmovle	%ebx, %r10d
	addl	$2, %esi
	movl	%r11d, (%rdx,%r9,4)
	movl	%r10d, (%rax,%r9,4)
	cmpl	%esi, %ebx
	jle	.L39
	movslq	%esi, %r9
	movl	%esi, %r10d
	movl	(%r15,%r9,4), %edi
	subl	%edi, %r10d
	cmpl	%esi, %edi
	cmovge	%r8d, %r10d
	addl	%esi, %edi
	leal	1(%rdi), %esi
	cmpl	%edi, %ebx
	cmovle	%ebx, %esi
	movl	%r10d, (%rdx,%r9,4)
	movl	%esi, (%rax,%r9,4)
.L39:
	movl	36(%rsp), %r8d
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L49:
	movslq	(%rdx,%rsi,4), %rdi
	addl	$1, (%rcx,%rdi,4)
	movslq	(%rax,%rsi,4), %rdi
	subl	$1, (%rcx,%rdi,4)
	movq	%rsi, %rdi
	addq	$1, %rsi
	cmpq	%rdi, %r8
	jne	.L49
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L50:
	addl	(%rcx,%rax,4), %edx
	movq	%rax, %rsi
	movl	%edx, (%r15,%rax,4)
	addq	$1, %rax
	cmpq	%rsi, %r8
	jne	.L50
	cmpl	$6, 36(%rsp)
	jbe	.L72
	movq	%r15, %rax
	vpxor	%xmm0, %xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L52:
	vpaddd	(%rax), %ymm0, %ymm0
	addq	$32, %rax
	cmpq	%rax, %r12
	jne	.L52
	vextracti128	$0x1, %ymm0, %xmm1
	vpaddd	%xmm0, %xmm1, %xmm0
	vpsrldq	$8, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vpsrldq	$4, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vmovd	%xmm0, %eax
	cmpl	%ebx, %r14d
	je	.L93
	movl	%r14d, %edx
.L51:
	movslq	%edx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	2(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	3(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	4(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	(%r15,%rcx,4), %eax
	leal	5(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L93
	movslq	%ecx, %rcx
	addl	$6, %edx
	addl	(%r15,%rcx,4), %eax
	cmpl	%edx, %ebx
	jle	.L93
	movslq	%edx, %rdx
	addl	(%r15,%rdx,4), %eax
	vzeroupper
.L36:
	cmpl	%eax, 28(%rsp)
	je	.L54
	addl	$1, 40(%rsp)
	movl	40(%rsp), %eax
	cmpl	%eax, 32(%rsp)
	jg	.L34
.L54:
	leaq	4+a(%rip), %rax
	movq	%rax, 40(%rsp)
	testl	%ebx, %ebx
	jle	.L61
.L33:
	movq	40(%rsp), %rbx
	movl	36(%rsp), %eax
	leaq	a(%rip), %r12
	leaq	(%rbx,%rax,4), %r14
	leaq	47(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	48(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L60:
	movslq	(%r12), %rdx
	movq	%rdx, %rax
	imulq	$1717986919, %rdx, %rdx
	movl	%eax, %ecx
	sarl	$31, %ecx
	sarq	$34, %rdx
	subl	%ecx, %edx
	movl	%eax, %ecx
	leal	(%rdx,%rdx,4), %esi
	addl	%esi, %esi
	subl	%esi, %ecx
	addl	$48, %ecx
	movb	%cl, 48(%rsp)
	cmpl	$9, %eax
	jle	.L73
	movl	$1, %esi
	.p2align 4,,10
	.p2align 3
.L58:
	movslq	%edx, %rax
	movl	%edx, %edi
	movl	%esi, %ecx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edi
	sarq	$34, %rax
	subl	%edi, %eax
	movl	%edx, %edi
	leal	(%rax,%rax,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %edi
	addl	$48, %edi
	movb	%dil, (%rbx,%rsi)
	movl	%edx, %edi
	addq	$1, %rsi
	movl	%eax, %edx
	cmpl	$9, %edi
	jg	.L58
.L57:
	movslq	%ecx, %rdx
	movq	40(%rsp), %r15
	leaq	(%rbx,%rdx), %r13
	.p2align 4,,10
	.p2align 3
.L59:
	movsbl	0(%r13), %edi
	movq	stdout(%rip), %rsi
	subq	$1, %r13
	call	putc@PLT
	cmpq	%r13, %r15
	jne	.L59
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addq	$4, %r12
	call	putc@PLT
	cmpq	%r12, %r14
	jne	.L60
.L61:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L97
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L93:
	.cfi_restore_state
	vzeroupper
	jmp	.L36
.L96:
	vzeroupper
	.p2align 4,,10
	.p2align 3
.L56:
	xorl	%eax, %eax
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L73:
	xorl	%ecx, %ecx
	jmp	.L57
.L72:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L51
.L66:
	xorl	%edi, %edi
	xorl	%esi, %esi
	leaq	bt(%rip), %rdx
	leaq	up(%rip), %rax
	jmp	.L37
.L28:
	leal	-1(%rbx), %eax
	cmpl	$0, 32(%rsp)
	movl	%eax, 36(%rsp)
	jg	.L62
	jmp	.L61
.L97:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE44:
	.size	main, .-main
	.globl	imos
	.bss
	.align 32
	.type	imos, @object
	.size	imos, 800004
imos:
	.zero	800004
	.globl	bt
	.align 32
	.type	bt, @object
	.size	bt, 800004
bt:
	.zero	800004
	.globl	up
	.align 32
	.type	up, @object
	.size	up, 800004
up:
	.zero	800004
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800004
a:
	.zero	800004
	.section	.rodata.cst32,"aM",@progbits,32
	.align 32
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.align 32
.LC1:
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.align 32
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC3,.LC0
	.set	.LC4,.LC2
	.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:

#pragma GCC optimize ("Ofast")
#pragma GCC target ("avx2")

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define NMAX 200001

int a[NMAX], up[NMAX], bt[NMAX];
int imos[NMAX];

void reset(int n) {
    for(int i = 0; i < n; i++) imos[i] = 0;
}

int get_int() {
    int res = 0;
    char c = getchar();
    while(c != EOF && c != ' ' && c != '\n') {
        res *= 10;
        res += c - '0';
        c = getchar();
    }
    return res;
}

void put_int(int n) {
    char c[30];
    int sz = 0;
    c[sz++] = (n % 10) + '0';
    n /= 10;
    while(n > 0) {
        c[sz++] = (n % 10) + '0';
        n /= 10;
    }
    for(int i = sz-1; i >= 0; i--) {
        putchar(c[i]);
    }
    putchar('\n');
}

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

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

int main(){

    int n, k;
    n = get_int();
    k = get_int();
    for(int i = 0; i < n; i++) a[i] = get_int();

    for(int itr = 0; itr < k; itr++) {
        reset(n+1);
        for(int i = 0; i < n; i++) {
            if(i > a[i]) bt[i] = i - a[i];
            else bt[i] = 0;
            if(n < i + a[i] + 1) up[i] = n;
            else up[i] = i + a[i] + 1;
        }
        for(int i = 0; i < n; i++){
            imos[bt[i]]++;
            imos[up[i]]--;
        }
        int acc = 0;
        for(int i = 0; i < n; i++){
            acc += imos[i];
            a[i] = acc;
        }
        int sum = 0;
        for(int i = 0; i < n; i++) sum += a[i];
        if(sum == n * n) break;
    }

    for(int i = 0; i < n; i++) put_int(a[i]);
    return 0;
}

5 1
0 0 0 1 0
 5 2
0 0 0 1 0
 5 2
0 0 0 0 0
 5 2
1 0 0 0 0
 5 2
0 0 0 0 1
 5 0
0 0 0 0 1
 5 2
1 0 0 2 0
 5 2
0 0 0 2 0
 5 3
0 0 0 0 0
 5 2
0 1 0 0 1

1
1
2
1
2
 3
3
4
3
3
 2
3
3
3
2
 2
3
3
4
2
 2
4
3
3
2
 0
0
0
0
1
 3
3
4
4
4
 3
3
4
4
3
 4
4
5
4
4
 3
4
4
3
3

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

```c
#pragma GCC optimize ("Ofast")
#pragma GCC target ("avx2")

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define NMAX 200001

int a[NMAX], up[NMAX], bt[NMAX];
int imos[NMAX];

void reset(int n) {
    for(int i = 0; i < n; i++) imos[i] = 0;
}

int get_int() {
    int res = 0;
    char c = getchar();
    while(c != EOF && c != ' ' && c != '\n') {
        res *= 10;
        res += c - '0';
        c = getchar();
    }
    return res;
}

void put_int(int n) {
    char c[30];
    int sz = 0;
    c[sz++] = (n % 10) + '0';
    n /= 10;
    while(n > 0) {
        c[sz++] = (n % 10) + '0';
        n /= 10;
    }
    for(int i = sz-1; i >= 0; i--) {
        putchar(c[i]);
    }
    putchar('\n');
}

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

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

int main(){

    int n, k;
    n = get_int();
    k = get_int();
    for(int i = 0; i < n; i++) a[i] = get_int();

    for(int itr = 0; itr < k; itr++) {
        reset(n+1);
        for(int i = 0; i < n; i++) {
            if(i > a[i]) bt[i] = i - a[i];
            else bt[i] = 0;
            if(n < i + a[i] + 1) up[i] = n;
            else up[i] = i + a[i] + 1;
        }
        for(int i = 0; i < n; i++){
            imos[bt[i]]++;
            imos[up[i]]--;
        }
        int acc = 0;
        for(int i = 0; i < n; i++){
            acc += imos[i];
            a[i] = acc;
        }
        int sum = 0;
        for(int i = 0; i < n; i++) sum += a[i];
        if(sum == n * n) break;
    }

    for(int i = 0; i < n; i++) put_int(a[i]);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800004
a:
	.zero	800004
	.globl	up
	.align 32
	.type	up, @object
	.size	up, 800004
up:
	.zero	800004
	.globl	bt
	.align 32
	.type	bt, @object
	.size	bt, 800004
bt:
	.zero	800004
	.globl	imos
	.align 32
	.type	imos, @object
	.size	imos, 800004
imos:
	.zero	800004
	.text
	.p2align 4
	.globl	reset
	.type	reset, @function
reset:
.LFB6:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L3
	movslq	%edi, %rdi
	xorl	%esi, %esi
	leaq	0(,%rdi,4), %rdx
	leaq	imos(%rip), %rdi
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	ret
	.cfi_endproc
.LFE6:
	.size	reset, .-reset
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L6
	movabsq	$-8589936642, %rcx
	btq	%rax, %rcx
	jnc	.L5
.L6:
	movabsq	$-8589936642, %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	leal	(%r12,%r12,4), %eax
	leal	-48(%rdx,%rax,2), %r12d
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L11
	btq	%rax, %rbx
	jc	.L11
.L5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int, .-get_int
	.p2align 4
	.globl	put_int
	.type	put_int, @function
put_int:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdx
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	imulq	$1717986919, %rdx, %rdx
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	sarq	$34, %rdx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	%edi, %eax
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edi, %eax
	leal	(%rdx,%rdx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	addl	$48, %eax
	movb	%al, (%rsp)
	cmpl	$9, %edi
	jle	.L20
	movl	$1, %ecx
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%edx, %rax
	movl	%edx, %esi
	movslq	%ecx, %r8
	imulq	$1717986919, %rax, %rax
	sarl	$31, %esi
	sarq	$34, %rax
	subl	%esi, %eax
	movl	%edx, %esi
	leal	(%rax,%rax,4), %edi
	addl	%edi, %edi
	subl	%edi, %esi
	addl	$48, %esi
	movb	%sil, (%rbx,%rcx)
	movl	%edx, %esi
	addq	$1, %rcx
	movl	%eax, %edx
	cmpl	$9, %esi
	jg	.L16
.L15:
	addq	%r8, %rbx
	leaq	-1(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L17:
	movsbl	(%rbx), %edi
	subq	$1, %rbx
	call	putchar@PLT
	cmpq	%rbx, %rbp
	jne	.L17
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xorl	%r8d, %r8d
	movq	%rsp, %rbx
	jmp	.L15
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE8:
	.size	put_int, .-put_int
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB9:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE9:
	.size	max, .-max
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB10:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE10:
	.size	min, .-min
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	andq	$-32, %rsp
	subq	$32, %rsp
	call	get_int
	movl	%eax, %r12d
	xorl	%eax, %eax
	call	get_int
	movl	%eax, 16(%rsp)
	testl	%r12d, %r12d
	jle	.L28
	leaq	4(%rbx), %rsi
	leal	-1(%r12), %eax
	movq	%rbx, %r15
	movq	%rsi, 24(%rsp)
	movq	%rax, %r13
	leaq	(%rsi,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L29:
	xorl	%eax, %eax
	addq	$4, %r15
	call	get_int
	movl	%eax, -4(%r15)
	cmpq	%r14, %r15
	jne	.L29
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jle	.L76
.L30:
	movl	%r12d, %eax
	movl	$0, 24(%rsp)
	movl	%r12d, %esi
	leaq	32+a(%rip), %r15
	imull	%r12d, %eax
	andl	$-8, %esi
	movl	%eax, 12(%rsp)
	leal	1(%r12), %eax
	movl	%eax, 8(%rsp)
	movl	%r12d, %eax
	shrl	$3, %eax
	subl	$1, %eax
	leaq	1(%rax), %r14
	salq	$5, %rax
	salq	$5, %r14
	addq	%rax, %r15
	.p2align 4,,10
	.p2align 3
.L53:
	movl	8(%rsp), %edi
	movl	%esi, 20(%rsp)
	call	reset
	testl	%r12d, %r12d
	movl	20(%rsp), %esi
	vmovdqa	.LC1(%rip), %ymm4
	vmovdqa	.LC2(%rip), %ymm5
	jle	.L55
	cmpl	$6, %r13d
	jbe	.L56
	vmovd	%r12d, %xmm6
	xorl	%ecx, %ecx
	vmovdqa	.LC0(%rip), %ymm3
	leaq	bt(%rip), %rdx
	vpbroadcastd	%xmm6, %ymm6
	leaq	up(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L35:
	vmovdqa	(%rbx,%rcx), %ymm1
	vmovdqa	%ymm3, %ymm0
	vpaddd	%ymm4, %ymm3, %ymm3
	vpcmpgtd	%ymm1, %ymm0, %ymm2
	vpsubd	%ymm1, %ymm0, %ymm7
	vpaddd	%ymm1, %ymm0, %ymm0
	vpaddd	%ymm5, %ymm0, %ymm1
	vpcmpgtd	%ymm0, %ymm6, %ymm0
	vpand	%ymm7, %ymm2, %ymm2
	vpblendvb	%ymm0, %ymm1, %ymm6, %ymm0
	vmovdqa	%ymm2, (%rdx,%rcx)
	vmovdqa	%ymm0, (%rax,%rcx)
	addq	$32, %rcx
	cmpq	%r14, %rcx
	jne	.L35
	cmpl	%esi, %r12d
	je	.L36
	movl	%esi, %edi
	movl	%esi, %ecx
.L34:
	movl	%r12d, %r8d
	subl	%edi, %r8d
	leal	-1(%r8), %r10d
	cmpl	$2, %r10d
	jbe	.L37
	vmovd	%ecx, %xmm7
	vmovdqa	(%rbx,%rdi,4), %xmm1
	vmovd	%r12d, %xmm6
	vpshufd	$0, %xmm7, %xmm0
	vpaddd	.LC3(%rip), %xmm0, %xmm0
	vpcmpgtd	%xmm1, %xmm0, %xmm2
	vpsubd	%xmm1, %xmm0, %xmm3
	vpaddd	%xmm1, %xmm0, %xmm0
	vpshufd	$0, %xmm6, %xmm1
	vpand	%xmm3, %xmm2, %xmm2
	vmovdqa	%xmm2, (%rdx,%rdi,4)
	vpaddd	.LC4(%rip), %xmm0, %xmm2
	vpcmpgtd	%xmm0, %xmm1, %xmm0
	vpblendvb	%xmm0, %xmm2, %xmm1, %xmm1
	vmovdqa	%xmm1, (%rax,%rdi,4)
	movl	%r8d, %edi
	andl	$-4, %edi
	addl	%edi, %ecx
	cmpl	%edi, %r8d
	je	.L36
.L37:
	movslq	%ecx, %r8
	movl	%ecx, %r10d
	xorl	%r9d, %r9d
	movl	(%rbx,%r8,4), %edi
	subl	%edi, %r10d
	cmpl	%ecx, %edi
	cmovge	%r9d, %r10d
	addl	%ecx, %edi
	cmpl	%edi, %r12d
	movl	%r10d, (%rdx,%r8,4)
	leal	1(%rdi), %r10d
	cmovle	%r12d, %r10d
	movl	%r10d, (%rax,%r8,4)
	leal	1(%rcx), %r8d
	cmpl	%r8d, %r12d
	jle	.L36
	movslq	%r8d, %r10
	movl	%r8d, %r11d
	movl	(%rbx,%r10,4), %edi
	subl	%edi, %r11d
	cmpl	%r8d, %edi
	cmovge	%r9d, %r11d
	addl	%r8d, %edi
	cmpl	%edi, %r12d
	leal	1(%rdi), %r8d
	cmovle	%r12d, %r8d
	addl	$2, %ecx
	movl	%r11d, (%rdx,%r10,4)
	movl	%r8d, (%rax,%r10,4)
	cmpl	%ecx, %r12d
	jle	.L36
	movslq	%ecx, %r8
	movl	%ecx, %r10d
	movl	(%rbx,%r8,4), %edi
	subl	%edi, %r10d
	cmpl	%ecx, %edi
	cmovge	%r9d, %r10d
	addl	%ecx, %edi
	leal	1(%rdi), %ecx
	cmpl	%edi, %r12d
	cmovle	%r12d, %ecx
	movl	%r10d, (%rdx,%r8,4)
	movl	%ecx, (%rax,%r8,4)
.L36:
	movl	%r13d, %r10d
	xorl	%edi, %edi
	leaq	imos(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	(%rdx,%rdi,4), %r8
	addl	$1, (%rcx,%r8,4)
	movslq	(%rax,%rdi,4), %r8
	subl	$1, (%rcx,%r8,4)
	movq	%rdi, %r8
	addq	$1, %rdi
	cmpq	%r8, %r10
	jne	.L46
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L47:
	addl	(%rcx,%rax,4), %edx
	movq	%rax, %rdi
	movl	%edx, (%rbx,%rax,4)
	addq	$1, %rax
	cmpq	%rdi, %r10
	jne	.L47
	cmpl	$6, %r13d
	jbe	.L62
	movq	%rbx, %rax
	vpxor	%xmm0, %xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L49:
	vpaddd	(%rax), %ymm0, %ymm0
	addq	$32, %rax
	cmpq	%rax, %r15
	jne	.L49
	vmovdqa	%xmm0, %xmm1
	vextracti128	$0x1, %ymm0, %xmm0
	vpaddd	%xmm0, %xmm1, %xmm0
	vpsrldq	$8, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vpsrldq	$4, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vmovd	%xmm0, %eax
	cmpl	%esi, %r12d
	je	.L33
	movl	%esi, %edx
.L48:
	movslq	%edx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	2(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	3(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	4(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	5(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	$6, %edx
	addl	(%rbx,%rcx,4), %eax
	cmpl	%edx, %r12d
	jle	.L33
	movslq	%edx, %rdx
	addl	(%rbx,%rdx,4), %eax
.L33:
	cmpl	%eax, 12(%rsp)
	je	.L52
.L77:
	addl	$1, 24(%rsp)
	movl	24(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jle	.L52
	vzeroupper
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L55:
	xorl	%eax, %eax
	cmpl	%eax, 12(%rsp)
	jne	.L77
	.p2align 4,,10
	.p2align 3
.L52:
	leaq	4+a(%rip), %rax
	movq	%rax, 24(%rsp)
	testl	%r12d, %r12d
	jle	.L78
	vzeroupper
.L31:
	movl	%r13d, %r13d
	leaq	a(%rip), %rbx
	leaq	(%rax,%r13,4), %r12
	.p2align 4,,10
	.p2align 3
.L54:
	movl	(%rbx), %edi
	addq	$4, %rbx
	call	put_int
	cmpq	%rbx, %r12
	jne	.L54
.L72:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L62:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L48
.L56:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	leaq	bt(%rip), %rdx
	leaq	up(%rip), %rax
	jmp	.L34
.L28:
	cmpl	$0, 16(%rsp)
	leal	-1(%r12), %r13d
	jg	.L30
	jmp	.L72
.L78:
	vzeroupper
	jmp	.L72
.L76:
	movq	24(%rsp), %rax
	jmp	.L31
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata.cst32,"aM",@progbits,32
	.align 32
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.align 32
.LC1:
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.align 32
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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, 800004
a:
	.zero	800004
	.globl	up
	.align 32
	.type	up, @object
	.size	up, 800004
up:
	.zero	800004
	.globl	bt
	.align 32
	.type	bt, @object
	.size	bt, 800004
bt:
	.zero	800004
	.globl	imos
	.align 32
	.type	imos, @object
	.size	imos, 800004
imos:
	.zero	800004
	.text
	.p2align 4
	.globl	reset
	.type	reset, @function
reset:
.LFB6:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L3
	movslq	%edi, %rdi
	xorl	%esi, %esi
	leaq	0(,%rdi,4), %rdx
	leaq	imos(%rip), %rdi
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	ret
	.cfi_endproc
.LFE6:
	.size	reset, .-reset
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L6
	movabsq	$-8589936642, %rcx
	btq	%rax, %rcx
	jnc	.L5
.L6:
	movabsq	$-8589936642, %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	leal	(%r12,%r12,4), %eax
	leal	-48(%rdx,%rax,2), %r12d
	call	getchar@PLT
	movsbl	%al, %edx
	addl	$1, %eax
	cmpb	$33, %al
	ja	.L11
	btq	%rax, %rbx
	jc	.L11
.L5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int, .-get_int
	.p2align 4
	.globl	put_int
	.type	put_int, @function
put_int:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdx
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	imulq	$1717986919, %rdx, %rdx
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	sarq	$34, %rdx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	%edi, %eax
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edi, %eax
	leal	(%rdx,%rdx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	addl	$48, %eax
	movb	%al, (%rsp)
	cmpl	$9, %edi
	jle	.L20
	movl	$1, %ecx
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%edx, %rax
	movl	%edx, %esi
	movslq	%ecx, %r8
	imulq	$1717986919, %rax, %rax
	sarl	$31, %esi
	sarq	$34, %rax
	subl	%esi, %eax
	movl	%edx, %esi
	leal	(%rax,%rax,4), %edi
	addl	%edi, %edi
	subl	%edi, %esi
	addl	$48, %esi
	movb	%sil, (%rbx,%rcx)
	movl	%edx, %esi
	addq	$1, %rcx
	movl	%eax, %edx
	cmpl	$9, %esi
	jg	.L16
.L15:
	addq	%r8, %rbx
	leaq	-1(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L17:
	movsbl	(%rbx), %edi
	subq	$1, %rbx
	call	putchar@PLT
	cmpq	%rbx, %rbp
	jne	.L17
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xorl	%r8d, %r8d
	movq	%rsp, %rbx
	jmp	.L15
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE8:
	.size	put_int, .-put_int
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB9:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE9:
	.size	max, .-max
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB10:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE10:
	.size	min, .-min
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	andq	$-32, %rsp
	subq	$32, %rsp
	call	get_int
	movl	%eax, %r12d
	xorl	%eax, %eax
	call	get_int
	movl	%eax, 16(%rsp)
	testl	%r12d, %r12d
	jle	.L28
	leaq	4(%rbx), %rsi
	leal	-1(%r12), %eax
	movq	%rbx, %r15
	movq	%rsi, 24(%rsp)
	movq	%rax, %r13
	leaq	(%rsi,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L29:
	xorl	%eax, %eax
	addq	$4, %r15
	call	get_int
	movl	%eax, -4(%r15)
	cmpq	%r14, %r15
	jne	.L29
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jle	.L76
.L30:
	movl	%r12d, %eax
	movl	$0, 24(%rsp)
	movl	%r12d, %esi
	leaq	32+a(%rip), %r15
	imull	%r12d, %eax
	andl	$-8, %esi
	movl	%eax, 12(%rsp)
	leal	1(%r12), %eax
	movl	%eax, 8(%rsp)
	movl	%r12d, %eax
	shrl	$3, %eax
	subl	$1, %eax
	leaq	1(%rax), %r14
	salq	$5, %rax
	salq	$5, %r14
	addq	%rax, %r15
	.p2align 4,,10
	.p2align 3
.L53:
	movl	8(%rsp), %edi
	movl	%esi, 20(%rsp)
	call	reset
	testl	%r12d, %r12d
	movl	20(%rsp), %esi
	vmovdqa	.LC1(%rip), %ymm4
	vmovdqa	.LC2(%rip), %ymm5
	jle	.L55
	cmpl	$6, %r13d
	jbe	.L56
	vmovd	%r12d, %xmm6
	xorl	%ecx, %ecx
	vmovdqa	.LC0(%rip), %ymm3
	leaq	bt(%rip), %rdx
	vpbroadcastd	%xmm6, %ymm6
	leaq	up(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L35:
	vmovdqa	(%rbx,%rcx), %ymm1
	vmovdqa	%ymm3, %ymm0
	vpaddd	%ymm4, %ymm3, %ymm3
	vpcmpgtd	%ymm1, %ymm0, %ymm2
	vpsubd	%ymm1, %ymm0, %ymm7
	vpaddd	%ymm1, %ymm0, %ymm0
	vpaddd	%ymm5, %ymm0, %ymm1
	vpcmpgtd	%ymm0, %ymm6, %ymm0
	vpand	%ymm7, %ymm2, %ymm2
	vpblendvb	%ymm0, %ymm1, %ymm6, %ymm0
	vmovdqa	%ymm2, (%rdx,%rcx)
	vmovdqa	%ymm0, (%rax,%rcx)
	addq	$32, %rcx
	cmpq	%r14, %rcx
	jne	.L35
	cmpl	%esi, %r12d
	je	.L36
	movl	%esi, %edi
	movl	%esi, %ecx
.L34:
	movl	%r12d, %r8d
	subl	%edi, %r8d
	leal	-1(%r8), %r10d
	cmpl	$2, %r10d
	jbe	.L37
	vmovd	%ecx, %xmm7
	vmovdqa	(%rbx,%rdi,4), %xmm1
	vmovd	%r12d, %xmm6
	vpshufd	$0, %xmm7, %xmm0
	vpaddd	.LC3(%rip), %xmm0, %xmm0
	vpcmpgtd	%xmm1, %xmm0, %xmm2
	vpsubd	%xmm1, %xmm0, %xmm3
	vpaddd	%xmm1, %xmm0, %xmm0
	vpshufd	$0, %xmm6, %xmm1
	vpand	%xmm3, %xmm2, %xmm2
	vmovdqa	%xmm2, (%rdx,%rdi,4)
	vpaddd	.LC4(%rip), %xmm0, %xmm2
	vpcmpgtd	%xmm0, %xmm1, %xmm0
	vpblendvb	%xmm0, %xmm2, %xmm1, %xmm1
	vmovdqa	%xmm1, (%rax,%rdi,4)
	movl	%r8d, %edi
	andl	$-4, %edi
	addl	%edi, %ecx
	cmpl	%edi, %r8d
	je	.L36
.L37:
	movslq	%ecx, %r8
	movl	%ecx, %r10d
	xorl	%r9d, %r9d
	movl	(%rbx,%r8,4), %edi
	subl	%edi, %r10d
	cmpl	%ecx, %edi
	cmovge	%r9d, %r10d
	addl	%ecx, %edi
	cmpl	%edi, %r12d
	movl	%r10d, (%rdx,%r8,4)
	leal	1(%rdi), %r10d
	cmovle	%r12d, %r10d
	movl	%r10d, (%rax,%r8,4)
	leal	1(%rcx), %r8d
	cmpl	%r8d, %r12d
	jle	.L36
	movslq	%r8d, %r10
	movl	%r8d, %r11d
	movl	(%rbx,%r10,4), %edi
	subl	%edi, %r11d
	cmpl	%r8d, %edi
	cmovge	%r9d, %r11d
	addl	%r8d, %edi
	cmpl	%edi, %r12d
	leal	1(%rdi), %r8d
	cmovle	%r12d, %r8d
	addl	$2, %ecx
	movl	%r11d, (%rdx,%r10,4)
	movl	%r8d, (%rax,%r10,4)
	cmpl	%ecx, %r12d
	jle	.L36
	movslq	%ecx, %r8
	movl	%ecx, %r10d
	movl	(%rbx,%r8,4), %edi
	subl	%edi, %r10d
	cmpl	%ecx, %edi
	cmovge	%r9d, %r10d
	addl	%ecx, %edi
	leal	1(%rdi), %ecx
	cmpl	%edi, %r12d
	cmovle	%r12d, %ecx
	movl	%r10d, (%rdx,%r8,4)
	movl	%ecx, (%rax,%r8,4)
.L36:
	movl	%r13d, %r10d
	xorl	%edi, %edi
	leaq	imos(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	(%rdx,%rdi,4), %r8
	addl	$1, (%rcx,%r8,4)
	movslq	(%rax,%rdi,4), %r8
	subl	$1, (%rcx,%r8,4)
	movq	%rdi, %r8
	addq	$1, %rdi
	cmpq	%r8, %r10
	jne	.L46
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L47:
	addl	(%rcx,%rax,4), %edx
	movq	%rax, %rdi
	movl	%edx, (%rbx,%rax,4)
	addq	$1, %rax
	cmpq	%rdi, %r10
	jne	.L47
	cmpl	$6, %r13d
	jbe	.L62
	movq	%rbx, %rax
	vpxor	%xmm0, %xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L49:
	vpaddd	(%rax), %ymm0, %ymm0
	addq	$32, %rax
	cmpq	%rax, %r15
	jne	.L49
	vmovdqa	%xmm0, %xmm1
	vextracti128	$0x1, %ymm0, %xmm0
	vpaddd	%xmm0, %xmm1, %xmm0
	vpsrldq	$8, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vpsrldq	$4, %xmm0, %xmm1
	vpaddd	%xmm1, %xmm0, %xmm0
	vmovd	%xmm0, %eax
	cmpl	%esi, %r12d
	je	.L33
	movl	%esi, %edx
.L48:
	movslq	%edx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	2(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	3(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	4(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	(%rbx,%rcx,4), %eax
	leal	5(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L33
	movslq	%ecx, %rcx
	addl	$6, %edx
	addl	(%rbx,%rcx,4), %eax
	cmpl	%edx, %r12d
	jle	.L33
	movslq	%edx, %rdx
	addl	(%rbx,%rdx,4), %eax
.L33:
	cmpl	%eax, 12(%rsp)
	je	.L52
.L77:
	addl	$1, 24(%rsp)
	movl	24(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jle	.L52
	vzeroupper
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L55:
	xorl	%eax, %eax
	cmpl	%eax, 12(%rsp)
	jne	.L77
	.p2align 4,,10
	.p2align 3
.L52:
	leaq	4+a(%rip), %rax
	movq	%rax, 24(%rsp)
	testl	%r12d, %r12d
	jle	.L78
	vzeroupper
.L31:
	movl	%r13d, %r13d
	leaq	a(%rip), %rbx
	leaq	(%rax,%r13,4), %r12
	.p2align 4,,10
	.p2align 3
.L54:
	movl	(%rbx), %edi
	addq	$4, %rbx
	call	put_int
	cmpq	%rbx, %r12
	jne	.L54
.L72:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L62:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L48
.L56:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	leaq	bt(%rip), %rdx
	leaq	up(%rip), %rax
	jmp	.L34
.L28:
	cmpl	$0, 16(%rsp)
	leal	-1(%r12), %r13d
	jg	.L30
	jmp	.L72
.L78:
	vzeroupper
	jmp	.L72
.L76:
	movq	24(%rsp), %rax
	jmp	.L31
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata.cst32,"aM",@progbits,32
	.align 32
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.align 32
.LC1:
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.long	8
	.align 32
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
