	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_region_hash_create          ## -- Begin function dm_region_hash_create
	.p2align	4, 0x90
_dm_region_hash_create:                 ## @dm_region_hash_create
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	24(%rbp), %r13d
	movq	16(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %eax
	sarl	$6, %eax
	movl	$128, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r14d
	leal	(%r14,%r14), %ecx
	cmpl	%eax, %r14d
	jb	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$136, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movl	%r15d, %eax
	movl	%r14d, %r15d
	shrl	%r15d
	movq	%rbx, 128(%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%r12)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%r12)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%r12)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 120(%r12)
	movl	%eax, 24(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 112(%r12)
	movl	%r13d, 108(%r12)
	movl	%r13d, %edi
	callq	___ffs
	movl	%eax, 104(%r12)
	leaq	100(%r12), %rdi
	callq	_rwlock_init
	leal	-1(%r15), %eax
	movl	%eax, 28(%r12)
	movl	%r15d, 32(%r12)
	movq	_RH_HASH_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r12)
	movq	_RH_HASH_MULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r12)
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_array_size
	movl	%eax, %edi
	callq	_vmalloc
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.6:
	cmpl	$2, %r15d
	movl	$1, %r14d
	cmovael	%r15d, %r14d
	movq	%rax, %rdi
	callq	_INIT_LIST_HEAD
	decq	%r14
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rdi
	addq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_7
LBB0_8:
	leaq	88(%r12), %rdi
	callq	_spin_lock_init
	leaq	84(%r12), %rdi
	xorl	%esi, %esi
	callq	_sema_init
	leaq	80(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	76(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	72(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	68(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	64(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, 56(%r12)
	movq	%r12, %rdi
	addq	$48, %rdi
	movq	_MIN_REGIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_mempool_init_kmalloc_pool
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movq	40(%r12), %rdi
	callq	_vfree
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_11
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	callq	_DMERR
LBB0_10:
	movq	%r12, %rdi
	callq	_kfree
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to allocate region hash memory"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RH_HASH_SHIFT,4,2              ## @RH_HASH_SHIFT
	.comm	_RH_HASH_MULT,4,2               ## @RH_HASH_MULT
L_.str.1:                               ## @.str.1
	.asciz	"unable to allocate region hash bucket memory"

	.comm	_MIN_REGIONS,4,2                ## @MIN_REGIONS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_region_hash_create          ; -- Begin function dm_region_hash_create
	.p2align	2
_dm_region_hash_create:                 ; @dm_region_hash_create
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x20, x0
	ldr	w8, [x29, #16]
	asr	w8, w8, #6
	mov	w9, #128
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x9
	lsl	w9, w9, #1
	cmp	w28, w8
	b.lo	LBB0_1
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #136
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	str	x20, [x0, #128]
	lsr	w20, w28, #1
	stp	x27, x26, [x0]
	str	x25, [x0, #16]
	str	w24, [x0, #120]
	str	w23, [x0, #24]
	str	x22, [x0, #112]
	str	w21, [x0, #108]
	mov	x0, x21
	bl	___ffs
	str	w0, [x19, #104]
	add	x0, x19, #100
	bl	_rwlock_init
	sub	w8, w20, #1
	stp	w8, w20, [x19, #28]
Lloh3:
	adrp	x8, _RH_HASH_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RH_HASH_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RH_HASH_MULT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RH_HASH_MULT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #92]
	mov	x0, x20
	mov	w1, #4
	bl	_array_size
	bl	_vmalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_10
; %bb.4:
	cbz	w28, LBB0_7
; %bb.5:
	cmp	w20, #1
	csinc	w20, w20, wzr, hi
	bl	_INIT_LIST_HEAD
	sub	x20, x20, #1
	mov	w21, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x0, x8, x21
	bl	_INIT_LIST_HEAD
	add	x21, x21, #4
	subs	x20, x20, #1
	b.ne	LBB0_6
LBB0_7:
	add	x0, x19, #88
	bl	_spin_lock_init
	add	x0, x19, #84
	mov	w1, #0
	bl	_sema_init
	add	x0, x19, #80
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #76
	bl	_INIT_LIST_HEAD
	add	x0, x19, #72
	bl	_INIT_LIST_HEAD
	add	x0, x19, #68
	bl	_INIT_LIST_HEAD
	add	x0, x19, #64
	bl	_INIT_LIST_HEAD
	str	xzr, [x19, #56]
	add	x0, x19, #48
Lloh9:
	adrp	x8, _MIN_REGIONS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MIN_REGIONS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_mempool_init_kmalloc_pool
	cbz	w0, LBB0_13
; %bb.8:
	ldr	x0, [x19, #40]
	bl	_vfree
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	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	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_13:
	mov	x0, x19
	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	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to allocate region hash memory"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RH_HASH_SHIFT,4,2              ; @RH_HASH_SHIFT
	.comm	_RH_HASH_MULT,4,2               ; @RH_HASH_MULT
l_.str.1:                               ; @.str.1
	.asciz	"unable to allocate region hash bucket memory"

	.comm	_MIN_REGIONS,4,2                ; @MIN_REGIONS
.subsections_via_symbols
