	.file	"325546.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d\t"
	.text
	.globl	p
	.type	p, @function
p:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L3
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	p, .-p
	.globl	searchInsert
	.type	searchInsert, @function
searchInsert:
.LFB1:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L5
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L6
.L5:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -4[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 -32[rbp], eax
	jle	.L8
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -32[rbp], eax
	jg	.L8
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -4[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 -32[rbp], eax
	jg	.L9
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L6
.L9:
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L10
	mov	eax, DWORD PTR -4[rbp]
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	searchInsert, .-searchInsert
	.section	.rodata
.LC1:
	.string	"%d"
	.text
	.globl	test
	.type	test, @function
test:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 1
	mov	DWORD PTR -16[rbp], 2
	mov	DWORD PTR -12[rbp], 3
	lea	rax, -20[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	test, .-test
	.section	.rodata
	.align 8
.LC2:
	.string	"%02d. err:     want %d but %d\n"
	.align 8
.LC3:
	.string	"%02d. success: want %d and got %d \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	eax, 0
	mov	ecx, 17
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	DWORD PTR -160[rbp], 1
	mov	DWORD PTR -156[rbp], 3
	mov	DWORD PTR -152[rbp], 5
	mov	DWORD PTR -148[rbp], 6
	mov	DWORD PTR -144[rbp], 4
	mov	DWORD PTR -140[rbp], 5
	mov	DWORD PTR -136[rbp], 2
	mov	DWORD PTR -132[rbp], 1
	mov	DWORD PTR -128[rbp], 3
	mov	DWORD PTR -124[rbp], 5
	mov	DWORD PTR -120[rbp], 6
	mov	DWORD PTR -116[rbp], 4
	mov	DWORD PTR -112[rbp], 2
	mov	DWORD PTR -108[rbp], 1
	mov	DWORD PTR -104[rbp], 1
	mov	DWORD PTR -100[rbp], 3
	mov	DWORD PTR -96[rbp], 5
	mov	DWORD PTR -92[rbp], 6
	mov	DWORD PTR -88[rbp], 4
	mov	DWORD PTR -84[rbp], 7
	mov	DWORD PTR -80[rbp], 4
	mov	DWORD PTR -76[rbp], 1
	mov	DWORD PTR -72[rbp], 3
	mov	DWORD PTR -68[rbp], 5
	mov	DWORD PTR -64[rbp], 6
	mov	DWORD PTR -60[rbp], 4
	mov	DWORD PTR -48[rbp], 1
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -168[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -168[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 140
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 144
	mov	ecx, DWORD PTR [rax]
	lea	rdi, -160[rbp]
	mov	eax, DWORD PTR -168[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 3
	sub	rax, rsi
	sal	rax, 2
	add	rax, rdi
	mov	esi, ecx
	mov	rdi, rax
	call	searchInsert
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 136
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -164[rbp], eax
	je	.L15
	mov	eax, DWORD PTR -168[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 136
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -168[rbp]
	lea	esi, 1[rdx]
	mov	edx, DWORD PTR -164[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -168[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 136
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -168[rbp]
	lea	esi, 1[rdx]
	mov	edx, DWORD PTR -164[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	add	DWORD PTR -168[rbp], 1
.L14:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, 4
	jbe	.L17
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"325546.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\011\000"
	.text
	.align	2
	.global	p
	.syntax unified
	.arm
	.fpu softvfp
	.type	p, %function
p:
	@ 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]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L3
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC1
	.size	p, .-p
	.align	2
	.global	searchInsert
	.syntax unified
	.arm
	.fpu softvfp
	.type	searchInsert, %function
searchInsert:
	@ 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]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-20]
	b	.L8
.L7:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L12:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L10
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bgt	.L10
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	b	.L8
.L10:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bgt	.L11
	ldr	r3, [fp, #-8]
	b	.L8
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-8]
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	searchInsert, .-searchInsert
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC0:
	.word	1
	.word	2
	.word	3
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L15+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #20
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	mov	r0, #10
	bl	putchar
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.size	test, .-test
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%02d. err:     want %d but %d\012\000"
	.align	2
.LC5:
	.ascii	"%02d. success: want %d and got %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 = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-148]
	mov	r3, #3
	str	r3, [fp, #-144]
	mov	r3, #5
	str	r3, [fp, #-140]
	mov	r3, #6
	str	r3, [fp, #-136]
	mov	r3, #4
	str	r3, [fp, #-132]
	mov	r3, #5
	str	r3, [fp, #-128]
	mov	r3, #2
	str	r3, [fp, #-124]
	mov	r3, #1
	str	r3, [fp, #-120]
	mov	r3, #3
	str	r3, [fp, #-116]
	mov	r3, #5
	str	r3, [fp, #-112]
	mov	r3, #6
	str	r3, [fp, #-108]
	mov	r3, #4
	str	r3, [fp, #-104]
	mov	r3, #2
	str	r3, [fp, #-100]
	mov	r3, #1
	str	r3, [fp, #-96]
	mov	r3, #1
	str	r3, [fp, #-92]
	mov	r3, #3
	str	r3, [fp, #-88]
	mov	r3, #5
	str	r3, [fp, #-84]
	mov	r3, #6
	str	r3, [fp, #-80]
	mov	r3, #4
	str	r3, [fp, #-76]
	mov	r3, #7
	str	r3, [fp, #-72]
	mov	r3, #4
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #3
	str	r3, [fp, #-60]
	mov	r3, #5
	str	r3, [fp, #-56]
	mov	r3, #6
	str	r3, [fp, #-52]
	mov	r3, #4
	str	r3, [fp, #-48]
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L18
.L21:
	sub	r1, fp, #148
	ldr	r2, [fp, #-156]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r0, r1, r3
	ldr	r2, [fp, #-156]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #128
	ldr	r1, [r3]
	ldr	r2, [fp, #-156]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #124
	ldr	r3, [r3]
	mov	r2, r3
	bl	searchInsert
	str	r0, [fp, #-152]
	ldr	r2, [fp, #-156]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #120
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	beq	.L19
	ldr	r3, [fp, #-156]
	add	r1, r3, #1
	ldr	r2, [fp, #-156]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #120
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	ldr	r0, .L24+4
	bl	printf
	b	.L20
.L19:
	ldr	r3, [fp, #-156]
	add	r1, r3, #1
	ldr	r2, [fp, #-156]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #120
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	ldr	r0, .L24+8
	bl	printf
.L20:
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L18:
	ldr	r3, [fp, #-156]
	cmp	r3, #4
	bls	.L21
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC6
	.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
