	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_dpa_allocation
_init_dpa_allocation:                   ## @init_dpa_allocation
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_ndd
	movq	%rax, %r12
	movq	(%rbx), %rdx
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	subq	%r15, %rdx
	addq	8(%rbx), %rdx
LBB0_2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rcx
	callq	_nvdimm_allocate_dpa
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%r14d, %r14d
	testq	%rax, %rax
	cmovnel	%r14d, %ebx
	leaq	L_.str.1(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rax, %rdx
	movl	%ebx, %r8d
	callq	_nd_dbg_dpa
	testl	%ebx, %ebx
	cmovneq	%r15, %r14
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blk"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"init %d\n"

	.no_dead_strip	_init_dpa_allocation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_dpa_allocation
_init_dpa_allocation:                   ; @init_dpa_allocation
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	mov	x24, x0
	mov	x0, x23
	bl	_to_ndd
	mov	x22, x0
	ldr	x2, [x23]
	cbnz	x24, LBB0_2
; %bb.1:
	ldr	x8, [x23, #8]
	sub	x9, x2, x19
	add	x2, x9, x8
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_nvdimm_allocate_dpa
	mov	x2, x0
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w21, wzr, w8, ne
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x4, x21
	bl	_nd_dbg_dpa
	cmp	w21, #0
	csel	x0, xzr, x19, eq
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blk"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"init %d\n"

	.no_dead_strip	_init_dpa_allocation
.subsections_via_symbols
