	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvdimm_init_nsarea             ## -- Begin function nvdimm_init_nsarea
	.p2align	4, 0x90
_nvdimm_init_nsarea:                    ## @nvdimm_init_nsarea
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_walk_to_nvdimm_bus
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_validate_dimm
	movl	$0, -36(%rbp)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	8(%rbx), %r14
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r15), %r15
	movq	(%r15), %r12
	movl	(%rbx), %edi
	callq	_to_nvdimm
	movq	_ND_CMD_GET_CONFIG_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-36(%rbp), %r9
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rcx
	movl	$8, %r8d
	callq	*%r12
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	-36(%rbp), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ND_CMD_GET_CONFIG_SIZE,4,2     ## @ND_CMD_GET_CONFIG_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvdimm_init_nsarea             ; -- Begin function nvdimm_init_nsarea
	.p2align	2
_nvdimm_init_nsarea:                    ; @nvdimm_init_nsarea
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	mov	x19, x0
	ldr	w0, [x19], #8
	bl	_walk_to_nvdimm_bus
	mov	x21, x0
	mov	x0, x20
	bl	_validate_dimm
	str	wzr, [sp, #12]
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x21, [x21]
	ldr	x22, [x21]
	ldr	w0, [x20]
	bl	_to_nvdimm
	mov	x1, x0
Lloh0:
	adrp	x8, _ND_CMD_GET_CONFIG_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ND_CMD_GET_CONFIG_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x5, sp, #12
	mov	x0, x21
	mov	x3, x19
	mov	w4, #8
	blr	x22
	ldr	w8, [sp, #12]
	cmp	w0, #0
	csel	w0, w0, w8, lt
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ND_CMD_GET_CONFIG_SIZE,4,2     ; @ND_CMD_GET_CONFIG_SIZE
.subsections_via_symbols
