	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov511_move_data
_ov511_move_data:                       ## @ov511_move_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movslq	(%rdi), %rax
	movzbl	-1(%rax,%rsi), %r13d
	movl	4(%rdi), %edi
	movl	8(%rbx), %esi
	callq	_MAX_RAW_DATA_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbx), %r14
	movq	32(%rbx), %r15
	movq	_printph@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	40(%rbx), %rdi
	movzbl	(%r12), %ecx
	movzbl	1(%r12), %r8d
	movzbl	2(%r12), %r9d
	movzbl	3(%r12), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movzbl	4(%r12), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movzbl	5(%r12), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movzbl	6(%r12), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movzbl	7(%r12), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movzbl	8(%r12), %r14d
	movzbl	9(%r12), %r10d
	movzbl	10(%r12), %r11d
	movzbl	11(%r12), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	%r14
	movq	%r15, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_dev_info
	addq	$80, %rsp
LBB0_2:
	cmpq	$0, (%r12)
	jne	LBB0_20
## %bb.3:
	movzbl	8(%r12), %eax
	testb	$8, %al
	je	LBB0_20
## %bb.4:
	testb	$-128, %al
	jne	LBB0_8
## %bb.5:
	movq	16(%rbx), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	testb	$2, 8(%r12)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rax
	shlq	$6, %rax
	movl	$1, 32(%r15,%rax)
	leaq	L_.str.6(%rip), %rsi
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_7:
	movq	_STATE_LINES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %rcx
	shlq	$6, %rcx
	movq	%rax, 16(%r15,%rcx)
	movl	$0, 8(%r15,%rcx)
	movb	8(%r12), %al
	andb	$64, %al
	movb	%al, 36(%r15,%rcx)
	jmp	LBB0_20
LBB0_8:
	movq	%r14, %rax
	shlq	$6, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	56(%r15,%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_MAX_FRAME_SIZE
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	%rax, %rdi
	callq	_do_gettimeofday
	movzbl	9(%r12), %eax
	leal	8(,%rax,8), %r8d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r8d, (%r15,%rcx)
	movzbl	10(%r12), %eax
	leal	8(,%rax,8), %r9d
	movl	%r9d, 4(%r15,%rcx)
	movq	16(%rbx), %rdx
	movl	8(%r15,%rcx), %r10d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	pushq	%r10
	callq	_PDEBUG
	addq	$16, %rsp
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r15,%r13), %edi
	movl	4(%rbx), %edx
	movl	24(%rbx), %esi
	callq	_RESTRICT_TO_RANGE
	movl	4(%r15,%r13), %edi
	movl	8(%rbx), %edx
	movl	28(%rbx), %esi
	callq	_RESTRICT_TO_RANGE
	movl	8(%r15,%r13), %edi
	movl	$8, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_RESTRICT_TO_RANGE
	movq	16(%r15,%r13), %rax
	movq	_STATE_LINES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	_FRAME_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15,%r13)
	leaq	(%r15,%r13), %rdi
	addq	$48, %rdi
	callq	_wake_up_interruptible
	movq	16(%rbx), %rax
	incq	%rax
	movq	_OV511_NUMFRAMES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_12
## %bb.10:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movl	$5, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_20
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_13:
	movq	32(%rbx), %rax
	movslq	%edx, %rsi
	movq	%rsi, %rcx
	shlq	$6, %rcx
	movq	24(%rax,%rcx), %rdx
	movq	_FRAME_READY@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	je	LBB0_17
## %bb.14:
	movq	_FRAME_GRABBING@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	je	LBB0_17
## %bb.15:
	leaq	(%r15,%r13), %rax
	addq	$24, %rax
	movq	(%rax), %rax
	movq	_FRAME_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_19
LBB0_17:
	movq	%rsi, 16(%rbx)
	movq	_STATE_SCANNING@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 16(%rax,%rcx)
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_19:
	movq	$-1, 16(%rbx)
LBB0_20:
	shlq	$6, %r14
	movq	16(%r15,%r14), %rax
	movq	_STATE_LINES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.21:
	leaq	(%r15,%r14), %rdi
	addq	$8, %rdi
	movl	8(%r15,%r14), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%dl
	movq	_dumppix@GOTPCREL(%rip), %rsi
	cmpl	$2, (%rsi)
	jne	LBB0_25
## %bb.22:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %eax
	decl	%eax
	movl	%eax, (%rdi)
	movl	%eax, %edx
	subl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	jg	LBB0_28
## %bb.23:
	decl	%ecx
	movslq	%eax, %rdi
	movslq	%ecx, %rdx
	subq	%rdx, %rdi
	addq	40(%r15,%r14), %rdi
	jmp	LBB0_46
LBB0_24:
	leaq	L_.str.7(%rip), %rsi
	movl	$5, %edi
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_25:
	movb	%dl, %cl
	leal	(%rcx,%rcx,8), %ecx
	cmpb	$0, 36(%r15,%r14)
	jne	LBB0_29
## %bb.26:
	movq	_remove_zeros@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jne	LBB0_29
## %bb.27:
	movl	%ecx, %esi
	notl	%esi
	addl	-64(%rbp), %esi                 ## 4-byte Folded Reload
	addl	%esi, %eax
	movl	%eax, (%rdi)
	movl	%eax, %edx
	subl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	jle	LBB0_45
LBB0_28:
	leaq	L_.str.8(%rip), %rsi
	movl	$3, %edi
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_29:
	xorl	%ebx, %ebx
	movl	$0, %r13d
	testl	%eax, %eax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_31
## %bb.30:
	movl	$32, %r13d
	movl	$32, %edx
	subl	%ecx, %edx
	movl	%edx, (%rdi)
	movq	40(%r15,%r14), %rdi
	movl	%ecx, %esi
	addq	%r12, %rsi
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_31:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	decl	%ecx
	cmpl	%ecx, %r13d
	jge	LBB0_44
## %bb.32:
	leaq	(%r15,%r14), %rax
	addq	$40, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r14d
	leaq	(%r14,%r12), %r15
	addq	$3, %r15
	xorl	%ebx, %ebx
	movq	%rcx, %r13
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_36 Depth=1
	movl	$3, %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_34:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rcx
LBB0_35:                                ##   in Loop: Header=BB0_36 Depth=1
	addq	$32, %r14
	addq	$32, %r15
	cmpl	%r14d, %ecx
	jle	LBB0_44
LBB0_36:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_36 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, -3(%r15,%rax)
	jne	LBB0_42
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=2
	cmpb	$0, -2(%r15,%rax)
	jne	LBB0_42
## %bb.39:                              ##   in Loop: Header=BB0_37 Depth=2
	cmpb	$0, -1(%r15,%rax)
	jne	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_37 Depth=2
	cmpb	$0, (%r15,%rax)
	jne	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_37 Depth=2
	addq	$4, %rax
	cmpq	$32, %rax
	jne	LBB0_37
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_36 Depth=1
	movslq	(%rdi), %rdi
	leal	(%rbx,%rdi), %eax
	addl	$32, %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_33
## %bb.43:                              ##   in Loop: Header=BB0_36 Depth=1
	movslq	%ebx, %rax
	addl	$32, %ebx
	addq	%rax, %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	leaq	(%r12,%r14), %rsi
	movl	$32, %edx
	callq	_memcpy
	jmp	LBB0_34
LBB0_44:
	addl	%ebx, (%rdi)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	subq	%rdx, %rdi
	addq	40(%r15,%r14), %rdi
	movl	%ecx, %eax
	addq	%rax, %r12
LBB0_46:
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_printph,8,3                    ## @printph
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ph(%3d): %2x %2x %2x %2x %2x %2x %2x %2x %2x %2x %2x %2x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Frame end, frame=%d, pnum=%d, w=%d, h=%d, recvd=%d"

	.comm	_STATE_LINES,8,3                ## @STATE_LINES
	.comm	_FRAME_DONE,8,3                 ## @FRAME_DONE
	.comm	_OV511_NUMFRAMES,4,2            ## @OV511_NUMFRAMES
	.comm	_FRAME_READY,8,3                ## @FRAME_READY
	.comm	_FRAME_GRABBING,8,3             ## @FRAME_GRABBING
	.comm	_STATE_SCANNING,8,3             ## @STATE_SCANNING
L_.str.2:                               ## @.str.2
	.asciz	"** Frame done **"

L_.str.3:                               ## @.str.3
	.asciz	"Frame not ready? state = %d"

L_.str.4:                               ## @.str.4
	.asciz	"Frame done, but not scanning"

L_.str.5:                               ## @.str.5
	.asciz	"Frame start, framenum = %d"

L_.str.6:                               ## @.str.6
	.asciz	"snapshot detected"

L_.str.7:                               ## @.str.7
	.asciz	"Not in a frame; packet skipped"

	.comm	_dumppix,4,2                    ## @dumppix
L_.str.8:                               ## @.str.8
	.asciz	"Raw data buffer overrun!! (%d)"

	.comm	_remove_zeros,4,2               ## @remove_zeros
L_.str.9:                               ## @.str.9
	.asciz	"Raw data buffer overrun!!"

	.no_dead_strip	_ov511_move_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov511_move_data
_ov511_move_data:                       ; @ov511_move_data
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldp	w8, w0, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x8, x8, x1
	ldurb	w23, [x8, #-1]
	ldr	w1, [x22, #8]
	bl	_MAX_RAW_DATA_SIZE
	mov	x20, x0
	ldr	x24, [x22, #32]
	ldr	x25, [x22, #16]
Lloh0:
	adrp	x8, _printph@GOTPAGE
Lloh1:
	ldr	x8, [x8, _printph@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x22, #40]
	ldrb	w3, [x19]
	ldrb	w4, [x19, #1]
	ldrb	w5, [x19, #2]
	ldrb	w6, [x19, #3]
	ldrb	w7, [x19, #4]
	ldur	w8, [x19, #5]
	ldurh	w9, [x19, #9]
	ldrb	w10, [x19, #11]
	strb	w10, [sp, #6]
	strh	w9, [sp, #4]
	str	w8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_info
LBB0_2:
	ldrb	w8, [x19]
	ldrb	w9, [x19, #1]
	orr	w8, w9, w8
	ldrb	w9, [x19, #2]
	orr	w8, w8, w9
	ldrb	w9, [x19, #3]
	orr	w8, w8, w9
	ldrb	w9, [x19, #4]
	orr	w8, w8, w9
	ldrb	w9, [x19, #5]
	orr	w8, w8, w9
	ldrb	w9, [x19, #6]
	orr	w8, w8, w9
	ldrb	w9, [x19, #7]
Lloh5:
	adrp	x26, _STATE_LINES@GOTPAGE
Lloh6:
	ldr	x26, [x26, _STATE_LINES@GOTPAGEOFF]
	orr	w8, w8, w9
	cbnz	w8, LBB0_16
; %bb.3:
	ldrb	w8, [x19, #8]
	tbz	w8, #3, LBB0_16
; %bb.4:
	tbnz	w8, #7, LBB0_8
; %bb.5:
	ldr	x8, [x22, #16]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.5@PAGE
Lloh8:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #4
	bl	_PDEBUG
	ldrb	w8, [x19, #8]
	tbz	w8, #1, LBB0_7
; %bb.6:
	add	x8, x24, x25, lsl #6
	mov	w9, #1
	str	w9, [x8, #32]
Lloh9:
	adrp	x1, l_.str.6@PAGE
Lloh10:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #3
	bl	_PDEBUG
LBB0_7:
	ldr	x8, [x26]
	add	x9, x24, x25, lsl #6
	str	x8, [x9, #16]
	str	wzr, [x9, #8]
	ldrb	w8, [x19, #8]
	and	w8, w8, #0x40
	strb	w8, [x9, #36]
	b	LBB0_16
LBB0_8:
	add	x27, x24, x25, lsl #6
	ldr	x28, [x27, #56]
	ldp	w0, w1, [x22, #4]
	bl	_MAX_FRAME_SIZE
	add	x0, x0, x28
	bl	_do_gettimeofday
	ldrb	w8, [x19, #9]
	lsl	w8, w8, #3
	add	w8, w8, #8
	str	w8, [x27]
	ldrb	w9, [x19, #10]
	lsl	w9, w9, #3
	add	w9, w9, #8
	str	w9, [x27, #4]
	ldr	x10, [x22, #16]
	ldr	w11, [x27, #8]
	stp	x9, x11, [sp, #24]
	stp	x23, x8, [sp, #8]
	str	x10, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #4
	bl	_PDEBUG
	ldr	w0, [x27]
	ldr	w1, [x22, #24]
	ldr	w2, [x22, #4]
	bl	_RESTRICT_TO_RANGE
	ldr	w0, [x27, #4]
	ldr	w1, [x22, #28]
	ldr	w2, [x22, #8]
	bl	_RESTRICT_TO_RANGE
	ldr	w0, [x27, #8]
	mov	w1, #8
	mov	x2, x20
	bl	_RESTRICT_TO_RANGE
	ldr	x8, [x27, #16]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
Lloh13:
	adrp	x23, _FRAME_DONE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _FRAME_DONE@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x27, #24]!
	add	x0, x27, #24
	bl	_wake_up_interruptible
	ldr	x8, [x22, #16]
	add	x8, x8, #1
Lloh15:
	adrp	x9, _OV511_NUMFRAMES@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OV511_NUMFRAMES@GOTPAGEOFF]
Lloh17:
	ldrsw	x9, [x9]
	udiv	x10, x8, x9
	msub	x10, x10, x9, x8
	ldr	x9, [x22, #32]
	lsl	x8, x10, #32
	add	x8, x9, x8, asr #26
	ldr	x8, [x8, #24]
Lloh18:
	adrp	x11, _FRAME_READY@GOTPAGE
Lloh19:
	ldr	x11, [x11, _FRAME_READY@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
Lloh21:
	adrp	x12, _FRAME_GRABBING@GOTPAGE
Lloh22:
	ldr	x12, [x12, _FRAME_GRABBING@GOTPAGEOFF]
Lloh23:
	ldr	x12, [x12]
	cmp	x8, x11
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_12
; %bb.10:
	sxtw	x8, w10
	str	x8, [x22, #16]
Lloh24:
	adrp	x10, _STATE_SCANNING@GOTPAGE
Lloh25:
	ldr	x10, [x10, _STATE_SCANNING@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	add	x8, x9, x8, lsl #6
	str	x10, [x8, #16]
	b	LBB0_16
LBB0_11:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #5
	bl	_PDEBUG
	b	LBB0_16
LBB0_12:
	ldr	x9, [x27]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.13:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_14:
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	w0, #4
	bl	_PDEBUG
	mov	x8, #-1
	str	x8, [x22, #16]
LBB0_16:
	add	x22, x24, x25, lsl #6
	ldr	x8, [x22, #16]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.17:
	ldr	w9, [x22, #8]!
	mov	w8, #9
	cmp	w9, #0
	csel	w8, w8, wzr, eq
Lloh33:
	adrp	x10, _dumppix@GOTPAGE
Lloh34:
	ldr	x10, [x10, _dumppix@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	cmp	w10, #2
	b.ne	LBB0_21
; %bb.18:
	sub	w2, w21, #1
	add	w8, w9, w2
	subs	w9, w8, w20
	str	w8, [x22]
	b.le	LBB0_26
; %bb.19:
	str	x9, [sp]
	b	LBB0_25
LBB0_20:
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #5
	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
	b	_PDEBUG
LBB0_21:
	add	x10, x24, x25, lsl #6
	ldrb	w10, [x10, #36]
	cbnz	w10, LBB0_27
; %bb.22:
Lloh38:
	adrp	x10, _remove_zeros@GOTPAGE
Lloh39:
	ldr	x10, [x10, _remove_zeros@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	cbnz	w10, LBB0_27
; %bb.23:
	mvn	w10, w8
	add	w2, w10, w21
	add	w9, w2, w9
	str	w9, [x22]
	subs	w10, w9, w20
	b.le	LBB0_29
; %bb.24:
	str	x10, [sp]
LBB0_25:
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #3
	bl	_PDEBUG
	b	LBB0_43
LBB0_26:
	add	x9, x24, x25, lsl #6
	ldr	x9, [x9, #40]
	sxtw	x8, w8
	sub	x8, x8, w2, sxtw
	add	x0, x8, x9
	mov	x1, x19
	b	LBB0_30
LBB0_27:
	cbz	w9, LBB0_31
; %bb.28:
	mov	w27, #0
	b	LBB0_32
LBB0_29:
	add	x10, x24, x25, lsl #6
	ldr	x10, [x10, #40]
	sxtw	x9, w9
	sub	x9, x9, w2, sxtw
	add	x0, x9, x10
	add	x1, x19, w8, uxtw
LBB0_30:
	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
	b	_memcpy
LBB0_31:
	mov	w27, #32
	sub	w2, w27, w8
	str	w2, [x22]
	add	x9, x24, x25, lsl #6
	ldr	x0, [x9, #40]
	add	x1, x19, w8, uxtw
	bl	_memcpy
LBB0_32:
	sub	w23, w21, #1
	cmp	w27, w23
	b.ge	LBB0_41
; %bb.33:
	mov	w26, #0
	add	x8, x24, x25, lsl #6
	add	x24, x8, #40
	mov	w25, w27
	add	x27, x19, x25
Lloh43:
	adrp	x21, l_.str.9@PAGE
Lloh44:
	add	x21, x21, l_.str.9@PAGEOFF
	b	LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_36 Depth=1
	mov	w0, #3
	mov	x1, x21
	bl	_PDEBUG
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=1
	add	x25, x25, #32
	add	x27, x27, #32
	cmp	w23, w25
	b.le	LBB0_42
LBB0_36:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
	mov	x8, #0
LBB0_37:                                ;   Parent Loop BB0_36 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x27, x8]
	cbnz	w9, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=2
	add	x8, x8, #1
	cmp	x8, #32
	b.ne	LBB0_37
	b	LBB0_35
LBB0_39:                                ;   in Loop: Header=BB0_36 Depth=1
	ldrsw	x8, [x22]
	add	w28, w26, #32
	add	w9, w28, w8
	cmp	w9, w20
	b.gt	LBB0_34
; %bb.40:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	x9, [x24]
	add	x8, x8, w26, sxtw
	add	x0, x8, x9
	add	x1, x19, x25
	mov	w2, #32
	bl	_memcpy
	mov	x26, x28
	b	LBB0_35
LBB0_41:
	mov	w26, #0
LBB0_42:
	ldr	w8, [x22]
	add	w8, w8, w26
	str	w8, [x22]
LBB0_43:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_printph,8,3                    ; @printph
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ph(%3d): %2x %2x %2x %2x %2x %2x %2x %2x %2x %2x %2x %2x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Frame end, frame=%d, pnum=%d, w=%d, h=%d, recvd=%d"

	.comm	_STATE_LINES,8,3                ; @STATE_LINES
	.comm	_FRAME_DONE,8,3                 ; @FRAME_DONE
	.comm	_OV511_NUMFRAMES,4,2            ; @OV511_NUMFRAMES
	.comm	_FRAME_READY,8,3                ; @FRAME_READY
	.comm	_FRAME_GRABBING,8,3             ; @FRAME_GRABBING
	.comm	_STATE_SCANNING,8,3             ; @STATE_SCANNING
l_.str.2:                               ; @.str.2
	.asciz	"** Frame done **"

l_.str.3:                               ; @.str.3
	.asciz	"Frame not ready? state = %d"

l_.str.4:                               ; @.str.4
	.asciz	"Frame done, but not scanning"

l_.str.5:                               ; @.str.5
	.asciz	"Frame start, framenum = %d"

l_.str.6:                               ; @.str.6
	.asciz	"snapshot detected"

l_.str.7:                               ; @.str.7
	.asciz	"Not in a frame; packet skipped"

	.comm	_dumppix,4,2                    ; @dumppix
l_.str.8:                               ; @.str.8
	.asciz	"Raw data buffer overrun!! (%d)"

	.comm	_remove_zeros,4,2               ; @remove_zeros
l_.str.9:                               ; @.str.9
	.asciz	"Raw data buffer overrun!!"

	.no_dead_strip	_ov511_move_data
.subsections_via_symbols
