	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdp1_prepare_job
_fdp1_prepare_job:                      ## @fdp1_prepare_job
	.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
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	8(%rbx), %edi
	callq	_FDP1_DEINT_MODE_USES_NEXT
	cmpq	$1, %rax
	movl	$2, %eax
	sbbl	$0, %eax
	cmpl	%eax, (%rbx)
	jb	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	callq	_fdp1_job_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_fdp1_dequeue_field
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	28(%rbx), %edi
	callq	_v4l2_m2m_dst_buf_remove
	movq	%rax, %rdi
	callq	_to_fdp1_buffer
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	24(%rbx), %ecx
	movq	(%r15), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, 8(%rdx)
	movq	(%rax), %rax
	movl	%ecx, 8(%rax)
	incl	%ecx
	movl	%ecx, 24(%rbx)
	movl	8(%rbx), %edi
	callq	_FDP1_DEINT_MODE_USES_PREV
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%rbx), %rax
	movq	%rax, 24(%r15)
	movq	(%r15), %rax
	movq	%rax, 16(%rbx)
LBB0_7:
	movl	8(%rbx), %edi
	callq	_FDP1_DEINT_MODE_USES_NEXT
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_fdp1_peek_queued_field
	movl	%eax, 16(%r15)
LBB0_9:
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movq	(%rcx), %rcx
	movl	%edx, 4(%rcx)
	movq	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax), %edx
	movl	%edx, (%rcx)
	incl	4(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_queue_job
	movl	4(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fdp1_job_free
	xorl	%r15d, %r15d
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"+\n"

L_.str.1:                               ## @.str.1
	.asciz	"No free jobs currently available\n"

L_.str.2:                               ## @.str.2
	.asciz	"No input buffers currently available\n"

L_.str.3:                               ## @.str.3
	.asciz	"+ Buffer en-route...\n"

	.comm	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK,4,2 ## @V4L2_BUF_FLAG_TSTAMP_SRC_MASK
L_.str.4:                               ## @.str.4
	.asciz	"Job Queued translen = %d\n"

	.no_dead_strip	_fdp1_prepare_job
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdp1_prepare_job
_fdp1_prepare_job:                      ; @fdp1_prepare_job
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	ldr	x19, [x0, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dprintk
	ldr	w0, [x21, #8]
	bl	_FDP1_DEINT_MODE_USES_NEXT
	cmp	x0, #0
	mov	w8, #1
	cinc	w8, w8, ne
	ldr	w9, [x21]
	cmp	w9, w8
	b.lo	LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_fdp1_job_alloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x21
	bl	_fdp1_dequeue_field
	str	x0, [x20]
	cbz	x0, LBB0_10
; %bb.3:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dprintk
	ldr	w0, [x21, #28]
	bl	_v4l2_m2m_dst_buf_remove
	bl	_to_fdp1_buffer
	ldr	x8, [x0]
	str	x8, [x20, #8]
	ldr	w9, [x21, #24]
	ldr	x10, [x20]
	ldr	x10, [x10]
	str	w9, [x10, #8]
	ldr	x8, [x8]
	str	w9, [x8, #8]
	add	w8, w9, #1
	str	w8, [x21, #24]
	ldr	w0, [x21, #8]
	bl	_FDP1_DEINT_MODE_USES_PREV
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x21, #16]
	str	x8, [x20, #24]
	ldr	x8, [x20]
	str	x8, [x21, #16]
LBB0_5:
	ldr	w0, [x21, #8]
	bl	_FDP1_DEINT_MODE_USES_NEXT
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_fdp1_peek_queued_field
	str	w0, [x20, #16]
LBB0_7:
	ldp	x8, x9, [x20]
	ldr	x8, [x8]
	ldr	x9, [x9]
	ldp	w8, w10, [x8]
Lloh4:
	adrp	x11, _V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPAGE
Lloh5:
	ldr	x11, [x11, _V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	and	w8, w11, w8
	stp	w8, w10, [x9]
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_queue_job
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dprintk
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dprintk
	mov	x0, x19
	mov	x1, x20
	bl	_fdp1_job_free
LBB0_11:
	mov	x20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"+\n"

l_.str.1:                               ; @.str.1
	.asciz	"No free jobs currently available\n"

l_.str.2:                               ; @.str.2
	.asciz	"No input buffers currently available\n"

l_.str.3:                               ; @.str.3
	.asciz	"+ Buffer en-route...\n"

	.comm	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK,4,2 ; @V4L2_BUF_FLAG_TSTAMP_SRC_MASK
l_.str.4:                               ; @.str.4
	.asciz	"Job Queued translen = %d\n"

	.no_dead_strip	_fdp1_prepare_job
.subsections_via_symbols
