	.file	"56977.c"
	.intel_syntax noprefix
	.text
	.globl	table
	.bss
	.align 32
	.type	table, @object
	.size	table, 512
table:
	.zero	512
	.text
	.globl	getResult
	.type	getResult, @function
getResult:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -96[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	jmp	.L2
.L10:
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, 1
	mov	DWORD PTR -64[rbp], eax
	jmp	.L3
.L9:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 1
	jne	.L4
	mov	eax, DWORD PTR -64[rbp]
	sub	eax, 55
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	r8d, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	cdqe
	mov	edi, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 2
	cdqe
	mov	r9d, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 3
	cdqe
	mov	esi, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 4
	cdqe
	mov	r10d, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 5
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 6
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	movsx	rdx, eax
	movsx	r10, r10d
	movsx	r9, r9d
	movsx	rax, r8d
	movsx	rdi, edi
	add	rax, rax
	add	rax, rdi
	add	rax, rax
	add	rax, r9
	movsx	rsi, esi
	add	rax, rax
	add	rax, rsi
	add	rax, rax
	add	rax, r10
	movsx	rcx, ecx
	add	rax, rax
	add	rax, rcx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, table[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	add	DWORD PTR -56[rbp], 7
	add	DWORD PTR -60[rbp], 1
.L5:
	cmp	DWORD PTR -60[rbp], 7
	jle	.L6
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	lea	ecx, [rax+rdx]
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -36[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	add	eax, ecx
	mov	DWORD PTR -52[rbp], eax
	mov	ecx, DWORD PTR -52[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L7
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -72[rbp], eax
.L7:
	mov	eax, DWORD PTR -72[rbp]
	jmp	.L11
.L4:
	sub	DWORD PTR -64[rbp], 1
.L3:
	cmp	DWORD PTR -64[rbp], 0
	jns	.L9
	add	DWORD PTR -68[rbp], 1
.L2:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L10
	mov	eax, DWORD PTR -72[rbp]
.L11:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getResult, .-getResult
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"#%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3280
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR table[rip+52], 0
	mov	DWORD PTR table[rip+100], 1
	mov	DWORD PTR table[rip+76], 2
	mov	DWORD PTR table[rip+244], 3
	mov	DWORD PTR table[rip+140], 4
	mov	DWORD PTR table[rip+196], 5
	mov	DWORD PTR table[rip+188], 6
	mov	DWORD PTR table[rip+236], 7
	mov	DWORD PTR table[rip+220], 8
	mov	DWORD PTR table[rip+44], 9
	lea	rax, -40140[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40128[rbp], 0
	jmp	.L14
.L19:
	lea	rdx, -40132[rbp]
	lea	rax, -40136[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40124[rbp], 0
	jmp	.L15
.L18:
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40120[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -40120[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	movsx	eax, al
	lea	ecx, -48[rax]
	mov	eax, DWORD PTR -40120[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -40124[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	mov	DWORD PTR -40112[rbp+rax*4], ecx
	add	DWORD PTR -40120[rbp], 1
.L16:
	mov	eax, DWORD PTR -40132[rbp]
	cmp	DWORD PTR -40120[rbp], eax
	jl	.L17
	add	DWORD PTR -40124[rbp], 1
.L15:
	mov	eax, DWORD PTR -40136[rbp]
	cmp	DWORD PTR -40124[rbp], eax
	jl	.L18
	mov	edx, DWORD PTR -40132[rbp]
	mov	ecx, DWORD PTR -40136[rbp]
	lea	rax, -40112[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getResult
	mov	DWORD PTR -40116[rbp], eax
	mov	eax, DWORD PTR -40128[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -40116[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -40128[rbp], 1
.L14:
	mov	eax, DWORD PTR -40140[rbp]
	cmp	DWORD PTR -40128[rbp], eax
	jl	.L19
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"56977.c"
	.text
	.comm	table,512,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getResult
	.syntax unified
	.arm
	.fpu softvfp
	.type	getResult, %function
getResult:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #84
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	str	r2, [fp, #-96]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L2
.L10:
	ldr	r3, [fp, #-96]
	sub	r3, r3, #1
	str	r3, [fp, #-72]
	b	.L3
.L9:
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r3, r2
	ldr	r2, [fp, #-72]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #1
	bne	.L4
	ldr	r3, [fp, #-72]
	sub	r3, r3, #55
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L5
.L6:
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r3, r2
	ldr	r2, [fp, #-64]
	ldr	r5, [r3, r2, lsl #2]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r3, r2
	ldr	r2, [fp, #-64]
	add	r2, r2, #1
	ldr	r4, [r3, r2, lsl #2]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r3, r2
	ldr	r2, [fp, #-64]
	add	r2, r2, #2
	ldr	lr, [r3, r2, lsl #2]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r3, r2
	ldr	r2, [fp, #-64]
	add	r2, r2, #3
	ldr	ip, [r3, r2, lsl #2]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r3, r2
	ldr	r2, [fp, #-64]
	add	r2, r2, #4
	ldr	r0, [r3, r2, lsl #2]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r3, r2
	ldr	r2, [fp, #-64]
	add	r2, r2, #5
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r3, r2
	ldr	r2, [fp, #-64]
	add	r2, r2, #6
	ldr	r3, [r3, r2, lsl #2]
	ldr	r6, .L13+4
	lsl	r2, r5, #1
	add	r2, r2, r4
	lsl	r2, r2, #1
	add	r2, r2, lr
	lsl	r2, r2, #1
	add	r2, r2, ip
	lsl	r2, r2, #1
	add	r2, r2, r0
	lsl	r2, r2, #1
	add	r2, r2, r1
	lsl	r2, r2, #1
	add	r3, r2, r3
	ldr	r2, [r6, r3, lsl #2]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	str	r2, [r3, #-36]
	ldr	r3, [fp, #-64]
	add	r3, r3, #7
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L5:
	ldr	r3, [fp, #-68]
	cmp	r3, #7
	ble	.L6
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-48]
	add	r2, r2, r3
	ldr	r3, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #-44]
	add	r1, r1, r3
	ldr	r3, [fp, #-36]
	add	r1, r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r1, [fp, #-60]
	ldr	r3, .L13+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L7
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-80]
.L7:
	ldr	r3, [fp, #-80]
	b	.L11
.L4:
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	str	r3, [fp, #-72]
.L3:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L9
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L2:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-80]
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	table
	.word	1717986919
	.size	getResult, .-getResult
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d %d\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"#%d %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #39936
	sub	sp, sp, #204
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L24+4
	mov	r2, #0
	str	r2, [r3, #52]
	ldr	r3, .L24+4
	mov	r2, #1
	str	r2, [r3, #100]
	ldr	r3, .L24+4
	mov	r2, #2
	str	r2, [r3, #76]
	ldr	r3, .L24+4
	mov	r2, #3
	str	r2, [r3, #244]
	ldr	r3, .L24+4
	mov	r2, #4
	str	r2, [r3, #140]
	ldr	r3, .L24+4
	mov	r2, #5
	str	r2, [r3, #196]
	ldr	r3, .L24+4
	mov	r2, #6
	str	r2, [r3, #188]
	ldr	r3, .L24+4
	mov	r2, #7
	str	r2, [r3, #236]
	ldr	r3, .L24+4
	mov	r2, #8
	str	r2, [r3, #220]
	ldr	r3, .L24+4
	mov	r2, #9
	str	r2, [r3, #44]
	sub	r3, fp, #39936
	sub	r3, r3, #12
	sub	r3, r3, #200
	mov	r1, r3
	ldr	r0, .L24+8
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3260]
	b	.L16
.L21:
	sub	r2, fp, #39936
	sub	r2, r2, #12
	sub	r2, r2, #192
	sub	r3, fp, #39936
	sub	r3, r3, #12
	sub	r3, r3, #196
	mov	r1, r3
	ldr	r0, .L24+12
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3256]
	b	.L17
.L20:
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, .L24+16
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3252]
	b	.L18
.L19:
	sub	r2, fp, #120
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3252]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r1, r3, #48
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r2, [r3, #-3256]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3252]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3, #-3244]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3252]
	add	r3, r3, #1
	str	r3, [r2, #-3252]
.L18:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3264]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3252]
	cmp	r2, r3
	blt	.L19
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3256]
	add	r3, r3, #1
	str	r3, [r2, #-3256]
.L17:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3268]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3256]
	cmp	r2, r3
	blt	.L20
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r3, #-3268]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r2, [r3, #-3264]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #39936
	sub	r3, r3, #12
	sub	r3, r3, #172
	mov	r0, r3
	bl	getResult
	str	r0, [r4, #-3248]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3260]
	add	r3, r3, #1
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3248]
	mov	r1, r3
	ldr	r0, .L24+20
	bl	printf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3260]
	add	r3, r3, #1
	str	r3, [r2, #-3260]
.L16:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3272]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3260]
	cmp	r2, r3
	blt	.L21
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC5
	.word	table
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
