	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc745x_l3_enable
_mpc745x_l3_enable:                     ## @mpc745x_l3_enable
	.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
	movl	%edi, %r14d
	movq	_SPR_L3CR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_mfspr
	movq	_L3CR_L3E@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	testl	%eax, %r13d
	jne	LBB0_4
## %bb.1:
	movq	_L3CR_L3I@GOTPCREL(%rip), %rbx
	orl	(%rbx), %r13d
	movq	_L3CR_L3PE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_L3CR_L3CLKEN@GOTPCREL(%rip), %r12
	orl	(%r12), %r13d
	notl	%r13d
	andl	%r14d, %r13d
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_mtspr
	orl	$67108864, %r13d                ## imm = 0x4000000
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_mtspr
	orl	(%r12), %r13d
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_mtspr
	movl	(%r15), %edi
	movl	(%rbx), %esi
	orl	%r13d, %esi
	callq	_mtspr
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_mfspr
	testl	%eax, (%rbx)
	jne	LBB0_2
## %bb.3:
	movl	(%r15), %edi
	movl	(%r12), %esi
	notl	%esi
	andl	%r13d, %esi
	callq	_mtspr
	xorl	%eax, %eax
	callq	_powerpc_sync
	movl	$100, %edi
	callq	_DELAY
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_mtspr
	xorl	%eax, %eax
	callq	_powerpc_sync
	movl	$100, %edi
	callq	_DELAY
	movq	_L3CR_L3E@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_mtspr
	xorl	%eax, %eax
	callq	_powerpc_sync
	movl	%r13d, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPR_L3CR,4,2                   ## @SPR_L3CR
	.comm	_L3CR_L3E,4,2                   ## @L3CR_L3E
	.comm	_L3CR_L3I,4,2                   ## @L3CR_L3I
	.comm	_L3CR_L3PE,4,2                  ## @L3CR_L3PE
	.comm	_L3CR_L3CLKEN,4,2               ## @L3CR_L3CLKEN
	.no_dead_strip	_mpc745x_l3_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc745x_l3_enable
_mpc745x_l3_enable:                     ; @mpc745x_l3_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _SPR_L3CR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SPR_L3CR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_mfspr
	mov	x20, x0
Lloh2:
	adrp	x22, _L3CR_L3E@GOTPAGE
Lloh3:
	ldr	x22, [x22, _L3CR_L3E@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.1:
Lloh4:
	adrp	x20, _L3CR_L3I@GOTPAGE
Lloh5:
	ldr	x20, [x20, _L3CR_L3I@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _L3CR_L3PE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _L3CR_L3PE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x23, _L3CR_L3CLKEN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _L3CR_L3CLKEN@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
	bic	w19, w19, w8
	ldr	w0, [x21]
	mov	x1, x19
	bl	_mtspr
	orr	w19, w19, #0x4000000
	ldr	w0, [x21]
	mov	x1, x19
	bl	_mtspr
	ldr	w8, [x23]
	orr	w19, w8, w19
	ldr	w0, [x21]
	mov	x1, x19
	bl	_mtspr
	ldr	w0, [x21]
	ldr	w8, [x20]
	orr	w1, w8, w19
	bl	_mtspr
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_mfspr
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.3:
	ldr	w0, [x21]
	ldr	w8, [x23]
	bic	w1, w19, w8
	bl	_mtspr
	bl	_powerpc_sync
	mov	w0, #100
	bl	_DELAY
	ldr	w0, [x21]
	mov	x1, x19
	bl	_mtspr
	bl	_powerpc_sync
	mov	w0, #100
	bl	_DELAY
	ldr	w8, [x22]
	orr	w20, w8, w19
	ldr	w0, [x21]
	mov	x1, x20
	bl	_mtspr
	bl	_powerpc_sync
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SPR_L3CR,4,2                   ; @SPR_L3CR
	.comm	_L3CR_L3E,4,2                   ; @L3CR_L3E
	.comm	_L3CR_L3I,4,2                   ; @L3CR_L3I
	.comm	_L3CR_L3PE,4,2                  ; @L3CR_L3PE
	.comm	_L3CR_L3CLKEN,4,2               ; @L3CR_L3CLKEN
	.no_dead_strip	_mpc745x_l3_enable
.subsections_via_symbols
