	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_emit_rpcs_config
_gen8_emit_rpcs_config:                 ## @gen8_emit_rpcs_config
	.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, %r15
	movq	%rdi, %r14
	movl	%edx, -32(%rbp)
	movl	$4, %esi
	callq	_intel_ring_begin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	(%r15), %edi
	callq	_i915_ggtt_offset
	movq	_LRC_STATE_PN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	imulq	%rcx, %rdx
	addq	%rax, %rdx
	movq	_CTX_R_PWR_CLK_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	4(,%rax,4), %eax
	movslq	%eax, %r15
	addq	%rdx, %r15
	movq	_MI_STORE_DWORD_IMM_GEN4@GOTPCREL(%rip), %rax
	movq	_MI_USE_GGTT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%r15, %rdi
	callq	_lower_32_bits
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	callq	_upper_32_bits
	movl	%eax, 8(%rbx)
	movl	(%r14), %edi
	leaq	-32(%rbp), %rsi
	callq	_intel_sseu_make_rpcs
	movq	%rbx, %rsi
	addq	$16, %rsi
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	callq	_intel_ring_advance
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LRC_STATE_PN,4,2               ## @LRC_STATE_PN
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_CTX_R_PWR_CLK_STATE,4,2        ## @CTX_R_PWR_CLK_STATE
	.comm	_MI_STORE_DWORD_IMM_GEN4,4,2    ## @MI_STORE_DWORD_IMM_GEN4
	.comm	_MI_USE_GGTT,4,2                ## @MI_USE_GGTT
	.no_dead_strip	_gen8_emit_rpcs_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_emit_rpcs_config
_gen8_emit_rpcs_config:                 ; @gen8_emit_rpcs_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	str	w2, [sp, #8]
	mov	w1, #4
	bl	_intel_ring_begin
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_2:
	ldr	w0, [x21]
	bl	_i915_ggtt_offset
Lloh0:
	adrp	x8, _LRC_STATE_PN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LRC_STATE_PN@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
Lloh3:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	madd	x8, x9, x8, x0
Lloh6:
	adrp	x9, _CTX_R_PWR_CLK_STATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CTX_R_PWR_CLK_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	add	w9, w9, #4
	add	x21, x8, w9, sxtw
Lloh9:
	adrp	x8, _MI_STORE_DWORD_IMM_GEN4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MI_STORE_DWORD_IMM_GEN4@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MI_USE_GGTT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MI_USE_GGTT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x21
	bl	_lower_32_bits
	str	w0, [x20, #4]
	mov	x0, x21
	bl	_upper_32_bits
	str	w0, [x20, #8]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_intel_sseu_make_rpcs
	add	x1, x20, #16
	str	w0, [x20, #12]
	mov	x0, x19
	bl	_intel_ring_advance
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LRC_STATE_PN,4,2               ; @LRC_STATE_PN
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_CTX_R_PWR_CLK_STATE,4,2        ; @CTX_R_PWR_CLK_STATE
	.comm	_MI_STORE_DWORD_IMM_GEN4,4,2    ; @MI_STORE_DWORD_IMM_GEN4
	.comm	_MI_USE_GGTT,4,2                ; @MI_USE_GGTT
	.no_dead_strip	_gen8_emit_rpcs_config
.subsections_via_symbols
