	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v3d_bin_job_run
_v3d_bin_job_run:                       ## @v3d_bin_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_bin_job
	movq	%rax, %r15
	movq	32(%rax), %rax
	movq	40(%r15), %rbx
	movl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, 8(%rbx)
	movq	_V3D_PTB_BPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_V3D_CORE_WRITE
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_v3d_invalidate_caches
	movq	_V3D_BIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %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_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	$16, %rbx
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_dma_fence_put
LBB0_6:
	movq	%r14, %rdi
	callq	_dma_fence_get
	movq	%rax, 24(%r15)
	movq	%r14, %rdi
	callq	_to_v3d_fence
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	4(%r15), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_trace_v3d_submit_cl
	movl	8(%r15), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:
	movq	_V3D_CLE_CT0QMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_V3D_CORE_WRITE
	movq	_V3D_CLE_CT0QMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	xorl	%edi, %edi
	callq	_V3D_CORE_WRITE
LBB0_8:
	movl	16(%r15), %edx
	testl	%edx, %edx
	je	LBB0_10
## %bb.9:
	movq	_V3D_CLE_CT0QTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V3D_CLE_CT0QTS_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%edi, %edi
	callq	_V3D_CORE_WRITE
LBB0_10:
	movq	_V3D_CLE_CT0QBA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	xorl	%edi, %edi
	callq	_V3D_CORE_WRITE
	movq	_V3D_CLE_CT0QEA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	xorl	%edi, %edi
	callq	_V3D_CORE_WRITE
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_V3D_PTB_BPOS,4,2               ## @V3D_PTB_BPOS
	.comm	_V3D_BIN,4,2                    ## @V3D_BIN
	.comm	_V3D_CLE_CT0QMA,4,2             ## @V3D_CLE_CT0QMA
	.comm	_V3D_CLE_CT0QMS,4,2             ## @V3D_CLE_CT0QMS
	.comm	_V3D_CLE_CT0QTS,4,2             ## @V3D_CLE_CT0QTS
	.comm	_V3D_CLE_CT0QTS_ENABLE,4,2      ## @V3D_CLE_CT0QTS_ENABLE
	.comm	_V3D_CLE_CT0QBA,4,2             ## @V3D_CLE_CT0QBA
	.comm	_V3D_CLE_CT0QEA,4,2             ## @V3D_CLE_CT0QEA
	.no_dead_strip	_v3d_bin_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_bin_job_run
_v3d_bin_job_run:                       ; @v3d_bin_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_bin_job
	mov	x19, x0
	ldp	x8, x21, [x0, #32]
	ldr	w0, [x8]
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	x19, [x21, #8]
Lloh0:
	adrp	x8, _V3D_PTB_BPOS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V3D_PTB_BPOS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #0
	bl	_V3D_CORE_WRITE
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_v3d_invalidate_caches
Lloh3:
	adrp	x8, _V3D_BIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V3D_BIN@GOTPAGEOFF]
Lloh5:
	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, #16
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_dma_fence_put
LBB0_6:
	mov	x0, x20
	bl	_dma_fence_get
	str	x0, [x19, #24]
	mov	x0, x20
	bl	_to_v3d_fence
	ldr	w2, [x0]
	ldp	w3, w4, [x19]
	mov	x0, x21
	mov	w1, #0
	bl	_trace_v3d_submit_cl
	ldr	w2, [x19, #8]
	cbz	w2, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _V3D_CLE_CT0QMA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V3D_CLE_CT0QMA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_V3D_CORE_WRITE
Lloh9:
	adrp	x8, _V3D_CLE_CT0QMS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V3D_CLE_CT0QMS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
	mov	w0, #0
	bl	_V3D_CORE_WRITE
LBB0_8:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_10
; %bb.9:
Lloh12:
	adrp	x9, _V3D_CLE_CT0QTS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V3D_CLE_CT0QTS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
Lloh15:
	adrp	x9, _V3D_CLE_CT0QTS_ENABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V3D_CLE_CT0QTS_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #0
	bl	_V3D_CORE_WRITE
LBB0_10:
Lloh18:
	adrp	x8, _V3D_CLE_CT0QBA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V3D_CLE_CT0QBA@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	w0, #0
	bl	_V3D_CORE_WRITE
Lloh21:
	adrp	x8, _V3D_CLE_CT0QEA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V3D_CLE_CT0QEA@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	w0, #0
	bl	_V3D_CORE_WRITE
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_V3D_PTB_BPOS,4,2               ; @V3D_PTB_BPOS
	.comm	_V3D_BIN,4,2                    ; @V3D_BIN
	.comm	_V3D_CLE_CT0QMA,4,2             ; @V3D_CLE_CT0QMA
	.comm	_V3D_CLE_CT0QMS,4,2             ; @V3D_CLE_CT0QMS
	.comm	_V3D_CLE_CT0QTS,4,2             ; @V3D_CLE_CT0QTS
	.comm	_V3D_CLE_CT0QTS_ENABLE,4,2      ; @V3D_CLE_CT0QTS_ENABLE
	.comm	_V3D_CLE_CT0QBA,4,2             ; @V3D_CLE_CT0QBA
	.comm	_V3D_CLE_CT0QEA,4,2             ; @V3D_CLE_CT0QEA
	.no_dead_strip	_v3d_bin_job_run
.subsections_via_symbols
