	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_go7007_parse_video_stream      ## -- Begin function go7007_parse_video_stream
	.p2align	4, 0x90
_go7007_parse_video_stream:             ## @go7007_parse_video_stream
	.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, %r14
	movq	%rdi, %r12
	movl	(%rdi), %eax
	addl	$-128, %eax
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$-1, %ecx
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.go7007_parse_video_stream(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	leaq	l_switch.table.go7007_parse_video_stream.1(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	l_switch.table.go7007_parse_video_stream.2(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
LBB0_2:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jle	LBB0_72
## %bb.3:
	movq	32(%r12), %rbx
	leaq	40(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_10 Depth=1
	callq	_store_byte
LBB0_5:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
LBB0_6:                                 ##   in Loop: Header=BB0_10 Depth=1
	callq	_store_byte
	movl	(%r14,%r15,4), %esi
	movq	%rbx, %rdi
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=1
	callq	_store_byte
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	$136, 4(%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	cmpq	%r15, %r13
	je	LBB0_72
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rax
	movq	_GO7007_BUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$-3, %ecx
	cmpl	%ecx, (%rax)
	jl	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_info
	movq	8(%rbx), %rax
	movl	$0, (%rax)
	movq	$0, (%rbx)
	movq	$0, 32(%r12)
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ebx, %ebx
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%r12), %eax
	movl	$-131, %ecx
	addl	%ecx, %eax
	cmpl	$8, %eax
	ja	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	12(%r12), %eax
	orl	(%r14,%r15,4), %eax
	movl	%eax, 12(%r12)
	jle	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$133, 4(%r12)
	jmp	LBB0_9
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14,%r15,4), %eax
	shll	$8, %eax
	movl	%eax, 12(%r12)
	movl	$131, 4(%r12)
	jmp	LBB0_9
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	decl	12(%r12)
	jne	LBB0_9
	jmp	LBB0_8
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	12(%r12), %eax
	cmpl	$203, %eax
	jg	LBB0_52
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14,%r15,4), %ecx
	testb	$1, %al
	jne	LBB0_57
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	shll	$8, %ecx
	movl	%ecx, 16(%r12)
	jmp	LBB0_58
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14,%r15,4), %eax
	cmpl	$255, %eax
	je	LBB0_59
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$216, %eax
	je	LBB0_60
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%eax, %eax
	jne	LBB0_62
## %bb.26:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_store_byte
	movl	$139, 4(%r12)
	jmp	LBB0_9
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14,%r15,4), %esi
	cmpl	$255, %esi
	je	LBB0_55
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%esi, %esi
	jne	LBB0_56
## %bb.29:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$139, 4(%r12)
	jmp	LBB0_9
LBB0_30:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14,%r15,4), %eax
	cmpl	$248, %eax
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, 24(%r12)
	je	LBB0_66
LBB0_32:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %ecx
	addl	$-128, %ecx
	cmpl	$2, %ecx
	ja	LBB0_42
## %bb.33:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_42
LBB0_36:                                ##   in Loop: Header=BB0_10 Depth=1
	testq	%rbx, %rbx
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, 8(%r12)
	je	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_frame_boundary
	movq	%rax, %rbx
	movl	(%r14,%r15,4), %eax
LBB0_39:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ecx, %ecx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %eax
	sete	%cl
	movl	%ecx, 8(%r12)
	testq	%rbx, %rbx
	je	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%edx, %eax
	jne	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_42:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14,%r15,4), %eax
	movl	$-245, %ecx
	addl	%ecx, %eax
	cmpl	$10, %eax
	ja	LBB0_68
## %bb.43:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_44:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$12, 12(%r12)
	movl	$133, 4(%r12)
	jmp	LBB0_9
LBB0_45:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14,%r15,4), %eax
	cmpl	$255, %eax
	je	LBB0_63
## %bb.46:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$1, %eax
	je	LBB0_65
## %bb.47:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	testl	%eax, %eax
	jne	LBB0_4
## %bb.48:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_store_byte
	jmp	LBB0_9
LBB0_49:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14,%r15,4), %eax
	cmpl	$255, %eax
	je	LBB0_64
## %bb.50:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%eax, %eax
	jne	LBB0_5
## %bb.51:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$138, 4(%r12)
	jmp	LBB0_9
LBB0_52:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$207, %eax
	jne	LBB0_58
## %bb.53:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%rbx, %rbx
	je	LBB0_58
## %bb.54:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14,%r15,4), %eax
	movl	%eax, 4(%rbx)
	movl	$208, 12(%r12)
	jmp	LBB0_8
LBB0_55:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$135, 4(%r12)
	jmp	LBB0_9
LBB0_56:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_store_byte
	jmp	LBB0_9
LBB0_57:                                ##   in Loop: Header=BB0_10 Depth=1
	orl	%ecx, 16(%r12)
	movq	%r12, %rdi
	callq	_write_bitmap_word
	movl	12(%r12), %eax
LBB0_58:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%eax
	movl	%eax, 12(%r12)
	cmpl	$208, %eax
	je	LBB0_8
	jmp	LBB0_9
LBB0_59:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_store_byte
	jmp	LBB0_9
LBB0_60:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %eax
	movq	_V4L2_PIX_FMT_MJPEG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_62
## %bb.61:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_frame_boundary
	movq	%rax, %rbx
LBB0_62:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	movl	$255, %esi
	jmp	LBB0_6
LBB0_63:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_store_byte
LBB0_64:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_71
LBB0_65:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$137, 4(%r12)
	jmp	LBB0_9
LBB0_66:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_store_byte
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_store_byte
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_store_byte
	movq	%rbx, %rdi
	movl	$248, %esi
	jmp	LBB0_7
LBB0_67:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$132, 4(%r12)
	jmp	LBB0_9
LBB0_68:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_store_byte
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_store_byte
	movq	%rbx, %rdi
	movl	$1, %esi
	jmp	LBB0_6
LBB0_69:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$0, 12(%r12)
	movl	20(%r12), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$134, 4(%r12)
	jmp	LBB0_9
LBB0_70:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_store_byte
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_store_byte
	movq	%rbx, %rdi
	movl	$1, %esi
LBB0_71:                                ##   in Loop: Header=BB0_10 Depth=1
	callq	_store_byte
	movl	$135, 4(%r12)
	jmp	LBB0_9
LBB0_72:
	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_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
.set L0_0_set_49, LBB0_49-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_23
	.long	L0_0_set_27
	.long	L0_0_set_30
	.long	L0_0_set_45
	.long	L0_0_set_49
.set L0_1_set_44, LBB0_44-LJTI0_1
.set L0_1_set_67, LBB0_67-LJTI0_1
.set L0_1_set_68, LBB0_68-LJTI0_1
.set L0_1_set_69, LBB0_69-LJTI0_1
.set L0_1_set_70, LBB0_70-LJTI0_1
LJTI0_1:
	.long	L0_1_set_44
	.long	L0_1_set_67
	.long	L0_1_set_68
	.long	L0_1_set_69
	.long	L0_1_set_68
	.long	L0_1_set_68
	.long	L0_1_set_68
	.long	L0_1_set_68
	.long	L0_1_set_68
	.long	L0_1_set_68
	.long	L0_1_set_70
	.end_data_region
                                        ## -- End function
	.comm	_GO7007_BUF_SIZE,4,2            ## @GO7007_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dropping oversized frame\n"

	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ## @V4L2_PIX_FMT_MJPEG
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.go7007_parse_video_stream
l_switch.table.go7007_parse_video_stream:
	.long	176                             ## 0xb0
	.long	179                             ## 0xb3
	.long	179                             ## 0xb3

	.p2align	2                               ## @switch.table.go7007_parse_video_stream.1
l_switch.table.go7007_parse_video_stream.1:
	.long	179                             ## 0xb3
	.long	184                             ## 0xb8
	.long	184                             ## 0xb8

	.p2align	2                               ## @switch.table.go7007_parse_video_stream.2
l_switch.table.go7007_parse_video_stream.2:
	.long	182                             ## 0xb6
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_go7007_parse_video_stream      ; -- Begin function go7007_parse_video_stream
	.p2align	2
_go7007_parse_video_stream:             ; @go7007_parse_video_stream
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #2, #32
Lloh0:
	adrp	x9, l_switch.table.go7007_parse_video_stream@PAGE
Lloh1:
	add	x9, x9, l_switch.table.go7007_parse_video_stream@PAGEOFF
	ldr	w10, [x9, x8]
Lloh2:
	adrp	x9, l_switch.table.go7007_parse_video_stream.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.go7007_parse_video_stream.1@PAGEOFF
	ldr	w9, [x9, x8]
	stp	w9, w10, [sp, #8]               ; 8-byte Folded Spill
Lloh4:
	adrp	x9, l_switch.table.go7007_parse_video_stream.2@PAGE
Lloh5:
	add	x9, x9, l_switch.table.go7007_parse_video_stream.2@PAGEOFF
	ldr	w26, [x9, x8]
	cmp	w2, #1
	b.ge	LBB0_3
	b	LBB0_70
LBB0_2:
	mov	w9, #-1
	mov	w8, #-1
	stp	w8, w9, [sp, #8]                ; 8-byte Folded Spill
	mov	w26, #-1
	cmp	w2, #1
	b.lt	LBB0_70
LBB0_3:
	add	x21, x20, #40
	ldr	x22, [x20, #32]
	mov	w27, w2
Lloh6:
	adrp	x28, lJTI0_0@PAGE
Lloh7:
	add	x28, x28, lJTI0_0@PAGEOFF
	mov	w25, #136
Lloh8:
	adrp	x24, _GO7007_BUF_SIZE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GO7007_BUF_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	str	w8, [x22, #4]
	mov	w8, #208
	str	w8, [x20, #12]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w25, [x20, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x19, x19, #4
	subs	x27, x27, #1
	b.eq	LBB0_70
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	ldr	w9, [x24]
	sub	w9, w9, #3
	cmp	w8, w9
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_v4l2_info
	ldr	x8, [x22, #8]
	str	wzr, [x8]
	str	xzr, [x22]
	str	xzr, [x20, #32]
	mov	x22, #0
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #4]
	sub	w8, w8, #131
	cmp	w8, #8
	b.hi	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	adr	x9, LBB0_12
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
	cmp	w8, #1
	b.ge	LBB0_40
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	lsl	w8, w8, #8
	str	w8, [x20, #12]
	mov	w8, #131
	str	w8, [x20, #4]
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #12]
	subs	w8, w8, #1
	str	w8, [x20, #12]
	b.ne	LBB0_6
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #12]
	cmp	w8, #203
	b.gt	LBB0_48
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x19]
	tbnz	w8, #0, LBB0_50
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	lsl	w9, w9, #8
	str	w9, [x20, #16]
	b	LBB0_51
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	cmp	w8, #255
	b.eq	LBB0_52
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #216
	b.eq	LBB0_53
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w8, LBB0_55
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #255
	bl	_store_byte
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x19]
	cmp	w1, #255
	b.eq	LBB0_69
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w1, LBB0_49
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #139
	str	w8, [x20, #4]
	b	LBB0_6
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	cmp	w8, #248
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20, #24]
	cbz	w9, LBB0_61
LBB0_27:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20]
	sub	w9, w9, #128
	cmp	w9, #2
	b.hi	LBB0_37
; %bb.28:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, w26
	b.eq	LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_37
LBB0_31:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x22, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20, #8]
	cbz	w9, LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_frame_boundary
	mov	x22, x0
	ldr	w8, [x19]
LBB0_34:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, w26
	cset	w8, eq
	str	w8, [x20, #8]
	cbz	x22, LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_7 Depth=1
	b.ne	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_37:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	sub	w8, w8, #245
	cmp	w8, #10
	b.hi	LBB0_63
; %bb.38:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh12:
	adrp	x11, lJTI0_1@PAGE
Lloh13:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x9, LBB0_39
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_39:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #12
	str	w8, [x20, #12]
LBB0_40:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #133
	str	w8, [x20, #4]
	b	LBB0_6
LBB0_41:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	cmp	w8, #255
	b.eq	LBB0_56
; %bb.42:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #1
	b.eq	LBB0_58
; %bb.43:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	cbnz	w8, LBB0_59
; %bb.44:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_store_byte
	b	LBB0_6
LBB0_45:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	cmp	w8, #255
	b.eq	LBB0_57
; %bb.46:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w8, LBB0_60
; %bb.47:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #138
	str	w8, [x20, #4]
	b	LBB0_6
LBB0_48:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #207
	ccmp	x22, #0, #4, eq
	b.eq	LBB0_51
	b	LBB0_4
LBB0_49:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_store_byte
	b	LBB0_6
LBB0_50:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #16]
	orr	w8, w8, w9
	str	w8, [x20, #16]
	mov	x0, x20
	bl	_write_bitmap_word
	ldr	w8, [x20, #12]
LBB0_51:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w8, #1
	str	w8, [x20, #12]
	cmp	w8, #208
	b.eq	LBB0_5
	b	LBB0_6
LBB0_52:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #255
	bl	_store_byte
	b	LBB0_6
LBB0_53:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _V4L2_PIX_FMT_MJPEG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_PIX_FMT_MJPEG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_55
; %bb.54:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_frame_boundary
	mov	x22, x0
LBB0_55:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #255
	b	LBB0_64
LBB0_56:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_store_byte
LBB0_57:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	b	LBB0_68
LBB0_58:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #137
	str	w8, [x20, #4]
	b	LBB0_6
LBB0_59:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_store_byte
LBB0_60:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	b	LBB0_64
LBB0_61:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_store_byte
	mov	x0, x22
	mov	w1, #0
	bl	_store_byte
	mov	x0, x22
	mov	w1, #1
	bl	_store_byte
	mov	x0, x22
	mov	w1, #248
	b	LBB0_65
LBB0_62:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #132
	str	w8, [x20, #4]
	b	LBB0_6
LBB0_63:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_store_byte
	mov	x0, x22
	mov	w1, #0
	bl	_store_byte
	mov	x0, x22
	mov	w1, #1
LBB0_64:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_store_byte
	ldr	w1, [x19]
	mov	x0, x22
LBB0_65:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_store_byte
	b	LBB0_5
LBB0_66:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x20, #12]
	ldr	w0, [x20, #20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #134
	str	w8, [x20, #4]
	b	LBB0_6
LBB0_67:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_store_byte
	mov	x0, x22
	mov	w1, #0
	bl	_store_byte
	mov	x0, x22
	mov	w1, #1
LBB0_68:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_store_byte
LBB0_69:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #135
	str	w8, [x20, #4]
	b	LBB0_6
LBB0_70:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_13-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
	.byte	(LBB0_18-LBB0_12)>>2
	.byte	(LBB0_22-LBB0_12)>>2
	.byte	(LBB0_25-LBB0_12)>>2
	.byte	(LBB0_41-LBB0_12)>>2
	.byte	(LBB0_45-LBB0_12)>>2
lJTI0_1:
	.byte	(LBB0_39-LBB0_39)>>2
	.byte	(LBB0_62-LBB0_39)>>2
	.byte	(LBB0_63-LBB0_39)>>2
	.byte	(LBB0_66-LBB0_39)>>2
	.byte	(LBB0_63-LBB0_39)>>2
	.byte	(LBB0_63-LBB0_39)>>2
	.byte	(LBB0_63-LBB0_39)>>2
	.byte	(LBB0_63-LBB0_39)>>2
	.byte	(LBB0_63-LBB0_39)>>2
	.byte	(LBB0_63-LBB0_39)>>2
	.byte	(LBB0_67-LBB0_39)>>2
                                        ; -- End function
	.comm	_GO7007_BUF_SIZE,4,2            ; @GO7007_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dropping oversized frame\n"

	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ; @V4L2_PIX_FMT_MJPEG
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.go7007_parse_video_stream
l_switch.table.go7007_parse_video_stream:
	.long	176                             ; 0xb0
	.long	179                             ; 0xb3
	.long	179                             ; 0xb3

	.p2align	2                               ; @switch.table.go7007_parse_video_stream.1
l_switch.table.go7007_parse_video_stream.1:
	.long	179                             ; 0xb3
	.long	184                             ; 0xb8
	.long	184                             ; 0xb8

	.p2align	2                               ; @switch.table.go7007_parse_video_stream.2
l_switch.table.go7007_parse_video_stream.2:
	.long	182                             ; 0xb6
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
