	.file	"898945.c"
	.intel_syntax noprefix
	.text
	.globl	inRange
	.type	inRange, @function
inRange:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	DWORD PTR -36[rbp], r8d
	mov	BYTE PTR -1[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L2
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	cmp	DWORD PTR -28[rbp], eax
	jg	.L3
	mov	eax, 1
	jmp	.L4
.L3:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	cmp	DWORD PTR -28[rbp], eax
	jl	.L5
	mov	eax, 1
	jmp	.L4
.L2:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	cmp	DWORD PTR -28[rbp], eax
	jl	.L6
	mov	eax, 1
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	cmp	DWORD PTR -28[rbp], eax
	jg	.L5
	mov	eax, 1
	jmp	.L4
.L5:
	movzx	eax, BYTE PTR -1[rbp]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	inRange, .-inRange
	.globl	getIndex
	.type	getIndex, @function
getIndex:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	cmp	DWORD PTR -24[rbp], 0
	js	.L8
	mov	eax, DWORD PTR -24[rbp]
	cdq
	idiv	DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], edx
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cdq
	idiv	DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L9:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getIndex, .-getIndex
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -96[rbp]
	lea	rdx, -100[rbp]
	lea	rax, -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, -80[rbp]
	lea	rcx, -84[rbp]
	lea	rdx, -88[rbp]
	lea	rax, -92[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	QWORD PTR -32[rbp], 1
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	imul	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -80[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	div	rcx
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	add	QWORD PTR -32[rbp], 1
.L12:
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jb	.L13
	mov	DWORD PTR -76[rbp], 0
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cmp	edx, eax
	je	.L14
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -68[rbp], 0
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], eax
	mov	DWORD PTR -60[rbp], 0
	add	DWORD PTR -76[rbp], 1
	mov	edx, DWORD PTR -96[rbp]
	mov	esi, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, DWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -72[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	inRange
	xor	eax, 1
	test	al, al
	je	.L14
	mov	BYTE PTR -105[rbp], 1
	jmp	.L15
.L27:
	add	DWORD PTR -76[rbp], 1
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -48[rbp], eax
	jmp	.L16
.L20:
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getIndex
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, edx
	cmp	DWORD PTR -56[rbp], eax
	jle	.L17
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, edx
	mov	DWORD PTR -56[rbp], eax
	mov	edx, DWORD PTR -96[rbp]
	mov	esi, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, DWORD PTR -52[rbp]
	mov	ecx, DWORD PTR -56[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	inRange
	test	al, al
	je	.L17
	mov	BYTE PTR -105[rbp], 0
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	cmp	DWORD PTR -52[rbp], eax
	jge	.L19
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	mov	DWORD PTR -52[rbp], eax
	mov	edx, DWORD PTR -96[rbp]
	mov	esi, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, DWORD PTR -52[rbp]
	mov	ecx, DWORD PTR -56[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	inRange
	test	al, al
	je	.L19
	mov	BYTE PTR -105[rbp], 0
	jmp	.L18
.L19:
	add	DWORD PTR -48[rbp], 1
.L16:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L20
.L18:
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L21
.L25:
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getIndex
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, edx
	cmp	DWORD PTR -56[rbp], eax
	jle	.L22
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, edx
	mov	DWORD PTR -56[rbp], eax
	mov	edx, DWORD PTR -96[rbp]
	mov	esi, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, DWORD PTR -52[rbp]
	mov	ecx, DWORD PTR -56[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	inRange
	test	al, al
	je	.L22
	mov	BYTE PTR -105[rbp], 0
	jmp	.L23
.L22:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	cmp	DWORD PTR -52[rbp], eax
	jge	.L24
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	mov	DWORD PTR -52[rbp], eax
	mov	edx, DWORD PTR -96[rbp]
	mov	esi, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, DWORD PTR -52[rbp]
	mov	ecx, DWORD PTR -56[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	inRange
	test	al, al
	je	.L24
	mov	BYTE PTR -105[rbp], 0
	jmp	.L23
.L24:
	sub	DWORD PTR -44[rbp], 1
.L21:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jg	.L25
.L23:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jne	.L26
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jne	.L26
	mov	DWORD PTR -76[rbp], -1
	mov	BYTE PTR -105[rbp], 0
	jmp	.L15
.L26:
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -64[rbp], eax
.L15:
	cmp	BYTE PTR -105[rbp], 0
	jne	.L27
.L14:
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"898945.c"
	.text
	.align	2
	.global	inRange
	.syntax unified
	.arm
	.fpu softvfp
	.type	inRange, %function
inRange:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	strb	r3, [fp, #-5]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L2
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bgt	.L3
	mov	r3, #1
	b	.L4
.L3:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L5
	mov	r3, #1
	b	.L4
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L6
	mov	r3, #1
	b	.L4
.L6:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bgt	.L5
	mov	r3, #1
	b	.L4
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	inRange, .-inRange
	.global	__aeabi_idivmod
	.align	2
	.global	getIndex
	.syntax unified
	.arm
	.fpu softvfp
	.type	getIndex, %function
getIndex:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L8
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	b	.L9
.L8:
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getIndex, .-getIndex
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d %d\000"
	.align	2
.LC1:
	.ascii	"%d %d %d %d\000"
	.global	__aeabi_uldivmod
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #112
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #100
	sub	r2, fp, #104
	sub	r1, fp, #108
	ldr	r0, .L30+4
	bl	__isoc99_scanf
	sub	r0, fp, #88
	sub	r2, fp, #92
	sub	r1, fp, #96
	sub	r3, fp, #84
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L30+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L12
.L13:
	ldr	r3, [fp, #-80]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-92]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-24]
	mul	r2, r0, r3
	ldr	r3, [fp, #-28]
	mul	r3, r1, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-28]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-88]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
	ldr	r3, [fp, #-84]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, r0
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L12:
	ldr	r3, [fp, #-108]
	mov	r2, r3
	ldr	r3, [fp, #-80]
	cmp	r3, r2
	bcc	.L13
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	beq	.L14
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r0, [fp, #-108]
	ldr	r1, [fp, #-104]
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-64]
	str	r3, [sp]
	ldr	r3, [fp, #-72]
	bl	inRange
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L14
	mov	r3, #1
	strb	r3, [fp, #-109]
	b	.L15
.L27:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-48]
	b	.L16
.L20:
	ldr	r0, [fp, #-108]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r1, r3
	bl	getIndex
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	sub	r3, r2, r3
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L17
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	sub	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-108]
	ldr	r1, [fp, #-104]
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	ldr	r3, [fp, #-56]
	bl	inRange
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	mov	r3, #0
	strb	r3, [fp, #-109]
	b	.L18
.L17:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bge	.L19
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-108]
	ldr	r1, [fp, #-104]
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	ldr	r3, [fp, #-56]
	bl	inRange
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	mov	r3, #0
	strb	r3, [fp, #-109]
	b	.L18
.L19:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L16:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L20
.L18:
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-44]
	b	.L21
.L25:
	ldr	r0, [fp, #-108]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r1, r3
	bl	getIndex
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	sub	r3, r2, r3
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L22
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	sub	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-108]
	ldr	r1, [fp, #-104]
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	ldr	r3, [fp, #-56]
	bl	inRange
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	mov	r3, #0
	strb	r3, [fp, #-109]
	b	.L23
.L22:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bge	.L24
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-108]
	ldr	r1, [fp, #-104]
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	ldr	r3, [fp, #-56]
	bl	inRange
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	mov	r3, #0
	strb	r3, [fp, #-109]
	b	.L23
.L24:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
.L21:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bgt	.L25
.L23:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bne	.L26
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bne	.L26
	mvn	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	strb	r3, [fp, #-109]
	b	.L15
.L26:
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-64]
.L15:
	ldrb	r3, [fp, #-109]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L27
.L14:
	ldr	r1, [fp, #-76]
	ldr	r0, .L30+12
	bl	printf
	ldr	r0, [fp, #-40]
	bl	free
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
