	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _hash_readpage
__hash_readpage:                        ## @_hash_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %r12
	movl	4(%rdi), %r14d
	movslq	(%rdi), %r13
	movq	(%rsi), %rbx
	movq	%rbx, -56(%rbp)
	movq	%rbx, %rdi
	callq	_BufferIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	_LH_BUCKET_PAGE@GOTPCREL(%rip), %rax
	movq	_LH_OVERFLOW_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	__hash_checkpage
	movq	%rbx, %rdi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, -64(%rbp)
	movq	%rbx, 24(%r13)
	movq	%rbx, %rdi
	callq	_BufferGetBlockNumber
	movq	%rax, 72(%r13)
	movl	%r15d, %edi
	callq	_ScanDirectionIsForward
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	80(%r13), %esi
	movl	%r14d, %edi
	callq	__hash_binsearch
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	__hash_load_qualified_items
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13)
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	__hash_kill_items
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r13), %rcx
	movq	%rbx, %rax
	cmpq	8(%r13), %rcx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rax
	cmpq	16(%r13), %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax
	addq	$8, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %r14
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	__hash_readnext
	movq	-56(%rbp), %rdi
	callq	_BufferIsValid
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	movq	%rdi, 24(%r13)
	callq	_BufferGetBlockNumber
	movq	%rax, 72(%r13)
	movl	-44(%rbp), %edi
	movl	80(%r13), %esi
	callq	__hash_binsearch
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	__hash_load_qualified_items
	testq	%rax, %rax
	je	LBB0_3
LBB0_10:
	movq	$0, 32(%r13)
	decq	%rax
	xorl	%ecx, %ecx
	jmp	LBB0_23
LBB0_13:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	80(%r13), %esi
	movl	%r14d, %edi
	callq	__hash_binsearch_last
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	__hash_load_qualified_items
	movq	%rax, %rcx
	movq	_MaxIndexTuplesPerPage@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	cmpq	%rax, %rcx
	jne	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$0, (%r13)
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	callq	__hash_kill_items
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	24(%r13), %rax
	cmpq	8(%r13), %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	16(%r13), %rax
	jne	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-64(%rbp), %rax
	movq	(%rax), %rbx
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	__hash_readprev
	movq	-56(%rbp), %rdi
	callq	_BufferIsValid
	testl	%eax, %eax
	je	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rdi
	movq	%rdi, 24(%r13)
	callq	_BufferGetBlockNumber
	movq	%rax, 72(%r13)
	movl	-44(%rbp), %edi
	movl	80(%r13), %esi
	callq	__hash_binsearch_last
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	__hash_load_qualified_items
	movq	%rax, %rcx
	jmp	LBB0_14
LBB0_22:
	movq	%rcx, 32(%r13)
	decq	%rax
	movq	%rax, %rcx
LBB0_23:
	movq	%rax, 40(%r13)
	movq	%rcx, 64(%r13)
	movq	24(%r13), %rax
	cmpq	8(%r13), %rax
	je	LBB0_25
## %bb.24:
	cmpq	16(%r13), %rax
	jne	LBB0_26
LBB0_25:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 56(%r13)
	movq	-64(%rbp), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 48(%r13)
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_LockBuffer
	jmp	LBB0_27
LBB0_26:
	movq	-64(%rbp), %rcx
	movups	(%rcx), %xmm0
	movups	%xmm0, 48(%r13)
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %rsi
	callq	__hash_relbuf
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r13)
LBB0_27:
	movq	32(%r13), %rax
	xorl	%edi, %edi
	cmpq	40(%r13), %rax
	setle	%dil
	callq	_Assert
	movl	$1, %eax
	jmp	LBB0_28
LBB0_11:
	movq	%r14, 56(%r13)
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r13)
	jmp	LBB0_12
LBB0_29:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r13)
	movq	%rbx, 48(%r13)
LBB0_12:
	movq	-56(%rbp), %rax
	movq	%rax, 24(%r13)
	xorl	%eax, %eax
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LH_BUCKET_PAGE,4,2             ## @LH_BUCKET_PAGE
	.comm	_LH_OVERFLOW_PAGE,4,2           ## @LH_OVERFLOW_PAGE
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_MaxIndexTuplesPerPage,8,3      ## @MaxIndexTuplesPerPage
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.no_dead_strip	__hash_readpage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _hash_readpage
__hash_readpage:                        ; @_hash_readpage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x21, x0
	ldp	w24, w19, [x0]
                                        ; kill: def $w24 killed $w24 def $x24
	sxtw	x24, w24
	ldr	x23, [x1]
	str	x23, [sp, #24]
	mov	x0, x23
	bl	_BufferIsValid
	bl	_Assert
Lloh0:
	adrp	x8, _LH_BUCKET_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LH_BUCKET_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LH_OVERFLOW_PAGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LH_OVERFLOW_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x1, x23
	bl	__hash_checkpage
	mov	x0, x23
	bl	_BufferGetPage
	mov	x22, x0
	str	w0, [sp, #20]
	bl	_PageGetSpecialPointer
	str	x0, [sp, #8]
	str	x23, [x24, #24]
	mov	x0, x23
	bl	_BufferGetBlockNumber
	str	x0, [x24, #72]
	mov	x0, x20
	bl	_ScanDirectionIsForward
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w1, [x24, #80]
	mov	x0, x22
	bl	__hash_binsearch
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	bl	__hash_load_qualified_items
	cbnz	x0, LBB0_10
; %bb.2:
Lloh6:
	adrp	x22, _InvalidBlockNumber@GOTPAGE
Lloh7:
	ldr	x22, [x22, _InvalidBlockNumber@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	__hash_kill_items
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #24]
	ldr	x10, [x24, #8]
	mov	x9, x22
	cmp	x8, x10
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x24, #16]
	mov	x9, x22
	cmp	x8, x10
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	add	x9, x8, #8
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x9]
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #8
	mov	x0, x21
	bl	__hash_readnext
	ldr	x0, [sp, #24]
	bl	_BufferIsValid
	cbz	w0, LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #24]
	str	x0, [x24, #24]
	bl	_BufferGetBlockNumber
	str	x0, [x24, #72]
	ldr	w0, [sp, #20]
	ldr	w1, [x24, #80]
	bl	__hash_binsearch
	mov	x2, x0
	ldr	w1, [sp, #20]
	mov	x0, x21
	mov	x3, x20
	bl	__hash_load_qualified_items
	cbz	x0, LBB0_3
LBB0_10:
	mov	x8, #0
	str	xzr, [x24, #32]
	sub	x9, x0, #1
	b	LBB0_21
LBB0_11:
Lloh8:
	adrp	x23, _InvalidBlockNumber@GOTPAGE
Lloh9:
	ldr	x23, [x23, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x25, [x23]
	ldr	w1, [x24, #80]
	mov	x0, x22
	bl	__hash_binsearch_last
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	bl	__hash_load_qualified_items
Lloh10:
	adrp	x22, _MaxIndexTuplesPerPage@GOTPAGE
Lloh11:
	ldr	x22, [x22, _MaxIndexTuplesPerPage@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	__hash_kill_items
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24, #24]
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x24, #16]
	cmp	x8, x9
	b.ne	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #8]
	ldr	x25, [x8]
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #8
	mov	x0, x21
	bl	__hash_readprev
	ldr	x0, [sp, #24]
	bl	_BufferIsValid
	cbz	w0, LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [sp, #24]
	str	x0, [x24, #24]
	bl	_BufferGetBlockNumber
	str	x0, [x24, #72]
	ldr	w0, [sp, #20]
	ldr	w1, [x24, #80]
	bl	__hash_binsearch_last
	mov	x2, x0
	ldr	w1, [sp, #20]
	mov	x0, x21
	mov	x3, x20
	bl	__hash_load_qualified_items
	b	LBB0_12
LBB0_20:
	str	x0, [x24, #32]
	sub	x9, x8, #1
	mov	x8, x9
LBB0_21:
	str	x9, [x24, #40]
	str	x8, [x24, #64]
	ldr	x8, [x24, #24]
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.22:
	ldr	x9, [x24, #16]
	cmp	x8, x9
	b.ne	LBB0_24
LBB0_23:
Lloh12:
	adrp	x9, _InvalidBlockNumber@GOTPAGE
Lloh13:
	ldr	x9, [x9, _InvalidBlockNumber@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	str	x9, [x24, #56]
	ldr	x9, [sp, #8]
	ldr	x9, [x9]
	str	x9, [x24, #48]
Lloh15:
	adrp	x9, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_LockBuffer
	b	LBB0_25
LBB0_24:
	ldr	x9, [sp, #8]
	ldr	x10, [x9, #8]
	str	x10, [x24, #56]
	ldr	x9, [x9]
	str	x9, [x24, #48]
	mov	x0, x19
	mov	x1, x8
	bl	__hash_relbuf
Lloh18:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh19:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x24, #24]
LBB0_25:
	ldp	x8, x9, [x24, #32]
	cmp	x8, x9
	cset	w0, le
	bl	_Assert
	mov	w0, #1
	b	LBB0_29
LBB0_26:
	ldr	x8, [x22]
	stp	x8, x23, [x24, #48]
	b	LBB0_28
LBB0_27:
	ldr	x8, [x23]
	stp	x25, x8, [x24, #48]
LBB0_28:
	ldr	x8, [sp, #24]
	str	x8, [x24, #24]
LBB0_29:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LH_BUCKET_PAGE,4,2             ; @LH_BUCKET_PAGE
	.comm	_LH_OVERFLOW_PAGE,4,2           ; @LH_OVERFLOW_PAGE
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_MaxIndexTuplesPerPage,8,3      ; @MaxIndexTuplesPerPage
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.no_dead_strip	__hash_readpage
.subsections_via_symbols
