	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_dax_region               ## -- Begin function alloc_dax_region
	.p2align	4, 0x90
_alloc_dax_region:                      ## @alloc_dax_region
	.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
	movq	%r9, %r15
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_WARN
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	%rax, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	leaq	32(%r14), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, (%r14)
	leaq	20(%r14), %r12
	movq	%r12, %rdi
	callq	_kref_init
	movl	%r13d, 8(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r14)
	movq	%rbx, 24(%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r14)
	movq	_dax_region_attribute_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sysfs_create_groups
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_2
LBB0_12:
	movq	%r12, %rdi
	callq	_kref_get
	movq	_dax_region_unregister@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_devm_add_action_or_reset
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmoveq	%r14, %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dax core failed to setup private data\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_dax_region_attribute_groups,4,2 ## @dax_region_attribute_groups
	.comm	_dax_region_unregister,4,2      ## @dax_region_unregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_dax_region               ; -- Begin function alloc_dax_region
	.p2align	2
_alloc_dax_region:                      ; @alloc_dax_region
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x5
	mov	x21, x4
	mov	x20, x3
	mov	x25, x2
	mov	x22, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_WARN
LBB0_2:
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x25]
	mov	x1, x21
	bl	_IS_ALIGNED
	cbz	w0, LBB0_2
; %bb.5:
	mov	x0, x25
	bl	_resource_size
	mov	x1, x21
	bl	_IS_ALIGNED
	cbz	w0, LBB0_2
; %bb.6:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.7:
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	bl	_dev_set_drvdata
	add	x0, x24, #32
	mov	x1, x25
	mov	w2, #4
	bl	_memcpy
	str	x23, [x24]
	add	x23, x24, #20
	mov	x0, x23
	bl	_kref_init
	stp	w22, w21, [x24, #8]
	str	x19, [x24, #24]
	str	w20, [x24, #16]
Lloh5:
	adrp	x8, _dax_region_attribute_groups@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dax_region_attribute_groups@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sysfs_create_groups
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x24
	bl	_kfree
	b	LBB0_2
LBB0_9:
	mov	x0, x23
	bl	_kref_get
Lloh8:
	adrp	x8, _dax_region_unregister@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dax_region_unregister@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	bl	_devm_add_action_or_reset
	cmp	x0, #0
	csel	x0, x24, xzr, eq
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dax core failed to setup private data\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_dax_region_attribute_groups,4,2 ; @dax_region_attribute_groups
	.comm	_dax_region_unregister,4,2      ; @dax_region_unregister
.subsections_via_symbols
