	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen9_enable_rps
_gen9_enable_rps:                       ## @gen9_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, %rbx
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_intel_uncore_forcewake_get
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GEN6_RC_VIDEO_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%rbx), %edi
	callq	_GEN9_FREQUENCY
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_2:
	movq	_GEN6_RP_DOWN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_GT_INTERVAL_FROM_US
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_GEN6_RP_IDLE_HYSTERSIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$10, %esi
	callq	_I915_WRITE
	movq	_gen6_set_rps@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reset_rps
	movl	(%r15), %esi
	movq	%rbx, %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_RC_VIDEO_FREQ,4,2         ## @GEN6_RC_VIDEO_FREQ
	.comm	_GEN6_RP_DOWN_TIMEOUT,4,2       ## @GEN6_RP_DOWN_TIMEOUT
	.comm	_GEN6_RP_IDLE_HYSTERSIS,4,2     ## @GEN6_RP_IDLE_HYSTERSIS
	.comm	_gen6_set_rps,4,2               ## @gen6_set_rps
	.no_dead_strip	_gen9_enable_rps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen9_enable_rps
_gen9_enable_rps:                       ; @gen9_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
	mov	x0, x19
	mov	w1, #9
	bl	_IS_GEN
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _GEN6_RC_VIDEO_FREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GEN6_RC_VIDEO_FREQ@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	w0, [x19, #4]
	bl	_GEN9_FREQUENCY
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE
LBB0_2:
Lloh5:
	adrp	x8, _GEN6_RP_DOWN_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GEN6_RP_DOWN_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_GT_INTERVAL_FROM_US
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE
Lloh8:
	adrp	x8, _GEN6_RP_IDLE_HYSTERSIS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GEN6_RP_IDLE_HYSTERSIS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #10
	bl	_I915_WRITE
Lloh11:
	adrp	x8, _gen6_set_rps@GOTPAGE
Lloh12:
	ldr	x8, [x8, _gen6_set_rps@GOTPAGEOFF]
Lloh13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
	.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_IDLE_HYSTERSIS,4,2     ; @GEN6_RP_IDLE_HYSTERSIS
	.comm	_gen6_set_rps,4,2               ; @gen6_set_rps
	.no_dead_strip	_gen9_enable_rps
.subsections_via_symbols
