	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt_vid_out_mplane
_vidioc_try_fmt_vid_out_mplane:         ## @vidioc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	callq	_mtk_venc_find_format
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vidioc_try_fmt                 ## TAILCALL
LBB0_1:
	movq	_mtk_video_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OUT_FMT_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_mtk_venc_find_format
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
LBB0_3:
	movq	_V4L2_COLORSPACE_REC709@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
	movq	_V4L2_YCBCR_ENC_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	_V4L2_QUANTIZATION_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	_V4L2_XFER_FUNC_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_mtk_video_formats,8,3          ## @mtk_video_formats
	.comm	_OUT_FMT_IDX,8,3                ## @OUT_FMT_IDX
	.comm	_V4L2_COLORSPACE_REC709,8,3     ## @V4L2_COLORSPACE_REC709
	.comm	_V4L2_YCBCR_ENC_DEFAULT,4,2     ## @V4L2_YCBCR_ENC_DEFAULT
	.comm	_V4L2_QUANTIZATION_DEFAULT,4,2  ## @V4L2_QUANTIZATION_DEFAULT
	.comm	_V4L2_XFER_FUNC_DEFAULT,4,2     ## @V4L2_XFER_FUNC_DEFAULT
	.no_dead_strip	_vidioc_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 vidioc_try_fmt_vid_out_mplane
_vidioc_try_fmt_vid_out_mplane:         ; @vidioc_try_fmt_vid_out_mplane
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x0, x2
	bl	_mtk_venc_find_format
	mov	x1, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vidioc_try_fmt
LBB0_3:
Lloh0:
	adrp	x8, _mtk_video_formats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mtk_video_formats@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _OUT_FMT_IDX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OUT_FMT_IDX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_mtk_venc_find_format
	mov	x1, x0
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_2
LBB0_4:
Lloh6:
	adrp	x8, _V4L2_COLORSPACE_REC709@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_COLORSPACE_REC709@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh9:
	adrp	x8, _V4L2_YCBCR_ENC_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_YCBCR_ENC_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, _V4L2_QUANTIZATION_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_QUANTIZATION_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _V4L2_XFER_FUNC_DEFAULT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_XFER_FUNC_DEFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mtk_video_formats,8,3          ; @mtk_video_formats
	.comm	_OUT_FMT_IDX,8,3                ; @OUT_FMT_IDX
	.comm	_V4L2_COLORSPACE_REC709,8,3     ; @V4L2_COLORSPACE_REC709
	.comm	_V4L2_YCBCR_ENC_DEFAULT,4,2     ; @V4L2_YCBCR_ENC_DEFAULT
	.comm	_V4L2_QUANTIZATION_DEFAULT,4,2  ; @V4L2_QUANTIZATION_DEFAULT
	.comm	_V4L2_XFER_FUNC_DEFAULT,4,2     ; @V4L2_XFER_FUNC_DEFAULT
	.no_dead_strip	_vidioc_try_fmt_vid_out_mplane
.subsections_via_symbols
