	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_6xx_setup                  ## -- Begin function cpu_6xx_setup
	.p2align	4, 0x90
_cpu_6xx_setup:                         ## @cpu_6xx_setup
	.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
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_SPR_HID0@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_mfspr
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_mfpvr
	leal	-128(%r15), %ecx
	cmpl	$14, %ecx
	ja	LBB0_5
## %bb.1:
	movl	$32519, %edx                    ## imm = 0x7F07
	btl	%ecx, %edx
	jae	LBB0_3
## %bb.2:
	movq	_HID0_DOZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HID0_NAP@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_HID0_SGE@GOTPCREL(%rip), %rdx
	movq	_HID0_BTIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_HID0_LRSTK@GOTPCREL(%rip), %rsi
	movq	_HID0_FOLD@GOTPCREL(%rip), %rdi
	orl	(%rdx), %ebx
	movq	_HID0_BHT@GOTPCREL(%rip), %rdx
	orl	%ecx, %ebx
	orl	(%rsi), %ebx
	orl	(%rdi), %ebx
	orl	(%rdx), %ebx
	movl	%eax, %edx
	sarl	$16, %edx
	movzwl	%ax, %eax
	cmpl	$513, %eax                      ## imm = 0x201
	notl	%ecx
	movl	$-1, %eax
	movl	$-1, %esi
	cmovbl	%ecx, %esi
	cmpl	$133, %edx
	cmovnel	%eax, %esi
	cmpl	$131, %edx
	cmovel	%ecx, %esi
	andl	%esi, %ebx
	movq	_HID0_DOZE@GOTPCREL(%rip), %rcx
	movq	_HID0_NAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movq	_HID0_SLEEP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	movq	_HID0_DPM@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	andl	%ebx, %ecx
	orl	%ecx, %eax
	movq	_powerpc_pow_enabled@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movl	%eax, %ebx
LBB0_5:
	leal	-136(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_9
## %bb.6:
	cmpl	$142, %r15d
	je	LBB0_8
## %bb.7:
	cmpl	$130, %r15d
	jne	LBB0_10
LBB0_8:
	movq	_HID0_DBP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_HID0_EMCP@GOTPCREL(%rip), %rax
	movq	_HID0_BTIC@GOTPCREL(%rip), %rcx
	movq	_HID0_SGE@GOTPCREL(%rip), %rdx
	movq	_HID0_BHT@GOTPCREL(%rip), %rsi
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	orl	(%rsi), %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_HID0_SPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_HID0_EMCP@GOTPCREL(%rip), %rax
	movq	_HID0_BTIC@GOTPCREL(%rip), %rcx
	movq	_HID0_SGE@GOTPCREL(%rip), %rdx
	movq	_HID0_BHT@GOTPCREL(%rip), %rsi
	movq	_HID0_EIEC@GOTPCREL(%rip), %rdi
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	orl	(%rsi), %ebx
	orl	(%rdi), %ebx
LBB0_10:
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_mtspr
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_cpu_6xx_print_cacheinfo
LBB0_12:
	addl	$-131, %r15d
	cmpl	$5, %r15d
	jae	LBB0_13
## %bb.14:
	movq	_HID0_7450_BITMASK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_HID0_BITMASK@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_printf
	movq	_cpu_idle_hook@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_17
## %bb.16:
	movq	_cpu_idle_60x@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPR_HID0,4,2                   ## @SPR_HID0
	.comm	_HID0_DOZE,4,2                  ## @HID0_DOZE
	.comm	_HID0_NAP,4,2                   ## @HID0_NAP
	.comm	_HID0_SLEEP,4,2                 ## @HID0_SLEEP
	.comm	_HID0_DPM,4,2                   ## @HID0_DPM
	.comm	_powerpc_pow_enabled,4,2        ## @powerpc_pow_enabled
	.comm	_HID0_SGE,4,2                   ## @HID0_SGE
	.comm	_HID0_BTIC,4,2                  ## @HID0_BTIC
	.comm	_HID0_LRSTK,4,2                 ## @HID0_LRSTK
	.comm	_HID0_FOLD,4,2                  ## @HID0_FOLD
	.comm	_HID0_BHT,4,2                   ## @HID0_BHT
	.comm	_HID0_DBP,4,2                   ## @HID0_DBP
	.comm	_HID0_EMCP,4,2                  ## @HID0_EMCP
	.comm	_HID0_SPD,4,2                   ## @HID0_SPD
	.comm	_HID0_EIEC,4,2                  ## @HID0_EIEC
	.comm	_bootverbose,8,3                ## @bootverbose
	.comm	_HID0_7450_BITMASK,8,3          ## @HID0_7450_BITMASK
	.comm	_HID0_BITMASK,8,3               ## @HID0_BITMASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpu%d: HID0 %b\n"

	.comm	_cpu_idle_hook,8,3              ## @cpu_idle_hook
	.comm	_cpu_idle_60x,8,3               ## @cpu_idle_60x
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_6xx_setup                  ; -- Begin function cpu_6xx_setup
	.p2align	2
_cpu_6xx_setup:                         ; @cpu_6xx_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SPR_HID0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SPR_HID0@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_mfspr
	mov	x21, x0
	bl	_mfpvr
	sub	w8, w20, #128
	cmp	w8, #14
	b.hi	LBB0_5
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #32519
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _HID0_DOZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HID0_DOZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _HID0_NAP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HID0_NAP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w9, w8
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _HID0_SGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HID0_SGE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _HID0_BTIC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HID0_BTIC@GOTPAGEOFF]
Lloh13:
	adrp	x10, _HID0_LRSTK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _HID0_LRSTK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _HID0_FOLD@GOTPAGE
Lloh18:
	ldr	x11, [x11, _HID0_FOLD@GOTPAGEOFF]
Lloh19:
	adrp	x12, _HID0_BHT@GOTPAGE
Lloh20:
	ldr	x12, [x12, _HID0_BHT@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
Lloh22:
	ldr	w12, [x12]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	asr	w10, w0, #16
	and	w11, w0, #0xffff
	cmp	w11, #513
	mov	w11, #133
	ccmp	w10, w11, #0, lo
	mov	w11, #131
	ccmp	w10, w11, #4, ne
	mov	w10, #-1
	csinv	w9, w10, w9, ne
Lloh23:
	adrp	x10, _HID0_DOZE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _HID0_DOZE@GOTPAGEOFF]
	and	w21, w8, w9
Lloh25:
	ldr	w9, [x10]
Lloh26:
	adrp	x8, _HID0_NAP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HID0_NAP@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w9, w8, w9
LBB0_4:
Lloh29:
	adrp	x10, _HID0_SLEEP@GOTPAGE
Lloh30:
	ldr	x10, [x10, _HID0_SLEEP@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w9, w21, w9
Lloh32:
	adrp	x10, _HID0_DPM@GOTPAGE
Lloh33:
	ldr	x10, [x10, _HID0_DPM@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w8, w10, w8
	orr	w21, w8, w9
Lloh35:
	adrp	x8, _powerpc_pow_enabled@GOTPAGE
Lloh36:
	ldr	x8, [x8, _powerpc_pow_enabled@GOTPAGEOFF]
	mov	w9, #1
Lloh37:
	str	w9, [x8]
LBB0_5:
	sub	w8, w20, #136
	cmp	w8, #2
	b.lo	LBB0_9
; %bb.6:
	cmp	w20, #142
	b.eq	LBB0_8
; %bb.7:
	cmp	w20, #130
	b.ne	LBB0_10
LBB0_8:
Lloh38:
	adrp	x8, _HID0_DBP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HID0_DBP@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh41:
	adrp	x9, _HID0_EMCP@GOTPAGE
Lloh42:
	ldr	x9, [x9, _HID0_EMCP@GOTPAGEOFF]
Lloh43:
	adrp	x10, _HID0_BTIC@GOTPAGE
Lloh44:
	ldr	x10, [x10, _HID0_BTIC@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
Lloh46:
	ldr	w10, [x10]
Lloh47:
	adrp	x11, _HID0_SGE@GOTPAGE
Lloh48:
	ldr	x11, [x11, _HID0_SGE@GOTPAGEOFF]
Lloh49:
	adrp	x12, _HID0_BHT@GOTPAGE
Lloh50:
	ldr	x12, [x12, _HID0_BHT@GOTPAGEOFF]
Lloh51:
	ldr	w11, [x11]
Lloh52:
	ldr	w12, [x12]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w21, w8, w12
	b	LBB0_10
LBB0_9:
Lloh53:
	adrp	x8, _HID0_SPD@GOTPAGE
Lloh54:
	ldr	x8, [x8, _HID0_SPD@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh56:
	adrp	x9, _HID0_EMCP@GOTPAGE
Lloh57:
	ldr	x9, [x9, _HID0_EMCP@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
Lloh59:
	adrp	x10, _HID0_BTIC@GOTPAGE
Lloh60:
	ldr	x10, [x10, _HID0_BTIC@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x10]
Lloh62:
	adrp	x11, _HID0_SGE@GOTPAGE
Lloh63:
	ldr	x11, [x11, _HID0_SGE@GOTPAGEOFF]
Lloh64:
	ldr	w11, [x11]
Lloh65:
	adrp	x12, _HID0_BHT@GOTPAGE
Lloh66:
	ldr	x12, [x12, _HID0_BHT@GOTPAGEOFF]
Lloh67:
	ldr	w12, [x12]
Lloh68:
	adrp	x13, _HID0_EIEC@GOTPAGE
Lloh69:
	ldr	x13, [x13, _HID0_EIEC@GOTPAGEOFF]
Lloh70:
	ldr	w13, [x13]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w21, w8, w13
LBB0_10:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_mtspr
Lloh71:
	adrp	x8, _bootverbose@GOTPAGE
Lloh72:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_cpu_6xx_print_cacheinfo
LBB0_12:
Lloh74:
	adrp	x8, _HID0_7450_BITMASK@GOTPAGE
Lloh75:
	ldr	x8, [x8, _HID0_7450_BITMASK@GOTPAGEOFF]
	sub	w9, w20, #131
Lloh76:
	adrp	x10, _HID0_BITMASK@GOTPAGE
Lloh77:
	ldr	x10, [x10, _HID0_BITMASK@GOTPAGEOFF]
	cmp	w9, #5
	csel	x8, x8, x10, lo
	ldr	x3, [x8]
Lloh78:
	adrp	x0, l_.str@PAGE
Lloh79:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_printf
Lloh80:
	adrp	x8, _cpu_idle_hook@GOTPAGE
Lloh81:
	ldr	x8, [x8, _cpu_idle_hook@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_14
; %bb.13:
Lloh82:
	adrp	x9, _cpu_idle_60x@GOTPAGE
Lloh83:
	ldr	x9, [x9, _cpu_idle_60x@GOTPAGEOFF]
Lloh84:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh51
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh45
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_SPR_HID0,4,2                   ; @SPR_HID0
	.comm	_HID0_DOZE,4,2                  ; @HID0_DOZE
	.comm	_HID0_NAP,4,2                   ; @HID0_NAP
	.comm	_HID0_SLEEP,4,2                 ; @HID0_SLEEP
	.comm	_HID0_DPM,4,2                   ; @HID0_DPM
	.comm	_powerpc_pow_enabled,4,2        ; @powerpc_pow_enabled
	.comm	_HID0_SGE,4,2                   ; @HID0_SGE
	.comm	_HID0_BTIC,4,2                  ; @HID0_BTIC
	.comm	_HID0_LRSTK,4,2                 ; @HID0_LRSTK
	.comm	_HID0_FOLD,4,2                  ; @HID0_FOLD
	.comm	_HID0_BHT,4,2                   ; @HID0_BHT
	.comm	_HID0_DBP,4,2                   ; @HID0_DBP
	.comm	_HID0_EMCP,4,2                  ; @HID0_EMCP
	.comm	_HID0_SPD,4,2                   ; @HID0_SPD
	.comm	_HID0_EIEC,4,2                  ; @HID0_EIEC
	.comm	_bootverbose,8,3                ; @bootverbose
	.comm	_HID0_7450_BITMASK,8,3          ; @HID0_7450_BITMASK
	.comm	_HID0_BITMASK,8,3               ; @HID0_BITMASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpu%d: HID0 %b\n"

	.comm	_cpu_idle_hook,8,3              ; @cpu_idle_hook
	.comm	_cpu_idle_60x,8,3               ; @cpu_idle_60x
.subsections_via_symbols
