	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen6_disable_rps
_gen6_disable_rps:                      ## @gen6_disable_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	_GEN6_RC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movq	_GEN6_RPNSWREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2147483648, %esi              ## imm = 0x80000000
	callq	_I915_WRITE
	movq	_GEN6_PMINTRMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_I915_WRITE
	movq	_GEN6_PMIER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_GEN6_PMIIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN6_RC_CONTROL,4,2            ## @GEN6_RC_CONTROL
	.comm	_GEN6_RPNSWREQ,4,2              ## @GEN6_RPNSWREQ
	.comm	_GEN6_PMINTRMSK,4,2             ## @GEN6_PMINTRMSK
	.comm	_GEN6_PMIER,4,2                 ## @GEN6_PMIER
	.comm	_GEN6_PMIIR,4,2                 ## @GEN6_PMIIR
	.no_dead_strip	_gen6_disable_rps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen6_disable_rps
_gen6_disable_rps:                      ; @gen6_disable_rps
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _GEN6_RC_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN6_RC_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_I915_WRITE
Lloh3:
	adrp	x8, _GEN6_RPNSWREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN6_RPNSWREQ@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #-2147483648
	bl	_I915_WRITE
Lloh6:
	adrp	x8, _GEN6_PMINTRMSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEN6_PMINTRMSK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_I915_WRITE
Lloh9:
	adrp	x8, _GEN6_PMIER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GEN6_PMIER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_I915_WRITE
	mov	x0, x19
	bl	_spin_lock_irq
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irq
Lloh12:
	adrp	x8, _GEN6_PMIIR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GEN6_PMIIR@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_I915_READ
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN6_RC_CONTROL,4,2            ; @GEN6_RC_CONTROL
	.comm	_GEN6_RPNSWREQ,4,2              ; @GEN6_RPNSWREQ
	.comm	_GEN6_PMINTRMSK,4,2             ; @GEN6_PMINTRMSK
	.comm	_GEN6_PMIER,4,2                 ; @GEN6_PMIER
	.comm	_GEN6_PMIIR,4,2                 ; @GEN6_PMIIR
	.no_dead_strip	_gen6_disable_rps
.subsections_via_symbols
