	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5000_init_csrows
_i5000_init_csrows:                     ## @i5000_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	addl	%eax, %eax
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %eax
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	%rdx, %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	(%rcx), %eax
	movl	%eax, 12(%r14)
	movq	_EDAC_S8ECD8ED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	shll	$8, %r15d
	movl	%r15d, 4(%r14)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_determine_mtr
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_MTR_DIMMS_PRESENT
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	(%rax), %r9d
	movl	4(%rax), %esi
	movl	%ebx, %eax
	cltd
	movq	_MAX_BRANCHES@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%edx, %r8d
	movl	%r9d, %edx
	movl	%eax, %ecx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %r9d
	callq	_EDAC_DIMM_PTR
	movq	%rax, %r14
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%rbx,4), %r15d
	movl	$8, (%r14)
	movq	_MEM_FB_DDR2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	%r13d, %edi
	callq	_MTR_DRAM_WIDTH
	movq	_DEV_X4@GOTPCREL(%rip), %rcx
	cmpl	$8, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_DEV_X8@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	movl	$1, %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BRANCHES,4,2               ## @MAX_BRANCHES
	.comm	_MEM_FB_DDR2,4,2                ## @MEM_FB_DDR2
	.comm	_DEV_X8,4,2                     ## @DEV_X8
	.comm	_DEV_X4,4,2                     ## @DEV_X4
	.comm	_EDAC_S8ECD8ED,4,2              ## @EDAC_S8ECD8ED
	.no_dead_strip	_i5000_init_csrows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5000_init_csrows
_i5000_init_csrows:                     ; @i5000_init_csrows
	.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
	ldr	x20, [x0, #16]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	lsl	w8, w8, #1
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x25, _DEV_X8@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DEV_X8@GOTPAGEOFF]
Lloh2:
	adrp	x26, _DEV_X4@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DEV_X4@GOTPAGEOFF]
Lloh4:
	adrp	x27, _EDAC_S8ECD8ED@GOTPAGE
Lloh5:
	ldr	x27, [x27, _EDAC_S8ECD8ED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x21, x9
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x22, x22, #1
	ldrsw	x8, [x20, #4]
	cmp	x22, x8
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_determine_mtr
	mov	x23, x0
	bl	_MTR_DIMMS_PRESENT
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldp	w1, w0, [x19, #4]
	ldr	w2, [x19]
Lloh6:
	adrp	x8, _MAX_BRANCHES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_BRANCHES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sdiv	w3, w22, w8
	msub	w4, w8, w3, w22
	mov	x5, x21
	bl	_EDAC_DIMM_PTR
	mov	x24, x0
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w28, [x8, x22, lsl #2]
	mov	w8, #8
	str	w8, [x0]
Lloh9:
	adrp	x8, _MEM_FB_DDR2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEM_FB_DDR2@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	mov	x0, x23
	bl	_MTR_DRAM_WIDTH
	cmp	w0, #8
	csel	x8, x25, x26, eq
	ldr	w10, [x8]
	ldr	w8, [x27]
	lsl	w9, w28, #8
	stp	w8, w10, [x24, #8]
	str	w9, [x24, #4]
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BRANCHES,4,2               ; @MAX_BRANCHES
	.comm	_MEM_FB_DDR2,4,2                ; @MEM_FB_DDR2
	.comm	_DEV_X8,4,2                     ; @DEV_X8
	.comm	_DEV_X4,4,2                     ; @DEV_X4
	.comm	_EDAC_S8ECD8ED,4,2              ; @EDAC_S8ECD8ED
	.no_dead_strip	_i5000_init_csrows
.subsections_via_symbols
