	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function walCleanupHash
_walCleanupHash:                        ## @walCleanupHash
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_assert
	movq	_HASHTABLE_NPAGE_ONE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, 24(%rbx)
	sete	%dil
	callq	_testcase
	movl	24(%rbx), %eax
	xorl	%edi, %edi
	cmpl	(%r14), %eax
	sete	%dil
	callq	_testcase
	movl	(%r14), %eax
	incl	%eax
	xorl	%edi, %edi
	cmpl	%eax, 24(%rbx)
	sete	%dil
	callq	_testcase
	movslq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	8(%rbx), %r14
	callq	_walFramePage
	xorl	%edi, %edi
	cmpq	%rax, %r14
	seta	%dil
	callq	_assert
	movq	16(%rbx), %r14
	movslq	24(%rbx), %rdi
	callq	_walFramePage
	movl	(%r14,%rax,4), %edi
	callq	_assert
	movslq	24(%rbx), %rdi
	callq	_walFramePage
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_walHashGet
	movl	%eax, %edi
	callq	_NEVER
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movslq	24(%rbx), %rbx
	movslq	-40(%rbp), %rax
	subq	%rax, %rbx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_assert
	movq	_HASHTABLE_NSLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.4:
	movq	-32(%rbp), %rdx
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	movslq	%ecx, %rdi
	cmpq	%rdi, %rsi
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rdx,%rsi,4)
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, (%rdx,%rsi,4)
	movl	(%rax), %ecx
	jmp	LBB0_7
LBB0_3:
	movq	-32(%rbp), %rdx
LBB0_8:
	movq	-24(%rbp), %rax
	leaq	(%rax,%rbx,4), %rdi
	addq	$4, %rdi
	subl	%edi, %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
LBB0_9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASHTABLE_NPAGE_ONE,4,2        ## @HASHTABLE_NPAGE_ONE
	.comm	_HASHTABLE_NSLOT,4,2            ## @HASHTABLE_NSLOT
	.no_dead_strip	_walCleanupHash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function walCleanupHash
_walCleanupHash:                        ; @walCleanupHash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_assert
	ldr	w8, [x19, #24]
Lloh0:
	adrp	x20, _HASHTABLE_NPAGE_ONE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HASHTABLE_NPAGE_ONE@GOTPAGEOFF]
	ldr	w9, [x20]
	sub	w9, w9, #1
	cmp	w8, w9
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x19, #24]
	ldr	w9, [x20]
	cmp	w8, w9
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x19, #24]
	ldr	w9, [x20]
	add	w9, w9, #1
	cmp	w8, w9
	cset	w0, eq
	bl	_testcase
	ldrsw	x0, [x19, #24]
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x20, [x19, #8]
	bl	_walFramePage
	cmp	x20, x0
	cset	w0, hi
	bl	_assert
	ldr	x20, [x19, #16]
	ldrsw	x0, [x19, #24]
	bl	_walFramePage
	ldr	w0, [x20, x0, lsl #2]
	bl	_assert
	ldrsw	x0, [x19, #24]
	bl	_walFramePage
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	bl	_walHashGet
	bl	_NEVER
	cbnz	x0, LBB0_9
; %bb.2:
	ldr	w8, [x19, #24]
	ldr	w9, [sp, #8]
	sub	w19, w8, w9
	cmp	w19, #0
	cset	w0, gt
	bl	_assert
Lloh2:
	adrp	x9, _HASHTABLE_NSLOT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HASHTABLE_NSLOT@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w10, #0
	b.le	LBB0_7
; %bb.3:
	mov	x11, #0
	ldr	x8, [sp, #16]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, #1
	cmp	x11, w10, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8, x11, lsl #2]
	cmp	w12, w19
	b.le	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x8, x11, lsl #2]
	ldr	w10, [x9]
	b	LBB0_4
LBB0_7:
	ldr	x8, [sp, #16]
LBB0_8:
	ldr	x9, [sp, #24]
	add	w10, w19, #1
	add	x0, x9, w10, sxtw #2
	sub	w2, w8, w0
	mov	w1, #0
	bl	_memset
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HASHTABLE_NPAGE_ONE,4,2        ; @HASHTABLE_NPAGE_ONE
	.comm	_HASHTABLE_NSLOT,4,2            ; @HASHTABLE_NSLOT
	.no_dead_strip	_walCleanupHash
.subsections_via_symbols
