	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hash_next                     ## -- Begin function _hash_next
	.p2align	4, 0x90
__hash_next:                            ## @_hash_next
	.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, %r12d
	movq	%rdi, %r14
	movl	12(%rdi), %r15d
	movslq	8(%rdi), %rbx
	movl	%esi, %edi
	callq	_ScanDirectionIsForward
	movq	24(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	1(%rcx), %rax
	movq	%rax, 24(%rbx)
	cmpq	32(%rbx), %rcx
	jl	LBB0_15
## %bb.2:
	cmpq	$0, (%rbx)
	jle	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	__hash_kill_items
LBB0_4:
	movl	60(%rbx), %r13d
	movl	%r13d, %edi
	callq	_BlockNumberIsValid
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	_HASH_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LH_OVERFLOW_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	__hash_getbuf
	movq	%rax, -48(%rbp)
	movl	4(%r14), %r13d
	movq	%rax, %rdi
	callq	_BufferGetPage
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	jmp	LBB0_13
LBB0_6:
	leaq	-1(%rcx), %rax
	movq	%rax, 24(%rbx)
	cmpq	40(%rbx), %rcx
	jg	LBB0_15
## %bb.7:
	cmpq	$0, (%rbx)
	jle	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	__hash_kill_items
LBB0_9:
	movl	56(%rbx), %r13d
	movl	%r13d, %edi
	callq	_BlockNumberIsValid
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	_HASH_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LH_BUCKET_PAGE@GOTPCREL(%rip), %rax
	movq	_LH_OVERFLOW_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	__hash_getbuf
	movq	%rax, %r13
	movq	%rax, -48(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_BufferGetPage
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	cmpq	8(%rbx), %r13
	je	LBB0_12
## %bb.11:
	cmpq	16(%rbx), %r13
	jne	LBB0_13
LBB0_12:
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	__hash_dropbuf
LBB0_13:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	__hash_readpage
	testl	%eax, %eax
	je	LBB0_14
LBB0_15:
	movq	24(%rbx), %rax
	movq	48(%rbx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_16
LBB0_14:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	__hash_dropscanbuf
	movq	56(%rbx), %rax
	movq	%rax, 32(%rsp)
	movups	24(%rbx), %xmm0
	movups	40(%rbx), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_HashScanPosInvalidate
	xorl	%eax, %eax
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_READ,4,2                  ## @HASH_READ
	.comm	_LH_OVERFLOW_PAGE,4,2           ## @LH_OVERFLOW_PAGE
	.comm	_LH_BUCKET_PAGE,4,2             ## @LH_BUCKET_PAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hash_next                     ; -- Begin function _hash_next
	.p2align	2
__hash_next:                            ; @_hash_next
	.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	x22, x1
	mov	x20, x0
	ldp	w19, w21, [x0, #8]
                                        ; kill: def $w19 killed $w19 def $x19
	sxtw	x19, w19
	mov	x0, x1
	bl	_ScanDirectionIsForward
	ldr	x8, [x19, #24]
	cbz	x0, LBB0_6
; %bb.1:
	add	x9, x8, #1
	str	x9, [x19, #24]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.lt	LBB0_14
; %bb.2:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	__hash_kill_items
LBB0_4:
	ldr	w23, [x19, #60]
	mov	x0, x23
	bl	_BlockNumberIsValid
	cbz	x0, LBB0_15
; %bb.5:
Lloh0:
	adrp	x8, _HASH_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HASH_READ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _LH_OVERFLOW_PAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LH_OVERFLOW_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	__hash_getbuf
	str	x0, [sp, #40]
	ldr	w23, [x20, #4]
	bl	_BufferGetPage
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_TestForOldSnapshot
	b	LBB0_13
LBB0_6:
	sub	x9, x8, #1
	str	x9, [x19, #24]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.gt	LBB0_14
; %bb.7:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	__hash_kill_items
LBB0_9:
	ldr	w23, [x19, #56]
	mov	x0, x23
	bl	_BlockNumberIsValid
	cbz	x0, LBB0_15
; %bb.10:
Lloh6:
	adrp	x8, _HASH_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HASH_READ@GOTPAGEOFF]
Lloh8:
	adrp	x9, _LH_BUCKET_PAGE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LH_BUCKET_PAGE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _LH_OVERFLOW_PAGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LH_OVERFLOW_PAGE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x21
	mov	x1, x23
	bl	__hash_getbuf
	mov	x23, x0
	str	x0, [sp, #40]
	ldr	w24, [x20, #4]
	bl	_BufferGetPage
	mov	x2, x0
	mov	x0, x24
	mov	x1, x21
	bl	_TestForOldSnapshot
	ldr	x8, [x19, #8]
	cmp	x23, x8
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
	cmp	x23, x8
	b.ne	LBB0_13
LBB0_12:
	mov	x0, x21
	mov	x1, x23
	bl	__hash_dropbuf
LBB0_13:
	add	x1, sp, #40
	mov	x0, x20
	mov	x2, x22
	bl	__hash_readpage
	cbz	w0, LBB0_15
LBB0_14:
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #24]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x20]
	mov	w0, #1
	b	LBB0_16
LBB0_15:
	mov	x0, x21
	mov	x1, x19
	bl	__hash_dropscanbuf
	ldur	q0, [x19, #24]
	ldur	q1, [x19, #40]
	stp	q0, q1, [sp]
	ldr	x8, [x19, #56]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_HashScanPosInvalidate
	mov	w0, #0
LBB0_16:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_READ,4,2                  ; @HASH_READ
	.comm	_LH_OVERFLOW_PAGE,4,2           ; @LH_OVERFLOW_PAGE
	.comm	_LH_BUCKET_PAGE,4,2             ; @LH_BUCKET_PAGE
.subsections_via_symbols
