	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf2qp_free_queue
_wf2qp_free_queue:                      ## @wf2qp_free_queue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rsi
	movq	8(%rdi), %rax
	cmpq	%rax, %rsi
	jg	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	incq	%rbx
	movq	(%rax), %rax
	movl	(%rbx), %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%rbx)
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.2:
	movq	_ONE_FP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%rbx)
LBB0_3:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movl	16(%rbx), %edi
	callq	_DN_KEY_LT
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	addq	$12, %rbx
	jmp	LBB0_8
LBB0_4:
	addq	$20, %rbx
	jmp	LBB0_8
LBB0_7:
	addq	$8, %rbx
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_heap_extract
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ONE_FP,4,2                     ## @ONE_FP
	.no_dead_strip	_wf2qp_free_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf2qp_free_queue
_wf2qp_free_queue:                      ; @wf2qp_free_queue
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x1, x8, [x0]
	cmp	x1, x8
	b.gt	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #16]
	add	x20, x9, #1
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldr	w9, [x20]
	sub	w8, w9, w8
	str	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, _ONE_FP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ONE_FP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w8, w9, w8
	str	w8, [x20, #4]
LBB0_3:
	cbz	x1, LBB0_5
; %bb.4:
	ldr	w0, [x20, #16]
	bl	_DN_KEY_LT
	add	x8, x20, #8
	add	x9, x20, #12
	cmp	x0, #0
	csel	x0, x8, x9, eq
	b	LBB0_6
LBB0_5:
	add	x0, x20, #20
LBB0_6:
	mov	x1, x19
	bl	_heap_extract
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ONE_FP,4,2                     ; @ONE_FP
	.no_dead_strip	_wf2qp_free_queue
.subsections_via_symbols
