	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panfrost_job_run
_panfrost_job_run:                      ## @panfrost_job_run
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_panfrost_job
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movq	%rax, %rdi
	callq	_panfrost_job_get_slot
	movl	%eax, %r14d
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_panfrost_fence_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_dma_fence_put
LBB0_6:
	movq	%r15, %rdi
	callq	_dma_fence_get
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_panfrost_job_hw_submit
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_panfrost_job_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panfrost_job_run
_panfrost_job_run:                      ; @panfrost_job_run
	.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
	bl	_to_panfrost_job
	mov	x19, x0
	ldr	x21, [x0, #16]
	bl	_panfrost_job_get_slot
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	str	x19, [x8, w20, sxtw #3]
	mov	x0, x21
	mov	x1, x20
	bl	_panfrost_fence_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
LBB0_2:
	mov	x21, #0
LBB0_3:
	mov	x0, 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
	ret
LBB0_4:
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_dma_fence_put
LBB0_6:
	mov	x0, x21
	bl	_dma_fence_get
	str	x0, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_panfrost_job_hw_submit
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_panfrost_job_run
.subsections_via_symbols
