	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	_ILK_GDSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ILK_GRDOM_RENDER@GOTPCREL(%rip), %rax
	movq	_ILK_GRDOM_RESET_ENABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_intel_uncore_write_fw
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	$0, (%rsp)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$5000, %r8d                     ## imm = 0x1388
	xorl	%r9d, %r9d
	callq	___intel_wait_for_register_fw
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movl	(%r15), %esi
	movq	_ILK_GRDOM_MEDIA@GOTPCREL(%rip), %rax
	movl	(%r12), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_intel_uncore_write_fw
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$5000, %r8d                     ## imm = 0x1388
	xorl	%r9d, %r9d
	callq	___intel_wait_for_register_fw
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movl	%eax, %r14d
	callq	_DRM_DEBUG_DRIVER
LBB0_5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_intel_uncore_write_fw
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_intel_uncore_posting_read_fw
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ILK_GDSR,4,2                   ## @ILK_GDSR
	.comm	_ILK_GRDOM_RENDER,4,2           ## @ILK_GRDOM_RENDER
	.comm	_ILK_GRDOM_RESET_ENABLE,4,2     ## @ILK_GRDOM_RESET_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wait for render reset failed\n"

	.comm	_ILK_GRDOM_MEDIA,4,2            ## @ILK_GRDOM_MEDIA
L_.str.1:                               ## @.str.1
	.asciz	"Wait for media reset failed\n"

	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x21, _ILK_GDSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ILK_GDSR@GOTPAGEOFF]
Lloh2:
	adrp	x8, _ILK_GRDOM_RENDER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ILK_GRDOM_RENDER@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _ILK_GRDOM_RESET_ENABLE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ILK_GRDOM_RESET_ENABLE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_intel_uncore_write_fw
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #5000
	mov	w5, #0
	mov	x6, #0
	bl	___intel_wait_for_register_fw
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w1, [x21]
Lloh9:
	adrp	x8, _ILK_GRDOM_MEDIA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ILK_GRDOM_MEDIA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_intel_uncore_write_fw
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #5000
	mov	w5, #0
	mov	x6, #0
	bl	___intel_wait_for_register_fw
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_DRM_DEBUG_DRIVER
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_intel_uncore_write_fw
	ldr	w1, [x21]
	mov	x0, x19
	bl	_intel_uncore_posting_read_fw
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ILK_GDSR,4,2                   ; @ILK_GDSR
	.comm	_ILK_GRDOM_RENDER,4,2           ; @ILK_GRDOM_RENDER
	.comm	_ILK_GRDOM_RESET_ENABLE,4,2     ; @ILK_GRDOM_RESET_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wait for render reset failed\n"

	.comm	_ILK_GRDOM_MEDIA,4,2            ; @ILK_GRDOM_MEDIA
l_.str.1:                               ; @.str.1
	.asciz	"Wait for media reset failed\n"

	.no_dead_strip	_ironlake_do_reset
.subsections_via_symbols
