	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_try_fmt_vid_cap          ## -- Begin function vivid_try_fmt_vid_cap
	.p2align	4, 0x90
_vivid_try_fmt_vid_cap:                 ## @vivid_try_fmt_vid_cap
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	48(%rdx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_video_drvdata
	movq	%rax, %r12
	movl	40(%r15), %esi
	movq	%rax, %rdi
	callq	_vivid_get_format
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	40(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_dprintk
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 40(%r15)
	movq	%r12, %rdi
	callq	_vivid_get_format
	movq	%rax, %r14
LBB0_2:
	movl	36(%r15), %esi
	movq	%r12, %rdi
	callq	_vivid_field_cap
	movl	%eax, 36(%r15)
	movq	%r12, %rdi
	callq	_vivid_is_webcam
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_webcam_sizes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VIVID_WEBCAM_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_width@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_height@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movl	4(%r15), %r9d
	callq	_v4l2_find_nearest_size
	movl	(%rax), %r13d
	movl	4(%rax), %eax
LBB0_7:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_4:
	movq	%r12, %rdi
	callq	_vivid_is_sdtv_cap
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	movl	$576, %eax                      ## imm = 0x240
	movl	$480, %ecx                      ## imm = 0x1E0
	cmovel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	$720, %r13d                     ## imm = 0x2D0
LBB0_8:
	movl	36(%r15), %edi
	callq	_V4L2_FIELD_HAS_T_OR_B
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$1, %rax
	movl	$2, %ebx
	sbbl	$0, %ebx
	movq	%r12, %rdi
	callq	_vivid_is_webcam
	testq	%rax, %rax
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_9
LBB0_12:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setne	%cl
	movl	%r13d, (%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_21
LBB0_9:
	cmpq	$0, 48(%r12)
	jne	LBB0_13
## %bb.10:
	cmpq	$0, 40(%r12)
	jne	LBB0_13
## %bb.11:
	cmpl	$0, 56(%r12)
	je	LBB0_12
LBB0_13:
	movq	$0, -88(%rbp)
	movl	(%r15), %eax
	movl	%eax, -80(%rbp)
	imull	4(%r15), %ebx
	movl	%ebx, -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(%r12)
	je	LBB0_16
## %bb.14:
	cmpl	$0, 56(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_20
## %bb.15:
	movq	$0, -120(%rbp)
	movq	_MAX_ZOOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%eax, %r13d
	movl	%r13d, -112(%rbp)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	imull	%eax, %ecx
	movl	%ecx, -108(%rbp)
	movq	$0, -104(%rbp)
	leaq	-88(%rbp), %rdi
	leaq	-120(%rbp), %rsi
	callq	_v4l2_rect_set_max_size
	jmp	LBB0_20
LBB0_6:
	movl	16(%r12), %r13d
	movl	20(%r12), %eax
	jmp	LBB0_7
LBB0_16:
	cmpq	$0, 40(%r12)
	je	LBB0_19
## %bb.17:
	cmpl	$0, 56(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_20
## %bb.18:
	movq	%r12, %rsi
	addq	$16, %rsi
	leaq	-88(%rbp), %rdi
	callq	_v4l2_rect_set_max_size
	jmp	LBB0_20
LBB0_19:
	movq	%r12, %rsi
	addq	$16, %rsi
	leaq	-88(%rbp), %rdi
	callq	_v4l2_rect_set_min_size
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_20:
	testq	%rbx, %rbx
	setne	%cl
	movl	-88(%rbp), %r13d
	movl	%r13d, (%r15)
	movl	-84(%rbp), %eax
LBB0_21:
	shrl	%cl, %eax
	movl	%eax, 4(%r15)
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_22
## %bb.31:
	movl	$1, %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	-4(%rax,%rbx,4), %edx
	imull	%edx, %r13d
	shrl	$3, %r13d
	movq	_MAX_ZOOM@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	shrl	$3, %edx
	movl	(%r12), %esi
	cmpl	%edx, %esi
	movl	%edx, %ecx
	cmovbl	%esi, %ecx
	cmpl	%r13d, %ecx
	movl	%r13d, %eax
	cmoval	%ecx, %eax
	cmpl	%edx, %esi
	ja	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpl	%r13d, %ecx
	jae	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	%eax, (%r12)
LBB0_35:                                ##   in Loop: Header=BB0_32 Depth=1
	imull	4(%r15), %eax
	movq	16(%r14), %rcx
	movq	40(%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(%r12)
	movl	16(%r12), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r14), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_23
## %bb.36:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	(%r15), %r13d
	incq	%rbx
	addq	$24, %r12
	jmp	LBB0_32
LBB0_22:
	xorl	%ecx, %ecx
LBB0_23:
	movl	24(%r14), %r9d
	cmpl	%r9d, %ecx
	jae	LBB0_29
## %bb.24:
	movl	4(%r15), %r10d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	imull	(%rsi), %r10d
	movq	8(%r14), %r11
	movq	16(%r14), %r12
	movl	(%r11), %eax
	cltd
	idivl	(%r12)
	movl	%eax, %r8d
	movq	8(%rsi), %rsi
	movl	%ecx, %ebx
	movl	%r9d, %eax
	subl	%ecx, %eax
	movq	%rbx, %rcx
	notq	%rcx
	testb	$1, %al
	je	LBB0_26
## %bb.25:
	movl	(%r11,%rbx,4), %eax
	cltd
	idivl	(%r12,%rbx,4)
	imull	%r10d, %eax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
	addq	%rax, %rsi
	incq	%rbx
LBB0_26:
	addq	%r9, %rcx
	je	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r11,%rbx,4), %eax
	movl	4(%r11,%rbx,4), %edi
	cltd
	idivl	(%r12,%rbx,4)
	imull	%r10d, %eax
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %ecx
	addq	%rsi, %rcx
	movl	%edi, %eax
	cltd
	idivl	4(%r12,%rbx,4)
	imull	%r10d, %eax
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %esi
	addq	%rcx, %rsi
	addq	$2, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_27
LBB0_28:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, 8(%rax)
LBB0_29:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_vivid_colorspace_cap
	movl	%eax, 32(%r15)
	movq	32(%r14), %rax
	movq	_TGP_COLOR_ENC_HSV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_37
## %bb.30:
	movq	%rbx, %rdi
	callq	_vivid_hsv_enc_cap
	movl	%eax, 28(%r15)
	jmp	LBB0_38
LBB0_37:
	movq	%rbx, %rdi
	callq	_vivid_ycbcr_enc_cap
	movl	%eax, 24(%r15)
LBB0_38:
	movq	%rbx, %rdi
	callq	_vivid_xfer_func_cap
	movl	%eax, 20(%r15)
	movq	%rbx, %rdi
	callq	_vivid_quantization_cap
	movl	%eax, 16(%r15)
	movl	12(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_webcam_sizes,4,2               ## @webcam_sizes
	.comm	_VIVID_WEBCAM_SIZES,4,2         ## @VIVID_WEBCAM_SIZES
	.comm	_width,4,2                      ## @width
	.comm	_height,4,2                     ## @height
	.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	_TGP_COLOR_ENC_HSV,8,3          ## @TGP_COLOR_ENC_HSV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_try_fmt_vid_cap          ; -- Begin function vivid_try_fmt_vid_cap
	.p2align	2
_vivid_try_fmt_vid_cap:                 ; @vivid_try_fmt_vid_cap
	.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
	ldr	x23, [x2, #48]
	bl	_video_drvdata
	mov	x20, x0
	ldr	w1, [x19, #40]
	bl	_vivid_get_format
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w3, [x19, #40]
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, #40]
	mov	x0, x20
	bl	_vivid_get_format
	mov	x21, x0
LBB0_2:
	ldr	w1, [x19, #36]
	mov	x0, x20
	bl	_vivid_field_cap
	str	w0, [x19, #36]
	mov	x0, x20
	bl	_vivid_is_webcam
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _webcam_sizes@GOTPAGE
Lloh6:
	ldr	x8, [x8, _webcam_sizes@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _VIVID_WEBCAM_SIZES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIVID_WEBCAM_SIZES@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _width@GOTPAGE
Lloh12:
	ldr	x8, [x8, _width@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _height@GOTPAGE
Lloh15:
	ldr	x8, [x8, _height@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	ldp	w4, w5, [x19]
	bl	_v4l2_find_nearest_size
	ldp	w24, w25, [x0]
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_vivid_is_sdtv_cap
	cbz	x0, LBB0_6
; %bb.5:
	ldp	x8, x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
Lloh17:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #480
	mov	w9, #576
	csel	w25, w9, w8, eq
	mov	w24, #720
	b	LBB0_7
LBB0_6:
	ldp	w24, w25, [x20, #16]
LBB0_7:
	ldr	w0, [x19, #36]
	bl	_V4L2_FIELD_HAS_T_OR_B
	mov	x22, x0
	cmp	x0, #0
	mov	w8, #1
	cinc	w26, w8, ne
	mov	x0, x20
	bl	_vivid_is_webcam
	cbz	x0, LBB0_9
LBB0_8:
	cmp	x22, #0
	cset	w8, ne
	lsr	w8, w25, w8
	b	LBB0_20
LBB0_9:
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_12
; %bb.10:
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_12
; %bb.11:
	ldr	w8, [x20, #56]
	cbz	w8, LBB0_8
LBB0_12:
	movi.2d	v0, #0000000000000000
	str	d0, [sp, #24]
	ldp	w8, w9, [x19]
	mul	w9, w9, w26
	stp	w8, w9, [sp, #32]
	str	d0, [sp, #40]
Lloh20:
	adrp	x1, _vivid_min_rect@GOTPAGE
Lloh21:
	ldr	x1, [x1, _vivid_min_rect@GOTPAGEOFF]
	add	x0, sp, #24
	bl	_v4l2_rect_set_min_size
Lloh22:
	adrp	x1, _vivid_max_rect@GOTPAGE
Lloh23:
	ldr	x1, [x1, _vivid_max_rect@GOTPAGEOFF]
	add	x0, sp, #24
	bl	_v4l2_rect_set_max_size
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	w8, [x20, #56]
	cbnz	w8, LBB0_19
; %bb.14:
	movi.2d	v0, #0000000000000000
	str	d0, [sp]
Lloh24:
	adrp	x8, _MAX_ZOOM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX_ZOOM@GOTPAGEOFF]
Lloh26:
	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_19
LBB0_15:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_18
; %bb.16:
	ldr	w8, [x20, #56]
	cbnz	w8, LBB0_19
; %bb.17:
	add	x1, x20, #16
	add	x0, sp, #24
	bl	_v4l2_rect_set_max_size
	b	LBB0_19
LBB0_18:
	add	x1, x20, #16
	add	x0, sp, #24
	bl	_v4l2_rect_set_min_size
LBB0_19:
	cmp	x22, #0
	cset	w8, ne
	ldp	w24, w9, [sp, #24]
	lsr	w8, w9, w8
LBB0_20:
	stp	w24, w8, [x19]
	ldr	w8, [x21]
	str	w8, [x19, #8]
	cbz	w8, LBB0_26
; %bb.21:
	mov	x22, #0
Lloh27:
	adrp	x25, _MAX_ZOOM@GOTPAGE
Lloh28:
	ldr	x25, [x25, _MAX_ZOOM@GOTPAGEOFF]
Lloh29:
	adrp	x26, _MAX_WIDTH@GOTPAGE
Lloh30:
	ldr	x26, [x26, _MAX_WIDTH@GOTPAGEOFF]
	mov	x27, x23
LBB0_22:                                ; =>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_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	str	w8, [x27]
LBB0_24:                                ;   in Loop: Header=BB0_22 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, #40]
	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_27
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w24, [x19]
	add	x27, x27, #24
	b	LBB0_22
LBB0_26:
	mov	w10, #0
LBB0_27:
	ldr	w11, [x21, #24]
	cmp	w10, w11
	b.hs	LBB0_36
; %bb.28:
	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_30
; %bb.29:
	mov	x14, x2
	b	LBB0_33
LBB0_30:
	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_31:                                ; =>This Inner Loop Header: Depth=1
	ldp	w5, w6, [x2, #-8]
	ldp	w7, w22, [x2], #16
	ldp	w24, w25, [x3, #-8]
	ldp	w26, w27, [x3], #16
	sdiv	w5, w5, w24
	sdiv	w6, w6, w25
	sdiv	w7, w7, w26
	sdiv	w22, w22, w27
	mul	w5, w8, w5
	mul	w6, w8, w6
	mul	w7, w8, w7
	mul	w22, w8, w22
	udiv	w5, w5, w10
	udiv	w6, w6, w10
	udiv	w7, w7, w10
	add	x9, x9, x5
	udiv	w5, w22, w10
	add	x1, x1, x6
	add	x0, x0, x7
	add	x17, x17, x5
	subs	x4, x4, #4
	b.ne	LBB0_31
; %bb.32:
	add	x9, x1, x9
	add	x9, x0, x9
	add	x9, x17, x9
	cmp	x15, x16
	b.eq	LBB0_35
LBB0_33:
	lsl	x15, x14, #2
	add	x13, x13, x15
	add	x12, x12, x15
	sub	x11, x11, x14
LBB0_34:                                ; =>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_34
LBB0_35:
	str	x9, [x23, #8]
LBB0_36:
	mov	x0, x20
	bl	_vivid_colorspace_cap
	str	w0, [x19, #32]
	ldr	x8, [x21, #32]
Lloh31:
	adrp	x9, _TGP_COLOR_ENC_HSV@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TGP_COLOR_ENC_HSV@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.37:
	bl	_vivid_hsv_enc_cap
	str	w0, [x19, #28]
	b	LBB0_39
LBB0_38:
	bl	_vivid_ycbcr_enc_cap
	str	w0, [x19, #24]
LBB0_39:
	mov	x0, x20
	bl	_vivid_xfer_func_cap
	str	w0, [x19, #20]
	mov	x0, x20
	bl	_vivid_quantization_cap
	str	w0, [x19, #16]
	ldr	w0, [x19, #12]
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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	_webcam_sizes,4,2               ; @webcam_sizes
	.comm	_VIVID_WEBCAM_SIZES,4,2         ; @VIVID_WEBCAM_SIZES
	.comm	_width,4,2                      ; @width
	.comm	_height,4,2                     ; @height
	.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	_TGP_COLOR_ENC_HSV,8,3          ; @TGP_COLOR_ENC_HSV
.subsections_via_symbols
