	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_sched_handle_error_task
_lima_sched_handle_error_task:          ## @lima_sched_handle_error_task
	.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, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_drm_sched_stop
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_drm_sched_increase_karma
LBB0_2:
	movq	%r12, %rdi
	callq	*40(%r12)
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.9:
	callq	_lima_mmu_page_fault_resume
	jmp	LBB0_6
LBB0_3:
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_lima_mmu_page_fault_resume
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_lima_vm_put
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	%r14, %rdi
	callq	_drm_sched_resubmit_jobs
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_sched_start                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lima_sched_handle_error_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_sched_handle_error_task
_lima_sched_handle_error_task:          ; @lima_sched_handle_error_task
	.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, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_drm_sched_stop
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_drm_sched_increase_karma
LBB0_2:
	ldr	x8, [x20, #40]
	mov	x0, x20
	blr	x8
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_lima_mmu_page_fault_resume
	b	LBB0_7
LBB0_4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x21, lsl #3]
	bl	_lima_mmu_page_fault_resume
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_lima_vm_put
LBB0_9:
	stp	xzr, xzr, [x20, #8]
	mov	x0, x19
	bl	_drm_sched_resubmit_jobs
	mov	x0, x19
	mov	w1, #1
	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	_drm_sched_start
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lima_sched_handle_error_task
.subsections_via_symbols
