	.file	"extr_unwind-dw2-fde.c_frame_downheap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	frame_downheap, @function
frame_downheap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	ebx, 1[rcx+rcx]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rsi
	cmp	ebx, r8d
	jl	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	r10, 8[r12+rax]
	mov	DWORD PTR 28[rsp], ecx
	mov	rsi, r9
	mov	rdi, r15
	mov	rdx, QWORD PTR [r10]
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[rsp], r10
	call	rax
	mov	r10, QWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 28[rsp]
	test	rax, rax
	js	.L4
	mov	r9, QWORD PTR [r14]
	mov	ebp, ebx
.L3:
	movsx	rcx, ecx
	mov	rax, QWORD PTR 8[rsp]
	mov	rdx, r9
	mov	rdi, r15
	lea	rbx, [r12+rcx*8]
	mov	rsi, QWORD PTR [rbx]
	call	rax
	test	rax, rax
	jns	.L1
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, QWORD PTR [r14]
	lea	ebx, 1[rbp+rbp]
	call	SWAP@PLT
	cmp	r13d, ebx
	jle	.L1
	mov	ecx, ebp
.L2:
	movsx	rax, ebx
	lea	ebp, 1[rbx]
	sal	rax, 3
	lea	r14, [r12+rax]
	mov	r9, QWORD PTR [r14]
	cmp	ebp, r13d
	jl	.L12
	mov	ebp, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r9, QWORD PTR [r10]
	mov	r14, r10
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	frame_downheap, .-frame_downheap
	.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_unwind-dw2-fde.c_frame_downheap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	frame_downheap, %function
frame_downheap:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	ldr	r9, [sp, #48]
	lsl	r4, r3, #1
	add	r4, r4, #1
	cmp	r4, r9
	movlt	r7, r3
	movlt	fp, r0
	movlt	r5, r2
	str	r1, [sp]
	blt	.L2
	b	.L1
.L13:
	lsl	r4, r6, #1
	ldr	r1, [r10]
	ldr	r0, [r5, r7, lsl #2]
	add	r4, r4, #1
	bl	SWAP
	cmp	r9, r4
	ble	.L1
	mov	r7, r6
.L2:
	add	r6, r4, #1
	cmp	r6, r9
	lsl	r8, r4, #2
	movge	r6, r4
	ldr	r2, [r5, r4, lsl #2]
	add	r3, r8, #4
	add	r10, r5, r4, lsl #2
	bge	.L3
	mov	r1, r2
	str	r3, [sp, #4]
	ldr	r2, [r5, r3]
	mov	r0, fp
	ldr	r3, [sp]
	blx	r3
	ldr	r3, [sp, #4]
	cmp	r0, #0
	add	r1, r5, r3
	movge	r6, r4
	movlt	r10, r1
	ldrge	r2, [r5, r8]
	ldrlt	r2, [r5, r3]
.L3:
	mov	r0, fp
	ldr	r1, [r5, r7, lsl #2]
	ldr	r3, [sp]
	blx	r3
	cmp	r0, #0
	blt	.L13
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	frame_downheap, .-frame_downheap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
