	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen6_do_reset
_gen6_do_reset:                         ## @gen6_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_GEN6_GDRST@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_GEN6_GRDOM_FULL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_I915_WRITE_NOTRACE
	movl	(%r15), %edi
	callq	_I915_READ_NOTRACE
	xorl	%edi, %edi
	andl	(%r12), %eax
	sete	%dil
	movl	$500, %esi                      ## imm = 0x1F4
	callq	_wait_for
	movl	%eax, %r15d
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	*16(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	*8(%rbx)
LBB0_3:
	movq	_GT_FIFO_FREE_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ_NOTRACE
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN6_GDRST,4,2                 ## @GEN6_GDRST
	.comm	_GEN6_GRDOM_FULL,4,2            ## @GEN6_GRDOM_FULL
	.comm	_GT_FIFO_FREE_ENTRIES,4,2       ## @GT_FIFO_FREE_ENTRIES
	.no_dead_strip	_gen6_do_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen6_do_reset
_gen6_do_reset:                         ; @gen6_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]
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x21, _GEN6_GDRST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GEN6_GDRST@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _GEN6_GRDOM_FULL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GEN6_GRDOM_FULL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_I915_WRITE_NOTRACE
	ldr	w0, [x21]
	bl	_I915_READ_NOTRACE
	ldr	w8, [x22]
	tst	w8, w0
	cset	w0, eq
	mov	w1, #500
	bl	_wait_for
	mov	x21, x0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
LBB0_3:
	mov	x0, x19
	blr	x8
Lloh4:
	adrp	x8, _GT_FIFO_FREE_ENTRIES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GT_FIFO_FREE_ENTRIES@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_I915_READ_NOTRACE
	str	w0, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN6_GDRST,4,2                 ; @GEN6_GDRST
	.comm	_GEN6_GRDOM_FULL,4,2            ; @GEN6_GRDOM_FULL
	.comm	_GT_FIFO_FREE_ENTRIES,4,2       ; @GT_FIFO_FREE_ENTRIES
	.no_dead_strip	_gen6_do_reset
.subsections_via_symbols
