	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nd_pfn_init
_nd_pfn_init:                           ## @nd_pfn_init
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	40(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_to_nd_namespace_io
	movq	%rax, %r14
	leaq	24(%r15), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$96, %esi
	callq	_devm_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, 32(%r15)
	movq	%r12, %rdi
	callq	_is_nd_dax
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.2:
	movq	_PFN_SIG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_4:
	movq	_DAX_SIG@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nd_pfn_validate
	movl	%eax, %r13d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	addl	(%rax), %ecx
	jne	LBB0_18
## %bb.6:
	xorl	%r13d, %r13d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movl	(%r12), %edi
	callq	_to_nd_region
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	movq	%rax, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_info
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_17:
	subl	(%rax), %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_resource_size
	movq	%rax, %r13
	movq	_SZ_8K@GOTPCREL(%rip), %rax
	movq	%r13, %rdi
	subq	(%rax), %rdi
	callq	_PHYS_PFN
	movq	%rax, %r14
	movq	(%r15), %rdi
	movq	_SUBSECTION_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	callq	_max
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r13), %rdi
	movq	%rcx, %r13
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_ALIGN_DOWN
	movq	8(%r15), %rdx
	movq	_PFN_MODE_PMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_10
## %bb.9:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_STRUCT_PAGE_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$4, (%rax)
	setb	%dil
	callq	_BUILD_BUG_ON
	movq	_SZ_8K@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r13, %rax
	movq	_MAX_STRUCT_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rcx, %r14
	addq	%rax, %r14
	jmp	LBB0_12
LBB0_10:
	movq	_SZ_8K@GOTPCREL(%rip), %rsi
	movq	_PFN_MODE_RAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_15
## %bb.11:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r14
	addq	%r13, %r14
LBB0_12:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_ALIGN
	movq	%rax, %r14
	subq	%r13, %r14
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%r14, %rdi
	jle	LBB0_14
## %bb.13:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	subq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	subq	%r13, %rdi
	subq	%r14, %rdi
	callq	_PHYS_PFN
	movq	%rax, %r12
	movq	8(%r15), %rdi
	callq	_cpu_to_le32
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 88(%rbx)
	movq	%r14, %rdi
	callq	_cpu_to_le64
	movq	%rax, 80(%rbx)
	movq	%r12, %rdi
	callq	_cpu_to_le64
	movq	%rax, 72(%rbx)
	movl	64(%rbx), %edi
	movq	_PFN_SIG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	60(%rbx), %edi
	movq	16(%r15), %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	56(%rbx), %r14d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_nd_dev_to_uuid
	movl	%r14d, %edi
	movq	%rax, %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	$1, %edi
	callq	_cpu_to_le16
	movq	%rax, 48(%rbx)
	movl	$4, %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%rbx)
	movq	%r13, %rdi
	callq	_cpu_to_le32
	movq	%rax, 32(%rbx)
	movq	(%r15), %rdi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movq	_MAX_STRUCT_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_nd_sb_checksum
	movq	%rax, %rdi
	callq	_cpu_to_le64
	movq	%rax, (%rbx)
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	$96, %ecx
	xorl	%r8d, %r8d
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvdimm_write_bytes             ## TAILCALL
LBB0_14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_15:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DAX_SIG,8,3                    ## @DAX_SIG
	.comm	_PFN_SIG,8,3                    ## @PFN_SIG
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s is read-only, unable to init metadata\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SZ_8K,8,3                      ## @SZ_8K
	.comm	_SUBSECTION_SHIFT,8,3           ## @SUBSECTION_SHIFT
	.comm	_PFN_MODE_PMEM,8,3              ## @PFN_MODE_PMEM
	.comm	_MAX_STRUCT_PAGE_SIZE,4,2       ## @MAX_STRUCT_PAGE_SIZE
	.comm	_PFN_MODE_RAM,8,3               ## @PFN_MODE_RAM
L_.str.1:                               ## @.str.1
	.asciz	"%s unable to satisfy requested alignment\n"

	.comm	_PFN_SIG_LEN,4,2                ## @PFN_SIG_LEN
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_SZ_4K,4,2                      ## @SZ_4K
	.no_dead_strip	_nd_pfn_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nd_pfn_init
_nd_pfn_init:                           ; @nd_pfn_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	ldr	x19, [x0, #40]
	mov	x0, x19
	bl	_to_nd_namespace_io
	mov	x24, x0
	add	x22, x21, #24
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #96
	bl	_devm_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	str	x0, [x21, #32]
	mov	x0, x22
	bl	_is_nd_dax
Lloh3:
	adrp	x8, _PFN_SIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PFN_SIG@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DAX_SIG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DAX_SIG@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	x23, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_nd_pfn_validate
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	ldr	w0, [x22]
	bl	_to_nd_region
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.3:
	bl	_dev_name
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_info
LBB0_4:
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	x26, [x24]
	mov	x0, x24
	bl	_resource_size
	mov	x24, x0
Lloh16:
	adrp	x8, _SZ_8K@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SZ_8K@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	sub	x0, x0, x8
	bl	_PHYS_PFN
	mov	x28, x0
	ldr	x0, [x21]
Lloh19:
	adrp	x8, _SUBSECTION_SHIFT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUBSECTION_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x1, x9, x8
	bl	_max
	mov	x27, x0
	add	x25, x24, x26
	mov	x0, x25
	mov	x1, x27
	bl	_ALIGN_DOWN
	ldr	x8, [x21, #8]
Lloh22:
	adrp	x9, _PFN_MODE_PMEM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PFN_MODE_PMEM@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh25:
	adrp	x8, _MAX_STRUCT_PAGE_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAX_STRUCT_PAGE_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w8, #4
	cset	w0, lo
	bl	_BUILD_BUG_ON
Lloh28:
	adrp	x8, _SZ_8K@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SZ_8K@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x8, x8, x26
Lloh31:
	adrp	x9, _MAX_STRUCT_PAGE_SIZE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MAX_STRUCT_PAGE_SIZE@GOTPAGEOFF]
Lloh33:
	ldrsw	x9, [x9]
	madd	x0, x28, x9, x8
	b	LBB0_12
LBB0_10:
Lloh34:
	adrp	x10, _SZ_8K@GOTPAGE
Lloh35:
	ldr	x10, [x10, _SZ_8K@GOTPAGEOFF]
Lloh36:
	adrp	x9, _PFN_MODE_RAM@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PFN_MODE_RAM@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.11:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x10]
	add	x0, x8, x26
LBB0_12:
	mov	x1, x27
	bl	_ALIGN
	sub	x27, x0, x26
	cmp	x24, x27
	b.le	LBB0_14
; %bb.13:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sub	x22, x25, x8
	add	x8, x22, x27
	sub	x0, x24, x8
	bl	_PHYS_PFN
	mov	x24, x0
	ldr	x0, [x21, #8]
	bl	_cpu_to_le32
	str	x0, [x20, #88]
	mov	x0, x27
	bl	_cpu_to_le64
	str	x0, [x20, #80]
	mov	x0, x24
	bl	_cpu_to_le64
	str	x0, [x20, #72]
	ldr	w0, [x20, #64]
Lloh39:
	adrp	x8, _PFN_SIG_LEN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PFN_SIG_LEN@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_memcpy
	ldr	w0, [x20, #60]
	ldr	x1, [x21, #16]
	mov	w2, #16
	bl	_memcpy
	ldr	w23, [x20, #56]
	mov	x0, x19
	bl	_nd_dev_to_uuid
	mov	x1, x0
	mov	x0, x23
	mov	w2, #16
	bl	_memcpy
	mov	w0, #1
	bl	_cpu_to_le16
	str	x0, [x20, #48]
	mov	w0, #4
	bl	_cpu_to_le16
	str	x0, [x20, #40]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x20, #32]
	ldr	x0, [x21]
	bl	_cpu_to_le32
	str	x0, [x20, #24]
Lloh42:
	adrp	x8, _MAX_STRUCT_PAGE_SIZE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MAX_STRUCT_PAGE_SIZE@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x20, #16]
Lloh45:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh47:
	ldr	x0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #8]
	mov	x0, x20
	bl	_nd_sb_checksum
	bl	_cpu_to_le64
	str	x0, [x20]
Lloh48:
	adrp	x8, _SZ_4K@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SZ_4K@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #96
	mov	w4, #0
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nvdimm_write_bytes
LBB0_14:
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh51:
	adrp	x1, l_.str.1@PAGE
Lloh52:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DAX_SIG,8,3                    ; @DAX_SIG
	.comm	_PFN_SIG,8,3                    ; @PFN_SIG
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s is read-only, unable to init metadata\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SZ_8K,8,3                      ; @SZ_8K
	.comm	_SUBSECTION_SHIFT,8,3           ; @SUBSECTION_SHIFT
	.comm	_PFN_MODE_PMEM,8,3              ; @PFN_MODE_PMEM
	.comm	_MAX_STRUCT_PAGE_SIZE,4,2       ; @MAX_STRUCT_PAGE_SIZE
	.comm	_PFN_MODE_RAM,8,3               ; @PFN_MODE_RAM
l_.str.1:                               ; @.str.1
	.asciz	"%s unable to satisfy requested alignment\n"

	.comm	_PFN_SIG_LEN,4,2                ; @PFN_SIG_LEN
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_SZ_4K,4,2                      ; @SZ_4K
	.no_dead_strip	_nd_pfn_init
.subsections_via_symbols
