	.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	%rsi, %r14
	movq	(%rdi), %rbx
	callq	_IS_GEN7
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_RCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rbx), %rax
	cmpq	%r14, %rax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_intel_ring_begin
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_ring_emit
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_GEN7_SO_WRITE_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_ring_emit
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_intel_ring_emit
	movl	$1, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_ring_emit
	movl	$1, %edi
	callq	_GEN7_SO_WRITE_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_ring_emit
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_intel_ring_emit
	movl	$1, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_ring_emit
	movl	$2, %edi
	callq	_GEN7_SO_WRITE_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_ring_emit
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_intel_ring_emit
	movl	$1, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_ring_emit
	movl	$3, %edi
	callq	_GEN7_SO_WRITE_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_ring_emit
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_intel_ring_emit
	movq	%r14, %rdi
	callq	_intel_ring_advance
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCS,8,3                        ## @RCS
	.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, x1
	ldr	x20, [x0]
	bl	_IS_GEN7
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	cmp	x8, x19
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	w1, #12
	bl	_intel_ring_begin
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #1
	bl	_MI_LOAD_REGISTER_IMM
	mov	x1, x0
	mov	x0, x19
	bl	_intel_ring_emit
	mov	w0, #0
	bl	_GEN7_SO_WRITE_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_intel_ring_emit
	mov	x0, x19
	mov	w1, #0
	bl	_intel_ring_emit
	mov	w0, #1
	bl	_MI_LOAD_REGISTER_IMM
	mov	x1, x0
	mov	x0, x19
	bl	_intel_ring_emit
	mov	w0, #1
	bl	_GEN7_SO_WRITE_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_intel_ring_emit
	mov	x0, x19
	mov	w1, #0
	bl	_intel_ring_emit
	mov	w0, #1
	bl	_MI_LOAD_REGISTER_IMM
	mov	x1, x0
	mov	x0, x19
	bl	_intel_ring_emit
	mov	w0, #2
	bl	_GEN7_SO_WRITE_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_intel_ring_emit
	mov	x0, x19
	mov	w1, #0
	bl	_intel_ring_emit
	mov	w0, #1
	bl	_MI_LOAD_REGISTER_IMM
	mov	x1, x0
	mov	x0, x19
	bl	_intel_ring_emit
	mov	w0, #3
	bl	_GEN7_SO_WRITE_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_intel_ring_emit
	mov	x0, x19
	mov	w1, #0
	bl	_intel_ring_emit
	mov	x0, x19
	bl	_intel_ring_advance
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RCS,8,3                        ; @RCS
	.no_dead_strip	_i915_reset_gen7_sol_offsets
.subsections_via_symbols
