	.file	"823393.c"
	.intel_syntax noprefix
	.text
	.globl	search_idx
	.type	search_idx, @function
search_idx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L3:
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L4
	mov	eax, 0
	cmp	DWORD PTR -4[rbp], 0
	cmovns	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	search_idx, .-search_idx
	.section	.rodata
	.align 8
.LC0:
	.string	"\350\257\267\350\276\223\345\205\245\350\246\201\346\237\245\346\211\276\347\232\204\346\225\260\345\255\227\357\274\232"
.LC1:
	.string	"%d"
.LC2:
	.string	"\007\007\346\237\245\346\211\276\345\244\261\350\264\245"
	.align 8
.LC3:
	.string	"\346\202\250\350\246\201\346\211\276\347\232\204\346\225\260\345\255\227\347\232\204\344\270\213\346\240\207\346\230\257{ "
.LC4:
	.string	"%d "
.LC5:
	.string	"}"
.LC6:
	.string	"\345\205\261\346\234\211%d\344\270\252"
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 12
	mov	DWORD PTR -60[rbp], 52
	mov	DWORD PTR -56[rbp], 52
	mov	DWORD PTR -52[rbp], 31
	mov	DWORD PTR -48[rbp], 12
	mov	DWORD PTR -44[rbp], 12
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -72[rbp]
	lea	rsi, -32[rbp]
	lea	rax, -64[rbp]
	mov	ecx, 6
	mov	rdi, rax
	call	search_idx
	mov	edx, DWORD PTR -72[rbp]
	lea	rsi, -32[rbp]
	lea	rax, -64[rbp]
	mov	ecx, 6
	mov	rdi, rax
	call	search_idx
	test	eax, eax
	jne	.L7
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L7:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -68[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -68[rbp], 1
.L9:
	mov	edx, DWORD PTR -72[rbp]
	lea	rsi, -32[rbp]
	lea	rax, -64[rbp]
	mov	ecx, 6
	mov	rdi, rax
	call	search_idx
	cmp	DWORD PTR -68[rbp], eax
	jl	.L10
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -72[rbp]
	lea	rsi, -32[rbp]
	lea	rax, -64[rbp]
	mov	ecx, 6
	mov	rdi, rax
	call	search_idx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"823393.c"
	.text
	.align	2
	.global	search_idx
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_idx, %function
search_idx:
	@ 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]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-8]
	bic	r3, r3, r3, asr #31
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	search_idx, .-search_idx
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\350\257\267\350\276\223\345\205\245\350\246\201\346"
	.ascii	"\237\245\346\211\276\347\232\204\346\225\260\345\255"
	.ascii	"\227\357\274\232\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"\007\007\346\237\245\346\211\276\345\244\261\350\264"
	.ascii	"\245\000"
	.align	2
.LC4:
	.ascii	"\346\202\250\350\246\201\346\211\276\347\232\204\346"
	.ascii	"\225\260\345\255\227\347\232\204\344\270\213\346\240"
	.ascii	"\207\346\230\257{ \000"
	.align	2
.LC5:
	.ascii	"%d \000"
	.align	2
.LC6:
	.ascii	"}\000"
	.align	2
.LC7:
	.ascii	"\345\205\261\346\234\211%d\344\270\252\000"
	.align	2
.LC0:
	.word	12
	.word	52
	.word	52
	.word	31
	.word	12
	.word	12
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L13+4
	sub	ip, fp, #56
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #32
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r0, .L13+8
	bl	printf
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r2, [fp, #-64]
	sub	r1, fp, #32
	sub	r0, fp, #56
	mov	r3, #6
	bl	search_idx
	ldr	r2, [fp, #-64]
	sub	r1, fp, #32
	sub	r0, fp, #56
	mov	r3, #6
	bl	search_idx
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L13+16
	bl	printf
	b	.L8
.L7:
	ldr	r0, .L13+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L9
.L10:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	mov	r1, r3
	ldr	r0, .L13+24
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L9:
	ldr	r2, [fp, #-64]
	sub	r1, fp, #32
	sub	r0, fp, #56
	mov	r3, #6
	bl	search_idx
	mov	r2, r0
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	blt	.L10
	ldr	r0, .L13+28
	bl	puts
	ldr	r2, [fp, #-64]
	sub	r1, fp, #32
	sub	r0, fp, #56
	mov	r3, #6
	bl	search_idx
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L13+32
	bl	printf
.L8:
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
