	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_pfn_probe                   ## -- Begin function nd_pfn_probe
	.p2align	4, 0x90
_nd_pfn_probe:                          ## @nd_pfn_probe
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	4(%rsi), %edi
	callq	_to_nd_region
	cmpq	$0, 8(%rbx)
	jne	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.4:
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_nvdimm_bus_lock
	movq	%r14, %rdi
	callq	_nd_pfn_alloc
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_nd_pfn_devinit
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_nvdimm_bus_unlock
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_devm_kmalloc
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_to_nd_pfn
	movq	%rax, %r12
	movq	%rbx, 8(%rax)
	movq	_PFN_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_nd_pfn_validate
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_dev_dbg
	testl	%ebx, %ebx
	jns	LBB0_8
## %bb.10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_nd_detach_ndns
	movq	%r14, %rdi
	callq	_put_device
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_dev_dbg
LBB0_8:
	movq	%r14, %rdi
	callq	___nd_device_register
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PFN_SIG,4,2                    ## @PFN_SIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pfn: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"<none>"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_pfn_probe                   ; -- Begin function nd_pfn_probe
	.p2align	2
_nd_pfn_probe:                          ; @nd_pfn_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	mov	x21, x1
	ldr	w0, [x21, #4]!
	bl	_to_nd_region
	ldur	x8, [x21, #4]
	cbnz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	bl	_nvdimm_bus_lock
	mov	x0, x22
	bl	_nd_pfn_alloc
	mov	x1, x20
	bl	_nd_pfn_devinit
	mov	x20, x0
	mov	x0, x21
	bl	_nvdimm_bus_unlock
	cbz	x20, LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_devm_kmalloc
	mov	x21, x0
	mov	x0, x20
	bl	_to_nd_pfn
	mov	x22, x0
	str	x21, [x0, #8]
Lloh3:
	adrp	x8, _PFN_SIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PFN_SIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_nd_pfn_validate
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	tbz	w21, #31, LBB0_11
; %bb.5:
	mov	x0, x20
	mov	x1, x22
	bl	_nd_detach_ndns
	mov	x0, x20
	bl	_put_device
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	mov	x0, x20
	bl	_dev_name
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_11:
	mov	x0, x20
	bl	___nd_device_register
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PFN_SIG,4,2                    ; @PFN_SIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pfn: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"<none>"

.subsections_via_symbols
