	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i10nm_get_dimm_config
_i10nm_get_dimm_config:                 ## @i10nm_get_dimm_config
	.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
	movq	_I10NM_NUM_CHANNELS@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	xorl	%r12d, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	(%rbx), %r12d
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$0, 4(%r15)
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_I10NM_NUM_DIMMS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_skx_get_dimm_info
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	incl	%ebx
	movq	_I10NM_NUM_DIMMS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r14), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_EDAC_DIMM_PTR
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_I10NM_GET_DIMMMTR
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_I10NM_GET_MCDDRTCFG
	movl	%eax, %r13d
	movl	(%r15), %r8d
	movl	%ebx, (%rsp)
	movl	$1, %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r9d
	callq	_edac_dbg
	movl	%r14d, %edi
	callq	_IS_DIMM_PRESENT
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_IS_NVDIMM_PRESENT
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_EDAC_MOD_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_skx_get_nvdimm_info
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	_I10NM_NUM_CHANNELS@GOTPCREL(%rip), %rbx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_i10nm_check_ecc
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %ecx
	callq	_i10nm_printk
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I10NM_NUM_CHANNELS,4,2         ## @I10NM_NUM_CHANNELS
	.comm	_I10NM_NUM_DIMMS,4,2            ## @I10NM_NUM_DIMMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dimmmtr 0x%x mcddrtcfg 0x%x (mc%d ch%d dimm%d)\n"

	.comm	_EDAC_MOD_STR,4,2               ## @EDAC_MOD_STR
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.1:                               ## @.str.1
	.asciz	"ECC is disabled on imc %d channel %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_i10nm_get_dimm_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i10nm_get_dimm_config
_i10nm_get_dimm_config:                 ; @i10nm_get_dimm_config
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x23, _I10NM_NUM_CHANNELS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _I10NM_NUM_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x20, x0
	mov	w19, #0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
Lloh2:
	adrp	x28, _I10NM_NUM_DIMMS@GOTPAGE
Lloh3:
	ldr	x28, [x28, _I10NM_NUM_DIMMS@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
	ldr	w8, [x23]
	cmp	w19, w8
	b.ge	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w8, [x21, #4]
	ldr	w9, [x28]
	cmp	w8, #0
	ccmp	w9, #1, #8, ne
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
	mov	w23, #0
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x25
	mov	w1, #0
	mov	x2, x24
	mov	x3, x21
	mov	x4, x19
	mov	x5, x23
	bl	_skx_get_dimm_info
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w27, w27, w0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w23, w23, #1
	ldr	w8, [x28]
	cmp	w23, w8
	b.ge	LBB0_11
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w1, w0, [x20, #4]
	ldr	w2, [x20]
	mov	x3, x19
	mov	x4, x23
	mov	w5, #0
	bl	_EDAC_DIMM_PTR
	mov	x24, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_I10NM_GET_DIMMMTR
	mov	x25, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_I10NM_GET_MCDDRTCFG
	mov	x26, x0
	ldr	w4, [x21]
	mov	w0, #1
	mov	x1, x22
	mov	x2, x25
	mov	x3, x26
	mov	x5, x19
	mov	x6, x23
	bl	_edac_dbg
	mov	x0, x25
	bl	_IS_DIMM_PRESENT
	cbnz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x26
	mov	x1, x23
	bl	_IS_NVDIMM_PRESENT
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh6:
	adrp	x8, _EDAC_MOD_STR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDAC_MOD_STR@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x24
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	bl	_skx_get_nvdimm_info
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x23, _I10NM_NUM_CHANNELS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _I10NM_NUM_CHANNELS@GOTPAGEOFF]
	cbz	w27, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_i10nm_check_ecc
	cbnz	w0, LBB0_2
; %bb.13:
Lloh11:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w2, [x21]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_i10nm_printk
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_I10NM_NUM_CHANNELS,4,2         ; @I10NM_NUM_CHANNELS
	.comm	_I10NM_NUM_DIMMS,4,2            ; @I10NM_NUM_DIMMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dimmmtr 0x%x mcddrtcfg 0x%x (mc%d ch%d dimm%d)\n"

	.comm	_EDAC_MOD_STR,4,2               ; @EDAC_MOD_STR
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.1:                               ; @.str.1
	.asciz	"ECC is disabled on imc %d channel %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_i10nm_get_dimm_config
.subsections_via_symbols
