	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen6_enable_rps_interrupts     ## -- Begin function gen6_enable_rps_interrupts
	.p2align	4, 0x90
_gen6_enable_rps_interrupts:            ## @gen6_enable_rps_interrupts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_READ_ONCE
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	8(%rbx), %edi
	callq	_WARN_ON_ONCE
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_3
## %bb.2:
	movq	_GEN11_GTPM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gen11_gt_reset_one_iir
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_gen6_pm_iir
	movl	%eax, %edi
	callq	_I915_READ
	andl	(%rbx), %eax
LBB0_4:
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movl	$1, 4(%rbx)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_gen6_gt_pm_enable_irq
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN11_GTPM,4,2                 ## @GEN11_GTPM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen6_enable_rps_interrupts     ; -- Begin function gen6_enable_rps_interrupts
	.p2align	2
_gen6_enable_rps_interrupts:            ; @gen6_enable_rps_interrupts
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_READ_ONCE
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w0, [x19, #8]
	bl	_WARN_ON_ONCE
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _GEN11_GTPM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN11_GTPM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_gen11_gt_reset_one_iir
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_gen6_pm_iir
	bl	_I915_READ
	ldr	w8, [x19]
	and	w0, w8, w0
LBB0_5:
	bl	_WARN_ON_ONCE
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_gen6_gt_pm_enable_irq
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN11_GTPM,4,2                 ; @GEN11_GTPM
.subsections_via_symbols
