	.file	"482655.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L18:
	mov	eax, DWORD PTR -4416[rbp]
	test	eax, eax
	je	.L21
	mov	DWORD PTR -4444[rbp], 1
	jmp	.L5
.L6:
	lea	rdx, -4416[rbp]
	mov	eax, DWORD PTR -4444[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4444[rbp], 1
.L5:
	mov	eax, DWORD PTR -4444[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -4416[rbp+rax*4]
	test	eax, eax
	jg	.L6
	mov	eax, DWORD PTR -4416[rbp]
	mov	DWORD PTR -4440[rbp], eax
	mov	DWORD PTR -4436[rbp], 1
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -4436[rbp]
	cdqe
	mov	eax, DWORD PTR -4416[rbp+rax*4]
	cmp	DWORD PTR -4440[rbp], eax
	jge	.L8
	mov	eax, DWORD PTR -4436[rbp]
	cdqe
	mov	eax, DWORD PTR -4416[rbp+rax*4]
	mov	DWORD PTR -4440[rbp], eax
.L8:
	add	DWORD PTR -4436[rbp], 1
.L7:
	mov	eax, DWORD PTR -4444[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4436[rbp], eax
	jl	.L9
	mov	DWORD PTR -4420[rbp], 0
	mov	DWORD PTR -4432[rbp], 1
	jmp	.L10
.L17:
	mov	DWORD PTR -4428[rbp], 0
	jmp	.L11
.L16:
	cmp	DWORD PTR -4428[rbp], 0
	jne	.L12
	mov	eax, DWORD PTR -4428[rbp]
	cdqe
	mov	eax, DWORD PTR -4416[rbp+rax*4]
	cdq
	idiv	DWORD PTR -4432[rbp]
	mov	DWORD PTR -4424[rbp], edx
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -4428[rbp]
	cdqe
	mov	eax, DWORD PTR -4416[rbp+rax*4]
	cdq
	idiv	DWORD PTR -4432[rbp]
	mov	eax, edx
	cmp	DWORD PTR -4424[rbp], eax
	je	.L14
	mov	DWORD PTR -4420[rbp], 0
	jmp	.L15
.L14:
	mov	DWORD PTR -4420[rbp], 1
.L13:
	add	DWORD PTR -4428[rbp], 1
.L11:
	mov	eax, DWORD PTR -4444[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4428[rbp], eax
	jl	.L16
.L15:
	add	DWORD PTR -4432[rbp], 1
.L10:
	mov	eax, DWORD PTR -4432[rbp]
	cmp	eax, DWORD PTR -4440[rbp]
	jle	.L17
.L2:
	lea	rax, -4416[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L18
	jmp	.L4
.L21:
	nop
.L4:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"482655.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.global	__aeabi_idivmod
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4416
	sub	sp, sp, #20
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L2
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	cmp	r3, #0
	beq	.L21
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-336]
	b	.L5
.L6:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #52
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-336]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	add	r3, r3, #1
	str	r3, [r2, #-336]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-308]
	cmp	r3, #0
	bgt	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	str	r3, [r2, #-332]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-328]
	b	.L7
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-308]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-332]
	cmp	r2, r3
	bge	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-308]
	str	r3, [r2, #-332]
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	add	r3, r3, #1
	str	r3, [r2, #-328]
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-328]
	cmp	r2, r3
	blt	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-312]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-324]
	b	.L10
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-320]
	b	.L11
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-308]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r1, [r2, #-324]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [r4, #-316]
	b	.L13
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-308]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r1, [r2, #-324]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, r2
	beq	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-312]
	b	.L15
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-312]
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	add	r3, r3, #1
	str	r3, [r2, #-320]
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-320]
	cmp	r2, r3
	blt	.L16
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #1
	str	r3, [r2, #-324]
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-324]
	ldr	r3, [r3, #-332]
	cmp	r2, r3
	ble	.L17
.L2:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #52
	mov	r1, r3
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	b	.L4
.L21:
	nop
.L4:
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
