	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov518_move_data
_ov518_move_data:                       ## @ov518_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rdi), %edi
	movl	4(%r12), %esi
	callq	_MAX_RAW_DATA_SIZE
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %rax
	movq	24(%r12), %r15
	leaq	(%rax,%rax,8), %rdi
	cmpq	$1, 40(%r12)
	leaq	(%r15,%rdi,8), %r13
	adcl	$-1, %r14d
	movb	(%rbx), %r8b
	movb	1(%rbx), %cl
	movl	%ecx, %edx
	orb	%r8b, %dl
	movb	2(%rbx), %r10b
	movb	3(%rbx), %sil
	movl	%r10d, %eax
	orb	%sil, %al
	orb	%dl, %al
	movb	5(%rbx), %dl
	orb	%dl, %al
	jne	LBB0_18
## %bb.1:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movb	6(%rbx), %r9b
	testb	%r9b, %r9b
	je	LBB0_18
## %bb.2:
	movq	_printph@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	32(%r12), %rdi
	movzbl	4(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movzbl	7(%rbx), %eax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movzbl	%r9b, %r15d
	movzbl	%dl, %r11d
	movzbl	%r8b, %edx
	movzbl	%cl, %ecx
	movzbl	%r10b, %r8d
	movzbl	%sil, %r9d
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	%r15
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	pushq	%r11
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_dev_info
	addq	$32, %rsp
LBB0_4:
	movq	(%r13), %rax
	movq	_STATE_LINES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	64(%r15,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movl	4(%r12), %esi
	callq	_MAX_FRAME_SIZE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	%rax, %rdi
	callq	_do_gettimeofday
	movq	8(%r12), %rdx
	movzbl	9(%rbx), %ecx
	movzbl	10(%rbx), %r8d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%r15,%rax,8), %r9d
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%r15,%rcx,8), %edi
	movl	24(%r15,%rcx,8), %eax
	movl	%edi, 12(%r15,%rcx,8)
	movl	%eax, 20(%r15,%rcx,8)
	movl	(%r12), %edx
	movl	16(%r12), %esi
	callq	_RESTRICT_TO_RANGE
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%r15,%rax,8), %edi
	movl	4(%r12), %edx
	movl	20(%r12), %esi
	callq	_RESTRICT_TO_RANGE
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%r15,%rax,8), %edi
	movl	$8, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_RESTRICT_TO_RANGE
	movq	(%r13), %rax
	movq	_STATE_LINES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.6:
	movq	%r15, %rcx
	movq	_FRAME_DONE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 32(%rcx,%rdx,8)
	movq	%rcx, %r13
	leaq	(%rcx,%rdx,8), %rdi
	addq	$60, %rdi
	callq	_wake_up_interruptible
	movq	8(%r12), %rax
	incq	%rax
	movq	_OV511_NUMFRAMES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_9
LBB0_16:
	movq	8(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_17:
	movl	56(%r13), %edx
	leaq	L_.str.7(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	_STATE_LINES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	$0, 8(%r13)
	movl	$1, 44(%r13)
LBB0_18:
	movq	(%r13), %rax
	movq	_STATE_LINES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.21:
	movq	_dumppix@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_22
## %bb.24:
	movslq	8(%r13), %rdi
	movslq	%r14d, %rax
	addq	%rax, %rdi
	movl	%edi, 8(%r13)
	movl	%edi, %edx
	subl	-52(%rbp), %edx                 ## 4-byte Folded Reload
	jle	LBB0_40
## %bb.25:
	leaq	L_.str.9(%rip), %rsi
	movl	$3, %edi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_19:
	leaq	L_.str.8(%rip), %rsi
LBB0_20:
	movl	$4, %edi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_22:
	testl	%r14d, %r14d
	jle	LBB0_23
## %bb.26:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	$3, %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_38:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$8, %r15
	cmpl	%r15d, %r14d
	jle	LBB0_39
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx,%r15)
	jne	LBB0_35
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpb	$0, 1(%rbx,%r15)
	jne	LBB0_35
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpb	$0, 2(%rbx,%r15)
	jne	LBB0_35
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpb	$0, 3(%rbx,%r15)
	jne	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpb	$0, 4(%rbx,%r15)
	jne	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpb	$0, 5(%rbx,%r15)
	jne	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpb	$0, 6(%rbx,%r15)
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpb	$0, 7(%rbx,%r15)
	je	LBB0_38
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_27 Depth=1
	movslq	8(%r13), %rdi
	leal	(%r12,%rdi), %eax
	addl	$8, %eax
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	(%rbx,%r15), %rsi
	movslq	%r12d, %rax
	addl	$8, %r12d
	addq	%rax, %rdi
	addq	48(%r13), %rdi
	movl	$8, %edx
	callq	_memcpy
	jmp	LBB0_38
LBB0_40:
	subq	%rax, %rdi
	addq	48(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_23:
	xorl	%r12d, %r12d
LBB0_39:
	addl	%r12d, 8(%r13)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_9:
	movq	24(%r12), %rax
	movslq	%edx, %rsi
	leaq	(%rsi,%rsi,8), %rcx
	movq	32(%rax,%rcx,8), %rdx
	movq	_FRAME_READY@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movq	_FRAME_GRABBING@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	je	LBB0_11
## %bb.12:
	leaq	32(,%r8,8), %rax
	addq	%r13, %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_15
LBB0_11:
	movq	%rsi, 8(%r12)
	movq	_STATE_SCANNING@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rax,%rcx,8), %r13
	movq	%rdx, (%rax,%rcx,8)
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_15:
	movq	$-1, 8(%r12)
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_printph,8,3                    ## @printph
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ph: %2x %2x %2x %2x %2x %2x %2x %2x\n"

	.comm	_STATE_LINES,8,3                ## @STATE_LINES
L_.str.1:                               ## @.str.1
	.asciz	"Detected frame end/start"

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

L_.str.3:                               ## @.str.3
	.asciz	"Frame end, curframe = %d, hw=%d, vw=%d, recvd=%d"

	.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.4:                               ## @.str.4
	.asciz	"** Frame done **"

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

L_.str.6:                               ## @.str.6
	.asciz	"SOF dropped (no active frame)"

L_.str.7:                               ## @.str.7
	.asciz	"Starting capture on frame %d"

L_.str.8:                               ## @.str.8
	.asciz	"scanstate: no SOF yet"

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

L_.str.10:                              ## @.str.10
	.asciz	"Raw data buffer overrun!!"

	.no_dead_strip	_ov518_move_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov518_move_data
_ov518_move_data:                       ; @ov518_move_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w0, [x0]
	ldr	w1, [x22, #4]
	bl	_MAX_RAW_DATA_SIZE
	mov	x20, x0
	ldr	x26, [x22, #24]
	ldr	x27, [x22, #8]
	mov	w8, #72
	madd	x23, x27, x8, x26
	ldr	x8, [x22, #40]
	cmp	x8, #0
	cset	w24, ne
	ldrb	w2, [x19]
	ldrb	w3, [x19, #1]
	orr	w8, w3, w2
	ldrb	w4, [x19, #2]
	orr	w8, w8, w4
	ldrb	w5, [x19, #3]
	orr	w8, w8, w5
	ldrb	w7, [x19, #5]
Lloh0:
	adrp	x25, _STATE_LINES@GOTPAGE
Lloh1:
	ldr	x25, [x25, _STATE_LINES@GOTPAGEOFF]
	orr	w8, w8, w7
	cbnz	w8, LBB0_10
; %bb.1:
	ldrb	w8, [x19, #6]
	cbz	w8, LBB0_10
; %bb.2:
Lloh2:
	adrp	x9, _printph@GOTPAGE
Lloh3:
	ldr	x9, [x9, _printph@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x0, [x22, #32]
	ldrb	w6, [x19, #4]
	ldrb	w9, [x19, #7]
	strb	w9, [sp, #1]
	strb	w8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_4:
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #4
	bl	_PDEBUG
	mov	w8, #72
	madd	x28, x27, x8, x26
	ldr	x25, [x28, #64]
	ldp	w0, w1, [x22]
	bl	_MAX_FRAME_SIZE
	add	x0, x0, x25
Lloh9:
	adrp	x25, _STATE_LINES@GOTPAGE
Lloh10:
	ldr	x25, [x25, _STATE_LINES@GOTPAGEOFF]
	bl	_do_gettimeofday
	ldr	x8, [x22, #8]
	ldrb	w9, [x19, #9]
	ldrb	w10, [x19, #10]
	ldr	w11, [x28, #8]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #4
	bl	_PDEBUG
	ldr	w0, [x28, #16]
	str	w0, [x28, #12]
	ldr	w8, [x28, #24]
	str	w8, [x28, #20]
	ldr	w1, [x22, #16]
	ldr	w2, [x22]
	bl	_RESTRICT_TO_RANGE
	ldr	w0, [x28, #20]
	ldr	w1, [x22, #20]
	ldr	w2, [x22, #4]
	bl	_RESTRICT_TO_RANGE
	ldr	w0, [x28, #8]
	mov	w1, #8
	mov	x2, x20
	bl	_RESTRICT_TO_RANGE
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
Lloh13:
	adrp	x23, _FRAME_DONE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _FRAME_DONE@GOTPAGEOFF]
	ldr	x8, [x23]
	mov	w28, #72
	madd	x26, x27, x28, x26
	str	x8, [x26, #32]!
	add	x0, x26, #28
	bl	_wake_up_interruptible
	ldr	x8, [x22, #8]
	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	w10, w10, w9, w8
	ldr	x8, [x22, #24]
	smaddl	x9, w10, w28, x8
	ldr	x9, [x9, #32]
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	x9, x11
	ccmp	x9, x12, #4, ne
	b.ne	LBB0_34
; %bb.7:
	sxtw	x9, w10
	str	x9, [x22, #8]
Lloh24:
	adrp	x10, _STATE_SCANNING@GOTPAGE
Lloh25:
	ldr	x10, [x10, _STATE_SCANNING@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	mov	w11, #72
	madd	x23, x9, x11, x8
	str	x10, [x23]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x22, #8]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #4
	bl	_PDEBUG
LBB0_9:
	ldr	w8, [x23, #56]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #4
	bl	_PDEBUG
	ldr	x8, [x25]
	str	x8, [x23]
	str	wzr, [x23, #8]
	mov	w8, #1
	str	w8, [x23, #44]
LBB0_10:
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
	sub	w21, w21, w24
Lloh31:
	adrp	x8, _dumppix@GOTPAGE
Lloh32:
	ldr	x8, [x8, _dumppix@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_16
; %bb.12:
	ldrsw	x8, [x23, #8]
	add	x8, x8, w21, sxtw
	str	w8, [x23, #8]
	subs	w9, w8, w20
	b.le	LBB0_30
; %bb.13:
	str	x9, [sp]
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #3
	bl	_PDEBUG
	b	LBB0_33
LBB0_14:
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_15:
	mov	w0, #4
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_PDEBUG
LBB0_16:
	cmp	w21, #1
	b.lt	LBB0_31
; %bb.17:
	mov	x24, #0
	mov	w25, #0
Lloh38:
	adrp	x22, l_.str.10@PAGE
Lloh39:
	add	x22, x22, l_.str.10@PAGEOFF
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w0, #3
	mov	x1, x22
	bl	_PDEBUG
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x24, x24, #8
	cmp	w21, w24
	b.le	LBB0_32
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	x1, x19, x24
	ldrb	w8, [x1]
	cbnz	w8, LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldrb	w8, [x1, #1]
	cbnz	w8, LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x19, x24
	ldrb	w9, [x8, #2]
	cbnz	w9, LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldrb	w8, [x8, #3]
	cbnz	w8, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x19, x24
	ldrb	w9, [x8, #4]
	cbnz	w9, LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=1
	ldrb	w8, [x8, #5]
	cbnz	w8, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x19, x24
	ldrb	w9, [x8, #6]
	cbnz	w9, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_20 Depth=1
	ldrb	w8, [x8, #7]
	cbz	w8, LBB0_19
LBB0_28:                                ;   in Loop: Header=BB0_20 Depth=1
	ldrsw	x8, [x23, #8]
	add	w26, w25, #8
	add	w9, w26, w8
	cmp	w9, w20
	b.gt	LBB0_18
; %bb.29:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x23, #48]
	add	x8, x8, w25, sxtw
	add	x0, x8, x9
	mov	w2, #8
	bl	_memcpy
	mov	x25, x26
	b	LBB0_19
LBB0_30:
	ldr	x9, [x23, #48]
	sub	x8, x8, w21, sxtw
	add	x0, x8, x9
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_memcpy
LBB0_31:
	mov	w25, #0
LBB0_32:
	ldr	w8, [x23, #8]
	add	w8, w8, w25
	str	w8, [x23, #8]
LBB0_33:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_34:
	ldr	x8, [x26]
	ldr	x10, [x23]
	cmp	x8, x10
	b.ne	LBB0_36
; %bb.35:
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_37
LBB0_36:
	str	x9, [sp]
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_37:
	mov	w0, #4
	bl	_PDEBUG
	mov	x8, #-1
	str	x8, [x22, #8]
Lloh44:
	adrp	x1, l_.str.6@PAGE
Lloh45:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.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 AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_printph,8,3                    ; @printph
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ph: %2x %2x %2x %2x %2x %2x %2x %2x\n"

	.comm	_STATE_LINES,8,3                ; @STATE_LINES
l_.str.1:                               ; @.str.1
	.asciz	"Detected frame end/start"

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

l_.str.3:                               ; @.str.3
	.asciz	"Frame end, curframe = %d, hw=%d, vw=%d, recvd=%d"

	.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.4:                               ; @.str.4
	.asciz	"** Frame done **"

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

l_.str.6:                               ; @.str.6
	.asciz	"SOF dropped (no active frame)"

l_.str.7:                               ; @.str.7
	.asciz	"Starting capture on frame %d"

l_.str.8:                               ; @.str.8
	.asciz	"scanstate: no SOF yet"

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

l_.str.10:                              ; @.str.10
	.asciz	"Raw data buffer overrun!!"

	.no_dead_strip	_ov518_move_data
.subsections_via_symbols
