	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_enable_rps
_gen8_enable_rps:                       ## @gen8_enable_rps
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_intel_uncore_forcewake_get
	movq	_GEN6_RPNSWREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	12(%r14), %edi
	callq	_HSW_FREQUENCY
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_GEN6_RC_VIDEO_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	12(%r14), %edi
	callq	_HSW_FREQUENCY
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_GEN6_RP_DOWN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$781250, %esi                   ## imm = 0xBEBC2
	callq	_I915_WRITE
	movq	_GEN6_RP_INTERRUPT_LIMITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %eax
	movl	8(%r14), %esi
	shll	$24, %eax
	shll	$16, %esi
	orl	%eax, %esi
	callq	_I915_WRITE
	movq	_GEN6_RP_UP_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$59375, %esi                    ## imm = 0xE7EF
	callq	_I915_WRITE
	movq	_GEN6_RP_DOWN_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$244531, %esi                   ## imm = 0x3BB33
	callq	_I915_WRITE
	movq	_GEN6_RP_UP_EI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$66000, %esi                    ## imm = 0x101D0
	callq	_I915_WRITE
	movq	_GEN6_RP_DOWN_EI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$350000, %esi                   ## imm = 0x55730
	callq	_I915_WRITE
	movq	_GEN6_RP_IDLE_HYSTERSIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$10, %esi
	callq	_I915_WRITE
	movq	_GEN6_RP_MEDIA_TURBO@GOTPCREL(%rip), %rax
	movq	_GEN6_RP_MEDIA_HW_NORMAL_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_GEN6_RP_MEDIA_IS_GFX@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_GEN6_RP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_GEN6_RP_CONTROL@GOTPCREL(%rip), %rax
	movq	_GEN6_RP_UP_BUSY_AVG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_GEN6_RP_DOWN_IDLE_AVG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_I915_WRITE
	movq	_gen6_set_rps@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_reset_rps
	movl	(%r15), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_uncore_forcewake_put     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FORCEWAKE_ALL,4,2              ## @FORCEWAKE_ALL
	.comm	_GEN6_RPNSWREQ,4,2              ## @GEN6_RPNSWREQ
	.comm	_GEN6_RC_VIDEO_FREQ,4,2         ## @GEN6_RC_VIDEO_FREQ
	.comm	_GEN6_RP_DOWN_TIMEOUT,4,2       ## @GEN6_RP_DOWN_TIMEOUT
	.comm	_GEN6_RP_INTERRUPT_LIMITS,4,2   ## @GEN6_RP_INTERRUPT_LIMITS
	.comm	_GEN6_RP_UP_THRESHOLD,4,2       ## @GEN6_RP_UP_THRESHOLD
	.comm	_GEN6_RP_DOWN_THRESHOLD,4,2     ## @GEN6_RP_DOWN_THRESHOLD
	.comm	_GEN6_RP_UP_EI,4,2              ## @GEN6_RP_UP_EI
	.comm	_GEN6_RP_DOWN_EI,4,2            ## @GEN6_RP_DOWN_EI
	.comm	_GEN6_RP_IDLE_HYSTERSIS,4,2     ## @GEN6_RP_IDLE_HYSTERSIS
	.comm	_GEN6_RP_CONTROL,4,2            ## @GEN6_RP_CONTROL
	.comm	_GEN6_RP_MEDIA_TURBO,4,2        ## @GEN6_RP_MEDIA_TURBO
	.comm	_GEN6_RP_MEDIA_HW_NORMAL_MODE,4,2 ## @GEN6_RP_MEDIA_HW_NORMAL_MODE
	.comm	_GEN6_RP_MEDIA_IS_GFX,4,2       ## @GEN6_RP_MEDIA_IS_GFX
	.comm	_GEN6_RP_ENABLE,4,2             ## @GEN6_RP_ENABLE
	.comm	_GEN6_RP_UP_BUSY_AVG,4,2        ## @GEN6_RP_UP_BUSY_AVG
	.comm	_GEN6_RP_DOWN_IDLE_AVG,4,2      ## @GEN6_RP_DOWN_IDLE_AVG
	.comm	_gen6_set_rps,4,2               ## @gen6_set_rps
	.no_dead_strip	_gen8_enable_rps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_enable_rps
_gen8_enable_rps:                       ; @gen8_enable_rps
	.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	x19, x0
Lloh0:
	adrp	x21, _FORCEWAKE_ALL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FORCEWAKE_ALL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_intel_uncore_forcewake_get
Lloh2:
	adrp	x8, _GEN6_RPNSWREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GEN6_RPNSWREQ@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	w0, [x19, #12]
	bl	_HSW_FREQUENCY
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE
Lloh5:
	adrp	x8, _GEN6_RC_VIDEO_FREQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GEN6_RC_VIDEO_FREQ@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	w0, [x19, #12]
	bl	_HSW_FREQUENCY
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE
Lloh8:
	adrp	x8, _GEN6_RP_DOWN_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GEN6_RP_DOWN_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #60354
	movk	w1, #11, lsl #16
	bl	_I915_WRITE
Lloh11:
	adrp	x8, _GEN6_RP_INTERRUPT_LIMITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GEN6_RP_INTERRUPT_LIMITS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	w8, w9, [x19, #4]
	lsl	w9, w9, #16
	orr	w1, w9, w8, lsl #24
	bl	_I915_WRITE
Lloh14:
	adrp	x8, _GEN6_RP_UP_THRESHOLD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GEN6_RP_UP_THRESHOLD@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #59375
	bl	_I915_WRITE
Lloh17:
	adrp	x8, _GEN6_RP_DOWN_THRESHOLD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GEN6_RP_DOWN_THRESHOLD@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #47923
	movk	w1, #3, lsl #16
	bl	_I915_WRITE
Lloh20:
	adrp	x8, _GEN6_RP_UP_EI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GEN6_RP_UP_EI@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #464
	movk	w1, #1, lsl #16
	bl	_I915_WRITE
Lloh23:
	adrp	x8, _GEN6_RP_DOWN_EI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GEN6_RP_DOWN_EI@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	w1, #22320
	movk	w1, #5, lsl #16
	bl	_I915_WRITE
Lloh26:
	adrp	x8, _GEN6_RP_IDLE_HYSTERSIS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GEN6_RP_IDLE_HYSTERSIS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	w1, #10
	bl	_I915_WRITE
Lloh29:
	adrp	x8, _GEN6_RP_CONTROL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GEN6_RP_CONTROL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _GEN6_RP_MEDIA_TURBO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GEN6_RP_MEDIA_TURBO@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _GEN6_RP_MEDIA_HW_NORMAL_MODE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _GEN6_RP_MEDIA_HW_NORMAL_MODE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh38:
	adrp	x9, _GEN6_RP_MEDIA_IS_GFX@GOTPAGE
Lloh39:
	ldr	x9, [x9, _GEN6_RP_MEDIA_IS_GFX@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh41:
	adrp	x9, _GEN6_RP_ENABLE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _GEN6_RP_ENABLE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh44:
	adrp	x9, _GEN6_RP_UP_BUSY_AVG@GOTPAGE
Lloh45:
	ldr	x9, [x9, _GEN6_RP_UP_BUSY_AVG@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh47:
	adrp	x9, _GEN6_RP_DOWN_IDLE_AVG@GOTPAGE
Lloh48:
	ldr	x9, [x9, _GEN6_RP_DOWN_IDLE_AVG@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_I915_WRITE
Lloh50:
	adrp	x8, _gen6_set_rps@GOTPAGE
Lloh51:
	ldr	x8, [x8, _gen6_set_rps@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reset_rps
	ldr	w1, [x21]
	mov	x0, x19
	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
	b	_intel_uncore_forcewake_put
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
	.comm	_GEN6_RPNSWREQ,4,2              ; @GEN6_RPNSWREQ
	.comm	_GEN6_RC_VIDEO_FREQ,4,2         ; @GEN6_RC_VIDEO_FREQ
	.comm	_GEN6_RP_DOWN_TIMEOUT,4,2       ; @GEN6_RP_DOWN_TIMEOUT
	.comm	_GEN6_RP_INTERRUPT_LIMITS,4,2   ; @GEN6_RP_INTERRUPT_LIMITS
	.comm	_GEN6_RP_UP_THRESHOLD,4,2       ; @GEN6_RP_UP_THRESHOLD
	.comm	_GEN6_RP_DOWN_THRESHOLD,4,2     ; @GEN6_RP_DOWN_THRESHOLD
	.comm	_GEN6_RP_UP_EI,4,2              ; @GEN6_RP_UP_EI
	.comm	_GEN6_RP_DOWN_EI,4,2            ; @GEN6_RP_DOWN_EI
	.comm	_GEN6_RP_IDLE_HYSTERSIS,4,2     ; @GEN6_RP_IDLE_HYSTERSIS
	.comm	_GEN6_RP_CONTROL,4,2            ; @GEN6_RP_CONTROL
	.comm	_GEN6_RP_MEDIA_TURBO,4,2        ; @GEN6_RP_MEDIA_TURBO
	.comm	_GEN6_RP_MEDIA_HW_NORMAL_MODE,4,2 ; @GEN6_RP_MEDIA_HW_NORMAL_MODE
	.comm	_GEN6_RP_MEDIA_IS_GFX,4,2       ; @GEN6_RP_MEDIA_IS_GFX
	.comm	_GEN6_RP_ENABLE,4,2             ; @GEN6_RP_ENABLE
	.comm	_GEN6_RP_UP_BUSY_AVG,4,2        ; @GEN6_RP_UP_BUSY_AVG
	.comm	_GEN6_RP_DOWN_IDLE_AVG,4,2      ; @GEN6_RP_DOWN_IDLE_AVG
	.comm	_gen6_set_rps,4,2               ; @gen6_set_rps
	.no_dead_strip	_gen8_enable_rps
.subsections_via_symbols
