	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_try_fmt_vid_out          ## -- Begin function vivid_try_fmt_vid_out
	.p2align	4, 0x90
_vivid_try_fmt_vid_out:                 ## @vivid_try_fmt_vid_out
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_video_drvdata
	movq	%rax, %r13
	movq	48(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	44(%r15), %esi
	movq	%r13, %rdi
	callq	_vivid_get_format
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	44(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_dprintk
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 44(%r15)
	movq	%r13, %rdi
	callq	_vivid_get_format
	movq	%rax, %r14
LBB0_2:
	movl	40(%r15), %esi
	movq	%r13, %rdi
	callq	_vivid_field_out
	movl	%eax, 40(%r15)
	movq	%r13, %rdi
	callq	_vivid_is_svid_out
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	movl	$576, %eax                      ## imm = 0x240
	movl	$480, %ebx                      ## imm = 0x1E0
	cmovel	%eax, %ebx
	movl	$720, %r12d                     ## imm = 0x2D0
	jmp	LBB0_5
LBB0_4:
	movl	16(%r13), %r12d
	movl	20(%r13), %ebx
LBB0_5:
	movl	40(%r15), %edi
	callq	_V4L2_FIELD_HAS_T_OR_B
	cmpq	$1, %rax
	movl	$2, %edx
	sbbl	$0, %edx
	cmpq	$0, 48(%r13)
	jne	LBB0_9
## %bb.6:
	cmpl	$0, 56(%r13)
	jne	LBB0_9
## %bb.7:
	cmpq	$0, 40(%r13)
	je	LBB0_8
LBB0_9:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	$0, -88(%rbp)
	movl	(%r15), %ecx
	movl	%ecx, -80(%rbp)
	imull	4(%r15), %edx
	movl	%edx, -76(%rbp)
	movq	$0, -72(%rbp)
	movq	_vivid_min_rect@GOTPCREL(%rip), %rsi
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_v4l2_rect_set_min_size
	movq	_vivid_max_rect@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_rect_set_max_size
	cmpq	$0, 48(%r13)
	je	LBB0_12
## %bb.10:
	cmpl	$0, 56(%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_16
## %bb.11:
	movq	$0, -112(%rbp)
	movq	_MAX_ZOOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%eax, %r12d
	movl	%r12d, -104(%rbp)
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	imull	%eax, %ecx
	movl	%ecx, -100(%rbp)
	movq	$0, -96(%rbp)
	leaq	-88(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	callq	_v4l2_rect_set_max_size
	jmp	LBB0_16
LBB0_12:
	cmpq	$0, 40(%r13)
	je	LBB0_15
## %bb.13:
	cmpl	$0, 56(%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_16
## %bb.14:
	movq	%r13, %rsi
	addq	$16, %rsi
	leaq	-88(%rbp), %rdi
	callq	_v4l2_rect_set_max_size
	jmp	LBB0_16
LBB0_15:
	movq	%r13, %rsi
	addq	$16, %rsi
	leaq	-88(%rbp), %rdi
	callq	_v4l2_rect_set_min_size
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	testq	%rbx, %rbx
	setne	%cl
	movl	-88(%rbp), %r12d
	movl	%r12d, (%r15)
	movl	-84(%rbp), %eax
	shrl	%cl, %eax
	movl	%eax, 4(%r15)
LBB0_17:
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_18
## %bb.28:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	-4(%rax,%rbx,4), %edx
	imull	%edx, %r12d
	shrl	$3, %r12d
	movq	_MAX_ZOOM@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	shrl	$3, %edx
	movl	(%r13), %esi
	cmpl	%edx, %esi
	movl	%edx, %ecx
	cmovbl	%esi, %ecx
	cmpl	%r12d, %ecx
	movl	%r12d, %eax
	cmoval	%ecx, %eax
	cmpl	%edx, %esi
	ja	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpl	%r12d, %ecx
	jae	LBB0_32
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	%eax, (%r13)
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	imull	4(%r15), %eax
	movq	16(%r14), %rcx
	movq	32(%r14), %rsi
	xorl	%edx, %edx
	divl	-4(%rcx,%rbx,4)
                                        ## kill: def $eax killed $eax def $rax
	addq	-8(%rsi,%rbx,8), %rax
	movq	%rax, 8(%r13)
	movl	16(%r13), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r14), %edi
	cmpq	%rdi, %rbx
	jae	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	(%r15), %r12d
	incq	%rbx
	addq	$24, %r13
	jmp	LBB0_29
LBB0_33:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_18:
	xorl	%edi, %edi
LBB0_19:
	movl	24(%r14), %r8d
	cmpl	%r8d, %edi
	jae	LBB0_25
## %bb.20:
	movl	4(%r15), %r9d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	imull	(%rcx), %r9d
	movq	8(%r14), %r10
	movq	16(%r14), %r11
	movl	(%r10), %eax
	cltd
	idivl	(%r11)
	movl	%eax, %r12d
	movq	8(%rcx), %rsi
	movl	%edi, %ecx
	movl	%r8d, %eax
	subl	%edi, %eax
	movq	%rcx, %rdi
	notq	%rdi
	testb	$1, %al
	je	LBB0_22
## %bb.21:
	movl	(%r10,%rcx,4), %eax
	cltd
	idivl	(%r11,%rcx,4)
	imull	%r9d, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
	addq	%rax, %rsi
	incq	%rcx
LBB0_22:
	addq	%r8, %rdi
	je	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rcx,4), %eax
	movl	4(%r10,%rcx,4), %edi
	cltd
	idivl	(%r11,%rcx,4)
	imull	%r9d, %eax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, %ebx
	addq	%rsi, %rbx
	movl	%edi, %eax
	cltd
	idivl	4(%r11,%rcx,4)
	imull	%r9d, %eax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, %esi
	addq	%rbx, %rsi
	addq	$2, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_23
LBB0_24:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, 8(%rax)
LBB0_25:
	movq	_V4L2_XFER_FUNC_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_V4L2_YCBCR_ENC_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_V4L2_QUANTIZATION_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	%r13, %rdi
	callq	_vivid_is_svid_out
	testq	%rax, %rax
	je	LBB0_35
LBB0_26:
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
LBB0_27:
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_47
LBB0_35:
	cmpq	$0, 8(%r13)
	je	LBB0_36
## %bb.38:
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_V4L2_QUANTIZATION_LIM_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
LBB0_47:
	movl	24(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movq	_V4L2_DV_FL_IS_CE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 60(%r13)
	je	LBB0_37
## %bb.39:
	cmpl	$720, 64(%r13)                  ## imm = 0x2D0
	jne	LBB0_41
## %bb.40:
	cmpl	$576, 68(%r13)                  ## imm = 0x240
	jle	LBB0_26
LBB0_41:
	movq	16(%r15), %rax
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_47
## %bb.42:
	movq	_V4L2_COLORSPACE_REC709@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_47
## %bb.43:
	movq	_V4L2_COLORSPACE_OPRGB@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_47
## %bb.44:
	movq	_V4L2_COLORSPACE_BT2020@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_47
## %bb.45:
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_47
## %bb.46:
	movq	%rcx, 16(%r15)
	jmp	LBB0_47
LBB0_8:
	testq	%rax, %rax
	setne	%cl
	movl	%r12d, (%r15)
	shrl	%cl, %ebx
	movl	%ebx, 4(%r15)
	jmp	LBB0_17
LBB0_37:
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fourcc format (0x%08x) unknown.\n"

	.comm	_V4L2_PIX_FMT_YUYV,4,2          ## @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_vivid_min_rect,24,2            ## @vivid_min_rect
	.comm	_vivid_max_rect,24,2            ## @vivid_max_rect
	.comm	_MAX_ZOOM,4,2                   ## @MAX_ZOOM
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_V4L2_XFER_FUNC_DEFAULT,4,2     ## @V4L2_XFER_FUNC_DEFAULT
	.comm	_V4L2_YCBCR_ENC_DEFAULT,4,2     ## @V4L2_YCBCR_ENC_DEFAULT
	.comm	_V4L2_QUANTIZATION_DEFAULT,4,2  ## @V4L2_QUANTIZATION_DEFAULT
	.comm	_V4L2_COLORSPACE_SMPTE170M,8,3  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_DV_FL_IS_CE_VIDEO,4,2     ## @V4L2_DV_FL_IS_CE_VIDEO
	.comm	_V4L2_COLORSPACE_SRGB,8,3       ## @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_QUANTIZATION_LIM_RANGE,4,2 ## @V4L2_QUANTIZATION_LIM_RANGE
	.comm	_V4L2_COLORSPACE_REC709,8,3     ## @V4L2_COLORSPACE_REC709
	.comm	_V4L2_COLORSPACE_OPRGB,8,3      ## @V4L2_COLORSPACE_OPRGB
	.comm	_V4L2_COLORSPACE_BT2020,8,3     ## @V4L2_COLORSPACE_BT2020
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_try_fmt_vid_out          ; -- Begin function vivid_try_fmt_vid_out
	.p2align	2
_vivid_try_fmt_vid_out:                 ; @vivid_try_fmt_vid_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldr	x23, [x19, #48]
	ldr	w1, [x19, #44]
	bl	_vivid_get_format
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w3, [x19, #44]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	bl	_dprintk
Lloh2:
	adrp	x8, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	str	w1, [x19, #44]
	mov	x0, x20
	bl	_vivid_get_format
	mov	x21, x0
LBB0_2:
	ldr	w1, [x19, #40]
	mov	x0, x20
	bl	_vivid_field_out
	str	w0, [x19, #40]
	mov	x0, x20
	bl	_vivid_is_svid_out
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #480
	mov	w9, #576
	csel	w25, w9, w8, eq
	mov	w24, #720
	b	LBB0_5
LBB0_4:
	ldp	w24, w25, [x20, #16]
LBB0_5:
	ldr	w0, [x19, #40]
	bl	_V4L2_FIELD_HAS_T_OR_B
	mov	x22, x0
	cmp	x0, #0
	mov	w8, #1
	cinc	w8, w8, ne
	ldr	x9, [x20, #48]
	cbnz	x9, LBB0_8
; %bb.6:
	ldr	w9, [x20, #56]
	cbnz	w9, LBB0_8
; %bb.7:
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_47
LBB0_8:
	movi.2d	v0, #0000000000000000
	str	d0, [sp, #24]
	ldp	w9, w10, [x19]
	mul	w8, w10, w8
	stp	w9, w8, [sp, #32]
	str	d0, [sp, #40]
Lloh8:
	adrp	x1, _vivid_min_rect@GOTPAGE
Lloh9:
	ldr	x1, [x1, _vivid_min_rect@GOTPAGEOFF]
	add	x0, sp, #24
	bl	_v4l2_rect_set_min_size
Lloh10:
	adrp	x1, _vivid_max_rect@GOTPAGE
Lloh11:
	ldr	x1, [x1, _vivid_max_rect@GOTPAGEOFF]
	add	x0, sp, #24
	bl	_v4l2_rect_set_max_size
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w8, [x20, #56]
	cbnz	w8, LBB0_15
; %bb.10:
	movi.2d	v0, #0000000000000000
	str	d0, [sp]
Lloh12:
	adrp	x8, _MAX_ZOOM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_ZOOM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mul	w9, w8, w24
	mul	w8, w8, w25
	stp	w9, w8, [sp, #8]
	str	d0, [sp, #16]
	add	x0, sp, #24
	mov	x1, sp
	bl	_v4l2_rect_set_max_size
	b	LBB0_15
LBB0_11:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	w8, [x20, #56]
	cbnz	w8, LBB0_15
; %bb.13:
	add	x1, x20, #16
	add	x0, sp, #24
	bl	_v4l2_rect_set_max_size
	b	LBB0_15
LBB0_14:
	add	x1, x20, #16
	add	x0, sp, #24
	bl	_v4l2_rect_set_min_size
LBB0_15:
	cmp	x22, #0
	cset	w8, ne
	ldp	w24, w9, [sp, #24]
	lsr	w8, w9, w8
LBB0_16:
	stp	w24, w8, [x19]
	ldr	w8, [x21]
	str	w8, [x19, #8]
	cbz	w8, LBB0_22
; %bb.17:
	mov	x22, #0
Lloh15:
	adrp	x25, _MAX_ZOOM@GOTPAGE
Lloh16:
	ldr	x25, [x25, _MAX_ZOOM@GOTPAGEOFF]
Lloh17:
	adrp	x26, _MAX_WIDTH@GOTPAGE
Lloh18:
	ldr	x26, [x26, _MAX_WIDTH@GOTPAGEOFF]
	mov	x27, x23
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x22, lsl #2]
	mul	w9, w8, w24
	lsr	w9, w9, #3
	ldr	w10, [x25]
	ldr	w11, [x26]
	mul	w8, w10, w8
	mul	w8, w8, w11
	lsr	w10, w8, #3
	ldr	w11, [x27]
	cmp	w11, w10
	csel	w12, w11, w10, lo
	cmp	w12, w9
	csel	w8, w12, w9, hi
	cmp	w11, w10
	ccmp	w12, w9, #0, ls
	b.hs	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	str	w8, [x27]
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x19, #4]
	mul	w8, w9, w8
	ldr	x9, [x21, #16]
	ldr	w9, [x9, x22, lsl #2]
	udiv	w8, w8, w9
	ldr	x9, [x21, #32]
	ldr	x9, [x9, x22, lsl #3]
	add	x8, x9, x8
	str	x8, [x27, #8]
	ldr	w0, [x27, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x22, x22, #1
	ldr	w10, [x21]
	cmp	x22, x10
	b.hs	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w24, [x19]
	add	x27, x27, #24
	b	LBB0_18
LBB0_22:
	mov	w10, #0
LBB0_23:
	ldr	w11, [x21, #24]
	cmp	w10, w11
	b.hs	LBB0_32
; %bb.24:
	ldr	w8, [x23]
	ldr	w9, [x19, #4]
	mul	w8, w9, w8
	ldp	x13, x12, [x21, #8]
	ldr	w14, [x13]
	ldr	w16, [x12]
	ldr	x9, [x23, #8]
	mov	w2, w10
	sub	x15, x11, x2
	sdiv	w10, w14, w16
	cmp	x15, #4
	b.hs	LBB0_26
; %bb.25:
	mov	x14, x2
	b	LBB0_29
LBB0_26:
	mov	x1, #0
	mov	x0, #0
	mov	x17, #0
	and	x16, x15, #0xfffffffffffffffc
	add	x14, x16, x2
	lsl	x2, x2, #2
	add	x3, x2, #8
	add	x2, x13, x3
	add	x3, x12, x3
	mov	x4, x16
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldp	w5, w6, [x2, #-8]
	ldp	w7, w21, [x2], #16
	ldp	w22, w24, [x3, #-8]
	ldp	w25, w26, [x3], #16
	sdiv	w5, w5, w22
	sdiv	w6, w6, w24
	sdiv	w7, w7, w25
	sdiv	w21, w21, w26
	mul	w5, w8, w5
	mul	w6, w8, w6
	mul	w7, w8, w7
	mul	w21, w8, w21
	udiv	w5, w5, w10
	udiv	w6, w6, w10
	udiv	w7, w7, w10
	add	x9, x9, x5
	udiv	w5, w21, w10
	add	x1, x1, x6
	add	x0, x0, x7
	add	x17, x17, x5
	subs	x4, x4, #4
	b.ne	LBB0_27
; %bb.28:
	add	x9, x1, x9
	add	x9, x0, x9
	add	x9, x17, x9
	cmp	x15, x16
	b.eq	LBB0_31
LBB0_29:
	lsl	x15, x14, #2
	add	x13, x13, x15
	add	x12, x12, x15
	sub	x11, x11, x14
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x13], #4
	ldr	w15, [x12], #4
	sdiv	w14, w14, w15
	mul	w14, w8, w14
	udiv	w14, w14, w10
	add	x9, x9, x14
	subs	x11, x11, #1
	b.ne	LBB0_30
LBB0_31:
	str	x9, [x23, #8]
LBB0_32:
Lloh19:
	adrp	x8, _V4L2_XFER_FUNC_DEFAULT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_XFER_FUNC_DEFAULT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #36]
Lloh22:
	adrp	x8, _V4L2_YCBCR_ENC_DEFAULT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_YCBCR_ENC_DEFAULT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _V4L2_QUANTIZATION_DEFAULT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _V4L2_QUANTIZATION_DEFAULT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
	mov	x0, x20
	bl	_vivid_is_svid_out
	cbz	x0, LBB0_35
LBB0_33:
Lloh28:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh29:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
LBB0_34:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_37
LBB0_35:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_38
; %bb.36:
Lloh30:
	adrp	x8, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh31:
	ldr	x8, [x8, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh33:
	adrp	x8, _V4L2_QUANTIZATION_LIM_RANGE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _V4L2_QUANTIZATION_LIM_RANGE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x19, #28]
LBB0_37:
	ldr	w0, [x19, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_38:
	ldr	w8, [x20, #60]
Lloh36:
	adrp	x9, _V4L2_DV_FL_IS_CE_VIDEO@GOTPAGE
Lloh37:
	ldr	x9, [x9, _V4L2_DV_FL_IS_CE_VIDEO@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_48
; %bb.39:
	ldr	w8, [x20, #64]
	cmp	w8, #720
	b.ne	LBB0_41
; %bb.40:
	ldr	w8, [x20, #68]
	cmp	w8, #576
	b.le	LBB0_33
LBB0_41:
	ldr	x8, [x19, #16]
Lloh39:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh40:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_37
; %bb.42:
Lloh42:
	adrp	x9, _V4L2_COLORSPACE_REC709@GOTPAGE
Lloh43:
	ldr	x9, [x9, _V4L2_COLORSPACE_REC709@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_37
; %bb.43:
Lloh45:
	adrp	x10, _V4L2_COLORSPACE_OPRGB@GOTPAGE
Lloh46:
	ldr	x10, [x10, _V4L2_COLORSPACE_OPRGB@GOTPAGEOFF]
Lloh47:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_37
; %bb.44:
Lloh48:
	adrp	x10, _V4L2_COLORSPACE_BT2020@GOTPAGE
Lloh49:
	ldr	x10, [x10, _V4L2_COLORSPACE_BT2020@GOTPAGEOFF]
Lloh50:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_37
; %bb.45:
Lloh51:
	adrp	x10, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh52:
	ldr	x10, [x10, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh53:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_37
; %bb.46:
	str	x9, [x19, #16]
	b	LBB0_37
LBB0_47:
	cmp	x22, #0
	cset	w8, ne
	lsr	w8, w25, w8
	b	LBB0_16
LBB0_48:
Lloh54:
	adrp	x8, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh55:
	ldr	x8, [x8, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
	b	LBB0_34
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fourcc format (0x%08x) unknown.\n"

	.comm	_V4L2_PIX_FMT_YUYV,4,2          ; @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_vivid_min_rect,24,2            ; @vivid_min_rect
	.comm	_vivid_max_rect,24,2            ; @vivid_max_rect
	.comm	_MAX_ZOOM,4,2                   ; @MAX_ZOOM
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_V4L2_XFER_FUNC_DEFAULT,4,2     ; @V4L2_XFER_FUNC_DEFAULT
	.comm	_V4L2_YCBCR_ENC_DEFAULT,4,2     ; @V4L2_YCBCR_ENC_DEFAULT
	.comm	_V4L2_QUANTIZATION_DEFAULT,4,2  ; @V4L2_QUANTIZATION_DEFAULT
	.comm	_V4L2_COLORSPACE_SMPTE170M,8,3  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_DV_FL_IS_CE_VIDEO,4,2     ; @V4L2_DV_FL_IS_CE_VIDEO
	.comm	_V4L2_COLORSPACE_SRGB,8,3       ; @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_QUANTIZATION_LIM_RANGE,4,2 ; @V4L2_QUANTIZATION_LIM_RANGE
	.comm	_V4L2_COLORSPACE_REC709,8,3     ; @V4L2_COLORSPACE_REC709
	.comm	_V4L2_COLORSPACE_OPRGB,8,3      ; @V4L2_COLORSPACE_OPRGB
	.comm	_V4L2_COLORSPACE_BT2020,8,3     ; @V4L2_COLORSPACE_BT2020
.subsections_via_symbols
