	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bt_curdel
___bt_curdel:                           ## @__bt_curdel
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_CURS_AFTER@GOTPCREL(%rip), %rax
	movq	_CURS_BEFORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	8(%rdi), %rbx
	movq	_CURS_ACQUIRE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_CLR
	movq	_B_NODUPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_ISSET
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r12, -48(%rbp)
	movq	%r15, -56(%rbp)
LBB0_27:
	movl	$1, (%rsp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	___bt_ret
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_31
LBB0_28:
	movq	_CURS_ACQUIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	jmp	LBB0_29
LBB0_2:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	jne	LBB0_4
## %bb.3:
	movq	%r12, -48(%rbp)
	movq	%r15, -56(%rbp)
	movl	$1, (%rsp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	___bt_ret
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rcx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpl	(%rcx), %eax
	jne	LBB0_31
LBB0_4:
	testq	%r15, %r15
	jle	LBB0_8
## %bb.5:
	movq	%r12, -48(%rbp)
	leaq	-1(%r15), %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	___bt_cmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movq	%r12, %rdi
	callq	_NEXTINDEX
	decq	%rax
	cmpq	%r15, %rax
	jle	LBB0_11
## %bb.9:
	movq	%r12, -48(%rbp)
	leaq	1(%r15), %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	___bt_cmp
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	testq	%r15, %r15
	jne	LBB0_18
## %bb.12:
	movq	(%r12), %rsi
	movq	_P_INVALID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_18
## %bb.13:
	movl	(%r14), %edi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, -48(%rbp)
	movq	%rax, %rdi
	movq	%rax, %r13
	callq	_NEXTINDEX
	decq	%rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	___bt_cmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movl	(%r14), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
LBB0_18:
	movq	%r12, %rdi
	callq	_NEXTINDEX
	decq	%rax
	cmpq	%r15, %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_26
## %bb.19:
	movq	8(%r12), %rsi
	movq	_P_INVALID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_26
## %bb.20:
	movl	(%r14), %edi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_14
## %bb.21:
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	___bt_cmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.25:
	movl	(%r14), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_mpool_put
LBB0_26:
	movq	%r12, -48(%rbp)
	movq	%r15, -56(%rbp)
	testq	%r13, %r13
	jne	LBB0_27
	jmp	LBB0_28
LBB0_6:
	movq	_CURS_BEFORE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	_CURS_AFTER@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
LBB0_24:
	movq	-48(%rbp), %rax
	movl	16(%rax), %eax
	movl	%eax, 24(%r14)
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r14)
LBB0_29:
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %eax
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_RET_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_22:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	_CURS_AFTER@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_16:
	movq	_CURS_BEFORE@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	movl	(%r14), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_CURS_AFTER,4,2                 ## @CURS_AFTER
	.comm	_CURS_BEFORE,4,2                ## @CURS_BEFORE
	.comm	_CURS_ACQUIRE,4,2               ## @CURS_ACQUIRE
	.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
	.no_dead_strip	___bt_curdel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bt_curdel
___bt_curdel:                           ; @__bt_curdel
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	add	x20, x0, #8
Lloh0:
	adrp	x25, _CURS_AFTER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CURS_AFTER@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh2:
	adrp	x28, _CURS_BEFORE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CURS_BEFORE@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
Lloh4:
	adrp	x27, _CURS_ACQUIRE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _CURS_ACQUIRE@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_F_CLR
Lloh6:
	adrp	x8, _B_NODUPS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B_NODUPS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
Lloh9:
	adrp	x26, _RET_SUCCESS@GOTPAGE
Lloh10:
	ldr	x26, [x26, _RET_SUCCESS@GOTPAGEOFF]
	cbz	w0, LBB0_4
; %bb.1:
	stp	x21, x22, [sp]
LBB0_2:
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	mov	x3, x20
	mov	x4, #0
	mov	x5, #0
	mov	w6, #1
	bl	___bt_ret
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_26
LBB0_3:
	ldr	w1, [x27]
	mov	x0, x20
	bl	_F_SET
	b	LBB0_25
LBB0_4:
	mov	x24, x23
	cbnz	x23, LBB0_6
; %bb.5:
	stp	x21, x22, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	mov	x3, x20
	mov	x4, #0
	mov	x5, #0
	mov	w6, #1
	bl	___bt_ret
	ldr	w8, [x26]
	mov	x24, x20
	cmp	w0, w8
	b.ne	LBB0_26
LBB0_6:
	subs	x8, x21, #1
	b.lt	LBB0_8
; %bb.7:
	stp	x8, x22, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x24
	bl	___bt_cmp
	cbz	x0, LBB0_21
LBB0_8:
	mov	x0, x22
	bl	_NEXTINDEX
	sub	x8, x0, #1
	cmp	x8, x21
	b.le	LBB0_10
; %bb.9:
	add	x8, x21, #1
	stp	x8, x22, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x24
	bl	___bt_cmp
	cbz	x0, LBB0_22
LBB0_10:
	cbnz	x21, LBB0_15
; %bb.11:
	ldr	x1, [x22]
Lloh11:
	adrp	x8, _P_INVALID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _P_INVALID@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_15
; %bb.12:
	ldr	w0, [x19]
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_27
; %bb.13:
	mov	x25, x0
	str	x0, [sp, #8]
	bl	_NEXTINDEX
	sub	x8, x0, #1
	str	x8, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x24
	bl	___bt_cmp
	cbz	x0, LBB0_29
; %bb.14:
	ldr	w0, [x19]
	mov	x1, x25
	mov	w2, #0
	bl	_mpool_put
LBB0_15:
	mov	x0, x22
	bl	_NEXTINDEX
	sub	x8, x0, #1
	cmp	x8, x21
	b.ne	LBB0_20
; %bb.16:
	ldr	x1, [x22, #8]
Lloh14:
	adrp	x8, _P_INVALID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _P_INVALID@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_20
; %bb.17:
	ldr	w0, [x19]
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_27
; %bb.18:
	mov	x25, x0
	stp	xzr, x0, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x24
	bl	___bt_cmp
	cbz	x0, LBB0_28
; %bb.19:
	ldr	w0, [x19]
	mov	x1, x25
	mov	w2, #0
	bl	_mpool_put
LBB0_20:
	stp	x21, x22, [sp]
	cbnz	x23, LBB0_2
	b	LBB0_3
LBB0_21:
	ldr	w1, [x28]
	b	LBB0_23
LBB0_22:
	ldr	w1, [x25]
LBB0_23:
	mov	x0, x20
	bl	_F_SET
LBB0_24:
	ldp	x9, x8, [sp]
	ldr	w8, [x8, #16]
	str	w8, [x19, #24]
	str	x9, [x19, #16]
LBB0_25:
	ldr	w0, [x26]
LBB0_26:
	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
LBB0_27:
Lloh17:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_26
LBB0_28:
Lloh20:
	adrp	x8, _CURS_AFTER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CURS_AFTER@GOTPAGEOFF]
	b	LBB0_30
LBB0_29:
Lloh22:
	adrp	x8, _CURS_BEFORE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CURS_BEFORE@GOTPAGEOFF]
LBB0_30:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_SET
	ldr	w0, [x19]
	mov	x1, x25
	mov	w2, #0
	bl	_mpool_put
	b	LBB0_24
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CURS_AFTER,4,2                 ; @CURS_AFTER
	.comm	_CURS_BEFORE,4,2                ; @CURS_BEFORE
	.comm	_CURS_ACQUIRE,4,2               ; @CURS_ACQUIRE
	.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
	.no_dead_strip	___bt_curdel
.subsections_via_symbols
