	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_lr_context_reset         ## -- Begin function intel_lr_context_reset
	.p2align	4, 0x90
_intel_lr_context_reset:                ## @intel_lr_context_reset
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %r12
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	_LRC_STATE_PN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rcx, %rax
	addq	%rax, %rsi
	movq	(%r14), %rdx
	subq	%rcx, %rdx
	movq	%r12, %rdi
	callq	_memcpy
LBB0_3:
	movq	(%rbx), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_execlists_init_reg_state
LBB0_4:
	movq	(%rbx), %rdi
	movl	%r15d, (%rdi)
	callq	_intel_ring_update_space
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___execlists_update_reg_state   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LRC_STATE_PN,4,2               ## @LRC_STATE_PN
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_lr_context_reset         ; -- Begin function intel_lr_context_reset
	.p2align	2
_intel_lr_context_reset:                ; @intel_lr_context_reset
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	cbz	w3, LBB0_4
; %bb.1:
	ldr	x22, [x20, #8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, _LRC_STATE_PN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LRC_STATE_PN@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
Lloh3:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	madd	x1, x10, x9, x8
	ldr	x8, [x19]
	sub	x2, x8, x10
	mov	x0, x22
	bl	_memcpy
LBB0_3:
	ldr	x3, [x20]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_execlists_init_reg_state
LBB0_4:
	ldr	x0, [x20]
	str	w21, [x0]
	bl	_intel_ring_update_space
	mov	x0, x20
	mov	x1, x19
	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	___execlists_update_reg_state
	.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
.subsections_via_symbols
