	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_do_reset
_ironlake_do_reset:                     ## @ironlake_do_reset
	.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	_MCHBAR_MIRROR_BASE@GOTPCREL(%rip), %r14
	movq	_ILK_GDSR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_I915_READ
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	movq	_GRDOM_RENDER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_GRDOM_RESET_ENABLE@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_I915_READ
	andl	$1, %eax
	movl	%eax, %edi
	movl	$500, %esi                      ## imm = 0x1F4
	callq	_wait_for
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_I915_READ
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	movq	_GRDOM_MEDIA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r15), %eax
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_I915_READ
	andl	$1, %eax
	movl	%eax, %edi
	movl	$500, %esi                      ## imm = 0x1F4
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_for                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCHBAR_MIRROR_BASE,8,3         ## @MCHBAR_MIRROR_BASE
	.comm	_ILK_GDSR,8,3                   ## @ILK_GDSR
	.comm	_GRDOM_RENDER,4,2               ## @GRDOM_RENDER
	.comm	_GRDOM_RESET_ENABLE,4,2         ## @GRDOM_RESET_ENABLE
	.comm	_GRDOM_MEDIA,4,2                ## @GRDOM_MEDIA
	.no_dead_strip	_ironlake_do_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_do_reset
_ironlake_do_reset:                     ; @ironlake_do_reset
	.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	x19, _MCHBAR_MIRROR_BASE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MCHBAR_MIRROR_BASE@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _ILK_GDSR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ILK_GDSR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_I915_READ
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x9, x8
Lloh4:
	adrp	x9, _GRDOM_RENDER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GRDOM_RENDER@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w9, w9, w0
Lloh7:
	adrp	x21, _GRDOM_RESET_ENABLE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _GRDOM_RESET_ENABLE@GOTPAGEOFF]
	ldr	w10, [x21]
	orr	w1, w9, w10
	mov	x0, x8
	bl	_I915_WRITE
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_I915_READ
	and	w0, w0, #0x1
	mov	w1, #500
	bl	_wait_for
	cbz	w0, LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_I915_READ
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x9, x8
Lloh9:
	adrp	x9, _GRDOM_MEDIA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GRDOM_MEDIA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w9, w9, w0
	ldr	w10, [x21]
	orr	w1, w9, w10
	mov	x0, x8
	bl	_I915_WRITE
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_I915_READ
	and	w0, w0, #0x1
	mov	w1, #500
	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	_wait_for
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MCHBAR_MIRROR_BASE,8,3         ; @MCHBAR_MIRROR_BASE
	.comm	_ILK_GDSR,8,3                   ; @ILK_GDSR
	.comm	_GRDOM_RENDER,4,2               ; @GRDOM_RENDER
	.comm	_GRDOM_RESET_ENABLE,4,2         ; @GRDOM_RESET_ENABLE
	.comm	_GRDOM_MEDIA,4,2                ; @GRDOM_MEDIA
	.no_dead_strip	_ironlake_do_reset
.subsections_via_symbols
