	.file	"166321.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"\n"
.LC2:
	.string	" "
.LC3:
	.string	"%d%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2448
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L17:
	lea	rax, -2416[rbp]
	mov	edx, 800
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -1616[rbp]
	mov	edx, 800
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -816[rbp]
	mov	edx, 800
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -2440[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -2440[rbp]
	test	eax, eax
	je	.L21
	mov	DWORD PTR -2436[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -2436[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, -2416[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -2436[rbp], 1
.L4:
	mov	eax, DWORD PTR -2440[rbp]
	cmp	DWORD PTR -2436[rbp], eax
	jl	.L5
	mov	DWORD PTR -2432[rbp], 0
	jmp	.L6
.L10:
	mov	DWORD PTR -2428[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -2428[rbp]
	cdqe
	mov	edx, DWORD PTR -2416[rbp+rax*4]
	mov	eax, DWORD PTR -2432[rbp]
	cdqe
	mov	eax, DWORD PTR -2416[rbp+rax*4]
	cmp	edx, eax
	jge	.L8
	mov	eax, DWORD PTR -2432[rbp]
	cdqe
	mov	eax, DWORD PTR -1616[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -2432[rbp]
	cdqe
	mov	DWORD PTR -1616[rbp+rax*4], edx
.L8:
	add	DWORD PTR -2428[rbp], 1
.L7:
	mov	eax, DWORD PTR -2440[rbp]
	cmp	DWORD PTR -2428[rbp], eax
	jl	.L9
	add	DWORD PTR -2432[rbp], 1
.L6:
	mov	eax, DWORD PTR -2440[rbp]
	cmp	DWORD PTR -2432[rbp], eax
	jl	.L10
	mov	DWORD PTR -2424[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -2424[rbp]
	cdqe
	mov	ecx, DWORD PTR -1616[rbp+rax*4]
	mov	eax, DWORD PTR -2424[rbp]
	cdqe
	mov	edx, DWORD PTR -2416[rbp+rax*4]
	movsx	rax, ecx
	mov	DWORD PTR -816[rbp+rax*4], edx
	add	DWORD PTR -2424[rbp], 1
.L11:
	mov	eax, DWORD PTR -2440[rbp]
	cmp	DWORD PTR -2424[rbp], eax
	jl	.L12
	mov	DWORD PTR -2420[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -2440[rbp]
	sub	eax, 1
	cmp	DWORD PTR -2420[rbp], eax
	jne	.L14
	lea	rax, .LC1[rip]
	jmp	.L15
.L14:
	lea	rax, .LC2[rip]
.L15:
	mov	edx, DWORD PTR -2420[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -816[rbp+rdx*4]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -2420[rbp], 1
.L13:
	mov	eax, DWORD PTR -2440[rbp]
	cmp	DWORD PTR -2420[rbp], eax
	jl	.L16
	jmp	.L17
.L21:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"166321.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	" \000"
	.align	2
.LC3:
	.ascii	"%d%s\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2432
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L17:
	sub	r3, fp, #2400
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #800
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1600
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #800
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #808
	mov	r2, #800
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2416
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-2432]
	cmp	r3, #0
	beq	.L21
	mov	r3, #0
	str	r3, [fp, #-2428]
	b	.L4
.L5:
	ldr	r3, [fp, #-2428]
	lsl	r2, r3, #2
	sub	r3, fp, #2400
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-2428]
	add	r3, r3, #1
	str	r3, [fp, #-2428]
.L4:
	ldr	r3, [fp, #-2432]
	ldr	r2, [fp, #-2428]
	cmp	r2, r3
	blt	.L5
	mov	r3, #0
	str	r3, [fp, #-2424]
	b	.L6
.L10:
	mov	r3, #0
	str	r3, [fp, #-2420]
	b	.L7
.L9:
	ldr	r3, [fp, #-2420]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-2404]
	ldr	r3, [fp, #-2424]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-2404]
	cmp	r2, r3
	bge	.L8
	ldr	r3, [fp, #-2424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1604]
	add	r2, r3, #1
	ldr	r3, [fp, #-2424]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1604]
.L8:
	ldr	r3, [fp, #-2420]
	add	r3, r3, #1
	str	r3, [fp, #-2420]
.L7:
	ldr	r3, [fp, #-2432]
	ldr	r2, [fp, #-2420]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-2424]
	add	r3, r3, #1
	str	r3, [fp, #-2424]
.L6:
	ldr	r3, [fp, #-2432]
	ldr	r2, [fp, #-2424]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
	str	r3, [fp, #-2416]
	b	.L11
.L12:
	ldr	r3, [fp, #-2416]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-1604]
	ldr	r3, [fp, #-2416]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-2404]
	lsl	r3, r1, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-804]
	ldr	r3, [fp, #-2416]
	add	r3, r3, #1
	str	r3, [fp, #-2416]
.L11:
	ldr	r3, [fp, #-2432]
	ldr	r2, [fp, #-2416]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-2412]
	b	.L13
.L16:
	ldr	r3, [fp, #-2412]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-804]
	ldr	r3, [fp, #-2432]
	sub	r3, r3, #1
	ldr	r2, [fp, #-2412]
	cmp	r2, r3
	bne	.L14
	ldr	r3, .L22+8
	b	.L15
.L14:
	ldr	r3, .L22+12
.L15:
	mov	r2, r3
	ldr	r0, .L22+16
	bl	printf
	ldr	r3, [fp, #-2412]
	add	r3, r3, #1
	str	r3, [fp, #-2412]
.L13:
	ldr	r3, [fp, #-2432]
	ldr	r2, [fp, #-2412]
	cmp	r2, r3
	blt	.L16
	b	.L17
.L21:
	nop
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
