	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpc925_init_csrows
_cpc925_init_csrows:                    ## @cpc925_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
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_get_total_mem
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_7
## %bb.1:
	movl	$36, %r12d
	movl	$32, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -8(%rdx,%r12)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$40, %r12
	addq	$32, %r14
	leaq	1(%rbx), %rcx
	addq	$-31, %rbx
	cmpq	%rax, %rbx
	movq	%rcx, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	_REG_MBMR_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	addq	%r14, %rdi
	callq	___raw_readl
	movl	%eax, %r13d
	movq	(%r15), %rdi
	movq	_REG_MBBAR_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	___raw_readl
	movq	_MBMR_BBA_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%r13d, %edx
	movq	_MBMR_BBA_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %edx
	shll	$8, %edx
	movq	_MBBAR_BBA_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_MBBAR_BBA_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	orl	%edx, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rdx
	cltq
	shlq	$28, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, -36(%rdx,%r12)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shrq	%cl, %rax
	movq	%rax, -28(%rdx,%r12)
	addq	%rsi, %rax
	leal	-1(%rax), %ecx
	movl	%ecx, -20(%rdx,%r12)
	movq	_MEM_RDDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdx,%r12)
	movq	_EDAC_SECDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -4(%rdx,%r12)
	xorl	%ecx, %ecx
	cmpl	$1, -16(%rdx,%r12)
	setne	%cl
	shll	$5, %ecx
	addl	$32, %ecx
	movl	%ecx, -12(%rdx,%r12)
	movq	_MBMR_MODE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r13d
	movq	_MBMR_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %r13d
	addl	$-5, %r13d
	movq	_DEV_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	$4, %r13d
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rcx
	leaq	l_switch.table.cpc925_init_csrows(%rip), %rsi
	movq	(%rsi,%rcx,8), %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	_REG_MBMR_OFFSET,8,3            ## @REG_MBMR_OFFSET
	.comm	_REG_MBBAR_OFFSET,8,3           ## @REG_MBBAR_OFFSET
	.comm	_MBMR_BBA_MASK,4,2              ## @MBMR_BBA_MASK
	.comm	_MBMR_BBA_SHIFT,4,2             ## @MBMR_BBA_SHIFT
	.comm	_MBBAR_BBA_MASK,4,2             ## @MBBAR_BBA_MASK
	.comm	_MBBAR_BBA_SHIFT,4,2            ## @MBBAR_BBA_SHIFT
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_MEM_RDDR,4,2                   ## @MEM_RDDR
	.comm	_EDAC_SECDED,4,2                ## @EDAC_SECDED
	.comm	_MBMR_MODE_MASK,4,2             ## @MBMR_MODE_MASK
	.comm	_MBMR_MODE_SHIFT,4,2            ## @MBMR_MODE_SHIFT
	.comm	_DEV_X16,4,2                    ## @DEV_X16
	.comm	_DEV_X8,4,2                     ## @DEV_X8
	.comm	_DEV_UNKNOWN,4,2                ## @DEV_UNKNOWN
	.no_dead_strip	_cpc925_init_csrows
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cpc925_init_csrows
l_switch.table.cpc925_init_csrows:
	.quad	_DEV_X16
	.quad	_DEV_X16
	.quad	_DEV_X8
	.quad	_DEV_X16
	.quad	_DEV_X8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpc925_init_csrows
_cpc925_init_csrows:                    ; @cpc925_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	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_get_total_mem
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	mov	x27, #0
	mov	w25, #36
Lloh0:
	adrp	x28, _MBMR_BBA_SHIFT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MBMR_BBA_SHIFT@GOTPAGEOFF]
Lloh2:
	adrp	x26, _MBBAR_BBA_MASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MBBAR_BBA_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x23, _MBBAR_BBA_SHIFT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MBBAR_BBA_SHIFT@GOTPAGEOFF]
	mov	w24, #32
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x27, w9
	ldr	w9, [x10]
	stur	w9, [x8, #-8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19]
	add	x25, x25, #40
	add	x22, x22, #32
	sub	x9, x24, #31
	add	x24, x24, #1
	cmp	x9, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _REG_MBMR_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REG_MBMR_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x8, x9
	add	x0, x22, x8
	bl	___raw_readl
	mov	x21, x0
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _REG_MBBAR_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REG_MBBAR_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x8, x8, x9
	add	x0, x24, x8
	bl	___raw_readl
Lloh12:
	adrp	x8, _MBMR_BBA_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBMR_BBA_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w21
	ldr	w9, [x28]
	asr	w8, w8, w9
	ldr	w9, [x26]
	and	w9, w9, w0
	ldr	w10, [x23]
	asr	w9, w9, w10
	orr	w8, w9, w8, lsl #8
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #8]
	sbfiz	x10, x8, #28, #32
	add	x8, x9, x25
	stur	x27, [x8, #-36]
Lloh15:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	lsr	x9, x10, x9
	stur	x9, [x8, #-28]
	add	x9, x9, x27
	sub	w10, w9, #1
	stur	w10, [x8, #-20]
Lloh18:
	adrp	x10, _MEM_RDDR@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MEM_RDDR@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	str	w10, [x8]
Lloh21:
	adrp	x10, _EDAC_SECDED@GOTPAGE
Lloh22:
	ldr	x10, [x10, _EDAC_SECDED@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	stur	w10, [x8, #-4]
	ldur	w10, [x8, #-16]
	cmp	w10, #1
	mov	w10, #32
	mov	w11, #64
	csel	w10, w10, w11, eq
	stur	w10, [x8, #-12]
Lloh24:
	adrp	x10, _MBMR_MODE_MASK@GOTPAGE
Lloh25:
	ldr	x10, [x10, _MBMR_MODE_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	and	w10, w10, w21
Lloh27:
	adrp	x11, _MBMR_MODE_SHIFT@GOTPAGE
Lloh28:
	ldr	x11, [x11, _MBMR_MODE_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	asr	w10, w10, w11
	sub	w11, w10, #5
Lloh30:
	adrp	x10, _DEV_UNKNOWN@GOTPAGE
Lloh31:
	ldr	x10, [x10, _DEV_UNKNOWN@GOTPAGEOFF]
	cmp	w11, #4
	b.hi	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh32:
	adrp	x10, l_switch.table.cpc925_init_csrows@PAGE
Lloh33:
	add	x10, x10, l_switch.table.cpc925_init_csrows@PAGEOFF
	ldr	x10, [x10, w11, sxtw #3]
	b	LBB0_2
LBB0_7:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MBMR_OFFSET,8,3            ; @REG_MBMR_OFFSET
	.comm	_REG_MBBAR_OFFSET,8,3           ; @REG_MBBAR_OFFSET
	.comm	_MBMR_BBA_MASK,4,2              ; @MBMR_BBA_MASK
	.comm	_MBMR_BBA_SHIFT,4,2             ; @MBMR_BBA_SHIFT
	.comm	_MBBAR_BBA_MASK,4,2             ; @MBBAR_BBA_MASK
	.comm	_MBBAR_BBA_SHIFT,4,2            ; @MBBAR_BBA_SHIFT
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_MEM_RDDR,4,2                   ; @MEM_RDDR
	.comm	_EDAC_SECDED,4,2                ; @EDAC_SECDED
	.comm	_MBMR_MODE_MASK,4,2             ; @MBMR_MODE_MASK
	.comm	_MBMR_MODE_SHIFT,4,2            ; @MBMR_MODE_SHIFT
	.comm	_DEV_X16,4,2                    ; @DEV_X16
	.comm	_DEV_X8,4,2                     ; @DEV_X8
	.comm	_DEV_UNKNOWN,4,2                ; @DEV_UNKNOWN
	.no_dead_strip	_cpc925_init_csrows
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cpc925_init_csrows
l_switch.table.cpc925_init_csrows:
	.quad	_DEV_X16
	.quad	_DEV_X16
	.quad	_DEV_X8
	.quad	_DEV_X16
	.quad	_DEV_X8

.subsections_via_symbols
