	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt
_vidioc_try_fmt:                        ## @vidioc_try_fmt
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	_MFC_FMT_ENC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_format
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%r14), %rcx
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rax)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	_MFC_FMT_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_format
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movq	(%r14), %rcx
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.9:
	leaq	12(%rbx), %rdi
	addq	$8, %rbx
	subq	$8, %rsp
	movl	$8, %esi
	movl	$1920, %edx                     ## imm = 0x780
	movl	$1, %ecx
	movq	%rbx, %r8
	movl	$4, %r9d
	pushq	$0
	pushq	$1
	pushq	$1080                           ## imm = 0x438
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	callq	_mfc_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_MFC_FMT_ENC,4,2                ## @MFC_FMT_ENC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to try output format\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported format by this MFC version.\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_MFC_FMT_RAW,4,2                ## @MFC_FMT_RAW
L_.str.2:                               ## @.str.2
	.asciz	"invalid buf type\n"

	.no_dead_strip	_vidioc_try_fmt
.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
_vidioc_try_fmt:                        ; @vidioc_try_fmt
	.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
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _MFC_FMT_ENC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MFC_FMT_ENC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_format
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x20]
	ldr	w8, [x8]
	ldr	w9, [x0]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
	mov	w0, #0
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	str	w9, [x8, #4]
	b	LBB0_12
LBB0_4:
Lloh6:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
Lloh9:
	adrp	x8, _MFC_FMT_RAW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MFC_FMT_RAW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_format
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x20]
	ldr	w8, [x8]
	ldr	w9, [x0]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	add	x0, x19, #12
	add	x4, x19, #8
	str	wzr, [sp]
	mov	w1, #8
	mov	w2, #1920
	mov	w3, #1
	mov	w5, #4
	mov	w6, #1080
	mov	w7, #1
	bl	_v4l_bound_align_image
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_mfc_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_MFC_FMT_ENC,4,2                ; @MFC_FMT_ENC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to try output format\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported format by this MFC version.\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_MFC_FMT_RAW,4,2                ; @MFC_FMT_RAW
l_.str.2:                               ; @.str.2
	.asciz	"invalid buf type\n"

	.no_dead_strip	_vidioc_try_fmt
.subsections_via_symbols
