	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbvision_parse_data
_usbvision_parse_data:                  ## @usbvision_parse_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	24(%rdi), %r12
	movq	_DBG_PARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_scratch_len
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	_parse_state_out@GOTPCREL(%rip), %r13
	movq	_parse_state_continue@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_usbvision_find_header
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r14), %ebx
	jne	LBB0_13
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_scratch_len
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movq	_scan_state_scanning@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_scan_state_lines@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	_ISOC_MODE_YUV420@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_usbvision_parse_lines_420
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_ISOC_MODE_YUV422@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_usbvision_parse_lines_422
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_ISOC_MODE_COMPRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_usbvision_parse_compress
	jmp	LBB0_11
LBB0_13:
	movq	_parse_state_next_frame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	je	LBB0_15
## %bb.14:
	cmpl	(%r13), %ebx
	jne	LBB0_20
LBB0_15:
	cmpl	%eax, %ebx
	jne	LBB0_18
## %bb.16:
	movq	_frame_state_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movl	%eax, 28(%r12)
	movl	12(%r15), %eax
	movl	%eax, 24(%r12)
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	20(%r12), %rdi
	leaq	32(%r15), %rsi
	callq	_list_move_tail
	movq	$0, 24(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	incl	12(%r15)
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	_DBG_PARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	%r15, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_19
LBB0_18:
	movq	_frame_state_grabbing@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
LBB0_19:
	movq	-48(%rbp), %rax
	addq	%rax, 8(%r12)
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_PARSE,4,2                  ## @DBG_PARSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parsing len=%d\n"

	.comm	_parse_state_out,4,2            ## @parse_state_out
	.comm	_scan_state_scanning,8,3        ## @scan_state_scanning
	.comm	_scan_state_lines,8,3           ## @scan_state_lines
	.comm	_ISOC_MODE_YUV420,8,3           ## @ISOC_MODE_YUV420
	.comm	_ISOC_MODE_YUV422,8,3           ## @ISOC_MODE_YUV422
	.comm	_ISOC_MODE_COMPRESS,8,3         ## @ISOC_MODE_COMPRESS
	.comm	_parse_state_continue,4,2       ## @parse_state_continue
	.comm	_parse_state_next_frame,4,2     ## @parse_state_next_frame
	.comm	_frame_state_done,4,2           ## @frame_state_done
L_.str.1:                               ## @.str.1
	.asciz	"Wake up !"

	.comm	_frame_state_grabbing,4,2       ## @frame_state_grabbing
	.no_dead_strip	_usbvision_parse_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbvision_parse_data
_usbvision_parse_data:                  ; @usbvision_parse_data
	.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, x0
	str	xzr, [sp, #8]
	ldr	x21, [x0, #24]
Lloh0:
	adrp	x8, _DBG_PARSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBG_PARSE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_scratch_len
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_PDEBUG
Lloh5:
	adrp	x23, _parse_state_out@GOTPAGE
Lloh6:
	ldr	x23, [x23, _parse_state_out@GOTPAGEOFF]
Lloh7:
	adrp	x24, _parse_state_continue@GOTPAGE
Lloh8:
	ldr	x24, [x24, _parse_state_continue@GOTPAGEOFF]
Lloh9:
	adrp	x25, _scan_state_scanning@GOTPAGE
Lloh10:
	ldr	x25, [x25, _scan_state_scanning@GOTPAGEOFF]
Lloh11:
	adrp	x26, _scan_state_lines@GOTPAGE
Lloh12:
	ldr	x26, [x26, _scan_state_lines@GOTPAGEOFF]
Lloh13:
	adrp	x27, _ISOC_MODE_YUV420@GOTPAGE
Lloh14:
	ldr	x27, [x27, _ISOC_MODE_YUV420@GOTPAGEOFF]
Lloh15:
	adrp	x28, _ISOC_MODE_YUV422@GOTPAGE
Lloh16:
	ldr	x28, [x28, _ISOC_MODE_YUV422@GOTPAGEOFF]
Lloh17:
	adrp	x22, _ISOC_MODE_COMPRESS@GOTPAGE
Lloh18:
	ldr	x22, [x22, _ISOC_MODE_COMPRESS@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_usbvision_find_header
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	cmp	w20, w8
	b.ne	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x23]
	mov	x0, x19
	bl	_scratch_len
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_usbvision_parse_lines_420
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_usbvision_parse_lines_422
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_usbvision_parse_compress
	b	LBB0_2
LBB0_13:
Lloh19:
	adrp	x8, _parse_state_next_frame@GOTPAGE
Lloh20:
	ldr	x8, [x8, _parse_state_next_frame@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x23]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.ne	LBB0_19
; %bb.14:
	cmp	w20, w8
	b.ne	LBB0_17
; %bb.15:
Lloh22:
	adrp	x8, _frame_state_done@GOTPAGE
Lloh23:
	ldr	x8, [x8, _frame_state_done@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	bl	_ktime_get_ns
	ldr	w8, [x19, #12]
	stp	w8, w0, [x21, #24]
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x21, #20
	add	x1, x19, #32
	bl	_list_move_tail
	str	xzr, [x19, #24]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	add	x19, x19, #8
	mov	x0, x19
	bl	_waitqueue_active
	cbz	x0, LBB0_18
; %bb.16:
Lloh25:
	adrp	x8, _DBG_PARSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DBG_PARSE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PDEBUG
	mov	x0, x19
	bl	_wake_up_interruptible
	b	LBB0_18
LBB0_17:
Lloh30:
	adrp	x8, _frame_state_grabbing@GOTPAGE
Lloh31:
	ldr	x8, [x8, _frame_state_grabbing@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x21, #16]
LBB0_18:
	ldr	x8, [sp, #8]
	ldr	x9, [x21, #8]
	add	x8, x9, x8
	str	x8, [x21, #8]
LBB0_19:
	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	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_PARSE,4,2                  ; @DBG_PARSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parsing len=%d\n"

	.comm	_parse_state_out,4,2            ; @parse_state_out
	.comm	_scan_state_scanning,8,3        ; @scan_state_scanning
	.comm	_scan_state_lines,8,3           ; @scan_state_lines
	.comm	_ISOC_MODE_YUV420,8,3           ; @ISOC_MODE_YUV420
	.comm	_ISOC_MODE_YUV422,8,3           ; @ISOC_MODE_YUV422
	.comm	_ISOC_MODE_COMPRESS,8,3         ; @ISOC_MODE_COMPRESS
	.comm	_parse_state_continue,4,2       ; @parse_state_continue
	.comm	_parse_state_next_frame,4,2     ; @parse_state_next_frame
	.comm	_frame_state_done,4,2           ; @frame_state_done
l_.str.1:                               ; @.str.1
	.asciz	"Wake up !"

	.comm	_frame_state_grabbing,4,2       ; @frame_state_grabbing
	.no_dead_strip	_usbvision_parse_data
.subsections_via_symbols
