	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __execlists_reset
___execlists_reset:                     ## @__execlists_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	leaq	24(%rdi), %r14
	callq	_process_csb
	movq	%r13, %rdi
	callq	_reset_csb_pointers
	movq	%r14, %rdi
	callq	_execlists_active
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	8(%rax), %r15
	leaq	20(%r15), %rdi
	callq	_i915_active_is_idle
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movl	16(%r15), %edi
	callq	_i915_vma_is_pinned
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%rbx, %rdi
	callq	_active_request
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	(%rax), %esi
	callq	_intel_ring_wrap
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	%rbx, %rdi
	callq	_i915_request_started
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	___i915_request_reset
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.5:
	movq	8(%r15), %rbx
	movq	16(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	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	8(%r13), %rdx
	subq	%rcx, %rdx
	movq	%rbx, %rdi
	callq	_memcpy
LBB0_7:
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_execlists_init_reg_state
	jmp	LBB0_8
LBB0_2:
	movl	(%rdi), %eax
	movl	%eax, 4(%rdi)
LBB0_8:
	movl	(%r13), %esi
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_GEM_TRACE
	movq	(%r15), %rdi
	callq	_intel_ring_update_space
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	___execlists_update_reg_state
LBB0_9:
	movq	%r14, %rdi
	callq	_cancel_port_requests
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___unwind_incomplete_requests   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LRC_STATE_PN,4,2               ## @LRC_STATE_PN
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s replay {head:%04x, tail:%04x\n"

	.no_dead_strip	___execlists_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __execlists_reset
___execlists_reset:                     ; @__execlists_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	add	x20, x0, #24
	bl	_process_csb
	mov	x0, x19
	bl	_reset_csb_pointers
	mov	x0, x20
	bl	_execlists_active
	cbz	x0, LBB0_9
; %bb.1:
	mov	x23, x0
	ldr	x21, [x0, #8]
	add	x0, x21, #20
	bl	_i915_active_is_idle
	bl	_GEM_BUG_ON
	ldr	w0, [x21, #16]
	bl	_i915_vma_is_pinned
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x23
	bl	_active_request
	mov	x23, x0
	ldr	x0, [x21]
	cbz	x23, LBB0_7
; %bb.2:
	ldr	w1, [x23]
	bl	_intel_ring_wrap
	ldr	x8, [x21]
	str	w0, [x8, #4]
	mov	x0, x23
	bl	_i915_request_started
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	bl	___i915_request_reset
	cbz	w22, LBB0_8
; %bb.4:
	ldr	x22, [x21, #8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
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, #8]
	sub	x2, x8, x10
	mov	x0, x22
	bl	_memcpy
LBB0_6:
	ldr	x3, [x21]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_execlists_init_reg_state
	b	LBB0_8
LBB0_7:
	ldr	w8, [x0]
	str	w8, [x0, #4]
LBB0_8:
	ldr	w1, [x19]
	ldr	x8, [x21]
	ldp	w3, w2, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_GEM_TRACE
	ldr	x0, [x21]
	bl	_intel_ring_update_space
	mov	x0, x21
	mov	x1, x19
	bl	___execlists_update_reg_state
LBB0_9:
	mov	x0, x20
	bl	_cancel_port_requests
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	___unwind_incomplete_requests
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LRC_STATE_PN,4,2               ; @LRC_STATE_PN
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s replay {head:%04x, tail:%04x\n"

	.no_dead_strip	___execlists_reset
.subsections_via_symbols
