	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bt_seqadv
___bt_seqadv:                           ## @__bt_seqadv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	4(%rdi), %r12
	movq	_CURS_ACQUIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	12(%rbx), %rsi
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	___bt_first
	jmp	LBB0_22
LBB0_2:
	movl	(%rbx), %edi
	movl	8(%rbx), %esi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	cmpl	$128, %r13d
	je	LBB0_12
## %bb.5:
	cmpl	$129, %r13d
	jne	LBB0_6
## %bb.7:
	movq	_CURS_AFTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movl	(%r12), %r12d
	incl	%r12d
	movq	%r14, %rdi
	callq	_NEXTINDEX
	cmpl	%eax, %r12d
	jne	LBB0_19
## %bb.9:
	movl	4(%r14), %r13d
	movl	(%rbx), %edi
	xorl	%r12d, %r12d
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	_P_INVALID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_10
## %bb.11:
	movl	(%rbx), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_mpool_get
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_3
LBB0_12:
	movq	_CURS_BEFORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	_CURS_AFTER@GOTPCREL(%rip), %rax
	movq	_CURS_BEFORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_F_CLR
	movq	%r14, 8(%r15)
	movl	(%r12), %eax
	movl	%eax, (%r15)
	jmp	LBB0_20
LBB0_6:
                                        ## implicit-def: $r12d
	jmp	LBB0_19
LBB0_14:
	movl	(%r12), %r12d
	testl	%r12d, %r12d
	je	LBB0_15
LBB0_18:
	decl	%r12d
LBB0_19:
	movq	%r14, 8(%r15)
	movl	%r12d, (%r15)
LBB0_20:
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_15:
	movl	(%r14), %r12d
	movl	(%rbx), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	_P_INVALID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_16
LBB0_10:
	movq	_RET_SPECIAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_16:
	movl	(%rbx), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.17:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_NEXTINDEX
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_3:
	movq	_RET_ERROR@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURS_ACQUIRE,4,2               ## @CURS_ACQUIRE
	.comm	_RET_ERROR,4,2                  ## @RET_ERROR
	.comm	_CURS_AFTER,4,2                 ## @CURS_AFTER
	.comm	_P_INVALID,4,2                  ## @P_INVALID
	.comm	_RET_SPECIAL,4,2                ## @RET_SPECIAL
	.comm	_CURS_BEFORE,4,2                ## @CURS_BEFORE
	.comm	_RET_SUCCESS,4,2                ## @RET_SUCCESS
	.no_dead_strip	___bt_seqadv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bt_seqadv
___bt_seqadv:                           ; @__bt_seqadv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	add	x22, x0, #4
Lloh0:
	adrp	x8, _CURS_ACQUIRE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CURS_ACQUIRE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_F_ISSET
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, x20, #12
	add	x3, sp, #12
	mov	x0, x20
	mov	x2, x19
	bl	___bt_first
	b	LBB0_23
LBB0_2:
	ldr	w0, [x20]
	ldr	w1, [x20, #8]
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_21
; %bb.3:
	mov	x21, x0
	cmp	w23, #128
	b.eq	LBB0_10
; %bb.4:
	cmp	w23, #129
	b.ne	LBB0_12
; %bb.5:
Lloh3:
	adrp	x8, _CURS_AFTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CURS_AFTER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_F_ISSET
	cbnz	x0, LBB0_11
; %bb.6:
	ldr	w8, [x22]
	add	w22, w8, #1
	mov	x0, x21
	bl	_NEXTINDEX
	cmp	w22, w0
	b.ne	LBB0_13
; %bb.7:
	ldr	w22, [x21, #4]
	ldr	w0, [x20]
	mov	x1, x21
	mov	w2, #0
	bl	_mpool_put
Lloh6:
	adrp	x8, _P_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _P_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_18
; %bb.8:
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_21
; %bb.9:
	mov	x21, x0
	mov	w22, #0
	b	LBB0_13
LBB0_10:
Lloh9:
	adrp	x8, _CURS_BEFORE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CURS_BEFORE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_F_ISSET
	cbz	x0, LBB0_15
LBB0_11:
Lloh12:
	adrp	x8, _CURS_AFTER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CURS_AFTER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _CURS_BEFORE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CURS_BEFORE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_F_CLR
	str	x21, [x19, #8]
	ldr	w8, [x22]
	str	w8, [x19]
	b	LBB0_14
LBB0_12:
                                        ; implicit-def: $w22
LBB0_13:
	str	x21, [x19, #8]
	str	w22, [x19]
LBB0_14:
Lloh18:
	adrp	x8, _RET_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RET_SUCCESS@GOTPAGEOFF]
	b	LBB0_22
LBB0_15:
	ldr	w8, [x22]
	cbz	w8, LBB0_17
; %bb.16:
	sub	w22, w8, #1
	b	LBB0_13
LBB0_17:
	ldr	w22, [x21]
	ldr	w0, [x20]
	mov	x1, x21
	mov	w2, #0
	bl	_mpool_put
Lloh20:
	adrp	x8, _P_INVALID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _P_INVALID@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_19
LBB0_18:
Lloh23:
	adrp	x8, _RET_SPECIAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RET_SPECIAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_19:
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_21
; %bb.20:
	mov	x21, x0
	bl	_NEXTINDEX
	sub	w22, w0, #1
	b	LBB0_13
LBB0_21:
Lloh25:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
LBB0_23:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CURS_ACQUIRE,4,2               ; @CURS_ACQUIRE
	.comm	_RET_ERROR,4,2                  ; @RET_ERROR
	.comm	_CURS_AFTER,4,2                 ; @CURS_AFTER
	.comm	_P_INVALID,4,2                  ; @P_INVALID
	.comm	_RET_SPECIAL,4,2                ; @RET_SPECIAL
	.comm	_CURS_BEFORE,4,2                ; @CURS_BEFORE
	.comm	_RET_SUCCESS,4,2                ; @RET_SUCCESS
	.no_dead_strip	___bt_seqadv
.subsections_via_symbols
