	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvdimm_get_config_data         ## -- Begin function nvdimm_get_config_data
	.p2align	4, 0x90
_nvdimm_get_config_data:                ## @nvdimm_get_config_data
	.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	$72, %rsp
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_walk_to_nvdimm_bus
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_validate_dimm
	movl	%eax, %r14d
	movl	$0, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r15, %rax
	cmpq	8(%rbx), %rax
	jbe	LBB0_3
## %bb.2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movq	%r15, %rsi
	callq	_min_t
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	24(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kvzalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	testq	%r15, %r15
	je	LBB0_11
## %bb.5:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	movq	%rax, 8(%rbx)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	callq	_min
	movl	%eax, (%rbx)
	movq	%rbx, %r13
	movslq	%eax, %rbx
	addq	$24, %rbx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_to_nvdimm
	movq	_ND_CMD_GET_CONFIG_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r13, %rcx
	movq	%rbx, %r8
	leaq	-44(%rbp), %r9
	callq	*%r14
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %r14d
	testl	%r14d, %r14d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	js	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %rdi
	movl	(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_memcpy
	movslq	(%rbx), %rax
	addq	%rax, %r12
	movl	%r13d, %r14d
	subq	%rax, %r15
	jne	LBB0_6
	jmp	LBB0_14
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_12:
	movl	%r13d, %r14d
LBB0_13:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movq	%rbx, %rdi
	callq	_kvfree
LBB0_15:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_u32,4,2                        ## @u32
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ND_CMD_GET_CONFIG_DATA,4,2     ## @ND_CMD_GET_CONFIG_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvdimm_get_config_data         ; -- Begin function nvdimm_get_config_data
	.p2align	2
_nvdimm_get_config_data:                ; @nvdimm_get_config_data
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_walk_to_nvdimm_bus
	ldr	x23, [x0]
	mov	x0, x22
	bl	_validate_dimm
	mov	x26, x0
	str	wzr, [sp, #12]
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	x8, [x22, #8]
	add	x9, x19, x20
	cmp	x9, x8
	b.ls	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh2:
	adrp	x8, _u32@GOTPAGE
Lloh3:
	ldr	x8, [x8, _u32@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w2, [x22, #16]
	mov	x1, x19
	bl	_min_t
	mov	x25, x0
	add	x0, x0, #24
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x24, x0
	cbz	x19, LBB0_11
; %bb.5:
	mov	x27, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x27, x20
	str	x8, [x24, #8]
	mov	x0, x25
	mov	x1, x19
	bl	_min
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x24]
	sxtw	x8, w0
	add	x26, x8, #24
	ldr	x28, [x23]
	ldr	w0, [x22]
	bl	_to_nvdimm
	mov	x1, x0
Lloh8:
	adrp	x8, _ND_CMD_GET_CONFIG_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ND_CMD_GET_CONFIG_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x5, sp, #12
	mov	x0, x23
	mov	x3, x24
	mov	x4, x26
	blr	x28
	mov	x26, x0
	tbnz	w0, #31, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x21, x27
	ldr	w1, [x24, #16]
	ldr	w2, [x24]
	bl	_memcpy
	ldrsw	x8, [x24]
	add	x27, x27, x8
	subs	x19, x19, x8
	b.ne	LBB0_6
	b	LBB0_13
LBB0_9:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_14
LBB0_11:
	mov	w26, #0
	b	LBB0_13
LBB0_12:
	mov	x26, x8
LBB0_13:
	mov	x0, x24
	bl	_kvfree
LBB0_14:
	mov	x0, x26
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_u32,4,2                        ; @u32
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ND_CMD_GET_CONFIG_DATA,4,2     ; @ND_CMD_GET_CONFIG_DATA
.subsections_via_symbols
