	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v3d_job_init
_v3d_job_init:                          ## @v3d_job_init
	.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
	movl	%r8d, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	%rdi, 16(%rdx)
	movq	%rcx, (%rdx)
	movl	(%rdi), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%r15d, %ebx
	leaq	8(%r12), %r15
	movq	_XA_FLAGS_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_xa_init_flags
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_drm_syncobj_find_fence
	movl	%eax, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_5
## %bb.3:
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_drm_gem_fence_array_add
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_xa_destroy
	movl	(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_4:
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_kref_init
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XA_FLAGS_ALLOC,4,2             ## @XA_FLAGS_ALLOC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_v3d_job_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v3d_job_init
_v3d_job_init:                          ; @v3d_job_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x4
	mov	x20, x2
	mov	x24, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	str	x0, [x2, #16]
	str	x3, [x2]
	ldr	w0, [x0]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_4
; %bb.1:
	add	x21, x20, #8
Lloh0:
	adrp	x8, _XA_FLAGS_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XA_FLAGS_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_xa_init_flags
	add	x4, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	w2, #0
	mov	w3, #0
	bl	_drm_syncobj_find_fence
	mov	x22, x0
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_drm_gem_fence_array_add
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_xa_destroy
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_6
LBB0_4:
	mov	x22, x0
	b	LBB0_6
LBB0_5:
	add	x0, x20, #12
	bl	_kref_init
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XA_FLAGS_ALLOC,4,2             ; @XA_FLAGS_ALLOC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_v3d_job_init
.subsections_via_symbols
