	.file	"extr_deftree.c_pqdownheap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pqdownheap, @function
pqdownheap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	r15, edx
	add	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	ecx, DWORD PTR 8[rdi]
	lea	rbx, [rax+r15*4]
	mov	r12d, DWORD PTR [rbx]
	cmp	edx, ecx
	jle	.L6
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, r10d
	mov	ecx, r11d
	mov	esi, r12d
	mov	rdi, rbp
	call	smaller@PLT
	lea	rdx, 0[0+r15*4]
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR 0[r13]
	add	rbx, rax
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR [rax+r15*4], edx
	mov	ecx, DWORD PTR 8[r13]
	lea	edx, [r14+r14]
	cmp	ecx, edx
	jl	.L2
	movsx	r15, r14d
.L6:
	movsx	r9, edx
	mov	r11d, DWORD PTR 12[r13]
	mov	r14d, edx
	mov	r10d, DWORD PTR [rax+r9*4]
	lea	rbx, 0[0+r9*4]
	cmp	ecx, edx
	jle	.L3
	lea	rdi, 4[rbx]
	mov	esi, DWORD PTR 4[rax+rbx]
	mov	ecx, r11d
	mov	edx, r10d
	mov	QWORD PTR [rsp], rdi
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], r9
	call	smaller@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR 0[r13]
	mov	r9, QWORD PTR 8[rsp]
	mov	r11d, DWORD PTR 12[r13]
	mov	r10d, DWORD PTR [rax+r9*4]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 0[r13]
	mov	r11d, DWORD PTR 12[r13]
	add	r14d, 1
	mov	r10d, DWORD PTR 4[rax+rbx]
	mov	rbx, QWORD PTR [rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rbx, QWORD PTR 0[r13]
	add	rbx, rdx
.L2:
	mov	DWORD PTR [rbx], r12d
	add	rsp, 24
	.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	pqdownheap, .-pqdownheap
	.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_deftree.c_pqdownheap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqdownheap, %function
pqdownheap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldm	r0, {r0, r3}
	cmp	r3, r2, lsl #1
	ldr	r9, [r0, r2, lsl #2]
	add	r5, r0, r2, lsl #2
	blt	.L2
	mov	r8, r1
	lsl	r7, r2, #2
	lsl	r4, r2, #1
	b	.L6
.L3:
	mov	r1, r9
	mov	r0, r8
	bl	smaller
	cmp	r0, #0
	bne	.L11
	ldr	r0, [r6]
	ldr	r3, [r0, r5]
	add	r5, r0, r5
	str	r3, [r0, r7]
	ldr	r3, [r6, #4]
	lsl	r7, r4, #2
	cmp	r3, r4, lsl #1
	lsl	r4, r4, #1
	blt	.L2
.L6:
	cmp	r3, r4
	ldr	r2, [r0, r4, lsl #2]
	ldr	r3, [r6, #8]
	lsl	r5, r4, #2
	ble	.L3
	add	r10, r5, #4
	ldr	r1, [r0, r10]
	mov	r0, r8
	bl	smaller
	ldr	r3, [r6]
	cmp	r0, #0
	ldreq	r2, [r3, r5]
	ldrne	r2, [r3, r10]
	movne	r5, r10
	ldr	r3, [r6, #8]
	addne	r4, r4, #1
	b	.L3
.L11:
	ldr	r5, [r6]
	add	r5, r5, r7
.L2:
	str	r9, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	pqdownheap, .-pqdownheap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
