	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _hash_alloc_buckets
__hash_alloc_buckets:                   ## @_hash_alloc_buckets
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdx, %rdx
	jle	LBB0_5
## %bb.1:
	leaq	(%rsi,%rdx), %r14
	decq	%r14
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %r15
	cmpq	(%r15), %r14
	je	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	__hash_pageinit
	callq	_PageGetSpecialPointer
	movq	(%r15), %rcx
	movq	%rcx, 24(%rax)
	movq	%rcx, 16(%rax)
	movl	$-1, (%rax)
	movq	_LH_UNUSED_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_HASHO_PAGE_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	%rbx, %rdi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	4(%rbx), %rdi
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	movl	$1, %r8d
	callq	_log_newpage
LBB0_4:
	movq	%rbx, %rdi
	callq	_RelationOpenSmgr
	movq	%r14, %rsi
	callq	_PageSetChecksumInplace
	movl	(%rbx), %edi
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_smgrextend
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_LH_UNUSED_PAGE,4,2             ## @LH_UNUSED_PAGE
	.comm	_HASHO_PAGE_ID,4,2              ## @HASHO_PAGE_ID
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.no_dead_strip	__hash_alloc_buckets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _hash_alloc_buckets
__hash_alloc_buckets:                   ; @_hash_alloc_buckets
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	w0, #0
	cmp	x2, #1
	b.lt	LBB0_5
; %bb.1:
	add	x8, x1, x2
	sub	x20, x8, #1
Lloh0:
	adrp	x21, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x21, [x21, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, x8
	b.eq	LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	__hash_pageinit
	bl	_PageGetSpecialPointer
	ldr	x8, [x21]
	stp	x8, x8, [x0, #16]
	mov	w8, #-1
	str	w8, [x0]
Lloh5:
	adrp	x8, _LH_UNUSED_PAGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LH_UNUSED_PAGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _HASHO_PAGE_ID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HASHO_PAGE_ID@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	mov	x0, x19
	bl	_RelationNeedsWAL
Lloh11:
	adrp	x21, _MAIN_FORKNUM@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MAIN_FORKNUM@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x19, #4
	ldr	w1, [x21]
	mov	x2, x20
	mov	w4, #1
	bl	_log_newpage
LBB0_4:
	mov	x0, x19
	bl	_RelationOpenSmgr
	mov	x1, x20
	bl	_PageSetChecksumInplace
	ldr	w0, [x19]
	ldr	w1, [x21]
	mov	x2, x20
	mov	w4, #0
	bl	_smgrextend
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_LH_UNUSED_PAGE,4,2             ; @LH_UNUSED_PAGE
	.comm	_HASHO_PAGE_ID,4,2              ; @HASHO_PAGE_ID
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.no_dead_strip	__hash_alloc_buckets
.subsections_via_symbols
