	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_lite_s_fmt_mplane
_fimc_lite_s_fmt_mplane:                ## @fimc_lite_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	$0, -24(%rbp)
	leaq	8(%rax), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fimc_lite_try_fmt
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	-24(%rbp), %rax
	movq	%rax, 24(%rbx)
	movl	4(%r14), %ecx
	imull	(%r14), %ecx
	movq	(%rax), %rax
	imull	(%rax), %ecx
	leal	7(%rcx), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	sarl	$3, %edi
	movq	8(%r14), %rax
	movl	(%rax), %esi
	callq	_max
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 20(%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_fimc_lite_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_lite_s_fmt_mplane
_fimc_lite_s_fmt_mplane:                ; @fimc_lite_s_fmt_mplane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	str	xzr, [sp, #8]
	add	x0, x0, #8
	bl	_vb2_is_busy
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_fimc_lite_try_fmt
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x20, #24]
	ldp	w9, w10, [x19]
	mul	w9, w10, w9
	ldr	x8, [x8]
	ldr	w8, [x8]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_max
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	str	w8, [x9]
	ldr	d0, [x19]
	str	d0, [x20, #16]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_fimc_lite_s_fmt_mplane
.subsections_via_symbols
