	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbvision_parse_compress
_usbvision_parse_compress:              ## @usbvision_parse_compress
	.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	$488, %rsp                      ## imm = 0x1E8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %r12
	movslq	(%r12), %rcx
	movslq	4(%r12), %r13
	imulq	%rcx, %r13
	movl	28(%r12), %edx
	movq	_V4L2_PIX_FMT_YUV422P@GOTPCREL(%rip), %rdi
	movq	_V4L2_PIX_FMT_YVU420@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rdi), %edx
	movq	%rsi, -504(%rbp)                ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	cmpl	%eax, %edx
	je	LBB0_3
## %bb.2:
	movl	20(%r12), %r8d
	movl	24(%r12), %edi
	jmp	LBB0_4
LBB0_3:
	movl	20(%r12), %r8d
	movl	16(%r12), %edi
LBB0_4:
	imull	%r8d, %edi
	movl	%edi, -476(%rbp)                ## 4-byte Spill
	movq	8(%r12), %rdi
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %edx
	movq	%rdi, -512(%rbp)                ## 8-byte Spill
	jne	LBB0_6
## %bb.5:
	movq	%r13, %rdx
	addq	%rdi, %rdx
	sarl	%ecx
	imull	%r8d, %ecx
	movslq	%ecx, %rsi
	addq	%rdx, %rsi
	movl	%r13d, %ecx
	sarl	%ecx
	movslq	%ecx, %rbx
	movq	%rsi, %rcx
	movq	%rsi, -496(%rbp)                ## 8-byte Spill
	addq	%rsi, %rbx
	testl	%r8d, %r8d
	jne	LBB0_11
	jmp	LBB0_10
LBB0_6:
	cmpl	%eax, %edx
	jne	LBB0_8
## %bb.7:
	movslq	%r13d, %rcx
	movl	16(%r12), %esi
	imull	%r8d, %esi
	sarl	$2, %esi
	movslq	%esi, %rbx
	addq	%rdi, %rbx
	addq	%rcx, %rbx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	addq	%rbx, %rcx
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
LBB0_9:
	movq	%rcx, -496(%rbp)                ## 8-byte Spill
	testl	%r8d, %r8d
	jne	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_usbvision_adjust_compression
LBB0_11:
	movq	%r14, %rdi
	callq	_scratch_len
	movq	_parse_state_out@GOTPCREL(%rip), %r15
	cmpl	$3, %eax
	jl	LBB0_48
## %bb.12:
	movq	%rbx, -488(%rbp)                ## 8-byte Spill
	leaq	-516(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_scratch_set_extra_ptr
	leaq	-451(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$3, %ecx
	callq	_scratch_get_extra
	cmpb	$90, -451(%rbp)
	jne	LBB0_46
## %bb.13:
	movzbl	-449(%rbp), %eax
	cmpl	%eax, 20(%r12)
	je	LBB0_15
## %bb.14:
	incl	24(%r14)
LBB0_15:
	movzbl	-450(%rbp), %eax
	leal	(%rax,%rax), %ebx
	cmpl	$201, %eax
	jb	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_usbvision_request_intra
LBB0_17:
	movq	%r14, %rdi
	callq	_scratch_len
	cmpl	%ebx, %eax
	jl	LBB0_48
## %bb.18:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_47
## %bb.19:
	movl	(%r12), %ecx
	movl	20(%r12), %edx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	imull	%ecx, %edx
	movslq	%edx, %rdx
	addq	%rax, %rdx
	movq	%rdx, _usbvision_parse_compress.Y(%rip)
	movslq	%r13d, %rdx
	addq	%rax, %rdx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	sarl	%esi
	imull	%edi, %esi
	movslq	%esi, %rcx
	addq	%rcx, %rdx
	movq	%rdx, _usbvision_parse_compress.U(%rip)
	leal	3(%r13), %edx
	testl	%r13d, %r13d
	cmovnsl	%r13d, %edx
	sarl	$2, %edx
	leal	(%rdx,%rdx,4), %edx
	movslq	%edx, %rdx
	addq	%rax, %rdx
	addq	%rcx, %rdx
	movq	%rdx, _usbvision_parse_compress.V(%rip)
	leaq	-448(%rbp), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_scratch_get
	movl	(%r12), %r9d
	movl	$3, -480(%rbp)
	leal	-1(%r9), %eax
	cltq
	imulq	$715827883, %rax, %rax          ## imm = 0x2AAAAAAB
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$36, %rax
	addl	%ecx, %eax
	movl	%ebx, %r15d
	movl	%r9d, %ebx
	shrl	$31, %ebx
	addl	%r9d, %ebx
	sarl	%ebx
	leal	-1(%rbx), %ecx
	movslq	%ecx, %rcx
	imulq	$715827883, %rcx, %rcx          ## imm = 0x2AAAAAAB
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$36, %rcx
	addl	%edx, %ecx
	addl	%ecx, %eax
	addl	$5, %eax
	movl	%eax, -468(%rbp)
	movl	%eax, 8(%r14)
	movq	_usbvision_parse_compress.Y(%rip), %rdx
	leaq	-468(%rbp), %rcx
	leaq	-480(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r9, -464(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_usbvision_decompress
	movl	%r15d, -472(%rbp)               ## 4-byte Spill
	cmpl	12(%r14), %r15d
	jle	LBB0_21
## %bb.20:
	movl	-472(%rbp), %eax                ## 4-byte Reload
	movl	%eax, 12(%r14)
LBB0_21:
	testb	$1, 20(%r12)
	leaq	_usbvision_parse_compress.U(%rip), %rcx
	leaq	_usbvision_parse_compress.V(%rip), %rax
	cmoveq	%rcx, %rax
	movq	(%rax), %rdx
	leaq	-448(%rbp), %rsi
	leaq	-468(%rbp), %rcx
	leaq	-480(%rbp), %r8
	movq	%r14, %rdi
	movl	%ebx, %r9d
	callq	_usbvision_decompress
	movl	-468(%rbp), %eax
	cmpl	16(%r14), %eax
	movq	_V4L2_PIX_FMT_YVU420@GOTPCREL(%rip), %r15
	movq	_V4L2_PIX_FMT_YUV422P@GOTPCREL(%rip), %r13
	jle	LBB0_23
## %bb.22:
	movl	%eax, 16(%r14)
LBB0_23:
	cmpl	-472(%rbp), %eax                ## 4-byte Folded Reload
	movq	-512(%rbp), %rdx                ## 8-byte Reload
	jle	LBB0_25
## %bb.24:
	incl	20(%r14)
LBB0_25:
	movq	-464(%rbp), %r8                 ## 8-byte Reload
	testl	%r8d, %r8d
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rsi
	movq	-496(%rbp), %rdi                ## 8-byte Reload
	leaq	_usbvision_parse_compress.U(%rip), %r9
	leaq	_usbvision_parse_compress.V(%rip), %r10
	jle	LBB0_50
## %bb.26:
	movslq	-476(%rbp), %rax                ## 4-byte Folded Reload
	addq	%rax, %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_usbvision_parse_compress.Y(%rip), %rax
	movzbl	(%rax,%rbx), %eax
	movb	%al, (%rdx)
	movl	%ebx, %eax
	shrl	%eax
	testb	$1, %bl
	movq	%r9, %rcx
	cmoveq	%r10, %rcx
	movq	(%rcx), %rcx
	movzbl	(%rcx,%rax), %eax
	movb	%al, 1(%rdx)
	addq	$2, %rdx
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%rbx
	cmpq	%rbx, %r8
	je	LBB0_50
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r12), %ecx
	cmpl	(%rsi), %ecx
	je	LBB0_27
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpl	(%r13), %ecx
	jne	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_usbvision_parse_compress.Y(%rip), %rax
	movzbl	(%rax,%rbx), %eax
	movb	%al, (%rdx)
	incq	%rdx
	testb	$1, %bl
	jne	LBB0_37
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_usbvision_parse_compress.V(%rip), %rax
	movl	%ebx, %ecx
	shrl	%ecx
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_usbvision_parse_compress.Y(%rip), %rax
	movzbl	(%rax,%rbx), %eax
	cmpl	(%r15), %ecx
	jne	LBB0_38
## %bb.34:                              ##   in Loop: Header=BB0_29 Depth=1
	movb	%al, (%rdx)
	incq	%rdx
	movl	20(%r12), %eax
	orl	%ebx, %eax
	testb	$1, %al
	jne	LBB0_28
## %bb.35:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_usbvision_parse_compress.U(%rip), %rax
	movl	%ebx, %ecx
	shrl	%ecx
	movzbl	(%rax,%rcx), %eax
	movb	%al, (%rdi)
	incq	%rdi
	movq	_usbvision_parse_compress.V(%rip), %rax
LBB0_36:                                ##   in Loop: Header=BB0_29 Depth=1
	movzbl	(%rax,%rcx), %eax
	movq	-488(%rbp), %rcx                ## 8-byte Reload
	movb	%al, (%rcx)
	incq	%rcx
	movq	%rcx, -488(%rbp)                ## 8-byte Spill
	jmp	LBB0_28
LBB0_37:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_usbvision_parse_compress.U(%rip), %rax
	movl	%ebx, %ecx
	shrl	%ecx
	movzbl	(%rax,%rcx), %eax
	movb	%al, (%rdi)
	incq	%rdi
	jmp	LBB0_28
LBB0_38:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%r15, %r13
	movq	%rdi, %r15
	movq	%rdx, %r14
	movq	_usbvision_parse_compress.U(%rip), %rcx
	movl	%ebx, %edx
	shrl	%edx
	movzbl	(%rcx,%rdx), %esi
	movq	_usbvision_parse_compress.V(%rip), %rcx
	movzbl	(%rcx,%rdx), %edx
	movzbl	%al, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_YUV_TO_RGB_BY_THE_BOOK
	movl	28(%r12), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_29 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%r14, %rdx
	jmpq	*%rax
LBB0_40:                                ##   in Loop: Header=BB0_29 Depth=1
	movw	$0, (%rdx)
	addq	$2, %rdx
	jmp	LBB0_45
LBB0_41:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%r14, %rdx
	jmp	LBB0_45
LBB0_42:                                ##   in Loop: Header=BB0_29 Depth=1
	addq	$4, %rdx
	jmp	LBB0_45
LBB0_43:                                ##   in Loop: Header=BB0_29 Depth=1
	addq	$3, %rdx
	jmp	LBB0_45
LBB0_44:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_usbvision_parse_compress.Y(%rip), %rax
	movzbl	(%rax,%rbx), %eax
	movb	%al, (%rdx)
	incq	%rdx
LBB0_45:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	-464(%rbp), %r8                 ## 8-byte Reload
	leaq	_usbvision_parse_compress.U(%rip), %r9
	leaq	_usbvision_parse_compress.V(%rip), %r10
	movq	%r13, %r15
	movq	_V4L2_PIX_FMT_YUV422P@GOTPCREL(%rip), %r13
	jmp	LBB0_28
LBB0_46:
	incl	28(%r14)
LBB0_47:
	movq	_parse_state_next_frame@GOTPCREL(%rip), %r15
LBB0_48:
	movl	(%r15), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_57
## %bb.49:
	addq	$488, %rsp                      ## imm = 0x1E8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_50:
	movl	28(%r12), %eax
	cmpl	(%r15), %eax
	jne	LBB0_53
## %bb.51:
	movl	20(%r12), %eax
	movl	24(%r12), %edx
	movl	%eax, %ecx
	notb	%cl
	andb	$1, %cl
	shll	%cl, %edx
	movslq	%edx, %rcx
	movq	-504(%rbp), %rdx                ## 8-byte Reload
	addq	(%rdx), %rcx
	jmp	LBB0_54
LBB0_53:
	movslq	24(%r12), %rcx
	movq	-504(%rbp), %rdx                ## 8-byte Reload
	addq	(%rdx), %rcx
	movl	20(%r12), %eax
LBB0_54:
	movq	%rcx, (%rdx)
	incl	%eax
	movl	%eax, 20(%r12)
	cmpl	4(%r12), %eax
	jge	LBB0_47
## %bb.55:
	movq	_parse_state_continue@GOTPCREL(%rip), %r15
	jmp	LBB0_48
LBB0_57:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_43, LBB0_43-LJTI0_0
.set L0_0_set_44, LBB0_44-LJTI0_0
LJTI0_0:
	.long	L0_0_set_40
	.long	L0_0_set_40
	.long	L0_0_set_42
	.long	L0_0_set_43
	.long	L0_0_set_44
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_usbvision_parse_compress.Y,8,3 ## @usbvision_parse_compress.Y
.zerofill __DATA,__bss,_usbvision_parse_compress.U,8,3 ## @usbvision_parse_compress.U
.zerofill __DATA,__bss,_usbvision_parse_compress.V,8,3 ## @usbvision_parse_compress.V
	.comm	_V4L2_PIX_FMT_YUV422P,4,2       ## @V4L2_PIX_FMT_YUV422P
	.comm	_V4L2_PIX_FMT_YVU420,4,2        ## @V4L2_PIX_FMT_YVU420
	.comm	_V4L2_PIX_FMT_YUYV,4,2          ## @V4L2_PIX_FMT_YUYV
	.comm	_parse_state_out,4,2            ## @parse_state_out
	.comm	_parse_state_next_frame,4,2     ## @parse_state_next_frame
	.comm	_MAX_FRAME_WIDTH,4,2            ## @MAX_FRAME_WIDTH
	.comm	_parse_state_continue,4,2       ## @parse_state_continue
	.comm	_USBVISION_STRIP_HEADER_LEN,4,2 ## @USBVISION_STRIP_HEADER_LEN
	.comm	_USBVISION_STRIP_LEN_MAX,4,2    ## @USBVISION_STRIP_LEN_MAX
	.comm	_USBVISION_STRIP_MAGIC,1,0      ## @USBVISION_STRIP_MAGIC
	.no_dead_strip	_usbvision_parse_compress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbvision_parse_compress
_usbvision_parse_compress:              ; @usbvision_parse_compress
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #448
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x24, [x0, #32]
	ldpsw	x9, x8, [x24]
	mul	x20, x8, x9
	ldr	w10, [x24, #28]
Lloh3:
	adrp	x8, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x11, _V4L2_PIX_FMT_YVU420@GOTPAGE
Lloh7:
	ldr	x11, [x11, _V4L2_PIX_FMT_YVU420@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w10, w8
	ccmp	w10, w11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w12, [x24, #16]
	b	LBB0_3
LBB0_2:
	ldr	w12, [x24, #24]
LBB0_3:
	ldr	w8, [x24, #20]
	mul	w26, w8, w12
	ldr	x23, [x24, #8]
Lloh9:
	adrp	x27, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh10:
	ldr	x27, [x27, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
	ldr	w12, [x27]
	cmp	w10, w12
	b.ne	LBB0_14
; %bb.4:
	add	x10, x23, x20
	asr	w9, w9, #1
	mul	w9, w8, w9
	add	x19, x10, w9, sxtw
	asr	w9, w20, #1
	add	x28, x19, w9, sxtw
	cbnz	w8, LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_usbvision_adjust_compression
LBB0_6:
	mov	x0, x21
	bl	_scratch_len
	cmp	w0, #3
	b.lt	LBB0_13
; %bb.7:
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #0
	bl	_scratch_set_extra_ptr
	add	x1, sp, #29
	add	x2, sp, #24
	mov	x0, x21
	mov	w3, #3
	bl	_scratch_get_extra
	ldrb	w8, [sp, #29]
	cmp	w8, #90
	b.ne	LBB0_16
; %bb.8:
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w8, [x24, #20]
	ldrb	w9, [sp, #31]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x21, #24]
	add	w8, w8, #1
	str	w8, [x21, #24]
LBB0_10:
	ldrb	w8, [sp, #30]
	lsl	w22, w8, #1
	cmp	w8, #201
	b.lo	LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_usbvision_request_intra
LBB0_12:
	mov	x0, x21
	bl	_scratch_len
	cmp	w0, w22
	b.ge	LBB0_18
LBB0_13:
Lloh11:
	adrp	x25, _parse_state_out@GOTPAGE
Lloh12:
	ldr	x25, [x25, _parse_state_out@GOTPAGEOFF]
	b	LBB0_50
LBB0_14:
	cmp	w10, w11
	b.ne	LBB0_17
; %bb.15:
	add	x9, x23, w20, sxtw
	ldr	w10, [x24, #16]
	mul	w10, w10, w8
	asr	w10, w10, #2
	add	x28, x9, w10, sxtw
	asr	w9, w20, #2
	add	x19, x28, w9, sxtw
	cbnz	w8, LBB0_6
	b	LBB0_5
LBB0_16:
	ldr	w8, [x21, #28]
	add	w8, w8, #1
	str	w8, [x21, #28]
Lloh13:
	adrp	x25, _parse_state_next_frame@GOTPAGE
Lloh14:
	ldr	x25, [x25, _parse_state_next_frame@GOTPAGEOFF]
	b	LBB0_50
LBB0_17:
	mov	x28, #0
	mov	x19, #0
	cbnz	w8, LBB0_6
	b	LBB0_5
LBB0_18:
	ldr	x8, [x21]
Lloh15:
	adrp	x25, _parse_state_next_frame@GOTPAGE
Lloh16:
	ldr	x25, [x25, _parse_state_next_frame@GOTPAGEOFF]
	cbz	x8, LBB0_50
; %bb.19:
	ldr	w9, [x24]
	ldr	w10, [x24, #20]
	mul	w11, w10, w9
	add	x11, x8, w11, sxtw
	adrp	x12, _usbvision_parse_compress.Y@PAGE
	str	x11, [x12, _usbvision_parse_compress.Y@PAGEOFF]
	add	x11, x8, w20, sxtw
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	mul	w9, w10, w9
	sxtw	x9, w9
	add	x10, x11, x9
	adrp	x11, _usbvision_parse_compress.U@PAGE
	str	x10, [x11, _usbvision_parse_compress.U@PAGEOFF]
	add	w10, w20, #3
	cmp	w20, #0
	csel	w10, w10, w20, lt
	and	w11, w10, #0xfffffffc
	add	w10, w11, w10, asr #2
	add	x8, x8, w10, sxtw
	add	x8, x8, x9
	adrp	x9, _usbvision_parse_compress.V@PAGE
	str	x8, [x9, _usbvision_parse_compress.V@PAGEOFF]
	add	x1, sp, #32
	mov	x0, x21
	mov	x2, x22
	bl	_scratch_get
	ldr	w20, [x24]
	mov	w11, #3
	sub	w8, w20, #1
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #36
	add	w8, w8, w10
	cmp	w20, #0
	cinc	w10, w20, lt
	asr	w10, w10, #1
	str	w10, [sp, #4]                   ; 4-byte Folded Spill
	sub	w10, w10, #1
	smull	x9, w10, w9
	lsr	x10, x9, #63
	asr	x9, x9, #36
	add	w9, w9, w10
	add	w8, w8, w9
	add	w8, w8, #5
	stp	w11, w8, [sp, #16]
	str	w8, [x21, #8]
Lloh17:
	adrp	x8, _usbvision_parse_compress.Y@PAGE
Lloh18:
	ldr	x2, [x8, _usbvision_parse_compress.Y@PAGEOFF]
	add	x1, sp, #32
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x0, x21
	mov	x5, x20
	bl	_usbvision_decompress
	ldr	w8, [x21, #12]
	cmp	w22, w8
	b.le	LBB0_21
; %bb.20:
	str	w22, [x21, #12]
LBB0_21:
Lloh19:
	adrp	x9, _usbvision_parse_compress.U@PAGE
Lloh20:
	add	x9, x9, _usbvision_parse_compress.U@PAGEOFF
	ldr	w8, [x24, #20]
Lloh21:
	adrp	x10, _usbvision_parse_compress.V@PAGE
Lloh22:
	add	x10, x10, _usbvision_parse_compress.V@PAGEOFF
	tst	w8, #0x1
	csel	x8, x9, x10, eq
	ldr	x2, [x8]
	add	x1, sp, #32
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x0, x21
	ldr	w5, [sp, #4]                    ; 4-byte Folded Reload
	bl	_usbvision_decompress
	ldr	w8, [sp, #20]
	ldr	w9, [x21, #16]
	cmp	w8, w9
	b.le	LBB0_23
; %bb.22:
	str	w8, [x21, #16]
LBB0_23:
	cmp	w8, w22
Lloh23:
	adrp	x11, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh24:
	ldr	x11, [x11, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
	adrp	x12, _usbvision_parse_compress.Y@PAGE
	adrp	x13, _usbvision_parse_compress.U@PAGE
	adrp	x14, _usbvision_parse_compress.V@PAGE
	b.le	LBB0_25
; %bb.24:
	ldr	w8, [x21, #20]
	add	w8, w8, #1
	str	w8, [x21, #20]
LBB0_25:
	cmp	w20, #1
Lloh25:
	adrp	x15, _usbvision_parse_compress.U@PAGE
Lloh26:
	add	x15, x15, _usbvision_parse_compress.U@PAGEOFF
Lloh27:
	adrp	x16, _usbvision_parse_compress.V@PAGE
Lloh28:
	add	x16, x16, _usbvision_parse_compress.V@PAGEOFF
	b.lt	LBB0_46
; %bb.26:
	mov	x21, #0
	add	x22, x23, w26, sxtw
Lloh29:
	adrp	x23, lJTI0_0@PAGE
Lloh30:
	add	x23, x23, lJTI0_0@PAGEOFF
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x12, _usbvision_parse_compress.Y@PAGEOFF]
	ldrb	w8, [x8, x21]
	strb	w8, [x22]
	ubfx	x8, x21, #1, #31
	tst	x21, #0x1
	csel	x9, x16, x15, eq
	ldr	x9, [x9]
	ldrb	w8, [x9, x8]
	strb	w8, [x22, #1]
	add	x22, x22, #2
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x21, x21, #1
	cmp	x20, x21
	b.eq	LBB0_46
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, #28]
	ldr	w9, [x27]
	cmp	w8, w9
	b.eq	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w9, [x11]
	cmp	w8, w9
	b.ne	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x12, _usbvision_parse_compress.Y@PAGEOFF]
	ldrb	w8, [x8, x21]
	strb	w8, [x22], #1
	tbnz	w21, #0, LBB0_37
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x14, _usbvision_parse_compress.V@PAGEOFF]
	ubfx	x9, x21, #1, #31
	b	LBB0_36
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=1
Lloh31:
	adrp	x9, _V4L2_PIX_FMT_YVU420@GOTPAGE
Lloh32:
	ldr	x9, [x9, _V4L2_PIX_FMT_YVU420@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	ldr	x10, [x12, _usbvision_parse_compress.Y@PAGEOFF]
	ldrb	w0, [x10, x21]
	cmp	w8, w9
	b.ne	LBB0_38
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=1
	strb	w0, [x22], #1
	ldr	w8, [x24, #20]
	orr	w8, w8, w21
	tbnz	w8, #0, LBB0_28
; %bb.35:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x13, _usbvision_parse_compress.U@PAGEOFF]
	ubfx	x9, x21, #1, #31
	ldrb	w8, [x8, x9]
	strb	w8, [x19], #1
	ldr	x8, [x14, _usbvision_parse_compress.V@PAGEOFF]
LBB0_36:                                ;   in Loop: Header=BB0_29 Depth=1
	ldrb	w8, [x8, x9]
	strb	w8, [x28], #1
	b	LBB0_28
LBB0_37:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x13, _usbvision_parse_compress.U@PAGEOFF]
	ubfx	x9, x21, #1, #31
	ldrb	w8, [x8, x9]
	strb	w8, [x19], #1
	b	LBB0_28
LBB0_38:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x13, _usbvision_parse_compress.U@PAGEOFF]
	ubfx	x9, x21, #1, #31
	ldrb	w1, [x8, x9]
	ldr	x8, [x14, _usbvision_parse_compress.V@PAGEOFF]
	ldrb	w2, [x8, x9]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_YUV_TO_RGB_BY_THE_BOOK
	ldr	w8, [x24, #28]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_29 Depth=1
	adr	x9, LBB0_40
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	adrp	x12, _usbvision_parse_compress.Y@PAGE
Lloh34:
	adrp	x15, _usbvision_parse_compress.U@PAGE
Lloh35:
	add	x15, x15, _usbvision_parse_compress.U@PAGEOFF
Lloh36:
	adrp	x16, _usbvision_parse_compress.V@PAGE
Lloh37:
	add	x16, x16, _usbvision_parse_compress.V@PAGEOFF
	br	x9
LBB0_40:                                ;   in Loop: Header=BB0_29 Depth=1
	strh	wzr, [x22], #2
	b	LBB0_45
LBB0_41:                                ;   in Loop: Header=BB0_29 Depth=1
Lloh38:
	adrp	x11, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh39:
	ldr	x11, [x11, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
	adrp	x12, _usbvision_parse_compress.Y@PAGE
	adrp	x13, _usbvision_parse_compress.U@PAGE
	adrp	x14, _usbvision_parse_compress.V@PAGE
Lloh40:
	adrp	x15, _usbvision_parse_compress.U@PAGE
Lloh41:
	add	x15, x15, _usbvision_parse_compress.U@PAGEOFF
Lloh42:
	adrp	x16, _usbvision_parse_compress.V@PAGE
Lloh43:
	add	x16, x16, _usbvision_parse_compress.V@PAGEOFF
	b	LBB0_28
LBB0_42:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x22, x22, #4
	b	LBB0_45
LBB0_43:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x22, x22, #3
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x12, _usbvision_parse_compress.Y@PAGEOFF]
	ldrb	w8, [x8, x21]
	strb	w8, [x22], #1
LBB0_45:                                ;   in Loop: Header=BB0_29 Depth=1
Lloh44:
	adrp	x11, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh45:
	ldr	x11, [x11, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
	adrp	x13, _usbvision_parse_compress.U@PAGE
	adrp	x14, _usbvision_parse_compress.V@PAGE
	b	LBB0_28
LBB0_46:
	ldr	w8, [x24, #28]
Lloh46:
	adrp	x9, _V4L2_PIX_FMT_YVU420@GOTPAGE
Lloh47:
	ldr	x9, [x9, _V4L2_PIX_FMT_YVU420@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_48
; %bb.47:
	ldp	w8, w9, [x24, #20]
	mvn	w10, w8
	and	w10, w10, #0x1
	lsl	w9, w9, w10
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x10, [x11]
	add	x9, x10, w9, sxtw
	b	LBB0_49
LBB0_48:
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x9, [x11]
	ldp	w8, w10, [x24, #20]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x9, x9, x10
LBB0_49:
	str	x9, [x11]
	add	w8, w8, #1
	str	w8, [x24, #20]
	ldr	w9, [x24, #4]
Lloh49:
	adrp	x10, _parse_state_continue@GOTPAGE
Lloh50:
	ldr	x10, [x10, _parse_state_continue@GOTPAGEOFF]
	cmp	w8, w9
	csel	x25, x10, x25, lt
LBB0_50:
	ldr	w0, [x25]
	ldur	x8, [x29, #-96]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.51:
	add	sp, sp, #448
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_40-LBB0_40)>>2
	.byte	(LBB0_40-LBB0_40)>>2
	.byte	(LBB0_42-LBB0_40)>>2
	.byte	(LBB0_43-LBB0_40)>>2
	.byte	(LBB0_44-LBB0_40)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_usbvision_parse_compress.Y,8,3 ; @usbvision_parse_compress.Y
.zerofill __DATA,__bss,_usbvision_parse_compress.U,8,3 ; @usbvision_parse_compress.U
.zerofill __DATA,__bss,_usbvision_parse_compress.V,8,3 ; @usbvision_parse_compress.V
	.comm	_V4L2_PIX_FMT_YUV422P,4,2       ; @V4L2_PIX_FMT_YUV422P
	.comm	_V4L2_PIX_FMT_YVU420,4,2        ; @V4L2_PIX_FMT_YVU420
	.comm	_V4L2_PIX_FMT_YUYV,4,2          ; @V4L2_PIX_FMT_YUYV
	.comm	_parse_state_out,4,2            ; @parse_state_out
	.comm	_parse_state_next_frame,4,2     ; @parse_state_next_frame
	.comm	_MAX_FRAME_WIDTH,4,2            ; @MAX_FRAME_WIDTH
	.comm	_parse_state_continue,4,2       ; @parse_state_continue
	.comm	_USBVISION_STRIP_HEADER_LEN,4,2 ; @USBVISION_STRIP_HEADER_LEN
	.comm	_USBVISION_STRIP_LEN_MAX,4,2    ; @USBVISION_STRIP_LEN_MAX
	.comm	_USBVISION_STRIP_MAGIC,1,0      ; @USBVISION_STRIP_MAGIC
	.no_dead_strip	_usbvision_parse_compress
.subsections_via_symbols
