	.file	"73575446.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"sample_input.txt"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"%d"
.LC5:
	.string	"#%d %d\n"
	.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, -798720[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1344
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	freopen@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	lea	rax, -800056[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -800052[rbp], 1
	jmp	.L2
.L11:
	lea	rdx, -800064[rbp]
	lea	rax, -800060[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -800048[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -800048[rbp]
	cdqe
	mov	DWORD PTR -800032[rbp+rax*4], 0
	add	DWORD PTR -800048[rbp], 1
.L3:
	mov	eax, DWORD PTR -800064[rbp]
	cmp	DWORD PTR -800048[rbp], eax
	jle	.L4
	mov	DWORD PTR -800044[rbp], 0
	mov	eax, DWORD PTR -800044[rbp]
	mov	DWORD PTR -800048[rbp], eax
	mov	eax, DWORD PTR -800048[rbp]
	mov	DWORD PTR -800040[rbp], eax
	mov	eax, DWORD PTR -800040[rbp]
	mov	DWORD PTR -800036[rbp], eax
	jmp	.L5
.L10:
	lea	rdx, -400016[rbp]
	mov	eax, DWORD PTR -800044[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -800044[rbp]
	cdqe
	mov	eax, DWORD PTR -400016[rbp+rax*4]
	cdqe
	mov	eax, DWORD PTR -800032[rbp+rax*4]
	test	eax, eax
	jne	.L6
	add	DWORD PTR -800040[rbp], 1
.L6:
	mov	eax, DWORD PTR -800044[rbp]
	cdqe
	mov	eax, DWORD PTR -400016[rbp+rax*4]
	movsx	rdx, eax
	mov	edx, DWORD PTR -800032[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -800032[rbp+rax*4], edx
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -800060[rbp]
	sub	eax, DWORD PTR -800044[rbp]
	add	DWORD PTR -800036[rbp], eax
	mov	eax, DWORD PTR -800048[rbp]
	cdqe
	mov	eax, DWORD PTR -400016[rbp+rax*4]
	cdqe
	mov	eax, DWORD PTR -800032[rbp+rax*4]
	cmp	eax, 1
	jne	.L8
	sub	DWORD PTR -800040[rbp], 1
.L8:
	mov	eax, DWORD PTR -800048[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -800048[rbp], edx
	cdqe
	mov	eax, DWORD PTR -400016[rbp+rax*4]
	movsx	rdx, eax
	mov	edx, DWORD PTR -800032[rbp+rdx*4]
	sub	edx, 1
	cdqe
	mov	DWORD PTR -800032[rbp+rax*4], edx
.L7:
	mov	eax, DWORD PTR -800064[rbp]
	cmp	DWORD PTR -800040[rbp], eax
	je	.L9
	add	DWORD PTR -800044[rbp], 1
.L5:
	mov	eax, DWORD PTR -800060[rbp]
	cmp	DWORD PTR -800044[rbp], eax
	jl	.L10
	mov	edx, DWORD PTR -800036[rbp]
	mov	eax, DWORD PTR -800052[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -800052[rbp], 1
.L2:
	mov	eax, DWORD PTR -800056[rbp]
	cmp	DWORD PTR -800052[rbp], eax
	jle	.L11
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"73575446.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"sample_input.txt\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"%d %d\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"#%d %d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 800048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #798720
	sub	sp, sp, #1328
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L14+8
	ldr	r0, .L14+12
	bl	freopen
	ldr	r3, .L14+16
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r3, .L14+20
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L14+24
	bl	__isoc99_scanf
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1312]
	b	.L2
.L11:
	ldr	r2, .L14+28
	sub	r3, fp, #4
	add	r2, r3, r2
	ldr	r3, .L14+32
	sub	r1, fp, #4
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L14+36
	bl	__isoc99_scanf
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1308]
	b	.L3
.L4:
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1308]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1292]
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1308]
	add	r3, r3, #1
	str	r3, [r2, #-1308]
.L3:
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1324]
	sub	r2, fp, #798720
	sub	r2, r2, #4
	ldr	r2, [r2, #-1308]
	cmp	r2, r3
	ble	.L4
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1304]
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1304]
	str	r3, [r2, #-1308]
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1308]
	str	r3, [r2, #-1300]
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1300]
	str	r3, [r2, #-1296]
	b	.L5
.L10:
	ldr	r3, .L14+40
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r2, fp, #798720
	sub	r2, r2, #4
	ldr	r2, [r2, #-1304]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L14+44
	bl	__isoc99_scanf
	sub	r3, fp, #397312
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1304]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-2696]
	sub	r2, fp, #798720
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1292]
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1300]
	add	r3, r3, #1
	str	r3, [r2, #-1300]
.L6:
	sub	r3, fp, #397312
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1304]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-2696]
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-1292]
	add	r1, r3, #1
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-1292]
	b	.L7
.L9:
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r2, [r3, #-1320]
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1304]
	sub	r3, r2, r3
	sub	r2, fp, #798720
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #798720
	sub	r2, r2, #4
	ldr	r2, [r2, #-1296]
	add	r3, r2, r3
	str	r3, [r1, #-1296]
	sub	r3, fp, #397312
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1308]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-2696]
	sub	r2, fp, #798720
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1292]
	cmp	r3, #1
	bne	.L8
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1300]
	sub	r3, r3, #1
	str	r3, [r2, #-1300]
.L8:
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1308]
	sub	r2, fp, #798720
	sub	r2, r2, #4
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1308]
	sub	r2, fp, #397312
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-2696]
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-1292]
	sub	r1, r3, #1
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-1292]
.L7:
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1324]
	sub	r2, fp, #798720
	sub	r2, r2, #4
	ldr	r2, [r2, #-1300]
	cmp	r2, r3
	beq	.L9
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1304]
	add	r3, r3, #1
	str	r3, [r2, #-1304]
.L5:
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1320]
	sub	r2, fp, #798720
	sub	r2, r2, #4
	ldr	r2, [r2, #-1304]
	cmp	r2, r3
	blt	.L10
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r2, [r2, #-1296]
	ldr	r1, [r3, #-1312]
	ldr	r0, .L14+48
	bl	printf
	sub	r3, fp, #798720
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1312]
	add	r3, r3, #1
	str	r3, [r2, #-1312]
.L2:
	sub	r3, fp, #798720
	sub	r3, r3, #4
	ldr	r3, [r3, #-1316]
	sub	r2, fp, #798720
	sub	r2, r2, #4
	ldr	r2, [r2, #-1312]
	cmp	r2, r3
	ble	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	stdin
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	-800036
	.word	.LC2
	.word	-800044
	.word	-800040
	.word	.LC3
	.word	-400008
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
