	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_booke_init                     ## -- Begin function booke_init
	.p2align	4, 0x90
_booke_init:                            ## @booke_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	__end@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	movq	$0, -40(%rbp)
	movq	_bootinfo@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	___sbss_start@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	___sbss_end@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%rdi, %rsi
	callq	_bzero
	movq	___bss_start@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r12), %rsi
	subq	%rdi, %rsi
	callq	_bzero
	xorl	%eax, %eax
	callq	_tlb1_init
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_booke_check_for_fdt
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_kernload@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	%rbx, (%rax)
	cmovbq	%rbx, %r14
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_roundup
	movq	%rax, %rbx
	movq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_fdt_totalsize
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_memmove
	movq	%rbx, -40(%rbp)
	movq	%rbx, %rdi
	callq	_fdt_totalsize
	addq	%rbx, %rax
	movq	___endkernel@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%r14d, %r14d
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mfpvr
	sarl	$16, %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_6
## %bb.5:
	movq	_cacheline_size@GOTPCREL(%rip), %rax
	movl	$64, (%rax)
LBB0_6:
	movq	-40(%rbp), %rdi
	testq	%r14, %r14
	movl	$-77787059, %r8d                ## imm = 0xFB5D104D
	cmovel	%ebx, %r8d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_powerpc_init
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_booke_enable_l1_cache
	xorl	%eax, %eax
	callq	_booke_enable_l2_cache
	xorl	%eax, %eax
	callq	_booke_enable_bpred
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__end,8,3                       ## @_end
	.comm	_bootinfo,8,3                   ## @bootinfo
	.comm	___sbss_start,8,3               ## @__sbss_start
	.comm	___sbss_end,8,3                 ## @__sbss_end
	.comm	___bss_start,8,3                ## @__bss_start
	.comm	___endkernel,8,3                ## @__endkernel
	.comm	_kernload,8,3                   ## @kernload
	.comm	_cacheline_size,4,2             ## @cacheline_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_booke_init                     ; -- Begin function booke_init
	.p2align	2
_booke_init:                            ; @booke_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, __end@GOTPAGE
Lloh1:
	ldr	x22, [x22, __end@GOTPAGEOFF]
	ldr	x21, [x22]
	str	xzr, [sp, #8]
Lloh2:
	adrp	x8, _bootinfo@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bootinfo@GOTPAGEOFF]
Lloh4:
	adrp	x9, ___sbss_start@GOTPAGE
Lloh5:
	ldr	x9, [x9, ___sbss_start@GOTPAGEOFF]
Lloh6:
	str	xzr, [x8]
Lloh7:
	ldr	x0, [x9]
Lloh8:
	adrp	x8, ___sbss_end@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___sbss_end@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	sub	x1, x8, x0
	bl	_bzero
Lloh11:
	adrp	x8, ___bss_start@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___bss_start@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	ldr	x8, [x22]
	sub	x1, x8, x0
	bl	_bzero
	bl	_tlb1_init
	cbz	x20, LBB0_4
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	bl	_booke_check_for_fdt
	cbz	x0, LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, _kernload@GOTPAGE
Lloh15:
	ldr	x8, [x8, _kernload@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x20
	csel	x19, x20, xzr, lo
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	w1, #8
	bl	_roundup
	mov	x20, x0
	ldr	x19, [sp, #8]
	mov	x0, x19
	bl	_fdt_totalsize
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_memmove
	str	x20, [sp, #8]
	mov	x0, x20
	bl	_fdt_totalsize
	mov	x19, #0
	add	x8, x0, x20
Lloh17:
	adrp	x9, ___endkernel@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___endkernel@GOTPAGEOFF]
Lloh19:
	str	x8, [x9]
LBB0_4:
	bl	_mfpvr
	asr	w8, w0, #16
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _cacheline_size@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cacheline_size@GOTPAGEOFF]
	mov	w9, #64
Lloh22:
	str	w9, [x8]
LBB0_6:
	ldr	x0, [sp, #8]
	cmp	x19, #0
	mov	w8, #4173
	movk	w8, #64349, lsl #16
	csel	w4, wzr, w8, eq
	mov	w1, #0
	mov	w2, #0
	mov	x3, x19
	bl	_powerpc_init
	mov	x19, x0
	bl	_booke_enable_l1_cache
	bl	_booke_enable_l2_cache
	bl	_booke_enable_bpred
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	__end,8,3                       ; @_end
	.comm	_bootinfo,8,3                   ; @bootinfo
	.comm	___sbss_start,8,3               ; @__sbss_start
	.comm	___sbss_end,8,3                 ; @__sbss_end
	.comm	___bss_start,8,3                ; @__bss_start
	.comm	___endkernel,8,3                ; @__endkernel
	.comm	_kernload,8,3                   ; @kernload
	.comm	_cacheline_size,4,2             ; @cacheline_size
.subsections_via_symbols
