	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nvdimm_create                ## -- Begin function __nvdimm_create
	.p2align	4, 0x90
___nvdimm_create:                       ## @__nvdimm_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$136, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	(%r12), %ecx
	movq	_dimm_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movq	24(%rbp), %rax
	movq	16(%rbp), %rdx
	movq	%rax, 8(%rbx)
	movq	%r15, 128(%rbx)
	movq	_NDD_NOBLK@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	_noblk@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	cltq
	cmoveq	%rcx, %rax
	orq	%r14, %rax
	movq	%rax, 16(%rbx)
	movq	%r13, 24(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rbx)
	movq	%rdx, 120(%rbx)
	leaq	112(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	80(%rbx), %r12
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_set_name
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 104(%rbx)
	movq	_nvdimm_device_type@GOTPCREL(%rip), %rax
	movq	%rax, 96(%rbx)
	movq	_nvdimm_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_MKDEV
	movl	%eax, 88(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 80(%rbx)
	movq	32(%rbp), %rax
	movq	%rax, 64(%rbx)
	movq	$0, 56(%rbx)
	movq	%rbx, %rdi
	addq	$72, %rdi
	movq	_nvdimm_security_overwrite_query@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	_NVDIMM_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nvdimm_security_flags
	movq	%rax, 48(%rbx)
	movq	_NVDIMM_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nvdimm_security_flags
	movq	%rax, 40(%rbx)
	movq	%r12, %rdi
	callq	_nd_device_register
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$24, %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
	.comm	_dimm_ida,4,2                   ## @dimm_ida
	.comm	_noblk,8,3                      ## @noblk
	.comm	_NDD_NOBLK,4,2                  ## @NDD_NOBLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nmem%d"

	.comm	_nvdimm_device_type,4,2         ## @nvdimm_device_type
	.comm	_nvdimm_major,4,2               ## @nvdimm_major
	.comm	_nvdimm_security_overwrite_query,4,2 ## @nvdimm_security_overwrite_query
	.comm	_NVDIMM_USER,4,2                ## @NVDIMM_USER
	.comm	_NVDIMM_MASTER,4,2              ## @NVDIMM_MASTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nvdimm_create                ; -- Begin function __nvdimm_create
	.p2align	2
___nvdimm_create:                       ; @__nvdimm_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	x24, x7
	mov	x22, x6
	mov	x23, x5
	mov	x25, x4
	mov	x27, x3
	mov	x20, x2
	mov	x26, x1
	mov	x21, x0
Lloh0:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	w0, #136
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w3, [x28]
Lloh2:
	adrp	x0, _dimm_ida@GOTPAGE
Lloh3:
	ldr	x0, [x0, _dimm_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	str	x0, [x19]
	tbnz	x0, #63, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _NDD_NOBLK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NDD_NOBLK@GOTPAGEOFF]
	ldr	x28, [x29, #16]
Lloh6:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh7:
	adrp	x9, _noblk@GOTPAGE
Lloh8:
	ldr	x9, [x9, _noblk@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	sxtw	x8, w8
	cmp	x9, #0
	csel	x8, xzr, x8, eq
	orr	x8, x8, x27
	stp	x24, x8, [x19, #8]
	str	x25, [x19, #24]
	str	w23, [x19, #32]
	stp	x22, x26, [x19, #120]
	add	x0, x19, #112
	mov	w1, #0
	bl	_atomic_set
	add	x22, x19, #80
	ldr	x2, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_set_name
Lloh12:
	adrp	x8, _nvdimm_device_type@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nvdimm_device_type@GOTPAGEOFF]
	stp	x8, x21, [x19, #96]
Lloh14:
	adrp	x8, _nvdimm_major@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nvdimm_major@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_MKDEV
	str	w0, [x19, #88]
	str	x20, [x19, #80]
	stp	xzr, x28, [x19, #56]
	add	x0, x19, #72
Lloh17:
	adrp	x8, _nvdimm_security_overwrite_query@GOTPAGE
Lloh18:
	ldr	x8, [x8, _nvdimm_security_overwrite_query@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh20:
	adrp	x8, _NVDIMM_USER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NVDIMM_USER@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvdimm_security_flags
	str	x0, [x19, #48]
Lloh23:
	adrp	x8, _NVDIMM_MASTER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NVDIMM_MASTER@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvdimm_security_flags
	str	x0, [x19, #40]
	mov	x0, x22
	bl	_nd_device_register
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_dimm_ida,4,2                   ; @dimm_ida
	.comm	_noblk,8,3                      ; @noblk
	.comm	_NDD_NOBLK,4,2                  ; @NDD_NOBLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nmem%d"

	.comm	_nvdimm_device_type,4,2         ; @nvdimm_device_type
	.comm	_nvdimm_major,4,2               ; @nvdimm_major
	.comm	_nvdimm_security_overwrite_query,4,2 ; @nvdimm_security_overwrite_query
	.comm	_NVDIMM_USER,4,2                ; @NVDIMM_USER
	.comm	_NVDIMM_MASTER,4,2              ; @NVDIMM_MASTER
.subsections_via_symbols
