	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __execlists_update_reg_state
___execlists_update_reg_state:          ## @__execlists_update_reg_state
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	16(%rdi), %rbx
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_intel_ring_offset_valid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_intel_ring_offset_valid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	8(%rbx), %edi
	callq	_i915_ggtt_offset
	movq	_CTX_RING_BUFFER_START@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, 4(%r12,%rcx,4)
	movl	4(%rbx), %eax
	movq	_CTX_RING_HEAD@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, 4(%r12,%rcx,4)
	movl	(%rbx), %eax
	movq	_CTX_RING_TAIL@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, 4(%r12,%rcx,4)
	movq	(%r15), %rax
	movq	_RENDER_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	8(%r15), %edi
	movq	%r14, %rsi
	callq	_intel_sseu_make_rpcs
	movq	_CTX_R_PWR_CLK_STATE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, 4(%r12,%rcx,4)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i915_oa_init_reg_state         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTX_RING_BUFFER_START,4,2      ## @CTX_RING_BUFFER_START
	.comm	_CTX_RING_HEAD,4,2              ## @CTX_RING_HEAD
	.comm	_CTX_RING_TAIL,4,2              ## @CTX_RING_TAIL
	.comm	_RENDER_CLASS,8,3               ## @RENDER_CLASS
	.comm	_CTX_R_PWR_CLK_STATE,4,2        ## @CTX_R_PWR_CLK_STATE
	.no_dead_strip	___execlists_update_reg_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __execlists_update_reg_state
___execlists_update_reg_state:          ; @__execlists_update_reg_state
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x21, x22, [x0, #8]
	ldr	w1, [x22, #4]
	mov	x0, x22
	bl	_intel_ring_offset_valid
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w1, [x22]
	mov	x0, x22
	bl	_intel_ring_offset_valid
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w0, [x22, #8]
	bl	_i915_ggtt_offset
Lloh0:
	adrp	x8, _CTX_RING_BUFFER_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTX_RING_BUFFER_START@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x8, x21, x8, lsl #2
	str	w0, [x8, #4]
	ldr	w8, [x22, #4]
Lloh3:
	adrp	x9, _CTX_RING_HEAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CTX_RING_HEAD@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x9, x21, x9, lsl #2
	str	w8, [x9, #4]
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _CTX_RING_TAIL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CTX_RING_TAIL@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	add	x9, x21, x9, lsl #2
	str	w8, [x9, #4]
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _RENDER_CLASS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RENDER_CLASS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_intel_sseu_make_rpcs
Lloh12:
	adrp	x8, _CTX_R_PWR_CLK_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CTX_R_PWR_CLK_STATE@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	add	x8, x21, x8, lsl #2
	str	w0, [x8, #4]
	mov	x0, x20
	mov	x1, x19
	mov	x2, 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
	b	_i915_oa_init_reg_state
LBB0_2:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CTX_RING_BUFFER_START,4,2      ; @CTX_RING_BUFFER_START
	.comm	_CTX_RING_HEAD,4,2              ; @CTX_RING_HEAD
	.comm	_CTX_RING_TAIL,4,2              ; @CTX_RING_TAIL
	.comm	_RENDER_CLASS,8,3               ; @RENDER_CLASS
	.comm	_CTX_R_PWR_CLK_STATE,4,2        ; @CTX_R_PWR_CLK_STATE
	.no_dead_strip	___execlists_update_reg_state
.subsections_via_symbols
