	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_reset_gen7_sol_offsets
_i915_reset_gen7_sol_offsets:           ## @i915_reset_gen7_sol_offsets
	.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	%rdi, %r15
	movl	8(%rdi), %edi
	movl	$7, %esi
	callq	_IS_GEN
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_RCS0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_intel_ring_begin
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$4, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_GEN7_SO_WRITE_OFFSET
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, 4(%r14)
	movl	$0, 8(%r14)
	movl	$1, %edi
	callq	_GEN7_SO_WRITE_OFFSET
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, 12(%r14)
	movl	$0, 16(%r14)
	movl	$2, %edi
	callq	_GEN7_SO_WRITE_OFFSET
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, 20(%r14)
	movl	$0, 24(%r14)
	movl	$3, %edi
	callq	_GEN7_SO_WRITE_OFFSET
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, 28(%r14)
	movl	$0, 32(%r14)
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rsi
	addq	$40, %rsi
	movl	%eax, 36(%r14)
	movq	%r15, %rdi
	callq	_intel_ring_advance
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_RCS0,8,3                       ## @RCS0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sol reset is gen7/rcs only\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MI_NOOP,8,3                    ## @MI_NOOP
	.no_dead_strip	_i915_reset_gen7_sol_offsets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_reset_gen7_sol_offsets
_i915_reset_gen7_sol_offsets:           ; @i915_reset_gen7_sol_offsets
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	mov	w1, #7
	bl	_IS_GEN
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _RCS0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCS0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #10
	bl	_intel_ring_begin
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #4
	bl	_MI_LOAD_REGISTER_IMM
	str	w0, [x20]
	mov	w0, #0
	bl	_GEN7_SO_WRITE_OFFSET
	bl	_i915_mmio_reg_offset
	stp	w0, wzr, [x20, #4]
	mov	w0, #1
	bl	_GEN7_SO_WRITE_OFFSET
	bl	_i915_mmio_reg_offset
	stp	w0, wzr, [x20, #12]
	mov	w0, #2
	bl	_GEN7_SO_WRITE_OFFSET
	bl	_i915_mmio_reg_offset
	stp	w0, wzr, [x20, #20]
	mov	w0, #3
	bl	_GEN7_SO_WRITE_OFFSET
	bl	_i915_mmio_reg_offset
	stp	w0, wzr, [x20, #28]
Lloh8:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x20, #40
	str	w8, [x20, #36]
	mov	x0, x19
	bl	_intel_ring_advance
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RCS0,8,3                       ; @RCS0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sol reset is gen7/rcs only\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MI_NOOP,8,3                    ; @MI_NOOP
	.no_dead_strip	_i915_reset_gen7_sol_offsets
.subsections_via_symbols
