	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___bt_get                       ## -- Begin function __bt_get
	.p2align	4, 0x90
___bt_get:                              ## @__bt_get
	.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
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	$0, (%rbx)
LBB0_2:
	testq	%r12, %r12
	je	LBB0_7
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_4:
	movq	_RET_ERROR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___bt_search
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%rax, %r15
	cmpl	$0, -36(%rbp)
	je	LBB0_11
## %bb.9:
	leaq	12(%rbx), %r9
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	___bt_ret
	movl	%eax, %r14d
	movq	_B_DB_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	8(%rbx), %edi
	movq	(%r15), %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	jmp	LBB0_6
LBB0_11:
	movl	8(%rbx), %edi
	movq	(%r15), %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	_RET_SPECIAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_RET_ERROR,4,2                  ## @RET_ERROR
	.comm	_RET_SPECIAL,4,2                ## @RET_SPECIAL
	.comm	_B_DB_LOCK,4,2                  ## @B_DB_LOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___bt_get                       ; -- Begin function __bt_get
	.p2align	2
___bt_get:                              ; @__bt_get
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x1, [x19]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	mov	w2, #0
	bl	_mpool_put
	str	xzr, [x19]
LBB0_2:
	cbz	x22, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
LBB0_4:
Lloh6:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w20, [x8]
LBB0_6:
	mov	x0, x20
	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
LBB0_7:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	___bt_search
	cbz	x0, LBB0_4
; %bb.8:
	mov	x21, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_11
; %bb.9:
	add	x5, x19, #12
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, x20
	mov	w6, #0
	bl	___bt_ret
	mov	x20, x0
Lloh8:
	adrp	x8, _B_DB_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B_DB_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w0, [x19, #8]
	ldr	x1, [x21]
	mov	w2, #0
	bl	_mpool_put
	b	LBB0_6
LBB0_11:
	ldr	w0, [x19, #8]
	ldr	x1, [x21]
	mov	w2, #0
	bl	_mpool_put
Lloh11:
	adrp	x8, _RET_SPECIAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RET_SPECIAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	ldr	x8, [x21]
	str	x8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_RET_ERROR,4,2                  ; @RET_ERROR
	.comm	_RET_SPECIAL,4,2                ; @RET_SPECIAL
	.comm	_B_DB_LOCK,4,2                  ; @B_DB_LOCK
.subsections_via_symbols
