	.file	"extr_search-x-data.c_iheap_pop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iheap_pop, @function
iheap_pop:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	r10, DWORD PTR HC[rip]
	test	r10d, r10d
	je	.L17
	mov	r8, QWORD PTR H[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR 8[r8]
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L21
.L4:
	cmp	r10d, 1
	jle	.L6
	mov	rbx, QWORD PTR 0[rbp]
	mov	esi, 2
	mov	ecx, 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	lea	esi, [rdx+rdx]
	mov	QWORD PTR [rax], rdi
	cmp	esi, r10d
	jg	.L12
	mov	ecx, edx
.L9:
	movsx	rax, esi
	mov	edx, esi
	sal	rax, 3
	lea	r11, [r8+rax]
	mov	rdi, QWORD PTR [r11]
	mov	r9, QWORD PTR [rdi]
	cmp	esi, r10d
	jge	.L7
	lea	rax, 8[r8+rax]
	mov	rsi, QWORD PTR [rax]
	mov	r12, QWORD PTR [rsi]
	cmp	r12, r9
	jge	.L7
	add	edx, 1
	mov	r9, r12
	mov	rdi, rsi
	mov	r11, rax
.L7:
	movsx	rax, ecx
	lea	rax, [r8+rax*8]
	cmp	rbx, r9
	jg	.L22
.L8:
	mov	QWORD PTR [rax], rbp
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	eax, -1[r10]
	mov	DWORD PTR HC[rip], eax
	test	eax, eax
	je	.L1
	mov	rbp, QWORD PTR [r8+r10*8]
	mov	r10d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	mov	rax, r11
	jmp	.L8
.L6:
	lea	rax, 8[r8]
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	iheap_pop, .-iheap_pop
	.comm	HC,4,4
	.comm	H,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_search-x-data.c_iheap_pop.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iheap_pop, %function
iheap_pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L21
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r3]
	cmp	r5, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, .L21+4
	ldr	r2, [r2]
	ldr	r9, [r2, #4]
	ldr	r1, [r9, #4]
	cmp	r1, #0
	beq	.L18
.L4:
	cmp	r5, #1
	ble	.L6
	mov	r3, #2
	mov	lr, #1
	ldr	r8, [r9]
	b	.L9
.L19:
	ldr	r7, [r2, r1]
	add	r0, r3, #1
	ldr	r10, [r7]
	add	r1, r2, r1
	cmp	r10, r4
	bge	.L11
	mov	r4, r10
	cmp	r8, r4
	mov	ip, r7
	mov	r6, r1
	add	r3, r2, lr, lsl #2
	ble	.L8
.L20:
	cmp	r5, r0, lsl #1
	str	ip, [r2, lr, lsl #2]
	lsl	r3, r0, #1
	blt	.L12
	mov	lr, r0
.L9:
	ldr	ip, [r2, r3, lsl #2]
	lsl	r1, r3, #2
	cmp	r3, r5
	ldr	r4, [ip]
	add	r1, r1, #4
	add	r6, r2, r3, lsl #2
	blt	.L19
.L11:
	cmp	r8, r4
	mov	r0, r3
	add	r3, r2, lr, lsl #2
	bgt	.L20
.L8:
	str	r9, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	sub	r1, r5, #1
	cmp	r1, #0
	str	r1, [r3]
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r9, [r2, r5, lsl #2]
	mov	r5, r1
	b	.L4
.L12:
	mov	r3, r6
	str	r9, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	add	r3, r2, #4
	b	.L8
.L22:
	.align	2
.L21:
	.word	HC
	.word	H
	.size	iheap_pop, .-iheap_pop
	.comm	HC,4,4
	.comm	H,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
