	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i7300_init_csrows
_i7300_init_csrows:                     ## @i7300_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, %r12
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	32(%rbx), %edi
	callq	_IS_SINGLE_MODE
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_MAX_BRANCHES@GOTPCREL(%rip), %rax
	movq	_MAX_CH_PER_BRANCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rax), %ecx
LBB0_2:
	movl	%ecx, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_to_channel
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %rcx
	movl	(%rcx,%rbx,4), %edi
	movq	_AMBPRESENT_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movslq	%eax, %r14
	leaq	(,%r14,4), %rdx
	addq	24(%r15), %rdx
	callq	_pci_read_config_word
	movq	24(%r15), %rax
	movl	(%rax,%r14,4), %ecx
	movl	$2, %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_edac_dbg
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_to_channel
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %rcx
	movl	(%rcx,%rbx,4), %edi
	movq	_AMBPRESENT_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movslq	%eax, %r14
	leaq	(,%r14,4), %rdx
	addq	24(%r15), %rdx
	callq	_pci_read_config_word
	movq	24(%r15), %rax
	movl	(%rax,%r14,4), %ecx
	movl	$2, %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_edac_dbg
	jmp	LBB0_6
LBB0_7:
	movq	_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.8:
	xorl	%ebx, %ebx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_19
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	testl	%edx, %edx
	jle	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_mtr_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r13
	cmpq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_17
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	16(%rcx), %rcx
	leaq	(,%r13,4), %rdx
	movl	(%rcx,%r13,4), %edi
	addq	(%rax,%rbx,8), %rdx
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_pci_read_config_word
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=3
	incl	%r14d
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_to_channel
	movl	%eax, %r15d
	movl	8(%r12), %edi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_EDAC_DIMM_PTR
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rcx
	movslq	%r15d, %r8
	shlq	$2, %r8
	addq	(%rcx,%rbx,8), %r8
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movq	%rax, %r9
	callq	_decode_mtr
	movl	%eax, %edi
	callq	_MTR_DIMMS_PRESENT
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
LBB0_19:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory Technology Registers:\n"

	.comm	_MAX_BRANCHES,4,2               ## @MAX_BRANCHES
	.comm	_MAX_CH_PER_BRANCH,4,2          ## @MAX_CH_PER_BRANCH
	.comm	_AMBPRESENT_0,4,2               ## @AMBPRESENT_0
L_.str.1:                               ## @.str.1
	.asciz	"\t\tAMB-present CH%d = 0x%x:\n"

	.comm	_AMBPRESENT_1,4,2               ## @AMBPRESENT_1
	.comm	_MAX_SLOTS,4,2                  ## @MAX_SLOTS
	.comm	_mtr_regs,8,3                   ## @mtr_regs
	.no_dead_strip	_i7300_init_csrows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i7300_init_csrows
_i7300_init_csrows:                     ; @i7300_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
	mov	x20, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	ldr	x21, [x0, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_edac_dbg
	ldr	w0, [x21, #32]
	bl	_IS_SINGLE_MODE
Lloh5:
	adrp	x8, _MAX_BRANCHES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_BRANCHES@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MAX_CH_PER_BRANCH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAX_CH_PER_BRANCH@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	cmp	x0, #0
	csinc	w27, w9, wzr, eq
	csinc	w28, w8, wzr, eq
	cmp	w28, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
Lloh11:
	adrp	x25, _AMBPRESENT_0@GOTPAGE
Lloh12:
	ldr	x25, [x25, _AMBPRESENT_0@GOTPAGEOFF]
Lloh13:
	adrp	x23, l_.str.1@PAGE
Lloh14:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x28, x22
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	x1, x22
	bl	_to_channel
	mov	x24, x0
	ldp	x8, x9, [x21, #16]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x25]
	sbfiz	x26, x24, #2, #32
	add	x2, x9, x26
	bl	_pci_read_config_word
	ldr	x8, [x21, #24]
	ldr	w8, [x8, x26]
	stp	x24, x8, [sp]
	mov	w0, #2
	mov	x1, x23
	bl	_edac_dbg
	cmp	w27, #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_to_channel
	mov	x24, x0
	ldp	x8, x9, [x21, #16]
	ldr	w0, [x8, x22, lsl #2]
Lloh15:
	adrp	x8, _AMBPRESENT_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AMBPRESENT_1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	sbfiz	x26, x24, #2, #32
	add	x2, x9, x26
	bl	_pci_read_config_word
	ldr	x8, [x21, #24]
	ldr	w8, [x8, x26]
	stp	x24, x8, [sp]
	mov	w0, #2
	mov	x1, x23
	bl	_edac_dbg
	b	LBB0_2
LBB0_5:
Lloh18:
	adrp	x8, _MAX_SLOTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX_SLOTS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.6:
	mov	x22, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh21:
	adrp	x8, _MAX_SLOTS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX_SLOTS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_15
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	cmp	w28, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, #0
Lloh24:
	adrp	x8, _mtr_regs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mtr_regs@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w24, [x8, x22, lsl #2]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x23, x23, #1
	cmp	x23, x28
	b.eq	LBB0_7
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	lsl	x8, x23, #2
	ldp	x10, x9, [x21, #8]
	ldr	w0, [x9, x8]
	ldr	x9, [x10, x22, lsl #3]
	add	x2, x9, x8
	mov	x1, x24
	bl	_pci_read_config_word
	cmp	w27, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	w25, #0
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x25
	mov	x1, x23
	bl	_to_channel
	mov	x26, x0
	ldp	w1, w0, [x20, #4]
	ldr	w2, [x20]
	mov	x3, x23
	mov	x4, x25
	mov	x5, x22
	bl	_EDAC_DIMM_PTR
	mov	x5, x0
	ldr	x8, [x21]
	ldr	x8, [x8, x22, lsl #3]
	add	x4, x8, w26, sxtw #2
	mov	x0, x21
	mov	x1, x22
	mov	x2, x25
	mov	x3, x23
	bl	_decode_mtr
	bl	_MTR_DIMMS_PRESENT
	cmp	w0, #0
	csel	w19, w19, wzr, eq
	add	w25, w25, #1
	cmp	w27, w25
	b.ne	LBB0_14
	b	LBB0_11
LBB0_15:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory Technology Registers:\n"

	.comm	_MAX_BRANCHES,4,2               ; @MAX_BRANCHES
	.comm	_MAX_CH_PER_BRANCH,4,2          ; @MAX_CH_PER_BRANCH
	.comm	_AMBPRESENT_0,4,2               ; @AMBPRESENT_0
l_.str.1:                               ; @.str.1
	.asciz	"\t\tAMB-present CH%d = 0x%x:\n"

	.comm	_AMBPRESENT_1,4,2               ; @AMBPRESENT_1
	.comm	_MAX_SLOTS,4,2                  ; @MAX_SLOTS
	.comm	_mtr_regs,8,3                   ; @mtr_regs
	.no_dead_strip	_i7300_init_csrows
.subsections_via_symbols
