	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v3d_render_job_run
_v3d_render_job_run:                    ## @v3d_render_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_render_job
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	24(%rbx), %r15
	movl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, (%r15)
	movq	%r15, %rdi
	callq	_v3d_invalidate_caches
	movq	_V3D_RENDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_v3d_fence_create
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	$8, %r15
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_dma_fence_put
LBB0_6:
	movq	%r14, %rdi
	callq	_dma_fence_get
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_to_v3d_fence
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_trace_v3d_submit_cl
	movq	_V3D_CLE_CT1QBA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	xorl	%edi, %edi
	callq	_V3D_CORE_WRITE
	movq	_V3D_CLE_CT1QEA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	xorl	%edi, %edi
	callq	_V3D_CORE_WRITE
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_V3D_RENDER,4,2                 ## @V3D_RENDER
	.comm	_V3D_CLE_CT1QBA,4,2             ## @V3D_CLE_CT1QBA
	.comm	_V3D_CLE_CT1QEA,4,2             ## @V3D_CLE_CT1QEA
	.no_dead_strip	_v3d_render_job_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v3d_render_job_run
_v3d_render_job_run:                    ; @v3d_render_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_render_job
	mov	x19, x0
	ldp	x8, x21, [x0, #16]
	ldr	w0, [x8]
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	str	x19, [x21]
	mov	x0, x21
	bl	_v3d_invalidate_caches
Lloh0:
	adrp	x8, _V3D_RENDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V3D_RENDER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_v3d_fence_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
LBB0_2:
	mov	x20, #0
LBB0_3:
	mov	x0, x20
	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:
	add	x21, x21, #8
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_dma_fence_put
LBB0_6:
	mov	x0, x20
	bl	_dma_fence_get
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_to_v3d_fence
	ldr	w2, [x0]
	ldp	w4, w3, [x19]
	mov	x0, x21
	mov	w1, #1
	bl	_trace_v3d_submit_cl
Lloh3:
	adrp	x8, _V3D_CLE_CT1QBA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V3D_CLE_CT1QBA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	w0, #0
	bl	_V3D_CORE_WRITE
Lloh6:
	adrp	x8, _V3D_CLE_CT1QEA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V3D_CLE_CT1QEA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	w0, #0
	bl	_V3D_CORE_WRITE
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V3D_RENDER,4,2                 ; @V3D_RENDER
	.comm	_V3D_CLE_CT1QBA,4,2             ; @V3D_CLE_CT1QBA
	.comm	_V3D_CLE_CT1QEA,4,2             ; @V3D_CLE_CT1QEA
	.no_dead_strip	_v3d_render_job_run
.subsections_via_symbols
