	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_jpeg_try_fmt_vid_out_mplane
_mtk_jpeg_try_fmt_vid_out_mplane:       ## @mtk_jpeg_try_fmt_vid_out_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rdi
	callq	_mtk_jpeg_fh_to_ctx
	movq	%rax, %r15
	movl	4(%r14), %esi
	movq	_MTK_JPEG_FMT_TYPE_OUTPUT@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rax, %rdi
	callq	_mtk_jpeg_find_format
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %rbx
LBB0_2:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	movl	(%r14), %r8d
	movl	(%rbx), %eax
	movzbl	%al, %r9d
	movzbl	%ah, %ecx
	movq	%rcx, %r11
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %r10d
	shrl	$24, %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	movl	$2, %edi
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_v4l2_dbg
	addq	$32, %rsp
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtk_jpeg_try_fmt_mplane        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_JPEG_FMT_TYPE_OUTPUT,4,2   ## @MTK_JPEG_FMT_TYPE_OUTPUT
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) try_fmt:%c%c%c%c\n"

	.no_dead_strip	_mtk_jpeg_try_fmt_vid_out_mplane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_jpeg_try_fmt_vid_out_mplane
_mtk_jpeg_try_fmt_vid_out_mplane:       ; @mtk_jpeg_try_fmt_vid_out_mplane
	.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, x2
	mov	x0, x1
	bl	_mtk_jpeg_fh_to_ctx
	mov	x20, x0
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x22, _MTK_JPEG_FMT_TYPE_OUTPUT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MTK_JPEG_FMT_TYPE_OUTPUT@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_mtk_jpeg_find_format
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x21, [x20, #8]
LBB0_2:
Lloh2:
	adrp	x8, _debug@GOTPAGE
Lloh3:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x2, [x20]
	ldr	w8, [x21]
	ubfx	w6, w8, #8, #8
	ldr	w4, [x19]
	and	w5, w8, #0xff
	ubfx	w7, w8, #16, #8
	lsr	w8, w8, #24
	str	w8, [sp]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #2
	bl	_v4l2_dbg
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	x2, 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
	b	_mtk_jpeg_try_fmt_mplane
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_JPEG_FMT_TYPE_OUTPUT,4,2   ; @MTK_JPEG_FMT_TYPE_OUTPUT
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) try_fmt:%c%c%c%c\n"

	.no_dead_strip	_mtk_jpeg_try_fmt_vid_out_mplane
.subsections_via_symbols
