	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hash_alloc
_hash_alloc:                            ## @hash_alloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_powerof2
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movq	_UMA_HASH_SIZE_INIT@GOTPCREL(%rip), %r12
	movslq	(%r12), %r15
	cmpl	%ebx, %r15d
	jge	LBB0_2
## %bb.1:
	movl	%ebx, (%r14)
	movslq	%ebx, %r15
	shlq	$2, %r15
	movq	_M_UMAHASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_malloc
	jmp	LBB0_3
LBB0_2:
	shlq	$2, %r15
	movq	_hashzone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UMA_ANYDOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_zone_alloc_item
	movl	(%r12), %ecx
	movl	%ecx, (%r14)
LBB0_3:
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_bzero
	movl	(%r14), %eax
	decl	%eax
	movl	%eax, 4(%r14)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hash size must be power of 2"

	.comm	_UMA_HASH_SIZE_INIT,4,2         ## @UMA_HASH_SIZE_INIT
	.comm	_M_UMAHASH,4,2                  ## @M_UMAHASH
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_hashzone,4,2                   ## @hashzone
	.comm	_UMA_ANYDOMAIN,4,2              ## @UMA_ANYDOMAIN
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.no_dead_strip	_hash_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hash_alloc
_hash_alloc:                            ; @hash_alloc
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_powerof2
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh2:
	adrp	x21, _UMA_HASH_SIZE_INIT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _UMA_HASH_SIZE_INIT@GOTPAGEOFF]
	ldrsw	x8, [x21]
	cmp	w8, w20
	b.ge	LBB0_2
; %bb.1:
	str	w20, [x19]
	sbfiz	x20, x20, #2, #32
Lloh4:
	adrp	x8, _M_UMAHASH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_UMAHASH@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_malloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_2:
	lsl	x20, x8, #2
Lloh10:
	adrp	x8, _hashzone@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hashzone@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _UMA_ANYDOMAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UMA_ANYDOMAIN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x1, #0
	bl	_zone_alloc_item
	ldr	w8, [x21]
	str	w8, [x19]
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
LBB0_3:
	mov	x1, x20
	bl	_bzero
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	mov	w0, #1
LBB0_4:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hash size must be power of 2"

	.comm	_UMA_HASH_SIZE_INIT,4,2         ; @UMA_HASH_SIZE_INIT
	.comm	_M_UMAHASH,4,2                  ; @M_UMAHASH
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_hashzone,4,2                   ; @hashzone
	.comm	_UMA_ANYDOMAIN,4,2              ; @UMA_ANYDOMAIN
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.no_dead_strip	_hash_alloc
.subsections_via_symbols
