	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbvision_parse_lines_422
_usbvision_parse_lines_422:             ## @usbvision_parse_lines_422
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	$-2146795340, -44(%rbp)         ## imm = 0x800A80B4
	movq	8(%rdi), %r13
	movq	(%r13), %rbx
	movslq	8(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	12(%r13), %r14
	movl	32(%r13), %eax
	leal	(%rax,%rax), %r15d
	addl	$5, %r15d
	callq	_scratch_len
	cmpl	%r15d, %eax
	jge	LBB0_2
## %bb.1:
	movq	_DBG_PARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_PDEBUG
	movq	_parse_state_out@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_2:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	12(%r13), %eax
	incl	%eax
	cmpl	16(%r13), %eax
	jge	LBB0_25
## %bb.3:
	movq	%r14, %rdx
	movslq	24(%r13), %rax
	movslq	(%r12), %r14
	movl	12(%r13), %ecx
	cmpl	$0, 20(%r13)
	jle	LBB0_23
## %bb.4:
	imulq	%rsi, %rdx
	addq	%rdx, %rbx
	decq	%r14
	imulq	%rax, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	movb	%al, (%rbx)
	movzbl	-43(%rbp), %eax
	movb	%al, 1(%rbx)
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	$2, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	%r14, %rbx
	movl	(%r12), %eax
	leal	(%r15,%rax,2), %r15d
	cmpl	20(%r13), %r15d
	jge	LBB0_23
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_scratch_get
	movl	28(%r13), %ecx
	movzbl	-44(%rbp), %eax
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movb	%al, (%rbx)
	movzbl	-41(%rbp), %eax
	movb	%al, 1(%rbx)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	-43(%rbp), %esi
	movzbl	-41(%rbp), %edx
	movzbl	%al, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_YUV_TO_RGB_BY_THE_BOOK
	movl	28(%r13), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movw	$0, (%rbx)
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$2, %rbx
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%r14, %rbx
	movl	28(%r13), %ecx
	movzbl	-42(%rbp), %eax
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movzbl	-43(%rbp), %esi
	movzbl	-41(%rbp), %edx
	movzbl	%al, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_YUV_TO_RGB_BY_THE_BOOK
	movl	28(%r13), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movw	$0, (%rbx)
	jmp	LBB0_6
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %rbx
	jmp	LBB0_14
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$3, %rbx
	jmp	LBB0_14
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %rbx
	jmp	LBB0_7
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$3, %rbx
	jmp	LBB0_7
LBB0_23:
	movslq	4(%r12), %rax
	addl	%eax, 12(%r13)
	movslq	8(%r13), %rcx
	imulq	%rax, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rcx, (%rax)
	movl	12(%r13), %eax
	cmpl	16(%r13), %eax
	jge	LBB0_25
## %bb.24:
	movq	_parse_state_continue@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_25:
	movq	_parse_state_next_frame@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_18
	.long	L0_0_set_19
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_21, LBB0_21-LJTI0_1
LJTI0_1:
	.long	L0_1_set_17
	.long	L0_1_set_17
	.long	L0_1_set_20
	.long	L0_1_set_21
	.end_data_region
                                        ## -- End function
	.comm	_DBG_PARSE,4,2                  ## @DBG_PARSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of data in line %d, need %u.\n"

	.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	_V4L2_PIX_FMT_YUYV,4,2          ## @V4L2_PIX_FMT_YUYV
	.comm	_parse_state_continue,4,2       ## @parse_state_continue
	.no_dead_strip	_usbvision_parse_lines_422
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbvision_parse_lines_422
_usbvision_parse_lines_422:             ; @usbvision_parse_lines_422
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	mov	w8, #32948
	movk	w8, #32778, lsl #16
	str	w8, [sp, #12]
	ldr	x22, [x0, #8]
	ldr	x24, [x22]
	ldrsw	x25, [x22, #8]
	ldrsw	x26, [x22, #12]
	ldr	w8, [x22, #32]
	lsl	w8, w8, #1
	add	w21, w8, #5
	bl	_scratch_len
	cmp	w0, w21
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DBG_PARSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBG_PARSE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x22, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_PDEBUG
Lloh5:
	adrp	x21, _parse_state_out@GOTPAGE
Lloh6:
	ldr	x21, [x21, _parse_state_out@GOTPAGEOFF]
	b	LBB0_21
LBB0_2:
	ldr	w8, [x22, #12]
	add	w8, w8, #1
	ldr	w9, [x22, #16]
Lloh7:
	adrp	x21, _parse_state_next_frame@GOTPAGE
Lloh8:
	ldr	x21, [x21, _parse_state_next_frame@GOTPAGEOFF]
	cmp	w8, w9
	b.ge	LBB0_21
; %bb.3:
	ldrsw	x8, [x22, #24]
	ldrsw	x9, [x20]
	ldr	wzr, [x22, #12]
	ldr	w10, [x22, #20]
	cmp	w10, #1
	b.lt	LBB0_20
; %bb.4:
	mov	w23, #0
	madd	x28, x26, x25, x24
	sub	x9, x9, #1
	mul	x24, x9, x8
Lloh9:
	adrp	x25, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh10:
	ldr	x25, [x25, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
Lloh11:
	adrp	x26, lJTI0_1@PAGE
Lloh12:
	add	x26, x26, lJTI0_1@PAGEOFF
Lloh13:
	adrp	x27, lJTI0_0@PAGE
Lloh14:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	strb	w0, [x28]
	ldrb	w8, [sp, #13]
	strb	w8, [x28, #1]
	add	x28, x28, #2
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, x24
	ldr	w8, [x20]
	add	w23, w23, w8, lsl #1
	ldr	w8, [x22, #20]
	cmp	w23, w8
	b.ge	LBB0_20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_scratch_get
	ldr	w8, [x22, #28]
	ldr	w9, [x25]
	ldrb	w0, [sp, #12]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w0, [x28]
	ldrb	w8, [sp, #15]
	strb	w8, [x28, #1]
	add	x28, x28, #2
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w1, [sp, #13]
	ldrb	w2, [sp, #15]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_YUV_TO_RGB_BY_THE_BOOK
	ldr	w8, [x22, #28]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	adr	x9, LBB0_11
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	strh	wzr, [x28], #2
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, #4
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, #3
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, x24
	ldr	w8, [x22, #28]
	ldr	w9, [x25]
	ldrb	w0, [sp, #14]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w1, [sp, #13]
	ldrb	w2, [sp, #15]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_YUV_TO_RGB_BY_THE_BOOK
	ldr	w8, [x22, #28]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	adr	x9, LBB0_17
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	strh	wzr, [x28], #2
	b	LBB0_6
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, #4
	b	LBB0_6
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, #3
	b	LBB0_6
LBB0_20:
	ldrsw	x8, [x20, #4]
	ldr	w9, [x22, #12]
	add	w9, w9, w8
	str	w9, [x22, #12]
	ldrsw	x9, [x22, #8]
	ldr	x10, [x19]
	madd	x8, x9, x8, x10
	str	x8, [x19]
	ldr	w8, [x22, #12]
	ldr	w9, [x22, #16]
Lloh15:
	adrp	x10, _parse_state_continue@GOTPAGE
Lloh16:
	ldr	x10, [x10, _parse_state_continue@GOTPAGEOFF]
	cmp	w8, w9
	csel	x21, x10, x21, lt
LBB0_21:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
lJTI0_1:
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_18-LBB0_17)>>2
	.byte	(LBB0_19-LBB0_17)>>2
                                        ; -- End function
	.comm	_DBG_PARSE,4,2                  ; @DBG_PARSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of data in line %d, need %u.\n"

	.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	_V4L2_PIX_FMT_YUYV,4,2          ; @V4L2_PIX_FMT_YUYV
	.comm	_parse_state_continue,4,2       ; @parse_state_continue
	.no_dead_strip	_usbvision_parse_lines_422
.subsections_via_symbols
