	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_rcs
_setup_rcs:                             ## @setup_rcs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_HAS_L3_DPF
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GT_RENDER_L3_PARITY_ERROR_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
LBB0_2:
	movq	_GT_RENDER_USER_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$7, %eax
	jl	LBB0_5
## %bb.3:
	movq	_gen7_render_ring_flush@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_gen7_rcs_emit_breadcrumb@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_gen6_render_ring_flush@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_gen6_rcs_emit_breadcrumb@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
LBB0_13:
	movq	%r14, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_hsw_emit_bb_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_15:
	movq	_rcs_resume@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_gen4_render_ring_flush@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_13
LBB0_9:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jge	LBB0_10
## %bb.11:
	movq	_gen2_render_ring_flush@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_gen4_render_ring_flush@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_I915_USER_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GT_RENDER_L3_PARITY_ERROR_INTERRUPT,4,2 ## @GT_RENDER_L3_PARITY_ERROR_INTERRUPT
	.comm	_GT_RENDER_USER_INTERRUPT,4,2   ## @GT_RENDER_USER_INTERRUPT
	.comm	_gen7_render_ring_flush,8,3     ## @gen7_render_ring_flush
	.comm	_gen7_rcs_emit_breadcrumb,4,2   ## @gen7_rcs_emit_breadcrumb
	.comm	_gen6_render_ring_flush,8,3     ## @gen6_render_ring_flush
	.comm	_gen6_rcs_emit_breadcrumb,4,2   ## @gen6_rcs_emit_breadcrumb
	.comm	_gen4_render_ring_flush,8,3     ## @gen4_render_ring_flush
	.comm	_gen2_render_ring_flush,8,3     ## @gen2_render_ring_flush
	.comm	_I915_USER_INTERRUPT,4,2        ## @I915_USER_INTERRUPT
	.comm	_hsw_emit_bb_start,4,2          ## @hsw_emit_bb_start
	.comm	_rcs_resume,4,2                 ## @rcs_resume
	.no_dead_strip	_setup_rcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_rcs
_setup_rcs:                             ; @setup_rcs
	.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	x20, [x0, #32]
	mov	x0, x20
	bl	_HAS_L3_DPF
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GT_RENDER_L3_PARITY_ERROR_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GT_RENDER_L3_PARITY_ERROR_INTERRUPT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #28]
LBB0_2:
Lloh3:
	adrp	x8, _GT_RENDER_USER_INTERRUPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GT_RENDER_USER_INTERRUPT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #7
	b.lt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _gen7_render_ring_flush@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gen7_render_ring_flush@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh9:
	adrp	x8, _gen7_rcs_emit_breadcrumb@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gen7_rcs_emit_breadcrumb@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	w1, #6
	bl	_IS_GEN
	cbz	x0, LBB0_10
; %bb.5:
Lloh11:
	adrp	x8, _gen6_render_ring_flush@GOTPAGE
Lloh12:
	ldr	x8, [x8, _gen6_render_ring_flush@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh14:
	adrp	x8, _gen6_rcs_emit_breadcrumb@GOTPAGE
Lloh15:
	ldr	x8, [x8, _gen6_rcs_emit_breadcrumb@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_7:
	mov	x0, x20
	bl	_IS_HASWELL
	cbz	x0, LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _hsw_emit_bb_start@GOTPAGE
Lloh17:
	ldr	x8, [x8, _hsw_emit_bb_start@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_9:
Lloh19:
	adrp	x8, _rcs_resume@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rcs_resume@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x20
	mov	w1, #5
	bl	_IS_GEN
	cbz	x0, LBB0_12
; %bb.11:
Lloh22:
	adrp	x8, _gen4_render_ring_flush@GOTPAGE
Lloh23:
	ldr	x8, [x8, _gen4_render_ring_flush@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_7
LBB0_12:
	mov	x0, x20
	bl	_INTEL_GEN
Lloh25:
	adrp	x8, _gen2_render_ring_flush@GOTPAGE
Lloh26:
	ldr	x8, [x8, _gen2_render_ring_flush@GOTPAGEOFF]
Lloh27:
	adrp	x9, _gen4_render_ring_flush@GOTPAGE
Lloh28:
	ldr	x9, [x9, _gen4_render_ring_flush@GOTPAGEOFF]
	cmp	w0, #4
	csel	x8, x8, x9, lt
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh29:
	adrp	x8, _I915_USER_INTERRUPT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _I915_USER_INTERRUPT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GT_RENDER_L3_PARITY_ERROR_INTERRUPT,4,2 ; @GT_RENDER_L3_PARITY_ERROR_INTERRUPT
	.comm	_GT_RENDER_USER_INTERRUPT,4,2   ; @GT_RENDER_USER_INTERRUPT
	.comm	_gen7_render_ring_flush,8,3     ; @gen7_render_ring_flush
	.comm	_gen7_rcs_emit_breadcrumb,4,2   ; @gen7_rcs_emit_breadcrumb
	.comm	_gen6_render_ring_flush,8,3     ; @gen6_render_ring_flush
	.comm	_gen6_rcs_emit_breadcrumb,4,2   ; @gen6_rcs_emit_breadcrumb
	.comm	_gen4_render_ring_flush,8,3     ; @gen4_render_ring_flush
	.comm	_gen2_render_ring_flush,8,3     ; @gen2_render_ring_flush
	.comm	_I915_USER_INTERRUPT,4,2        ; @I915_USER_INTERRUPT
	.comm	_hsw_emit_bb_start,4,2          ; @hsw_emit_bb_start
	.comm	_rcs_resume,4,2                 ; @rcs_resume
	.no_dead_strip	_setup_rcs
.subsections_via_symbols
