	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function _hash_init_metabuffer
LCPI0_0:
	.quad	0x4000000000000000              ## double 2
LCPI0_1:
	.quad	0x41d0000000000000              ## double 1073741824
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__hash_init_metabuffer
	.p2align	4, 0x90
__hash_init_metabuffer:                 ## @_hash_init_metabuffer
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %ebx
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	divsd	%xmm1, %xmm0
	movl	$2, %r13d
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jae	LBB0_3
## %bb.1:
	movl	$1073741824, %r13d              ## imm = 0x40000000
	ucomisd	LCPI0_1(%rip), %xmm0
	jae	LBB0_3
## %bb.2:
	cvttsd2si	%xmm0, %edi
	callq	__hash_spareindex
	movl	%eax, %edi
	callq	__hash_get_totalbuckets
	movl	%eax, %r13d
LBB0_3:
	movl	%r13d, %edi
	callq	__hash_spareindex
	movl	%eax, %r15d
	movq	_HASH_MAX_SPLITPOINTS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	setl	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_BufferGetPage
	movq	%rax, %r12
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_BufferGetPageSize
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	__hash_pageinit
LBB0_5:
	movq	%r12, %rdi
	callq	_PageGetSpecialPointer
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rax)
	movq	%rcx, 16(%rax)
	movl	$-1, (%rax)
	movq	_LH_META_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	%r12, %rdi
	callq	_HashPageGetMeta
	movq	%rax, %r14
	movq	_HASH_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r14)
	movq	_HASH_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r14)
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, 80(%r14)
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r14)
	movq	%r12, %rdi
	callq	_HashGetMaxBitmapSize
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	__hash_log2
	movl	%eax, %ebx
	testl	%eax, %eax
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	jle	LBB0_10
## %bb.6:
	movl	8(%r14), %eax
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	cmpl	%eax, %edx
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leal	-1(%rbx), %ecx
	cmpl	$1, %ebx
	movl	%ecx, %ebx
	jg	LBB0_7
## %bb.9:
	xorl	%ebx, %ebx
LBB0_10:
	xorl	%edi, %edi
LBB0_11:
	callq	_Assert
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movl	$1, %r15d
	movl	%eax, 12(%r14)
	movslq	%ebx, %rax
	movq	_BYTE_TO_BIT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 72(%r14)
	movq	%r14, %rdi
	callq	_BMPG_SHIFT
	movl	%eax, %ecx
	shll	%cl, %r15d
	movq	%r14, %rdi
	callq	_BMPG_MASK
	incl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	sete	%dil
	callq	_Assert
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 64(%r14)
	leal	-1(%r13), %eax
	movl	%eax, 16(%r14)
	incl	%r13d
	movl	%r13d, %edi
	callq	__hash_log2
	movl	$-1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	notl	%edx
	movl	%edx, 20(%r14)
	sarl	%edx
	movl	%edx, 24(%r14)
	movq	32(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_MemSet
	movq	40(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_MemSet
	movq	32(%r14), %rax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	movl	$1, (%rax,%rcx,4)
	movl	%edx, 48(%r14)
	movq	$0, 56(%r14)
	subl	%r12d, %r14d
	addl	$4, %r14d
	movl	%r14d, (%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_MAX_SPLITPOINTS,4,2       ## @HASH_MAX_SPLITPOINTS
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_LH_META_PAGE,4,2               ## @LH_META_PAGE
	.comm	_HASHO_PAGE_ID,4,2              ## @HASHO_PAGE_ID
	.comm	_HASH_MAGIC,4,2                 ## @HASH_MAGIC
	.comm	_HASH_VERSION,4,2               ## @HASH_VERSION
	.comm	_BYTE_TO_BIT,8,3                ## @BYTE_TO_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hash_init_metabuffer          ; -- Begin function _hash_init_metabuffer
	.p2align	2
__hash_init_metabuffer:                 ; @_hash_init_metabuffer
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x24, x2
	fmov	d8, d1
	mov	x19, x1
	mov	x23, x0
	fdiv	d0, d0, d1
	fmov	d1, #2.00000000
	fcmp	d0, d1
	b.ls	LBB0_3
; %bb.1:
	mov	x8, #4742290407621132288
	fmov	d1, x8
	fcmp	d0, d1
	b.ge	LBB0_4
; %bb.2:
	fcvtzs	w0, d0
	bl	__hash_spareindex
	bl	__hash_get_totalbuckets
	mov	x22, x0
	b	LBB0_5
LBB0_3:
	mov	w22, #2
	b	LBB0_5
LBB0_4:
	mov	w22, #1073741824
LBB0_5:
	mov	x0, x22
	bl	__hash_spareindex
	mov	x20, x0
Lloh0:
	adrp	x8, _HASH_MAX_SPLITPOINTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HASH_MAX_SPLITPOINTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, lt
	bl	_Assert
	mov	x0, x23
	bl	_BufferGetPage
	mov	x21, x0
	cbz	w24, LBB0_7
; %bb.6:
	mov	x0, x23
	bl	_BufferGetPageSize
	mov	x1, x0
	mov	x0, x21
	bl	__hash_pageinit
LBB0_7:
	mov	x0, x21
	bl	_PageGetSpecialPointer
Lloh3:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #16]
	mov	w25, #-1
	str	w25, [x0]
Lloh6:
	adrp	x8, _LH_META_PAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LH_META_PAGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _HASHO_PAGE_ID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HASHO_PAGE_ID@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	mov	x0, x21
	bl	_HashPageGetMeta
	mov	x23, x0
Lloh12:
	adrp	x8, _HASH_MAGIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HASH_MAGIC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _HASH_VERSION@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HASH_VERSION@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #96]
	stp	xzr, xzr, [x0, #80]
	str	d8, [x0]
	mov	x0, x21
	bl	_HashGetMaxBitmapSize
	str	w0, [x23, #8]
	bl	__hash_log2
	mov	x24, x0
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.8:
	ldr	w8, [x23, #8]
	mov	w0, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w9, w0, w24
	cmp	w9, w8
	b.le	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	subs	w24, w24, #1
	b.gt	LBB0_9
; %bb.11:
	mov	w24, #0
LBB0_12:
	mov	w0, #0
LBB0_13:
	bl	_Assert
	mov	w26, #1
	lsl	w8, w26, w24
	str	w8, [x23, #12]
Lloh18:
	adrp	x8, _BYTE_TO_BIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BYTE_TO_BIT@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x8, x8, w24, sxtw
	str	x8, [x23, #72]
	mov	x0, x23
	bl	_BMPG_SHIFT
	lsl	w24, w26, w0
	mov	x0, x23
	bl	_BMPG_MASK
	add	w8, w0, #1
	cmp	w24, w8
	cset	w0, eq
	bl	_Assert
	str	w19, [x23, #64]
	sub	w8, w22, #1
	str	w8, [x23, #16]
	add	w0, w22, #1
	bl	__hash_log2
	lsl	w8, w25, w0
	mvn	w8, w8
	asr	w9, w8, #1
	stp	w8, w9, [x23, #20]
	ldr	x0, [x23, #32]
	mov	w1, #0
	mov	w2, #8
	bl	_MemSet
	ldr	x0, [x23, #40]
	mov	w1, #0
	mov	w2, #8
	bl	_MemSet
	ldr	x8, [x23, #32]
	str	w26, [x8, w20, sxtw #2]
	str	w20, [x23, #48]
	str	xzr, [x23, #56]
	sub	w8, w23, w21
	add	w8, w8, #4
	str	w8, [x21]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_MAX_SPLITPOINTS,4,2       ; @HASH_MAX_SPLITPOINTS
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_LH_META_PAGE,4,2               ; @LH_META_PAGE
	.comm	_HASHO_PAGE_ID,4,2              ; @HASHO_PAGE_ID
	.comm	_HASH_MAGIC,4,2                 ; @HASH_MAGIC
	.comm	_HASH_VERSION,4,2               ; @HASH_VERSION
	.comm	_BYTE_TO_BIT,8,3                ; @BYTE_TO_BIT
.subsections_via_symbols
