	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_disable_rc6
_ironlake_disable_rc6:                  ## @ironlake_disable_rc6
	.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
	movq	_PWRCTXA@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_RSTDBYCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_RCX_SW_EXIT@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	movq	_RSX_STATUS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_RSX_STATUS_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	movl	$50, %esi
	callq	_wait_for
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movl	(%r15), %edi
	callq	_POSTING_READ
	movl	(%r14), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movl	(%r12), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWRCTXA,4,2                    ## @PWRCTXA
	.comm	_RSTDBYCTL,4,2                  ## @RSTDBYCTL
	.comm	_RCX_SW_EXIT,4,2                ## @RCX_SW_EXIT
	.comm	_RSX_STATUS_MASK,4,2            ## @RSX_STATUS_MASK
	.comm	_RSX_STATUS_ON,4,2              ## @RSX_STATUS_ON
	.no_dead_strip	_ironlake_disable_rc6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_disable_rc6
_ironlake_disable_rc6:                  ; @ironlake_disable_rc6
	.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
Lloh0:
	adrp	x21, _PWRCTXA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PWRCTXA@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x20, _RSTDBYCTL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _RSTDBYCTL@GOTPAGEOFF]
	ldr	w19, [x20]
	mov	x0, x19
	bl	_I915_READ
Lloh4:
	adrp	x22, _RCX_SW_EXIT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _RCX_SW_EXIT@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w1, w8, w0
	mov	x0, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
Lloh6:
	adrp	x8, _RSX_STATUS_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSX_STATUS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _RSX_STATUS_ON@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RSX_STATUS_ON@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	mov	w1, #50
	bl	_wait_for
	ldr	w0, [x21]
	mov	w1, #0
	bl	_I915_WRITE
	ldr	w0, [x21]
	bl	_POSTING_READ
	ldr	w19, [x20]
	mov	x0, x19
	bl	_I915_READ
	ldr	w8, [x22]
	bic	w1, w0, w8
	mov	x0, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	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	_POSTING_READ
LBB0_2:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PWRCTXA,4,2                    ; @PWRCTXA
	.comm	_RSTDBYCTL,4,2                  ; @RSTDBYCTL
	.comm	_RCX_SW_EXIT,4,2                ; @RCX_SW_EXIT
	.comm	_RSX_STATUS_MASK,4,2            ; @RSX_STATUS_MASK
	.comm	_RSX_STATUS_ON,4,2              ; @RSX_STATUS_ON
	.no_dead_strip	_ironlake_disable_rc6
.subsections_via_symbols
