	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdp1_m2m_job_ready
_fdp1_m2m_job_ready:                    ## @fdp1_m2m_job_ready
	.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
	movl	(%rdi), %r14d
	movl	4(%rdi), %edi
	callq	_v4l2_m2m_num_src_bufs_ready
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	callq	_v4l2_m2m_num_dst_bufs_ready
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	8(%rbx), %edi
	callq	_V4L2_FIELD_HAS_BOTH
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_v4l2_m2m_num_src_bufs_ready
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	cmpq	$1, %r14
	movl	$2, %r14d
	sbbl	$0, %r14d
	movl	4(%rbx), %edi
	callq	_v4l2_m2m_num_dst_bufs_ready
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	%r14d, %ecx
	jge	LBB0_3
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dprintk
	xorl	%eax, %eax
LBB0_3:
	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	"+ Src: %d : Dst: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Not enough buffers available\n"

	.no_dead_strip	_fdp1_m2m_job_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdp1_m2m_job_ready
_fdp1_m2m_job_ready:                    ; @fdp1_m2m_job_ready
	.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	x19, x0
	ldp	w20, w0, [x0]
	bl	_v4l2_m2m_num_src_bufs_ready
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_v4l2_m2m_num_dst_bufs_ready
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dprintk
	ldr	w0, [x19, #8]
	bl	_V4L2_FIELD_HAS_BOTH
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_v4l2_m2m_num_src_bufs_ready
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	cmp	x20, #0
	mov	w20, #1
	cinc	w21, w20, ne
	ldr	w0, [x19, #4]
	bl	_v4l2_m2m_num_dst_bufs_ready
	cmp	w0, w21
	b.ge	LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dprintk
	mov	w20, #0
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"+ Src: %d : Dst: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Not enough buffers available\n"

	.no_dead_strip	_fdp1_m2m_job_ready
.subsections_via_symbols
