	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_booke_enable_l1_cache          ## -- Begin function booke_enable_l1_cache
	.p2align	4, 0x90
_booke_enable_l1_cache:                 ## @booke_enable_l1_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SPR_L1CSR0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_mfspr
	movq	_L1CSR0_DCE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_dcache_inval
	xorl	%eax, %eax
	callq	_dcache_enable
LBB0_2:
	movl	(%rbx), %edi
	callq	_mfspr
	movq	_boothowto@GOTPCREL(%rip), %r14
	movq	_RB_VERBOSE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	andl	(%r12), %eax
	testl	%ecx, (%r14)
	je	LBB0_3
LBB0_5:
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	jmp	LBB0_6
LBB0_3:
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movq	_SPR_L1CSR1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_mfspr
	movq	_L1CSR1_ICE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_icache_inval
	xorl	%eax, %eax
	callq	_icache_enable
LBB0_8:
	movl	(%rbx), %edi
	callq	_mfspr
	movl	(%r15), %ecx
	andl	(%r12), %eax
	testl	%ecx, (%r14)
	je	LBB0_9
LBB0_11:
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.3(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_9:
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SPR_L1CSR0,4,2                 ## @SPR_L1CSR0
	.comm	_L1CSR0_DCE,4,2                 ## @L1CSR0_DCE
	.comm	_boothowto,4,2                  ## @boothowto
	.comm	_RB_VERBOSE,4,2                 ## @RB_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"L1 D-cache %sabled\n"

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

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

	.comm	_SPR_L1CSR1,4,2                 ## @SPR_L1CSR1
	.comm	_L1CSR1_ICE,4,2                 ## @L1CSR1_ICE
L_.str.3:                               ## @.str.3
	.asciz	"L1 I-cache %sabled\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_booke_enable_l1_cache          ; -- Begin function booke_enable_l1_cache
	.p2align	2
_booke_enable_l1_cache:                 ; @booke_enable_l1_cache
	.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
Lloh0:
	adrp	x20, _SPR_L1CSR0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SPR_L1CSR0@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mfspr
Lloh2:
	adrp	x19, _L1CSR0_DCE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _L1CSR0_DCE@GOTPAGEOFF]
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	bl	_dcache_inval
	bl	_dcache_enable
LBB0_2:
	ldr	w0, [x20]
	bl	_mfspr
Lloh4:
	adrp	x21, _boothowto@GOTPAGE
Lloh5:
	ldr	x21, [x21, _boothowto@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh6:
	adrp	x22, _RB_VERBOSE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _RB_VERBOSE@GOTPAGEOFF]
	ldr	w10, [x22]
	ldr	w8, [x19]
	and	w8, w8, w0
Lloh8:
	adrp	x19, l_.str.1@PAGE
Lloh9:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh10:
	adrp	x20, l_.str.2@PAGE
Lloh11:
	add	x20, x20, l_.str.2@PAGEOFF
	tst	w10, w9
	b.eq	LBB0_4
LBB0_3:
	cmp	w8, #0
	csel	x1, x20, x19, eq
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_5
LBB0_4:
	cbz	w8, LBB0_3
LBB0_5:
Lloh14:
	adrp	x24, _SPR_L1CSR1@GOTPAGE
Lloh15:
	ldr	x24, [x24, _SPR_L1CSR1@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_mfspr
Lloh16:
	adrp	x23, _L1CSR1_ICE@GOTPAGE
Lloh17:
	ldr	x23, [x23, _L1CSR1_ICE@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.6:
	bl	_icache_inval
	bl	_icache_enable
LBB0_7:
	ldr	w0, [x24]
	bl	_mfspr
	ldr	w9, [x21]
	ldr	w10, [x22]
	ldr	w8, [x23]
	and	w8, w8, w0
	tst	w10, w9
	b.eq	LBB0_9
LBB0_8:
	cmp	w8, #0
	csel	x1, x20, x19, eq
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	b	_printf
LBB0_9:
	cbz	w8, LBB0_8
; %bb.10:
	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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SPR_L1CSR0,4,2                 ; @SPR_L1CSR0
	.comm	_L1CSR0_DCE,4,2                 ; @L1CSR0_DCE
	.comm	_boothowto,4,2                  ; @boothowto
	.comm	_RB_VERBOSE,4,2                 ; @RB_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"L1 D-cache %sabled\n"

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

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

	.comm	_SPR_L1CSR1,4,2                 ; @SPR_L1CSR1
	.comm	_L1CSR1_ICE,4,2                 ; @L1CSR1_ICE
l_.str.3:                               ; @.str.3
	.asciz	"L1 I-cache %sabled\n"

.subsections_via_symbols
