	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bt_stkacq
___bt_stkacq:                           ## @__bt_stkacq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rsi), %rsi
	movl	(%rdi), %edi
	xorl	%edx, %edx
	callq	_mpool_put
	leaq	8(%r13), %r14
	leaq	-76(%rbp), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___bt_search
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	(%rax), %r15
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_3
LBB0_2:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movl	(%rbx), %edi
	movq	(%r13), %rsi
	xorl	%edx, %edx
	callq	_mpool_get
	movq	%rax, (%r12)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	jmp	LBB0_20
LBB0_3:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	_P_INVALID@GOTPCREL(%rip), %rax
                                        ## implicit-def: $r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movq	8(%r15), %rbx
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	cmpq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_BT_POP
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, %r15
	movl	8(%r12), %ebx
	movq	%rax, %rdi
	callq	_NEXTINDEX
	decl	%eax
	cmpl	%eax, %ebx
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	incl	%r13d
	movq	%rbx, %rdi
	callq	_BT_POP
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r12
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %r14d
	incl	%r14d
	movq	(%r15), %rsi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_BT_PUSH
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decl	%r13d
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_GETBINTERNAL
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_BT_PUSH
	movl	(%r12), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movl	(%r12), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_mpool_get
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movl	(%r12), %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	cmpq	(%r13), %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_P_INVALID@GOTPCREL(%rip), %rax
	jne	LBB0_4
	jmp	LBB0_2
LBB0_21:
	leaq	-76(%rbp), %rdx
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	___bt_search
	testq	%rax, %rax
	je	LBB0_19
## %bb.22:
	movq	(%rax), %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_34 Depth 2
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	16(%r15), %rcx
	movq	_P_INVALID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_43
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	%rbx, %rdi
	callq	_BT_POP
	testq	%rax, %rax
	je	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rax, %r12
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_27:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_19
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	%rax, %r15
	movl	8(%r12), %r12d
	testl	%r12d, %r12d
	jne	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	incl	%r13d
	movq	%rbx, %rdi
	callq	_BT_POP
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_27
## %bb.30:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%r14d, %r12d
	jmp	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%r14d, %r12d
LBB0_36:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_32:                                ##   in Loop: Header=BB0_23 Depth=1
	decl	%r12d
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_BT_PUSH
	testl	%r13d, %r13d
	je	LBB0_36
LBB0_33:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_34:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_GETBINTERNAL
	movq	(%rax), %r14
	movl	(%rbx), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movl	(%rbx), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_19
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_NEXTINDEX
	movl	%eax, %r12d
	decl	%r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_BT_PUSH
	decl	%r13d
	jne	LBB0_34
LBB0_37:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	(%rbx), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movl	(%rbx), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_mpool_get
	movq	%rax, %r15
	movl	%r12d, %r14d
	testq	%rax, %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_23
LBB0_19:
	movl	$1, %ecx
LBB0_20:
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_P_INVALID,8,3                  ## @P_INVALID
	.no_dead_strip	___bt_stkacq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bt_stkacq
___bt_stkacq:                           ; @__bt_stkacq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x1, [x1]
	ldr	w0, [x0]
	mov	w2, #0
	bl	_mpool_put
	add	x24, x20, #8
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x24
	bl	___bt_search
	cbz	x0, LBB0_31
; %bb.1:
	ldr	x23, [x0]
	ldr	x8, [x23]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldr	w0, [x21]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	ldr	w0, [x21]
	ldr	x1, [x20]
	mov	w2, #0
	bl	_mpool_get
	str	x0, [x19]
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_32
LBB0_3:
Lloh0:
	adrp	x8, _P_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_INVALID@GOTPAGEOFF]
                                        ; implicit-def: $w22
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x25, [x23, #8]
	ldr	x26, [x8]
	ldr	w0, [x21]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	cmp	x25, x26
	b.eq	LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_BT_POP
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	w28, #0
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21]
	ldr	x1, [x26]
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_31
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x23, x0
	ldr	w27, [x26, #8]
	bl	_NEXTINDEX
	sub	w8, w0, #1
	cmp	w27, w8
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x21]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	add	w28, w28, #1
	mov	x0, x21
	bl	_BT_POP
	mov	x26, x0
	cbnz	x0, LBB0_7
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #8]
	add	w22, w8, #1
	ldr	x1, [x23]
	mov	x0, x21
	mov	x2, x22
	bl	_BT_PUSH
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w26, w28, #1
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	subs	w26, w26, #1
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x23
	mov	x1, x22
	bl	_GETBINTERNAL
	ldr	x22, [x0]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_BT_PUSH
	ldr	w0, [x21]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	ldr	w0, [x21]
	mov	x1, x22
	mov	w2, #0
	bl	_mpool_get
	mov	x23, x0
	mov	w22, #0
	cbnz	x0, LBB0_13
	b	LBB0_31
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	ldr	w0, [x21]
	mov	x1, x25
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_31
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x9, [x20]
	cmp	x8, x9
Lloh2:
	adrp	x8, _P_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P_INVALID@GOTPAGEOFF]
	b.ne	LBB0_4
	b	LBB0_2
LBB0_17:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x24
	bl	___bt_search
	cbz	x0, LBB0_31
; %bb.18:
	ldr	x23, [x0]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w0, [x21]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	ldr	w0, [x21]
	mov	x1, x24
	mov	w2, #0
	bl	_mpool_get
	mov	x23, x0
	mov	w0, #1
	cbz	x23, LBB0_32
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	ldr	x8, [x23]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x24, [x23, #16]
Lloh4:
	adrp	x8, _P_INVALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _P_INVALID@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x24, x8
	b.eq	LBB0_2
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w0, [x21]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	mov	x0, x21
	bl	_BT_POP
	cbz	x0, LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x25, x0
	mov	w26, #0
LBB0_24:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21]
	ldr	x1, [x25]
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x23, x0
	ldr	w8, [x25, #8]
	cbnz	w8, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	w0, [x21]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	add	w26, w26, #1
	mov	x0, x21
	bl	_BT_POP
	mov	x25, x0
	cbnz	x0, LBB0_24
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_20 Depth=1
	sub	w22, w8, #1
	ldr	x1, [x23]
	mov	x0, x21
LBB0_28:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x2, x22
	bl	_BT_PUSH
	cbz	w26, LBB0_19
LBB0_29:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_GETBINTERNAL
	ldr	x25, [x0]
	ldr	w0, [x21]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	ldr	w0, [x21]
	mov	x1, x25
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x23, x0
	sub	w26, w26, #1
	bl	_NEXTINDEX
	sub	w22, w0, #1
	mov	x0, x21
	mov	x1, x25
	b	LBB0_28
LBB0_31:
	mov	w0, #1
LBB0_32:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_P_INVALID,8,3                  ; @P_INVALID
	.no_dead_strip	___bt_stkacq
.subsections_via_symbols
