	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v3d_tfu_job_run
_v3d_tfu_job_run:                       ## @v3d_tfu_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_tfu_job
	movq	%rax, %r15
	movq	48(%rax), %rbx
	movq	_V3D_TFU@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_2
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_2:
	movq	%r15, (%rbx)
	addq	$8, %rbx
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_dma_fence_put
LBB0_4:
	movq	%r14, %rdi
	callq	_dma_fence_get
	movq	%rax, 40(%r15)
	movq	%r14, %rdi
	callq	_to_v3d_fence
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_trace_v3d_submit_tfu
	movq	_V3D_TFU_IIA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_V3D_WRITE
	movq	_V3D_TFU_IIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	_V3D_WRITE
	movq	_V3D_TFU_ICA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_V3D_WRITE
	movq	_V3D_TFU_IUA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	_V3D_WRITE
	movq	_V3D_TFU_IOA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_V3D_WRITE
	movq	_V3D_TFU_IOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r15), %esi
	callq	_V3D_WRITE
	movq	_V3D_TFU_COEF0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rax
	movl	(%rax), %esi
	callq	_V3D_WRITE
	movq	24(%r15), %rax
	movq	_V3D_TFU_COEF0_USECOEF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_V3D_TFU_COEF1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	4(%rax), %esi
	callq	_V3D_WRITE
	movq	_V3D_TFU_COEF2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rax
	movl	8(%rax), %esi
	callq	_V3D_WRITE
	movq	_V3D_TFU_COEF3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rax
	movl	12(%rax), %esi
	callq	_V3D_WRITE
LBB0_6:
	movq	_V3D_TFU_ICFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_V3D_TFU_ICFG_IOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	32(%r15), %esi
	callq	_V3D_WRITE
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V3D_TFU,4,2                    ## @V3D_TFU
	.comm	_V3D_TFU_IIA,4,2                ## @V3D_TFU_IIA
	.comm	_V3D_TFU_IIS,4,2                ## @V3D_TFU_IIS
	.comm	_V3D_TFU_ICA,4,2                ## @V3D_TFU_ICA
	.comm	_V3D_TFU_IUA,4,2                ## @V3D_TFU_IUA
	.comm	_V3D_TFU_IOA,4,2                ## @V3D_TFU_IOA
	.comm	_V3D_TFU_IOS,4,2                ## @V3D_TFU_IOS
	.comm	_V3D_TFU_COEF0,4,2              ## @V3D_TFU_COEF0
	.comm	_V3D_TFU_COEF0_USECOEF,4,2      ## @V3D_TFU_COEF0_USECOEF
	.comm	_V3D_TFU_COEF1,4,2              ## @V3D_TFU_COEF1
	.comm	_V3D_TFU_COEF2,4,2              ## @V3D_TFU_COEF2
	.comm	_V3D_TFU_COEF3,4,2              ## @V3D_TFU_COEF3
	.comm	_V3D_TFU_ICFG,4,2               ## @V3D_TFU_ICFG
	.comm	_V3D_TFU_ICFG_IOC,4,2           ## @V3D_TFU_ICFG_IOC
	.no_dead_strip	_v3d_tfu_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_tfu_job_run
_v3d_tfu_job_run:                       ; @v3d_tfu_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_tfu_job
	mov	x20, x0
	ldr	x22, [x0, #48]
Lloh0:
	adrp	x8, _V3D_TFU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V3D_TFU@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_v3d_fence_create
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_7
LBB0_2:
	add	x21, x22, #8
	str	x20, [x22]
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_dma_fence_put
LBB0_4:
	mov	x0, x19
	bl	_dma_fence_get
	str	x0, [x20, #40]
	mov	x0, x19
	bl	_to_v3d_fence
	ldr	w1, [x0]
	mov	x0, x21
	bl	_trace_v3d_submit_tfu
Lloh3:
	adrp	x8, _V3D_TFU_IIA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V3D_TFU_IIA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_V3D_WRITE
Lloh6:
	adrp	x8, _V3D_TFU_IIS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V3D_TFU_IIS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_V3D_WRITE
Lloh9:
	adrp	x8, _V3D_TFU_ICA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V3D_TFU_ICA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_V3D_WRITE
Lloh12:
	adrp	x8, _V3D_TFU_IUA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V3D_TFU_IUA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_V3D_WRITE
Lloh15:
	adrp	x8, _V3D_TFU_IOA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V3D_TFU_IOA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_V3D_WRITE
Lloh18:
	adrp	x8, _V3D_TFU_IOS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V3D_TFU_IOS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	bl	_V3D_WRITE
Lloh21:
	adrp	x8, _V3D_TFU_COEF0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V3D_TFU_COEF0@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	bl	_V3D_WRITE
	ldr	x8, [x20, #24]
	ldr	w9, [x8]
Lloh24:
	adrp	x10, _V3D_TFU_COEF0_USECOEF@GOTPAGE
Lloh25:
	ldr	x10, [x10, _V3D_TFU_COEF0_USECOEF@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
Lloh27:
	adrp	x9, _V3D_TFU_COEF1@GOTPAGE
Lloh28:
	ldr	x9, [x9, _V3D_TFU_COEF1@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x9]
	ldr	w1, [x8, #4]
	bl	_V3D_WRITE
Lloh30:
	adrp	x8, _V3D_TFU_COEF2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _V3D_TFU_COEF2@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
	ldr	w1, [x8, #8]
	bl	_V3D_WRITE
Lloh33:
	adrp	x8, _V3D_TFU_COEF3@GOTPAGE
Lloh34:
	ldr	x8, [x8, _V3D_TFU_COEF3@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
	ldr	w1, [x8, #12]
	bl	_V3D_WRITE
LBB0_6:
Lloh36:
	adrp	x8, _V3D_TFU_ICFG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _V3D_TFU_ICFG@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w8, [x20, #32]
Lloh39:
	adrp	x9, _V3D_TFU_ICFG_IOC@GOTPAGE
Lloh40:
	ldr	x9, [x9, _V3D_TFU_ICFG_IOC@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_V3D_WRITE
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_V3D_TFU,4,2                    ; @V3D_TFU
	.comm	_V3D_TFU_IIA,4,2                ; @V3D_TFU_IIA
	.comm	_V3D_TFU_IIS,4,2                ; @V3D_TFU_IIS
	.comm	_V3D_TFU_ICA,4,2                ; @V3D_TFU_ICA
	.comm	_V3D_TFU_IUA,4,2                ; @V3D_TFU_IUA
	.comm	_V3D_TFU_IOA,4,2                ; @V3D_TFU_IOA
	.comm	_V3D_TFU_IOS,4,2                ; @V3D_TFU_IOS
	.comm	_V3D_TFU_COEF0,4,2              ; @V3D_TFU_COEF0
	.comm	_V3D_TFU_COEF0_USECOEF,4,2      ; @V3D_TFU_COEF0_USECOEF
	.comm	_V3D_TFU_COEF1,4,2              ; @V3D_TFU_COEF1
	.comm	_V3D_TFU_COEF2,4,2              ; @V3D_TFU_COEF2
	.comm	_V3D_TFU_COEF3,4,2              ; @V3D_TFU_COEF3
	.comm	_V3D_TFU_ICFG,4,2               ; @V3D_TFU_ICFG
	.comm	_V3D_TFU_ICFG_IOC,4,2           ; @V3D_TFU_ICFG_IOC
	.no_dead_strip	_v3d_tfu_job_run
.subsections_via_symbols
