	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_sched_run_job
_lima_sched_run_job:                    ## @lima_sched_run_job
	.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
	movq	%rdi, %r15
	callq	_to_lima_task
	movq	%rax, %r14
	movl	8(%r15), %edi
	callq	_to_lima_pipe
	movq	%rax, %r13
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	js	LBB0_8
## %bb.1:
	movq	%r13, %rdi
	callq	_lima_fence_create
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_dma_fence_get
	movq	%r14, 56(%r13)
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_lima_l2_cache_flush
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	8(%r14), %rdi
	cmpq	40(%r13), %rdi
	je	LBB0_9
## %bb.6:
	callq	_lima_vm_get
	movq	%rax, %r12
	movq	40(%r13), %r15
	movq	8(%r14), %rax
	movq	%rax, 40(%r13)
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_9:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_10:
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movq	%r12, %rsi
	callq	_lima_mmu_switch_vm
	jmp	LBB0_15
LBB0_12:
	cmpl	$0, 4(%r13)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r12, %rsi
	callq	_lima_mmu_switch_vm
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_15:
	testq	%r15, %r15
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_lima_vm_put
LBB0_17:
	movl	$0, 8(%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*16(%r13)
	movq	(%r14), %rax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lima_sched_run_job
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_sched_run_job
_lima_sched_run_job:                    ; @lima_sched_run_job
	.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	x21, x0
	bl	_to_lima_task
	mov	x19, x0
	ldr	w0, [x21, #8]
	bl	_to_lima_pipe
	ldr	x8, [x21]
	ldr	x8, [x8]
	tbnz	x8, #63, LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_lima_fence_create
	cbz	x0, LBB0_16
; %bb.2:
	str	x0, [x19]
	bl	_dma_fence_get
	str	x19, [x20, #56]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #48]
	ldr	w0, [x8, x21, lsl #2]
	bl	_lima_l2_cache_flush
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x0, [x19, #8]
	ldr	x8, [x20, #40]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.6:
	bl	_lima_vm_get
	mov	x22, x0
	ldr	x21, [x20, #40]
	ldr	x8, [x19, #8]
	str	x8, [x20, #40]
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_10
LBB0_7:
	mov	x1, x22
	bl	_lima_mmu_switch_vm
	b	LBB0_13
LBB0_8:
	mov	x0, #0
	b	LBB0_16
LBB0_9:
	mov	x22, #0
	mov	x21, #0
	ldr	x0, [x20, #32]
	cbnz	x0, LBB0_7
LBB0_10:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x23, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x22
	bl	_lima_mmu_switch_vm
	add	x23, x23, #1
	ldrsw	x8, [x20, #4]
	cmp	x23, x8
	b.lt	LBB0_12
LBB0_13:
	cbz	x21, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_lima_vm_put
LBB0_15:
	str	wzr, [x20, #8]
	ldr	x8, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	ldr	x0, [x19]
LBB0_16:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lima_sched_run_job
.subsections_via_symbols
