	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_m2m_s_fmt_mplane
_fimc_m2m_s_fmt_mplane:                 ## @fimc_m2m_s_fmt_mplane
	.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
	movq	%rdx, %r14
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %r15
	movq	16(%rax), %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_fimc_try_fmt_mplane
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	8(%r15), %edi
	movl	4(%r14), %esi
	callq	_v4l2_m2m_get_vq
	movq	%rax, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movl	4(%r14), %r12d
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r12d, %edi
	callq	_get_m2m_fmt_flags
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_fimc_find_format
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	leaq	4(%r15), %rdi
	cmpl	%r13d, %r12d
	cmovneq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	___set_frame_format
	movq	%r15, %rdi
	callq	_fimc_alpha_ctrl_update
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue (%d) busy\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_fimc_m2m_s_fmt_mplane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_m2m_s_fmt_mplane
_fimc_m2m_s_fmt_mplane:                 ; @fimc_m2m_s_fmt_mplane
	.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
	mov	x19, x2
	mov	x0, x1
	bl	_fh_to_ctx
	mov	x20, x0
	ldr	x21, [x0, #16]
	mov	x1, x19
	bl	_fimc_try_fmt_mplane
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x20, #8]
	ldr	w1, [x19, #4]
	bl	_v4l2_m2m_get_vq
	bl	_vb2_is_busy
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w2, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_v4l2_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	ldr	w21, [x19, #4]
Lloh4:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_get_m2m_fmt_flags
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	bl	_fimc_find_format
	cbz	x0, LBB0_7
; %bb.5:
	mov	x1, x0
	add	x8, x20, #4
	cmp	w21, w22
	csel	x0, x8, x20, eq
	mov	x2, x19
	bl	___set_frame_format
	mov	x0, x20
	bl	_fimc_alpha_ctrl_update
	mov	w0, #0
LBB0_6:
	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_7:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue (%d) busy\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_fimc_m2m_s_fmt_mplane
.subsections_via_symbols
