	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btracker_queue                 ## -- Begin function btracker_queue
	.p2align	4, 0x90
_btracker_queue:                        ## @btracker_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	$0, (%r15)
LBB0_2:
	movq	%r14, %rdi
	callq	_alloc_work
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___insert_pending
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	addq	$4, %rdi
	leaq	4(%r14), %rsi
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_kmem_cache_free
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%r14, %rsi
LBB0_10:
	callq	_list_add
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_update_stats
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btracker_queue                 ; -- Begin function btracker_queue
	.p2align	2
_btracker_queue:                        ; @btracker_queue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	cbz	x2, LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
	mov	x0, x19
	bl	_alloc_work
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	bl	___insert_pending
	cbz	w0, LBB0_7
; %bb.4:
	cbz	x21, LBB0_9
; %bb.5:
	str	x20, [x21]
	add	x0, x20, #4
	add	x1, x19, #4
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_kmem_cache_free
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
	add	x0, x20, #4
	mov	x1, x19
LBB0_10:
	bl	_list_add
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_update_stats
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
