	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv64x60_init_csrows
_mv64x60_init_csrows:                   ## @mv64x60_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_get_total_mem
	movq	_MV64X60_SDRAM_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_in_le32
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r14), %rdx
	movq	$0, 24(%rdx)
	movl	(%rbx), %esi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movl	%esi, (%rdx)
	movslq	%esi, %rcx
	decq	%rcx
	movq	%rcx, 32(%rdx)
	movl	$8, 4(%rdx)
	movq	_MV64X60_SDRAM_REGISTERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_MEM_DDR@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_MEM_RDDR@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rdx)
	shrl	$20, %eax
	andl	$3, %eax
	leaq	l_switch.table.mv64x60_init_csrows(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdx)
	movq	_EDAC_SECDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV64X60_SDRAM_CONFIG,8,3       ## @MV64X60_SDRAM_CONFIG
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_MV64X60_SDRAM_REGISTERED,4,2   ## @MV64X60_SDRAM_REGISTERED
	.comm	_MEM_RDDR,4,2                   ## @MEM_RDDR
	.comm	_MEM_DDR,4,2                    ## @MEM_DDR
	.comm	_DEV_X32,4,2                    ## @DEV_X32
	.comm	_DEV_X16,4,2                    ## @DEV_X16
	.comm	_DEV_X4,4,2                     ## @DEV_X4
	.comm	_DEV_UNKNOWN,4,2                ## @DEV_UNKNOWN
	.comm	_EDAC_SECDED,4,2                ## @EDAC_SECDED
	.no_dead_strip	_mv64x60_init_csrows
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mv64x60_init_csrows
l_switch.table.mv64x60_init_csrows:
	.quad	_DEV_X32
	.quad	_DEV_UNKNOWN
	.quad	_DEV_X16
	.quad	_DEV_X4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv64x60_init_csrows
_mv64x60_init_csrows:                   ; @mv64x60_init_csrows
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_get_total_mem
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _MV64X60_SDRAM_CONFIG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV64X60_SDRAM_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_le32
	ldr	x8, [x20]
	ldr	w9, [x19]
Lloh3:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	asr	w9, w9, w10
	sxtw	x10, w9
	sub	x10, x10, #1
	stp	xzr, x10, [x8, #24]
	mov	w10, #8
	stp	w9, w10, [x8]
Lloh6:
	adrp	x9, _MV64X60_SDRAM_REGISTERED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MV64X60_SDRAM_REGISTERED@GOTPAGEOFF]
Lloh8:
	adrp	x10, _MEM_RDDR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MEM_RDDR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x11, _MEM_DDR@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MEM_DDR@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	str	w9, [x8, #16]
	ubfx	w9, w0, #20, #2
Lloh13:
	adrp	x10, l_switch.table.mv64x60_init_csrows@PAGE
Lloh14:
	add	x10, x10, l_switch.table.mv64x60_init_csrows@PAGEOFF
	ldr	x9, [x10, w9, uxtw #3]
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _EDAC_SECDED@GOTPAGE
Lloh16:
	ldr	x10, [x10, _EDAC_SECDED@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MV64X60_SDRAM_CONFIG,8,3       ; @MV64X60_SDRAM_CONFIG
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_MV64X60_SDRAM_REGISTERED,4,2   ; @MV64X60_SDRAM_REGISTERED
	.comm	_MEM_RDDR,4,2                   ; @MEM_RDDR
	.comm	_MEM_DDR,4,2                    ; @MEM_DDR
	.comm	_DEV_X32,4,2                    ; @DEV_X32
	.comm	_DEV_X16,4,2                    ; @DEV_X16
	.comm	_DEV_X4,4,2                     ; @DEV_X4
	.comm	_DEV_UNKNOWN,4,2                ; @DEV_UNKNOWN
	.comm	_EDAC_SECDED,4,2                ; @EDAC_SECDED
	.no_dead_strip	_mv64x60_init_csrows
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mv64x60_init_csrows
l_switch.table.mv64x60_init_csrows:
	.quad	_DEV_X32
	.quad	_DEV_UNKNOWN
	.quad	_DEV_X16
	.quad	_DEV_X4

.subsections_via_symbols
