	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_readpage
__bt_readpage:                          ## @_bt_readpage
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movslq	24(%rdi), %rbx
	movl	36(%rbx), %edi
	callq	_BufferIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	36(%rbx), %edi
	callq	_BufferGetPage
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%r13)
	je	LBB0_5
## %bb.1:
	movl	%r14d, %edi
	callq	_ScanDirectionIsForward
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	jmp	LBB0_4
LBB0_3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	36(%rax), %edi
	callq	_BufferGetBlockNumber
	movl	%eax, %esi
LBB0_4:
	movq	%r13, %rdi
	callq	__bt_parallel_release
LBB0_5:
	movl	$1, -48(%rbp)
	movl	8(%r13), %edi
	callq	_IndexRelationGetNumberOfAttributes
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %r12
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_PageGetMaxOffsetNumber
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	36(%rbx), %edi
	callq	_BufferGetBlockNumber
	movl	%eax, 44(%rbx)
	movl	36(%rbx), %edi
	callq	_BufferGetLSNAtomic
	movl	%eax, 40(%rbx)
	movl	(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	32(%rbx), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_BTScanPosIsPinned
	movl	%eax, %edi
	callq	_Assert
	movl	%r14d, %edi
	callq	_ScanDirectionIsForward
	testq	%rax, %rax
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	je	LBB0_20
## %bb.6:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_Max
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r14, %rax
	jle	LBB0_7
LBB0_14:
	cmpl	$0, -48(%rbp)
	je	LBB0_18
## %bb.15:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	cmpl	$0, -48(%rbp)
	jne	LBB0_19
	jmp	LBB0_18
LBB0_20:
	movq	_MaxIndexTuplesPerPage@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_Min
	cmpq	%r12, %rax
	jl	LBB0_34
## %bb.21:
	movq	%rax, %rbx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r14, %r12
LBB0_32:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$0, -48(%rbp)
	je	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%rbx, %rdi
	callq	_OffsetNumberPrev
	movq	%rax, %rbx
	cmpq	%r12, %rax
	jl	LBB0_34
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r14
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movl	%eax, %r15d
	movb	$1, %r12b
	cmpq	$0, (%r13)
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%r15d, %edi
	callq	_ItemIdIsDead
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_P_FIRSTDATAKEY
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setge	%dil
	callq	_Assert
	movq	%r12, %rdi
	callq	_P_FIRSTDATAKEY
	cmpq	%rax, %rbx
	jle	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%r14, %r12
	jmp	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	xorl	%r12d, %r12d
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_PageGetItem
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	leaq	-48(%rbp), %r8
	callq	__bt_checkkeys
	testb	%r12b, %r12b
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_22 Depth=1
	testl	%eax, %eax
	movq	%r14, %r12
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	decl	%esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	__bt_saveitem
	jmp	LBB0_32
LBB0_7:
	movq	%rax, %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %r13
	cmpl	$0, -48(%rbp)
	je	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r15
	cmpq	%r14, %rax
	jg	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	callq	_PageGetItemId
	movl	%eax, %ebx
	cmpq	$0, (%r13)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %edi
	callq	_ItemIdIsDead
	testq	%rax, %rax
	jne	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_PageGetItem
	movq	%rax, %r14
	movq	%r13, %r12
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	leaq	-48(%rbp), %r8
	callq	__bt_checkkeys
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	__bt_saveitem
	incl	%ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
LBB0_16:
	movq	_P_HIKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_PageGetItemId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movl	8(%r13), %esi
	movq	%rax, %rdi
	callq	_BTreeTupleGetNAtts
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	__bt_checkkeys
	cmpl	$0, -48(%rbp)
	jne	LBB0_19
LBB0_18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_19:
	movq	_MaxIndexTuplesPerPage@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	(%rax), %ebx
	setle	%dil
	callq	_Assert
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, 4(%rcx)
	decl	%ebx
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_35
LBB0_33:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 16(%rax)
LBB0_34:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_Assert
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, 4(%rcx)
	movq	_MaxIndexTuplesPerPage@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	decl	%ebx
	movl	%ebx, %eax
LBB0_35:
	movl	%ebx, 8(%rcx)
	movl	%eax, 12(%rcx)
	xorl	%eax, %eax
	cmpl	%ebx, %r14d
	setle	%al
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_HIKEY,8,3                    ## @P_HIKEY
	.comm	_MaxIndexTuplesPerPage,4,2      ## @MaxIndexTuplesPerPage
	.no_dead_strip	__bt_readpage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_readpage
__bt_readpage:                          ; @_bt_readpage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x28, x2
	mov	x20, x1
	mov	x21, x0
	ldrsw	x19, [x0, #24]
	ldr	w0, [x19, #36]
	bl	_BufferIsValid
	bl	_Assert
	ldr	w0, [x19, #36]
	bl	_BufferGetPage
	mov	x22, x0
	bl	_PageGetSpecialPointer
	mov	x23, x0
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_ScanDirectionIsForward
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x23]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #36]
	bl	_BufferGetBlockNumber
	mov	x1, x0
LBB0_4:
	mov	x0, x21
	bl	__bt_parallel_release
LBB0_5:
	mov	w8, #1
	str	w8, [sp, #76]
	ldr	w0, [x21, #8]
	bl	_IndexRelationGetNumberOfAttributes
	mov	x24, x0
	mov	x0, x23
	bl	_P_FIRSTDATAKEY
	mov	x25, x0
	mov	x0, x22
	bl	_PageGetMaxOffsetNumber
	mov	x27, x0
	ldr	w0, [x19, #36]
	bl	_BufferGetBlockNumber
	str	w0, [x19, #44]
	ldr	w0, [x19, #36]
	bl	_BufferGetLSNAtomic
	str	w0, [x19, #40]
	ldr	w8, [x23]
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
	ldp	q0, q1, [x19]
	ldr	q2, [x19, #32]
	stp	q1, q2, [sp, #32]
	str	q0, [sp, #16]
	add	x0, sp, #16
	bl	_BTScanPosIsPinned
	bl	_Assert
	mov	x0, x20
	bl	_ScanDirectionIsForward
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x28
	mov	x1, x25
	bl	_Max
	cmp	x0, x27
	b.le	LBB0_20
; %bb.7:
	mov	w25, #0
	b	LBB0_28
LBB0_8:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _MaxIndexTuplesPerPage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MaxIndexTuplesPerPage@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	mov	x0, x28
	mov	x1, x27
	bl	_Min
	cmp	x0, x25
	b.lt	LBB0_34
; %bb.9:
	mov	x27, x0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #76]
	cbz	w8, LBB0_33
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x27
	bl	_OffsetNumberPrev
	mov	x27, x0
	cmp	x0, x25
	b.lt	LBB0_34
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x27
	bl	_PageGetItemId
	mov	x28, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x28
	bl	_ItemIdIsDead
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x23
	bl	_P_FIRSTDATAKEY
	cmp	x27, x0
	cset	w0, ge
	bl	_Assert
	mov	x0, x23
	bl	_P_FIRSTDATAKEY
	cmp	x27, x0
	b.gt	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w23, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w23, #1
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	mov	x1, x28
	bl	_PageGetItem
	mov	x28, x0
	add	x4, sp, #76
	mov	x0, x21
	mov	x1, x28
	mov	x2, x24
	mov	x3, x20
	bl	__bt_checkkeys
	cbz	w23, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	w0, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w26, w26, #1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x27
	mov	x3, x28
	bl	__bt_saveitem
	b	LBB0_10
LBB0_20:
	mov	x26, x0
	mov	w25, #0
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [sp, #76]
	cbz	w8, LBB0_30
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x26
	bl	_OffsetNumberNext
	mov	x26, x0
	cmp	x0, x27
	b.gt	LBB0_27
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_PageGetItemId
	mov	x28, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x28
	bl	_ItemIdIsDead
	cbnz	x0, LBB0_22
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x22
	mov	x1, x28
	bl	_PageGetItem
	mov	x28, x0
	add	x4, sp, #76
	mov	x0, x21
	mov	x1, x28
	mov	x2, x24
	mov	x3, x20
	bl	__bt_checkkeys
	cbz	w0, LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	mov	x3, x28
	bl	__bt_saveitem
	add	w25, w25, #1
	b	LBB0_21
LBB0_27:
	ldr	w8, [sp, #76]
	cbz	w8, LBB0_30
LBB0_28:
	mov	x0, x23
	bl	_P_RIGHTMOST
	cbz	w0, LBB0_32
; %bb.29:
	ldr	w8, [sp, #76]
	cbnz	w8, LBB0_31
LBB0_30:
	str	wzr, [x19]
LBB0_31:
Lloh3:
	adrp	x8, _MaxIndexTuplesPerPage@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxIndexTuplesPerPage@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w25, w8
	cset	w0, le
	bl	_Assert
	mov	w9, #0
	mov	w26, #0
	str	wzr, [x19, #4]
	sub	w8, w25, #1
	b	LBB0_35
LBB0_32:
Lloh6:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x0, x22
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x22
	bl	_PageGetItem
	mov	x22, x0
	ldr	w1, [x21, #8]
	bl	_BTreeTupleGetNAtts
	mov	x2, x0
	add	x4, sp, #76
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	bl	__bt_checkkeys
	ldr	w8, [sp, #76]
	cbnz	w8, LBB0_31
	b	LBB0_30
LBB0_33:
	str	wzr, [x19, #16]
LBB0_34:
	mvn	w8, w26
	lsr	w0, w8, #31
	bl	_Assert
	str	w26, [x19, #4]
Lloh9:
	adrp	x8, _MaxIndexTuplesPerPage@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MaxIndexTuplesPerPage@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w8, w8, #1
	mov	x9, x8
LBB0_35:
	stp	w8, w9, [x19, #8]
	cmp	w26, w8
	cset	w0, le
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_P_HIKEY,8,3                    ; @P_HIKEY
	.comm	_MaxIndexTuplesPerPage,4,2      ; @MaxIndexTuplesPerPage
	.no_dead_strip	__bt_readpage
.subsections_via_symbols
