	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___devm_create_dev_dax          ## -- Begin function __devm_create_dev_dax
	.p2align	4, 0x90
___devm_create_dev_dax:                 ## @__devm_create_dev_dax
	.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
	xorl	%ebx, %ebx
	testl	%esi, %esi
	js	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	leaq	64(%rax), %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_DAXDEV_F_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alloc_dax
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_kill_dax
	movq	%r12, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_device_initialize
	movq	%r13, 16(%r12)
	movq	%r14, 8(%r12)
	movl	16(%r14), %eax
	movl	%eax, (%r12)
	leaq	12(%r14), %rdi
	callq	_kref_get
	movq	%r13, %rdi
	callq	_dax_inode
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	movq	_DEV_DAX_BUS@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_dax_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r12)
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	xorl	%ebx, %ebx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_7:
	movq	_dax_class@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r12)
	movq	_dax_attribute_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_dev_dax_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_dev_set_name
	movq	%rbx, %rdi
	callq	_device_add
	movq	%rbx, %r15
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kill_dev_dax
	movq	%r15, %rdi
	callq	_put_device
	jmp	LBB0_11
LBB0_12:
	movq	(%r14), %rdi
	movq	_unregister_dev_dax@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_11:
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_13:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DAXDEV_F_SYNC,4,2              ## @DAXDEV_F_SYNC
	.comm	_DEV_DAX_BUS,4,2                ## @DEV_DAX_BUS
	.comm	_dax_bus_type,4,2               ## @dax_bus_type
	.comm	_dax_class,4,2                  ## @dax_class
	.comm	_dax_attribute_groups,4,2       ## @dax_attribute_groups
	.comm	_dev_dax_release,4,2            ## @dev_dax_release
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dax%d.%d"

	.comm	_unregister_dev_dax,4,2         ## @unregister_dev_dax
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___devm_create_dev_dax          ; -- Begin function __devm_create_dev_dax
	.p2align	2
___devm_create_dev_dax:                 ; @__devm_create_dev_dax
	.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
	tbnz	w1, #31, LBB0_5
; %bb.1:
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x25, [x0]
Lloh0:
	adrp	x24, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ENOMEM@GOTPAGEOFF]
	ldr	w26, [x24]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	add	x0, x0, #64
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
Lloh5:
	adrp	x8, _DAXDEV_F_SYNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DAXDEV_F_SYNC@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_alloc_dax
	cbz	x0, LBB0_7
; %bb.3:
	mov	x24, x0
	bl	_kill_dax
	add	x23, x19, #24
	mov	x0, x23
	bl	_device_initialize
	stp	x20, x24, [x19, #8]
	ldr	w8, [x20, #16]
	str	w8, [x19]
	add	x0, x20, #12
	bl	_kref_get
	mov	x0, x24
	bl	_dax_inode
	ldr	w8, [x0]
	str	w8, [x19, #56]
Lloh8:
	adrp	x8, _DEV_DAX_BUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEV_DAX_BUS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.4:
Lloh11:
	adrp	x8, _dax_bus_type@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dax_bus_type@GOTPAGEOFF]
	str	x8, [x19, #48]
	b	LBB0_9
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_6:
	ldr	w8, [x24]
	neg	w21, w8
	b	LBB0_12
LBB0_7:
	neg	w21, w26
	mov	x0, x19
	bl	_kfree
	b	LBB0_12
LBB0_8:
Lloh16:
	adrp	x8, _dax_class@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dax_class@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #40]
LBB0_9:
	str	x25, [x19, #32]
Lloh19:
	adrp	x8, _dax_attribute_groups@GOTPAGE
Lloh20:
	ldr	x8, [x8, _dax_attribute_groups@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _dev_dax_release@GOTPAGE
Lloh23:
	ldr	x9, [x9, _dev_dax_release@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	ldr	w2, [x20, #8]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x21
	bl	_dev_set_name
	mov	x0, x23
	bl	_device_add
	cbz	w0, LBB0_11
; %bb.10:
	mov	x21, x0
	mov	x0, x19
	bl	_kill_dev_dax
	mov	x0, x23
	bl	_put_device
	b	LBB0_12
LBB0_11:
	ldr	x0, [x20]
Lloh27:
	adrp	x8, _unregister_dev_dax@GOTPAGE
Lloh28:
	ldr	x8, [x8, _unregister_dev_dax@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_devm_add_action_or_reset
	mov	x21, x0
	cbz	w0, LBB0_13
LBB0_12:
	mov	x0, x21
	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
	b	_ERR_PTR
LBB0_13:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DAXDEV_F_SYNC,4,2              ; @DAXDEV_F_SYNC
	.comm	_DEV_DAX_BUS,4,2                ; @DEV_DAX_BUS
	.comm	_dax_bus_type,4,2               ; @dax_bus_type
	.comm	_dax_class,4,2                  ; @dax_class
	.comm	_dax_attribute_groups,4,2       ; @dax_attribute_groups
	.comm	_dev_dax_release,4,2            ; @dev_dax_release
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dax%d.%d"

	.comm	_unregister_dev_dax,4,2         ; @unregister_dev_dax
.subsections_via_symbols
