	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bt_first
___bt_first:                            ## @__bt_first
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdx
	callq	___bt_search
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	cmpl	$0, (%r14)
	je	LBB0_16
## %bb.2:
	movq	_B_NODUPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	jne	LBB0_24
## %bb.3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	%rax, %r14
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpq	(%rax), %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	8(%rbx), %r13
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rsi
	movq	_P_INVALID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	8(%r14), %rsi
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_28
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_NEXTINDEX
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	decq	%rax
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	___bt_cmp
	testq	%rax, %rax
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	jmp	LBB0_4
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_16:
	movq	(%rbx), %r14
	movq	8(%rbx), %rdi
	callq	_NEXTINDEX
	cmpq	%rax, %r14
	jne	LBB0_24
## %bb.17:
	movq	8(%rbx), %rsi
	movq	16(%rsi), %r14
	movl	(%r15), %edi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	_P_INVALID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_22
## %bb.18:
	movq	_RET_SPECIAL@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_19:
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_21
## %bb.20:
	movl	(%r15), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	%r13, 8(%rax)
	jmp	LBB0_25
LBB0_22:
	movl	(%r15), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_29
## %bb.23:
	movq	$0, (%rbx)
	movq	%rax, 8(%rbx)
LBB0_24:
	movups	(%rbx), %xmm0
	movups	%xmm0, (%r12)
LBB0_25:
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	(%r15), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
LBB0_29:
	movq	_RET_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_B_NODUPS,4,2                   ## @B_NODUPS
	.comm	_RET_SUCCESS,4,2                ## @RET_SUCCESS
	.comm	_P_INVALID,8,3                  ## @P_INVALID
	.comm	_RET_ERROR,4,2                  ## @RET_ERROR
	.comm	_RET_SPECIAL,4,2                ## @RET_SPECIAL
	.no_dead_strip	___bt_first
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bt_first
___bt_first:                            ; @__bt_first
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	x2, x3
	bl	___bt_search
	cbz	x0, LBB0_26
; %bb.1:
	mov	x21, x0
	ldr	w8, [x23]
	cbz	w8, LBB0_15
; %bb.2:
Lloh0:
	adrp	x8, _B_NODUPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_NODUPS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbnz	x0, LBB0_23
; %bb.3:
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x25, _P_INVALID@GOTPAGE
Lloh4:
	ldr	x25, [x25, _P_INVALID@GOTPAGEOFF]
	mov	x24, x8
	mov	x23, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
	ldr	x23, [x21, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [x21]
	cbz	x26, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x24, #8]
	ldr	x8, [x25]
	cmp	x1, x8
	b.eq	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	x1, x24
	mov	w2, #0
	bl	_mpool_put
	ldr	x1, [x24, #8]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_27
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	str	x0, [x21, #8]
	bl	_NEXTINDEX
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x0, #1
	str	x8, [x21]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	___bt_cmp
	cbnz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	b	LBB0_4
LBB0_15:
	ldp	x22, x0, [x21]
	bl	_NEXTINDEX
	cmp	x22, x0
	b.ne	LBB0_23
; %bb.16:
	ldr	x1, [x21, #8]
	ldr	x22, [x1, #16]
	ldr	w0, [x20]
	mov	w2, #0
	bl	_mpool_put
Lloh5:
	adrp	x8, _P_INVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_21
; %bb.17:
Lloh8:
	adrp	x8, _RET_SPECIAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RET_SPECIAL@GOTPAGEOFF]
	b	LBB0_25
LBB0_18:
	ldr	x8, [x24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.19:
	ldr	w0, [x20]
	mov	x1, x24
	mov	w2, #0
	bl	_mpool_put
LBB0_20:
	stp	x26, x23, [x19]
	b	LBB0_24
LBB0_21:
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_28
; %bb.22:
	stp	xzr, x0, [x21]
LBB0_23:
	ldr	q0, [x21]
	str	q0, [x19]
LBB0_24:
Lloh10:
	adrp	x8, _RET_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RET_SUCCESS@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
LBB0_26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_27:
	ldr	w0, [x20]
	mov	x1, x23
	mov	w2, #0
	bl	_mpool_put
LBB0_28:
Lloh12:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_B_NODUPS,4,2                   ; @B_NODUPS
	.comm	_RET_SUCCESS,4,2                ; @RET_SUCCESS
	.comm	_P_INVALID,8,3                  ; @P_INVALID
	.comm	_RET_ERROR,4,2                  ; @RET_ERROR
	.comm	_RET_SPECIAL,4,2                ; @RET_SPECIAL
	.no_dead_strip	___bt_first
.subsections_via_symbols
