	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_steppage
__bt_steppage:                          ## @_bt_steppage
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movslq	8(%rdi), %rbx
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	48(%rbx), %rax
	movq	%rax, 32(%rsp)
	movups	16(%rbx), %xmm0
	movups	32(%rbx), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_BTScanPosIsValid
	movl	%eax, %edi
	callq	_Assert
	cmpq	$0, (%rbx)
	jle	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	__bt_killitems
LBB0_2:
	leaq	16(%rbx), %r13
	cmpl	$0, 8(%rbx)
	js	LBB0_8
## %bb.3:
	movq	32(%r13), %rax
	movq	%rax, 32(%rsp)
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_BTScanPosIsPinned
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	48(%rbx), %edi
	callq	_IncrBufferRefCount
LBB0_5:
	leaq	56(%rbx), %r12
	movq	_BTScanPosData@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	callq	_offsetof
	movslq	16(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	movq	40(%rbx), %rdx
	movq	64(%rbx), %rsi
	callq	_memcpy
LBB0_7:
	movl	8(%rbx), %eax
	movl	%eax, 56(%rbx)
	movl	$-1, 8(%rbx)
LBB0_8:
	movl	%r15d, %edi
	callq	_ScanDirectionIsForward
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	cmpq	$0, (%r14)
	je	LBB0_15
## %bb.10:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	__bt_parallel_seize
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	32(%r13), %rax
	movq	%rax, 32(%rsp)
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_BTScanPosUnpinIfPinned
	jmp	LBB0_14
LBB0_12:
	movl	$1, 24(%rbx)
	cmpq	$0, (%r14)
	je	LBB0_17
## %bb.13:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	__bt_parallel_seize
	movl	%eax, %r12d
	movq	32(%r13), %rax
	movq	%rax, 32(%rsp)
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_BTScanPosUnpinIfPinned
	testl	%r12d, %r12d
	jne	LBB0_18
LBB0_14:
	movq	32(%r13), %rax
	movq	%rax, 32(%rsp)
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_BTScanPosInvalidate
	jmp	LBB0_20
LBB0_15:
	movl	32(%rbx), %eax
	movl	%eax, -44(%rbp)
LBB0_16:
	movl	$1, 20(%rbx)
	movq	32(%r13), %rax
	movq	%rax, 32(%rsp)
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_BTScanPosUnpinIfPinned
	jmp	LBB0_18
LBB0_17:
	movl	28(%rbx), %eax
	movl	%eax, -44(%rbp)
LBB0_18:
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	__bt_readnextpage
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	__bt_drop_lock_and_maybe_pin
	movl	$1, %eax
	jmp	LBB0_21
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
	.comm	_BTScanPosData,4,2              ## @BTScanPosData
	.comm	_items,8,3                      ## @items
	.no_dead_strip	__bt_steppage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_steppage
__bt_steppage:                          ; @_bt_steppage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x1
	mov	x19, x0
	ldrsw	x23, [x0, #8]
Lloh0:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	ldp	q0, q1, [x23, #16]
	stp	q0, q1, [sp]
	ldr	x8, [x23, #48]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_BTScanPosIsValid
	bl	_Assert
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	__bt_killitems
LBB0_2:
	add	x21, x23, #16
	ldr	w8, [x23, #8]
	tbnz	w8, #31, LBB0_8
; %bb.3:
	ldp	q0, q1, [x21]
	stp	q0, q1, [sp]
	ldr	x8, [x21, #32]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_BTScanPosIsPinned
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x23, #48]
	bl	_IncrBufferRefCount
LBB0_5:
Lloh3:
	adrp	x8, _BTScanPosData@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTScanPosData@GOTPAGEOFF]
	add	x22, x23, #56
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _items@GOTPAGE
Lloh7:
	ldr	x8, [x8, _items@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	bl	_offsetof
	ldrsw	x8, [x23, #16]
	add	x2, x0, x8, lsl #2
	mov	x0, x22
	mov	x1, x21
	bl	_memcpy
	ldr	x0, [x23, #72]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x1, [x23, #64]
	ldr	x2, [x23, #40]
	bl	_memcpy
LBB0_7:
	ldr	w8, [x23, #8]
	str	w8, [x23, #56]
	mov	w8, #-1
	str	w8, [x23, #8]
LBB0_8:
	mov	x0, x20
	bl	_ScanDirectionIsForward
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.10:
	add	x1, sp, #44
	mov	x0, x19
	bl	__bt_parallel_seize
	cbnz	w0, LBB0_16
; %bb.11:
	ldp	q0, q1, [x21]
	stp	q0, q1, [sp]
	ldr	x8, [x21, #32]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_BTScanPosUnpinIfPinned
	b	LBB0_14
LBB0_12:
	mov	w8, #1
	str	w8, [x23, #24]
	ldr	x8, [x19]
	cbz	x8, LBB0_17
; %bb.13:
	add	x1, sp, #44
	mov	x0, x19
	bl	__bt_parallel_seize
	mov	x22, x0
	ldp	q0, q1, [x21]
	stp	q0, q1, [sp]
	ldr	x8, [x21, #32]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_BTScanPosUnpinIfPinned
	cbnz	w22, LBB0_18
LBB0_14:
	ldp	q0, q1, [x21]
	stp	q0, q1, [sp]
	ldr	x8, [x21, #32]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_BTScanPosInvalidate
	mov	w0, #0
	b	LBB0_20
LBB0_15:
	ldr	w8, [x23, #32]
	str	w8, [sp, #44]
LBB0_16:
	mov	w8, #1
	str	w8, [x23, #20]
	ldp	q0, q1, [x21]
	stp	q0, q1, [sp]
	ldr	x8, [x21, #32]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_BTScanPosUnpinIfPinned
	b	LBB0_18
LBB0_17:
	ldr	w8, [x23, #28]
	str	w8, [sp, #44]
LBB0_18:
	ldr	w1, [sp, #44]
	mov	x0, x19
	mov	x2, x20
	bl	__bt_readnextpage
	cbz	w0, LBB0_20
; %bb.19:
	mov	x0, x19
	mov	x1, x21
	bl	__bt_drop_lock_and_maybe_pin
	mov	w0, #1
LBB0_20:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
	.comm	_BTScanPosData,4,2              ; @BTScanPosData
	.comm	_items,8,3                      ; @items
	.no_dead_strip	__bt_steppage
.subsections_via_symbols
