	.file	"538723.c"
	.intel_syntax noprefix
	.text
	.globl	find
	.type	find, @function
find:
.LFB0:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -24[rbp], eax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L5
	mov	eax, -1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find, .-find
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d "
	.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
	sub	rsp, 576
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -512[rbp], 0
	mov	QWORD PTR -504[rbp], 0
	mov	QWORD PTR -496[rbp], 0
	mov	QWORD PTR -488[rbp], 0
	mov	QWORD PTR -480[rbp], 0
	lea	rax, -568[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -552[rbp], 0
	jmp	.L7
.L8:
	lea	rdx, -512[rbp]
	mov	eax, DWORD PTR -552[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 -552[rbp], 1
.L7:
	mov	eax, DWORD PTR -568[rbp]
	cmp	DWORD PTR -552[rbp], eax
	jl	.L8
	mov	DWORD PTR -548[rbp], 0
	jmp	.L9
.L12:
	mov	DWORD PTR -544[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -544[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -548[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	DWORD PTR -416[rbp+rax*4], 0
	add	DWORD PTR -544[rbp], 1
.L10:
	mov	eax, DWORD PTR -568[rbp]
	cmp	DWORD PTR -544[rbp], eax
	jl	.L11
	add	DWORD PTR -548[rbp], 1
.L9:
	mov	eax, DWORD PTR -568[rbp]
	cmp	DWORD PTR -548[rbp], eax
	jl	.L12
	lea	rax, -564[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -540[rbp], 0
	jmp	.L13
.L14:
	lea	rdx, -556[rbp]
	lea	rax, -560[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -560[rbp]
	mov	eax, DWORD PTR -568[rbp]
	lea	rcx, -512[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	find
	mov	DWORD PTR -560[rbp], eax
	mov	edx, DWORD PTR -556[rbp]
	mov	eax, DWORD PTR -568[rbp]
	lea	rcx, -512[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	find
	mov	DWORD PTR -556[rbp], eax
	mov	eax, DWORD PTR -560[rbp]
	mov	edx, DWORD PTR -556[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	DWORD PTR -416[rbp+rax*4], 1
	add	DWORD PTR -540[rbp], 1
.L13:
	mov	eax, DWORD PTR -564[rbp]
	cmp	DWORD PTR -540[rbp], eax
	jl	.L14
	mov	DWORD PTR -464[rbp], -1
	mov	DWORD PTR -460[rbp], -1
	mov	DWORD PTR -456[rbp], -1
	mov	DWORD PTR -452[rbp], -1
	mov	DWORD PTR -448[rbp], -1
	mov	DWORD PTR -444[rbp], -1
	mov	DWORD PTR -440[rbp], -1
	mov	DWORD PTR -436[rbp], -1
	mov	DWORD PTR -432[rbp], -1
	mov	DWORD PTR -428[rbp], -1
	mov	DWORD PTR -532[rbp], 0
	jmp	.L15
.L26:
	mov	DWORD PTR -528[rbp], 0
	jmp	.L16
.L25:
	mov	DWORD PTR -536[rbp], 0
	mov	DWORD PTR -524[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -528[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -524[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	eax, DWORD PTR -416[rbp+rax*4]
	test	eax, eax
	je	.L18
	add	DWORD PTR -536[rbp], 1
	jmp	.L19
.L18:
	add	DWORD PTR -524[rbp], 1
.L17:
	mov	eax, DWORD PTR -568[rbp]
	cmp	DWORD PTR -524[rbp], eax
	jl	.L20
.L19:
	cmp	DWORD PTR -536[rbp], 0
	jne	.L21
	mov	eax, DWORD PTR -532[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -532[rbp], edx
	cdqe
	mov	edx, DWORD PTR -528[rbp]
	mov	DWORD PTR -464[rbp+rax*4], edx
	mov	DWORD PTR -520[rbp], 0
	jmp	.L22
.L24:
	mov	eax, DWORD PTR -520[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -528[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	eax, DWORD PTR -416[rbp+rax*4]
	cmp	eax, -1
	je	.L23
	mov	eax, DWORD PTR -520[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -528[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	DWORD PTR -416[rbp+rax*4], 0
	mov	eax, DWORD PTR -528[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -520[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	DWORD PTR -416[rbp+rax*4], -1
.L23:
	add	DWORD PTR -520[rbp], 1
.L22:
	mov	eax, DWORD PTR -568[rbp]
	cmp	DWORD PTR -520[rbp], eax
	jl	.L24
.L21:
	add	DWORD PTR -528[rbp], 1
.L16:
	mov	eax, DWORD PTR -568[rbp]
	cmp	DWORD PTR -528[rbp], eax
	jl	.L25
.L15:
	mov	eax, DWORD PTR -568[rbp]
	cmp	DWORD PTR -532[rbp], eax
	jl	.L26
	mov	DWORD PTR -516[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -516[rbp]
	cdqe
	mov	eax, DWORD PTR -464[rbp+rax*4]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -516[rbp], 1
.L27:
	mov	eax, DWORD PTR -568[rbp]
	cmp	DWORD PTR -516[rbp], eax
	jl	.L28
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	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	"538723.c"
	.text
	.align	2
	.global	find
	.syntax unified
	.arm
	.fpu softvfp
	.type	find, %function
find:
	@ args = 0, 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-8]
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L5
	mvn	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	find, .-find
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d %d\000"
	.align	2
.LC3:
	.ascii	"%d \000"
	.align	2
.LC0:
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.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 = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #488
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #544
	mov	r1, r3
	ldr	r0, .L31+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L7
.L8:
	sub	r2, fp, #488
	ldr	r3, [fp, #-528]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L31+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
.L7:
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-528]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L9
.L12:
	mov	r3, #0
	str	r3, [fp, #-520]
	b	.L10
.L11:
	ldr	r2, [fp, #-524]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-520]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-520]
	add	r3, r3, #1
	str	r3, [fp, #-520]
.L10:
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-520]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L9:
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-524]
	cmp	r2, r3
	blt	.L12
	sub	r3, fp, #540
	mov	r1, r3
	ldr	r0, .L31+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-516]
	b	.L13
.L14:
	sub	r2, fp, #532
	sub	r3, fp, #536
	mov	r1, r3
	ldr	r0, .L31+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-536]
	sub	r1, fp, #488
	mov	r0, r3
	bl	find
	mov	r3, r0
	str	r3, [fp, #-536]
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-532]
	sub	r1, fp, #488
	mov	r0, r3
	bl	find
	mov	r3, r0
	str	r3, [fp, #-532]
	ldr	r2, [fp, #-536]
	ldr	r1, [fp, #-532]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	str	r3, [fp, #-516]
.L13:
	ldr	r3, [fp, #-540]
	ldr	r2, [fp, #-516]
	cmp	r2, r3
	blt	.L14
	ldr	r3, .L31+12
	sub	ip, fp, #448
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-508]
	b	.L15
.L26:
	mov	r3, #0
	str	r3, [fp, #-504]
	b	.L16
.L25:
	mov	r3, #0
	str	r3, [fp, #-512]
	mov	r3, #0
	str	r3, [fp, #-500]
	b	.L17
.L20:
	ldr	r2, [fp, #-500]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-504]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-512]
	add	r3, r3, #1
	str	r3, [fp, #-512]
	b	.L19
.L18:
	ldr	r3, [fp, #-500]
	add	r3, r3, #1
	str	r3, [fp, #-500]
.L17:
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-500]
	cmp	r2, r3
	blt	.L20
.L19:
	ldr	r3, [fp, #-512]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-508]
	add	r2, r3, #1
	str	r2, [fp, #-508]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-504]
	str	r2, [r3, #-444]
	mov	r3, #0
	str	r3, [fp, #-496]
	b	.L22
.L24:
	ldr	r2, [fp, #-504]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-496]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	cmn	r3, #1
	beq	.L23
	ldr	r2, [fp, #-504]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-496]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-404]
	ldr	r2, [fp, #-496]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-504]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #-404]
.L23:
	ldr	r3, [fp, #-496]
	add	r3, r3, #1
	str	r3, [fp, #-496]
.L22:
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-496]
	cmp	r2, r3
	blt	.L24
.L21:
	ldr	r3, [fp, #-504]
	add	r3, r3, #1
	str	r3, [fp, #-504]
.L16:
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-504]
	cmp	r2, r3
	blt	.L25
.L15:
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-508]
	cmp	r2, r3
	blt	.L26
	mov	r3, #0
	str	r3, [fp, #-492]
	b	.L27
.L28:
	ldr	r3, [fp, #-492]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-444]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-484]
	mov	r1, r3
	ldr	r0, .L31+16
	bl	printf
	ldr	r3, [fp, #-492]
	add	r3, r3, #1
	str	r3, [fp, #-492]
.L27:
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-492]
	cmp	r2, r3
	blt	.L28
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
