	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_get_total_mem
	cmpl	$0, (%r14)
	jle	LBB0_16
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r12, %rdi
	shlq	$5, %rdi
	addq	(%r15), %rdi
	movq	_REG_MBMR_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	___raw_readl
	movl	%eax, %ebx
	movq	_REG_MBBAR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	addq	%r12, %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$32, %rdi
	callq	___raw_readl
	movq	_MBMR_BBA_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%ebx, %edx
	movq	_MBMR_BBA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	shll	$8, %edx
	movq	_MBBAR_BBA_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_MBBAR_BBA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	orl	%edx, %eax
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%r12,8), %rdx
	cltq
	shlq	$28, %rax
	movq	%r13, (%rdx)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	leaq	(%rax,%r13), %rcx
	decq	%rcx
	movq	%rcx, 8(%rdx)
	movl	16(%rdx), %r8d
	xorl	%r9d, %r9d
	cmpq	$1, %r8
	setne	%sil
	movq	_MBMR_MODE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_MBMR_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	addl	$-5, %ebx
	movq	_DEV_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	$4, %ebx
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rcx
	leaq	l_switch.table.cpc925_init_csrows(%rip), %rdi
	movq	(%rdi,%rcx,8), %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%rax, %r13
	testl	%r8d, %r8d
	jle	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	%sil, %r9b
	shll	$5, %r9d
	movl	(%rcx), %r10d
	movq	24(%rdx), %rbx
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%r8
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$32, %r9d
	movq	_MEM_RDDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_EDAC_SECDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	$1, %r8d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %r11d
	andl	$-2, %r11d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movl	%edx, 20(%rcx)
	movl	%edi, 16(%rcx)
	movl	%r9d, 8(%rcx)
	movl	%r10d, 12(%rcx)
	movq	8(%rbx,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movl	%edx, 20(%rcx)
	movl	%edi, 16(%rcx)
	movl	%r9d, 8(%rcx)
	movl	%r10d, 12(%rcx)
	addq	$2, %rsi
	cmpq	%rsi, %r11
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r8b
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movl	%edx, 20(%rcx)
	movl	%edi, 16(%rcx)
	movl	%r9d, 8(%rcx)
	movl	%r10d, 12(%rcx)
	jmp	LBB0_15
LBB0_16:
	addq	$8, %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	_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
	.comm	_MEM_RDDR,4,2                   ## @MEM_RDDR
	.comm	_EDAC_SECDED,4,2                ## @EDAC_SECDED
	.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_14
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x25, _REG_MBBAR_OFFSET@GOTPAGE
Lloh1:
	ldr	x25, [x25, _REG_MBBAR_OFFSET@GOTPAGEOFF]
Lloh2:
	adrp	x26, _MBMR_BBA_MASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MBMR_BBA_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x27, _MBMR_BBA_SHIFT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MBMR_BBA_SHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x28, _MBBAR_BBA_MASK@GOTPAGE
Lloh7:
	ldr	x28, [x28, _MBBAR_BBA_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x24, _MBBAR_BBA_SHIFT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MBBAR_BBA_SHIFT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _REG_MBMR_OFFSET@GOTPAGE
Lloh11:
	ldr	x9, [x9, _REG_MBMR_OFFSET@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x8, x8, x22, lsl #5
	add	x0, x8, x9
	bl	___raw_readl
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x9, [x25]
	add	x8, x22, x8
	add	x8, x8, x9
	add	x0, x8, #32
	bl	___raw_readl
	ldr	w8, [x26]
	and	w8, w8, w21
	ldr	w9, [x27]
	asr	w8, w8, w9
	ldr	w9, [x28]
	and	w9, w9, w0
	ldr	w10, [x24]
	asr	w9, w9, w10
	orr	w8, w9, w8, lsl #8
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #8]
	ldr	x11, [x9, x22, lsl #3]
	sbfiz	x8, x8, #28, #32
	str	x23, [x11]
Lloh13:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	lsr	x13, x8, x9
	add	x23, x13, x23
	sub	x8, x23, #1
	str	x8, [x11, #8]
	ldr	w9, [x11, #16]
	cmp	w9, #1
	mov	w8, #64
	mov	w10, #32
	csel	w8, w10, w8, eq
Lloh16:
	adrp	x10, _MBMR_MODE_MASK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MBMR_MODE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	and	w10, w10, w21
Lloh19:
	adrp	x12, _MBMR_MODE_SHIFT@GOTPAGE
Lloh20:
	ldr	x12, [x12, _MBMR_MODE_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
	asr	w10, w10, w12
	sub	w12, w10, #5
Lloh22:
	adrp	x10, _DEV_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _DEV_UNKNOWN@GOTPAGEOFF]
	cmp	w12, #4
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh24:
	adrp	x10, l_switch.table.cpc925_init_csrows@PAGE
Lloh25:
	add	x10, x10, l_switch.table.cpc925_init_csrows@PAGEOFF
	ldr	x10, [x10, w12, sxtw #3]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x10]
	ldr	x14, [x11, #24]
Lloh26:
	adrp	x11, _MEM_RDDR@GOTPAGE
Lloh27:
	ldr	x11, [x11, _MEM_RDDR@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
Lloh29:
	adrp	x12, _EDAC_SECDED@GOTPAGE
Lloh30:
	ldr	x12, [x12, _EDAC_SECDED@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
	udiv	x13, x13, x9
	cmp	w9, #1
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x15, #0
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	x15, x9, #0xfffffffe
	add	x16, x14, #8
	mov	x17, x15
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x0, x1, [x16, #-8]
	ldr	x0, [x0]
	ldr	x1, [x1]
	str	x13, [x0]
	str	x13, [x1]
	stp	w12, w11, [x0, #16]
	stp	w12, w11, [x1, #16]
	stp	w8, w10, [x0, #8]
	stp	w8, w10, [x1, #8]
	add	x16, x16, #16
	subs	x17, x17, #2
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x15, x9
	b.eq	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x14, x14, x15, lsl #3
	sub	x9, x9, x15
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x14], #8
	ldr	x15, [x15]
	str	x13, [x15]
	stp	w12, w11, [x15, #16]
	stp	w8, w10, [x15, #8]
	subs	x9, x9, #1
	b.ne	LBB0_13
	b	LBB0_2
LBB0_14:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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	_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
	.comm	_MEM_RDDR,4,2                   ; @MEM_RDDR
	.comm	_EDAC_SECDED,4,2                ; @EDAC_SECDED
	.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
