	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dax_pmem_probe               ## -- Begin function __dax_pmem_probe
	.p2align	4, 0x90
___dax_pmem_probe:                      ## @__dax_pmem_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	$0, -48(%rbp)
	callq	_to_nd_dax
	movq	%rax, %r13
	movl	(%r12), %edi
	callq	_to_nd_region
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_nvdimm_namespace_common_probe
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_1:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_to_nd_namespace_io
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_nsio_enable
	testl	%eax, %eax
	je	LBB0_2
## %bb.15:
	movl	%eax, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_nvdimm_setup_pfn
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %edi
	jmp	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_devm_nsio_disable
	movq	(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %edi
	callq	_le64_to_cpu
	movq	%rax, %r13
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	callq	_dev_name
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_devm_request_mem_region
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movl	%eax, %edi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_8
## %bb.10:
	leaq	-56(%rbp), %r14
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	addl	%r13d, -56(%rbp)
	movl	-64(%rbp), %ebx
	movl	(%r15), %r15d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	_PFN_DEV@GOTPCREL(%rip), %rcx
	movq	_PFN_MAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	orl	(%rcx), %r9d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_alloc_dax_region
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r14
	movl	-68(%rbp), %esi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	___devm_create_dev_dax
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_dax_region_put
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_4:
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$40, %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	"could not reserve metadata\n"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PFN_DEV,4,2                    ## @PFN_DEV
	.comm	_PFN_MAP,4,2                    ## @PFN_MAP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dax_pmem_probe               ; -- Begin function __dax_pmem_probe
	.p2align	2
___dax_pmem_probe:                      ; @__dax_pmem_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #8]
	bl	_to_nd_dax
	mov	x23, x0
	ldr	w0, [x20]
	bl	_to_nd_region
	mov	x21, x0
	mov	x0, x20
	bl	_nvdimm_namespace_common_probe
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_CAST
LBB0_2:
	mov	x0, x22
	bl	_to_nd_namespace_io
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	bl	_devm_nsio_enable
	cbz	w0, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_4:
	add	x1, sp, #8
	mov	x0, x23
	bl	_nvdimm_setup_pfn
	cbnz	w0, LBB0_13
; %bb.5:
	mov	x0, x20
	mov	x1, x24
	bl	_devm_nsio_disable
	ldr	x25, [x23]
	ldr	w0, [x25, #4]
	bl	_le64_to_cpu
	mov	x23, x0
	ldr	w24, [x24]
	mov	x0, x22
	bl	_dev_name
	mov	x3, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_devm_request_mem_region
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_dev_name
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #16
	add	x3, sp, #20
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.7:
	add	x0, sp, #24
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #24]
	add	w8, w8, w23
	str	w8, [sp, #24]
	ldr	w22, [sp, #16]
	ldr	w21, [x21]
	ldr	w0, [x25]
	bl	_le32_to_cpu
	mov	x4, x0
Lloh2:
	adrp	x8, _PFN_DEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PFN_DEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PFN_MAP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PFN_MAP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w5, w9, w8
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_alloc_dax_region
	cbz	x0, LBB0_11
; %bb.8:
	mov	x20, x0
	ldr	w1, [sp, #20]
	add	x2, sp, #8
	mov	x3, x19
	bl	___devm_create_dev_dax
	mov	x19, x0
	mov	x0, x20
	bl	_dax_region_put
	b	LBB0_14
LBB0_9:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	bl	_ERR_PTR
	mov	x19, x0
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not reserve metadata\n"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PFN_DEV,4,2                    ; @PFN_DEV
	.comm	_PFN_MAP,4,2                    ; @PFN_MAP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
