	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_booke_enable_l2_cache          ## -- Begin function booke_enable_l2_cache
	.p2align	4, 0x90
_booke_enable_l2_cache:                 ## @booke_enable_l2_cache
	.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
	xorl	%eax, %eax
	callq	_mfpvr
	shrl	$16, %eax
	movq	_FSL_E500mc@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_mfpvr
	shrl	$16, %eax
	movq	_FSL_E5500@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_2:
	movq	_SPR_L2CSR0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_mfspr
	movq	_L2CSR0_L2E@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_l2cache_inval
	xorl	%eax, %eax
	callq	_l2cache_enable
LBB0_4:
	movl	(%rbx), %edi
	callq	_mfspr
	movq	_boothowto@GOTPCREL(%rip), %rcx
	movq	_RB_VERBOSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%r14), %eax
	testl	%edx, (%rcx)
	je	LBB0_5
LBB0_7:
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_5:
	testl	%eax, %eax
	je	LBB0_6
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_E500mc,4,2                 ## @FSL_E500mc
	.comm	_FSL_E5500,4,2                  ## @FSL_E5500
	.comm	_SPR_L2CSR0,4,2                 ## @SPR_L2CSR0
	.comm	_L2CSR0_L2E,4,2                 ## @L2CSR0_L2E
	.comm	_boothowto,4,2                  ## @boothowto
	.comm	_RB_VERBOSE,4,2                 ## @RB_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"L2 cache %sabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"en"

L_.str.2:                               ## @.str.2
	.asciz	"dis"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_booke_enable_l2_cache          ; -- Begin function booke_enable_l2_cache
	.p2align	2
_booke_enable_l2_cache:                 ; @booke_enable_l2_cache
	.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
	bl	_mfpvr
Lloh0:
	adrp	x8, _FSL_E500mc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSL_E500mc@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0, lsr #16
	b.eq	LBB0_2
; %bb.1:
	bl	_mfpvr
Lloh3:
	adrp	x8, _FSL_E5500@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSL_E5500@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0, lsr #16
	b.ne	LBB0_6
LBB0_2:
Lloh6:
	adrp	x20, _SPR_L2CSR0@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SPR_L2CSR0@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mfspr
Lloh8:
	adrp	x19, _L2CSR0_L2E@GOTPAGE
Lloh9:
	ldr	x19, [x19, _L2CSR0_L2E@GOTPAGEOFF]
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
	bl	_l2cache_inval
	bl	_l2cache_enable
LBB0_4:
	ldr	w0, [x20]
	bl	_mfspr
Lloh10:
	adrp	x8, _boothowto@GOTPAGE
Lloh11:
	ldr	x8, [x8, _boothowto@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x8]
Lloh13:
	adrp	x8, _RB_VERBOSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RB_VERBOSE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x8]
	ldr	w8, [x19]
	and	w8, w8, w0
	tst	w10, w9
	b.ne	LBB0_7
; %bb.5:
	cbz	w8, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh16:
	adrp	x9, l_.str.1@PAGE
Lloh17:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh18:
	adrp	x10, l_.str.2@PAGE
Lloh19:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_printf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_E500mc,4,2                 ; @FSL_E500mc
	.comm	_FSL_E5500,4,2                  ; @FSL_E5500
	.comm	_SPR_L2CSR0,4,2                 ; @SPR_L2CSR0
	.comm	_L2CSR0_L2E,4,2                 ; @L2CSR0_L2E
	.comm	_boothowto,4,2                  ; @boothowto
	.comm	_RB_VERBOSE,4,2                 ; @RB_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"L2 cache %sabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"en"

l_.str.2:                               ; @.str.2
	.asciz	"dis"

.subsections_via_symbols
