	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc4xx_edac_init_csrows
_ppc4xx_edac_init_csrows:               ## @ppc4xx_edac_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	callq	_ppc4xx_edac_get_mtype
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_ppc4xx_edac_get_dtype
	movl	%eax, %r15d
	movl	(%rbx), %ecx
	movq	_EDAC_FLAG_SECDED@GOTPCREL(%rip), %rdx
	movq	_EDAC_FLAG_EC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_EDAC_NONE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rdx)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_EDAC_EC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rdx)
	je	LBB0_5
LBB0_4:
	movq	_EDAC_SECDED@GOTPCREL(%rip), %rax
LBB0_5:
	cmpl	$0, 4(%rbx)
	jle	LBB0_17
## %bb.6:
	movl	(%rax), %r14d
	xorl	%r13d, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movslq	4(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_17
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	8(%rbx), %rax
	movq	(%rax,%r13,8), %rbx
	movl	%r13d, %edi
	callq	_SDRAM_MBXCF
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_mfsdram
                                        ## kill: def $eax killed $eax def $rax
	movq	_SDRAM_MBCF_BE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_SDRAM_MBCF_BE_ENABLE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_SDRAM_MBCF_SZ_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leal	-128(%rax), %ecx
	cmpl	$11, %ecx
	ja	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %edi
	callq	_SDRAM_MBCF_SZ_TO_PAGES
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rsi
	cltd
	idivl	%r8d
	cmpl	$1, %r8d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	$1, 4(%rcx)
	movl	%r12d, 8(%rcx)
	movl	%r15d, 12(%rcx)
	movl	%r14d, 16(%rcx)
	movq	8(%rsi,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	$1, 4(%rcx)
	movl	%r12d, 8(%rcx)
	movl	%r15d, 12(%rcx)
	movl	%r14d, 16(%rcx)
	addq	$2, %rdx
	cmpq	%rdx, %rdi
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r8b
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rsi,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	$1, 4(%rcx)
	movl	%r12d, 8(%rcx)
	movl	%r15d, 12(%rcx)
	movl	%r14d, 16(%rcx)
	jmp	LBB0_16
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_19:
	movq	_KERN_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_SDRAM_MBCF_SZ_DECODE
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_ppc4xx_edac_mc_printk
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDAC_FLAG_SECDED,4,2           ## @EDAC_FLAG_SECDED
	.comm	_EDAC_SECDED,4,2                ## @EDAC_SECDED
	.comm	_EDAC_FLAG_EC,4,2               ## @EDAC_FLAG_EC
	.comm	_EDAC_EC,4,2                    ## @EDAC_EC
	.comm	_EDAC_NONE,4,2                  ## @EDAC_NONE
	.comm	_SDRAM_MBCF_BE_MASK,4,2         ## @SDRAM_MBCF_BE_MASK
	.comm	_SDRAM_MBCF_BE_ENABLE,4,2       ## @SDRAM_MBCF_BE_ENABLE
	.comm	_SDRAM_MBCF_SZ_MASK,4,2         ## @SDRAM_MBCF_SZ_MASK
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unrecognized memory bank %d size 0x%08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ppc4xx_edac_init_csrows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc4xx_edac_init_csrows
_ppc4xx_edac_init_csrows:               ; @ppc4xx_edac_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
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x1
	bl	_ppc4xx_edac_get_mtype
	mov	x21, x0
	mov	x0, x22
	bl	_ppc4xx_edac_get_dtype
Lloh0:
	adrp	x8, _EDAC_FLAG_SECDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDAC_FLAG_SECDED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EDAC_FLAG_EC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EDAC_FLAG_EC@GOTPAGEOFF]
Lloh5:
	adrp	x10, _EDAC_NONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EDAC_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldp	w11, w12, [x19]
	tst	w9, w11
Lloh8:
	adrp	x9, _EDAC_EC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EDAC_EC@GOTPAGEOFF]
	csel	x9, x10, x9, eq
Lloh10:
	adrp	x10, _EDAC_SECDED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _EDAC_SECDED@GOTPAGEOFF]
	tst	w8, w11
	csel	x8, x9, x10, eq
	cmp	w12, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x22, x0
	mov	x23, #0
Lloh12:
	adrp	x24, _SDRAM_MBCF_BE_MASK@GOTPAGE
Lloh13:
	ldr	x24, [x24, _SDRAM_MBCF_BE_MASK@GOTPAGEOFF]
	ldr	w25, [x8]
Lloh14:
	adrp	x26, _SDRAM_MBCF_BE_ENABLE@GOTPAGE
Lloh15:
	ldr	x26, [x26, _SDRAM_MBCF_BE_ENABLE@GOTPAGEOFF]
	mov	w27, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	cmp	x23, x8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x19, #8]
	ldr	x28, [x8, x23, lsl #3]
	mov	x0, x23
	bl	_SDRAM_MBXCF
	mov	x1, x0
	mov	x0, x20
	bl	_mfsdram
	ldr	w8, [x24]
	and	w8, w8, w0
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x8, _SDRAM_MBCF_SZ_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDRAM_MBCF_SZ_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w0, w8, w0
	sub	w8, w0, #128
	cmp	w8, #11
	b.hi	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_SDRAM_MBCF_SZ_TO_PAGES
	ldr	w9, [x28]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x28, #8]
	sdiv	w8, w0, w9
	cmp	w9, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	x11, x9, #0xfffffffe
	add	x12, x10, #8
	mov	x13, x11
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x14, x15, [x12, #-8]
	ldr	x14, [x14]
	ldr	x15, [x15]
	stp	w8, w27, [x14]
	stp	w8, w27, [x15]
	stp	w21, w22, [x14, #8]
	stp	w21, w22, [x15, #8]
	str	w25, [x14, #16]
	str	w25, [x15, #16]
	add	x12, x12, #16
	subs	x13, x13, #2
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x11, x9
	b.eq	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10], #8
	ldr	x11, [x11]
	stp	w8, w27, [x11]
	stp	w21, w22, [x11, #8]
	str	w25, [x11, #16]
	subs	x9, x9, #1
	b.ne	LBB0_12
	b	LBB0_2
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh19:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	bl	_SDRAM_MBCF_SZ_DECODE
	mov	x4, x0
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x23
	bl	_ppc4xx_edac_mc_printk
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
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	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EDAC_FLAG_SECDED,4,2           ; @EDAC_FLAG_SECDED
	.comm	_EDAC_SECDED,4,2                ; @EDAC_SECDED
	.comm	_EDAC_FLAG_EC,4,2               ; @EDAC_FLAG_EC
	.comm	_EDAC_EC,4,2                    ; @EDAC_EC
	.comm	_EDAC_NONE,4,2                  ; @EDAC_NONE
	.comm	_SDRAM_MBCF_BE_MASK,4,2         ; @SDRAM_MBCF_BE_MASK
	.comm	_SDRAM_MBCF_BE_ENABLE,4,2       ; @SDRAM_MBCF_BE_ENABLE
	.comm	_SDRAM_MBCF_SZ_MASK,4,2         ; @SDRAM_MBCF_SZ_MASK
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unrecognized memory bank %d size 0x%08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ppc4xx_edac_init_csrows
.subsections_via_symbols
