	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5100_init_csrows
_i5100_init_csrows:                     ## @i5100_init_csrows
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_MEM_RDDR2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_EDAC_SECDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	12(%rax), %r15d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_i5100_rank_to_slot
	movl	%r15d, %edi
	movl	$4, %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_snprintf
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_PAGES_TO_MiB
	movl	$2, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movq	%rax, %r8
	callq	_edac_dbg
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_i5100_npages
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_i5100_csrow_to_chan
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_i5100_csrow_to_rank
	testq	%r15, %r15
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movl	12(%r14), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_EDAC_DIMM_PTR
	movq	%r15, (%rax)
	movl	$32, 8(%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%r13d, %edx
	movq	(%rcx,%rdx,8), %rcx
	movl	%r12d, %edx
	cmpl	$4, (%rcx,%rdx,4)
	movq	_DEV_X8@GOTPCREL(%rip), %rcx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DEV_X4@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_X4,4,2                     ## @DEV_X4
	.comm	_DEV_X8,4,2                     ## @DEV_X8
	.comm	_MEM_RDDR2,4,2                  ## @MEM_RDDR2
	.comm	_EDAC_SECDED,4,2                ## @EDAC_SECDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DIMM%u"

L_.str.1:                               ## @.str.1
	.asciz	"dimm channel %d, rank %d, size %ld\n"

	.no_dead_strip	_i5100_init_csrows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5100_init_csrows
_i5100_init_csrows:                     ; @i5100_init_csrows
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	ldr	x27, [x0, #16]
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x28, _EDAC_SECDED@GOTPAGE
Lloh3:
	ldr	x28, [x28, _EDAC_SECDED@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_i5100_npages
	mov	x24, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i5100_csrow_to_chan
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i5100_csrow_to_rank
	cbz	x24, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x19, #4]
	mov	x3, x23
	mov	x4, x25
	mov	w5, #0
	bl	_EDAC_DIMM_PTR
	str	x24, [x0]
	ldr	x8, [x27]
	ldr	x8, [x8, w23, uxtw #3]
	mov	w9, #32
	str	w9, [x0, #8]
	ldr	w8, [x8, w25, uxtw #2]
	cmp	w8, #4
Lloh6:
	adrp	x8, _DEV_X4@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEV_X4@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DEV_X8@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DEV_X8@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh10:
	adrp	x8, _MEM_RDDR2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MEM_RDDR2@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x28]
	stp	w9, w8, [x0, #16]
	ldr	w26, [x0, #12]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	bl	_i5100_rank_to_slot
	mov	x3, x0
	mov	x0, x26
	mov	w1, #4
	mov	x2, x21
	bl	_snprintf
	mov	x0, x24
	bl	_PAGES_TO_MiB
	mov	x4, x0
	mov	w0, #2
	mov	x1, x22
	mov	x2, x23
	mov	x3, x25
	bl	_edac_dbg
	b	LBB0_2
LBB0_5:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_X4,4,2                     ; @DEV_X4
	.comm	_DEV_X8,4,2                     ; @DEV_X8
	.comm	_MEM_RDDR2,4,2                  ; @MEM_RDDR2
	.comm	_EDAC_SECDED,4,2                ; @EDAC_SECDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DIMM%u"

l_.str.1:                               ; @.str.1
	.asciz	"dimm channel %d, rank %d, size %ld\n"

	.no_dead_strip	_i5100_init_csrows
.subsections_via_symbols
