	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_booke_enable_bpred             ## -- Begin function booke_enable_bpred
	.p2align	4, 0x90
_booke_enable_bpred:                    ## @booke_enable_bpred
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_bpred_enable
	movq	_SPR_BUCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mfspr
	movq	_boothowto@GOTPCREL(%rip), %rcx
	movq	_RB_VERBOSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_BUCSR_BPEN@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	testl	%edx, (%rcx)
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
LBB0_2:
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_3:
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPR_BUCSR,4,2                  ## @SPR_BUCSR
	.comm	_boothowto,4,2                  ## @boothowto
	.comm	_RB_VERBOSE,4,2                 ## @RB_VERBOSE
	.comm	_BUCSR_BPEN,4,2                 ## @BUCSR_BPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Branch Predictor %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_bpred             ; -- Begin function booke_enable_bpred
	.p2align	2
_booke_enable_bpred:                    ; @booke_enable_bpred
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_bpred_enable
Lloh0:
	adrp	x8, _SPR_BUCSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPR_BUCSR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_mfspr
Lloh3:
	adrp	x8, _boothowto@GOTPAGE
Lloh4:
	ldr	x8, [x8, _boothowto@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _RB_VERBOSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RB_VERBOSE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x8]
Lloh9:
	adrp	x8, _BUCSR_BPEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BUCSR_BPEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
	tst	w10, w9
	b.eq	LBB0_2
LBB0_1:
Lloh12:
	adrp	x9, l_.str.1@PAGE
Lloh13:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_printf
LBB0_2:
	cbz	w8, LBB0_1
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SPR_BUCSR,4,2                  ; @SPR_BUCSR
	.comm	_boothowto,4,2                  ; @boothowto
	.comm	_RB_VERBOSE,4,2                 ; @RB_VERBOSE
	.comm	_BUCSR_BPEN,4,2                 ; @BUCSR_BPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Branch Predictor %sabled\n"

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

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

.subsections_via_symbols
