	.file	"799083.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	lea	r11, -1228800[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3376
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1232144[rbp], 1
	mov	DWORD PTR -1232140[rbp], 0
	mov	DWORD PTR -1232136[rbp], 0
	mov	DWORD PTR -1232132[rbp], -1
	mov	DWORD PTR -1232128[rbp], 0
	mov	DWORD PTR -1232124[rbp], -1
	mov	DWORD PTR -1232120[rbp], 1
	mov	DWORD PTR -1232116[rbp], 0
	jmp	.L2
.L13:
	mov	DWORD PTR -1232160[rbp], 0
	mov	DWORD PTR -1232156[rbp], 1
	lea	rax, -1232112[rbp]
	mov	edx, 1232100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1232112[rbp], 1
	mov	DWORD PTR -1232152[rbp], 2
	mov	DWORD PTR -1232148[rbp], 0
	jmp	.L3
.L8:
	mov	eax, DWORD PTR -1232152[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1232152[rbp], edx
	mov	edx, DWORD PTR -1232156[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -1232160[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 555
	add	rdx, rcx
	mov	DWORD PTR -1232112[rbp+rdx*4], eax
	mov	eax, DWORD PTR -1232148[rbp]
	cdqe
	mov	eax, DWORD PTR -1232144[rbp+rax*4]
	add	DWORD PTR -1232160[rbp], eax
	mov	eax, DWORD PTR -1232148[rbp]
	cdqe
	mov	eax, DWORD PTR -1232128[rbp+rax*4]
	add	DWORD PTR -1232156[rbp], eax
	cmp	DWORD PTR -1232160[rbp], 0
	js	.L4
	cmp	DWORD PTR -1232156[rbp], 0
	jns	.L5
.L4:
	add	DWORD PTR -1232160[rbp], 1
	add	DWORD PTR -1232156[rbp], 1
	add	DWORD PTR -1232148[rbp], 1
.L5:
	mov	eax, DWORD PTR -1232160[rbp]
	cmp	eax, DWORD PTR -1232156[rbp]
	jne	.L6
	add	DWORD PTR -1232148[rbp], 1
.L6:
	cmp	DWORD PTR -1232148[rbp], 4
	jne	.L3
	mov	DWORD PTR -1232148[rbp], 0
.L3:
	mov	eax, DWORD PTR -1232164[rbp]
	cmp	DWORD PTR -1232160[rbp], eax
	jge	.L7
	mov	eax, DWORD PTR -1232164[rbp]
	cmp	DWORD PTR -1232156[rbp], eax
	jl	.L8
.L7:
	mov	DWORD PTR -1232160[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -1232160[rbp]
	cdqe
	imul	rax, rax, 2220
	add	rax, rbp
	sub	rax, 1232112
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1232156[rbp], 1
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -1232156[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -1232160[rbp]
	cdqe
	imul	rax, rax, 555
	add	rax, rdx
	mov	eax, DWORD PTR -1232112[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1232156[rbp], 1
.L10:
	mov	eax, DWORD PTR -1232164[rbp]
	cmp	DWORD PTR -1232156[rbp], eax
	jl	.L11
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -1232160[rbp], 1
.L9:
	mov	eax, DWORD PTR -1232164[rbp]
	cmp	DWORD PTR -1232160[rbp], eax
	jl	.L12
.L2:
	lea	rax, -1232164[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L13
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"799083.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	" %d\000"
	.align	2
.LC0:
	.word	1
	.word	0
	.word	0
	.word	-1
	.align	2
.LC1:
	.word	0
	.word	-1
	.word	1
	.word	0
	.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 = 1232160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1228800
	sub	sp, sp, #3360
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r2, .L16+4
	sub	ip, r3, #3328
	sub	ip, ip, #8
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r2, .L16+8
	sub	ip, r3, #3312
	sub	ip, ip, #8
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L2
.L13:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3352]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3348]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	sub	r3, r3, #3296
	sub	r3, r3, #8
	ldr	r2, .L16+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3304]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-3344]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3340]
	b	.L3
.L8:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r1, [r3, #-3344]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	add	r3, r1, #1
	str	r3, [r2, #-3344]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r2, [r3, #-3352]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3348]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3, #-3304]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3340]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3336]
	sub	r2, fp, #1228800
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #1228800
	sub	r2, r2, #4
	ldr	r2, [r2, #-3352]
	add	r3, r2, r3
	str	r3, [r1, #-3352]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3340]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3320]
	sub	r2, fp, #1228800
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #1228800
	sub	r2, r2, #4
	ldr	r2, [r2, #-3348]
	add	r3, r2, r3
	str	r3, [r1, #-3348]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3352]
	cmp	r3, #0
	blt	.L4
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3348]
	cmp	r3, #0
	bge	.L5
.L4:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3352]
	add	r3, r3, #1
	str	r3, [r2, #-3352]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3348]
	add	r3, r3, #1
	str	r3, [r2, #-3348]
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3340]
	add	r3, r3, #1
	str	r3, [r2, #-3340]
.L5:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r2, [r2, #-3352]
	ldr	r3, [r3, #-3348]
	cmp	r2, r3
	bne	.L6
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3340]
	add	r3, r3, #1
	str	r3, [r2, #-3340]
.L6:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3340]
	cmp	r3, #4
	bne	.L3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3340]
.L3:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3356]
	sub	r2, fp, #1228800
	sub	r2, r2, #4
	ldr	r2, [r2, #-3352]
	cmp	r2, r3
	bge	.L7
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3356]
	sub	r2, fp, #1228800
	sub	r2, r2, #4
	ldr	r2, [r2, #-3348]
	cmp	r2, r3
	blt	.L8
.L7:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3352]
	b	.L9
.L12:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r2, [r3, #-3352]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	sub	r3, r3, #3296
	sub	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3348]
	b	.L10
.L11:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r2, [r3, #-3352]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3348]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-3304]
	mov	r1, r3
	ldr	r0, .L16+20
	bl	printf
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3348]
	add	r3, r3, #1
	str	r3, [r2, #-3348]
.L10:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3356]
	sub	r2, fp, #1228800
	sub	r2, r2, #4
	ldr	r2, [r2, #-3348]
	cmp	r2, r3
	blt	.L11
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3352]
	add	r3, r3, #1
	str	r3, [r2, #-3352]
.L9:
	sub	r3, fp, #1228800
	sub	r3, r3, #4
	ldr	r3, [r3, #-3356]
	sub	r2, fp, #1228800
	sub	r2, r2, #4
	ldr	r2, [r2, #-3352]
	cmp	r2, r3
	blt	.L12
.L2:
	ldr	r3, .L16+24
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L16+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	1232100
	.word	.LC2
	.word	.LC3
	.word	-1232156
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
