	.file	"extr_sn9c2028.c_sd_pkt_scan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sd_pkt_scan, @function
sd_pkt_scan:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, r14
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	sn9c2028_find_sof@PLT
	test	rax, rax
	je	.L2
	mov	rbx, rax
	mov	r13, rax
	mov	eax, 0
	mov	rdx, r14
	sub	rbx, r14
	mov	esi, DWORD PTR LAST_PACKET[rip]
	mov	rdi, rbp
	cmp	ebx, 8
	lea	ecx, -8[rbx]
	cmovbe	ecx, eax
	sub	r12d, ebx
	call	gspca_frame_add@PLT
	mov	rdx, QWORD PTR sn9c2028_sof_marker[rip]
	mov	ecx, 8
	mov	rdi, rbp
	mov	esi, DWORD PTR FIRST_PACKET[rip]
	call	gspca_frame_add@PLT
.L2:
	mov	esi, DWORD PTR INTER_PACKET[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	ecx, r12d
	mov	rdx, r13
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	gspca_frame_add@PLT
	.cfi_endproc
.LFE0:
	.size	sd_pkt_scan, .-sd_pkt_scan
	.comm	sn9c2028_sof_marker,8,8
	.comm	LAST_PACKET,4,4
	.comm	INTER_PACKET,4,4
	.comm	FIRST_PACKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sn9c2028.c_sd_pkt_scan.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sd_pkt_scan, %function
sd_pkt_scan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	mov	r7, r2
	bl	sn9c2028_find_sof
	subs	r4, r0, #0
	moveq	r4, r5
	beq	.L2
	sub	r8, r4, r5
	ldr	r1, .L8
	cmp	r8, #4
	movls	r3, #0
	mov	r2, r5
	ldr	r1, [r1]
	subhi	r3, r8, #4
	mov	r0, r6
	bl	gspca_frame_add
	ldr	r3, .L8+4
	ldr	r2, .L8+8
	ldr	r1, [r3]
	mov	r0, r6
	mov	r3, #4
	ldr	r2, [r2]
	sub	r7, r7, r8
	bl	gspca_frame_add
.L2:
	ldr	r1, .L8+12
	mov	r3, r7
	mov	r2, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r1]
	b	gspca_frame_add
.L9:
	.align	2
.L8:
	.word	LAST_PACKET
	.word	FIRST_PACKET
	.word	sn9c2028_sof_marker
	.word	INTER_PACKET
	.size	sd_pkt_scan, .-sd_pkt_scan
	.comm	sn9c2028_sof_marker,4,4
	.comm	LAST_PACKET,4,4
	.comm	INTER_PACKET,4,4
	.comm	FIRST_PACKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
