	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_promotion
_queue_promotion:                       ## @queue_promotion
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_allocator_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_free_target_met
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_demotion                 ## TAILCALL
LBB0_4:
	movl	4(%rbx), %edi
	movl	%r15d, %esi
	callq	_btracker_promotion_already_present
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_alloc_entry
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movl	$1, (%r12)
	movq	_POLICY_PROMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	%r15d, -44(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_infer_cblock
	movl	%eax, -48(%rbp)
	movl	4(%rbx), %edi
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdx
	callq	_btracker_queue
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_free_entry
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLICY_PROMOTE,4,2             ## @POLICY_PROMOTE
	.no_dead_strip	_queue_promotion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_promotion
_queue_promotion:                       ; @queue_promotion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_allocator_empty
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_free_target_met
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_queue_demotion
LBB0_4:
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_btracker_promotion_already_present
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_alloc_entry
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	w8, #1
	str	w8, [x22]
Lloh0:
	adrp	x8, _POLICY_PROMOTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLICY_PROMOTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w21, w8, [sp, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_infer_cblock
	str	w0, [sp]
	ldr	w0, [x19, #4]
	mov	x1, sp
	mov	x2, x20
	bl	_btracker_queue
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	bl	_free_entry
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_POLICY_PROMOTE,4,2             ; @POLICY_PROMOTE
	.no_dead_strip	_queue_promotion
.subsections_via_symbols
