	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_pmem_region_probe
_of_pmem_region_probe:                  ## @of_pmem_region_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	$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
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_dev_of_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	_bus_attr_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	20(%r15), %edi
	movl	(%r13), %esi
	callq	_kstrdup
	movl	%eax, 12(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%rbx, (%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_nvdimm_bus_register
	movq	%rax, 24(%r12)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str(%rip), %r13
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_of_find_property
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rdx
	cmovneq	%r13, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_dev_dbg
	cmpl	$0, (%r15)
	jle	LBB0_17
## %bb.8:
	xorl	%r13d, %r13d
	leaq	-96(%rbp), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rcx
	callq	_dev_dbg
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_region_attr_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r14, %rdi
	callq	_dev_to_node
	movl	%eax, -72(%rbp)
	movl	%eax, -68(%rbp)
	movq	8(%r15), %rax
	addq	%r13, %rax
	movq	%rax, -96(%rbp)
	movq	%rbx, -80(%rbp)
	movq	_ND_REGION_PAGEMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-88(%rbp), %rsi
	callq	_set_bit
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_nvdimm_volatile_region_create
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_nvdimm_pmem_region_create
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %rdx
	movq	%r14, %rdi
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rcx
	callq	_dev_warn
	jmp	LBB0_15
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%r12d, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bus_attr_groups,4,2            ## @bus_attr_groups
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"volatile"

L_.str.1:                               ## @.str.1
	.asciz	"Registering %s regions from %pOF\n"

L_.str.2:                               ## @.str.2
	.asciz	"non-volatile"

	.comm	_region_attr_groups,4,2         ## @region_attr_groups
	.comm	_ND_REGION_PAGEMAP,4,2          ## @ND_REGION_PAGEMAP
L_.str.3:                               ## @.str.3
	.asciz	"Unable to register region %pR from %pOF\n"

L_.str.4:                               ## @.str.4
	.asciz	"Registered region %pR from %pOF\n"

	.no_dead_strip	_of_pmem_region_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_pmem_region_probe
_of_pmem_region_probe:                  ; @of_pmem_region_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_dev_of_node
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.2:
	mov	x23, x0
Lloh2:
	adrp	x8, _bus_attr_groups@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bus_attr_groups@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	w0, [x19, #20]
	ldr	w1, [x22]
	bl	_kstrdup
Lloh5:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w0, [x23, #8]
	str	x21, [x23]
	mov	x0, x20
	mov	x1, x23
	bl	_nvdimm_bus_register
	str	x0, [x23, #24]
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x23
	bl	_platform_set_drvdata
Lloh8:
	adrp	x24, l_.str@PAGE
Lloh9:
	add	x24, x24, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x24
	mov	x2, #0
	bl	_of_find_property
	mov	x23, x0
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x2, x8, x24, eq
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_dev_dbg
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x27, #0
	add	x8, sp, #8
	add	x24, x8, #8
Lloh14:
	adrp	x28, _region_attr_groups@GOTPAGE
Lloh15:
	ldr	x28, [x28, _region_attr_groups@GOTPAGEOFF]
Lloh16:
	adrp	x25, _ND_REGION_PAGEMAP@GOTPAGE
Lloh17:
	ldr	x25, [x25, _ND_REGION_PAGEMAP@GOTPAGEOFF]
Lloh18:
	adrp	x26, l_.str.4@PAGE
Lloh19:
	add	x26, x26, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x26
	mov	x3, x21
	bl	_dev_dbg
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x19]
	cmp	x27, x8
	b.ge	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w8, [x28]
	str	w8, [sp, #40]
	mov	x0, x20
	bl	_dev_to_node
	stp	w0, w0, [sp, #32]
	ldr	x8, [x19, #8]
	add	x8, x8, x27
	str	x8, [sp, #8]
	str	x21, [sp, #24]
	ldr	w0, [x25]
	mov	x1, x24
	bl	_set_bit
	add	x1, sp, #8
	mov	x0, x22
	cbz	w23, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_nvdimm_volatile_region_create
	ldr	x2, [sp, #8]
	cbnz	x0, LBB0_5
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_nvdimm_pmem_region_create
	ldr	x2, [sp, #8]
	cbnz	x0, LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x21
	bl	_dev_warn
	b	LBB0_6
LBB0_11:
Lloh22:
	adrp	x8, _ENXIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	mov	w0, #0
	b	LBB0_16
LBB0_13:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	mov	x0, x23
	bl	_kfree
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bus_attr_groups,4,2            ; @bus_attr_groups
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"volatile"

l_.str.1:                               ; @.str.1
	.asciz	"Registering %s regions from %pOF\n"

l_.str.2:                               ; @.str.2
	.asciz	"non-volatile"

	.comm	_region_attr_groups,4,2         ; @region_attr_groups
	.comm	_ND_REGION_PAGEMAP,4,2          ; @ND_REGION_PAGEMAP
l_.str.3:                               ; @.str.3
	.asciz	"Unable to register region %pR from %pOF\n"

l_.str.4:                               ; @.str.4
	.asciz	"Registered region %pR from %pOF\n"

	.no_dead_strip	_of_pmem_region_probe
.subsections_via_symbols
