	.file	"extr_spca561.c_sd_pkt_scan.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Short SOF packet, ignoring"
	.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
	lea	r14, 4[rsi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13d, -1[rdx]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	je	.L2
	cmp	eax, 255
	je	.L1
	mov	esi, DWORD PTR INTER_PACKET[rip]
	mov	ecx, r13d
	mov	rdx, r14
.L14:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR D_ERR[rip]
	lea	rsi, .LC0[rip]
	call	PDEBUG@PLT
	mov	eax, DWORD PTR DISCARD_PACKET[rip]
	mov	DWORD PTR 4[r12], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rsi
	mov	esi, DWORD PTR LAST_PACKET[rip]
	mov	ebp, edx
	xor	ecx, ecx
	xor	edx, edx
	call	gspca_frame_add@PLT
	cmp	r13d, 1
	jle	.L16
	mov	esi, DWORD PTR FIRST_PACKET[rip]
	mov	ecx, r13d
	mov	rdx, r14
	test	BYTE PTR 8[rbx], 16
	jne	.L14
	mov	eax, DWORD PTR Rev012A[rip]
	lea	rdx, 68[rbx]
	lea	ecx, -17[rbp]
	cmp	DWORD PTR [r12], eax
	jne	.L14
	lea	rdx, 84[rbx]
	lea	ecx, -21[rbp]
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	sd_pkt_scan, .-sd_pkt_scan
	.comm	Rev012A,4,4
	.comm	LAST_PACKET,4,4
	.comm	KEY_CAMERA,4,4
	.comm	INTER_PACKET,4,4
	.comm	FIRST_PACKET,4,4
	.comm	D_ERR,4,4
	.comm	DISCARD_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_spca561.c_sd_pkt_scan.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Short SOF packet, ignoring\000"
	.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	r7, r1
	ldr	r3, [r7], #4
	sub	r8, r2, #1
	cmp	r3, #0
	beq	.L2
	cmp	r3, #255
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r1, .L17
	mov	r3, r8
	mov	r2, r7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r1]
	b	gspca_frame_add
.L2:
	mov	r5, r2
	ldr	r2, .L17+4
	mov	r4, r1
	ldr	r1, [r2]
	mov	r2, r3
	mov	r6, r0
	bl	gspca_frame_add
	cmp	r8, #1
	ble	.L15
	ldr	r2, [r4, #8]
	ldr	r3, .L17+8
	tst	r2, #16
	ldr	r1, [r3]
	bne	.L16
	ldr	r3, .L17+12
	ldr	r2, [r6]
	ldr	r3, [r3]
	mov	r0, r6
	cmp	r2, r3
	addeq	r2, r4, #84
	subeq	r3, r5, #21
	addne	r2, r4, #68
	subne	r3, r5, #17
	pop	{r4, r5, r6, r7, r8, lr}
	b	gspca_frame_add
.L16:
	mov	r3, r8
	mov	r2, r7
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	gspca_frame_add
.L15:
	ldr	r3, .L17+16
	ldr	r1, .L17+20
	ldr	r0, [r3]
	bl	PDEBUG
	ldr	r3, .L17+24
	ldr	r3, [r3]
	str	r3, [r6, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	INTER_PACKET
	.word	LAST_PACKET
	.word	FIRST_PACKET
	.word	Rev012A
	.word	D_ERR
	.word	.LC0
	.word	DISCARD_PACKET
	.size	sd_pkt_scan, .-sd_pkt_scan
	.comm	Rev012A,4,4
	.comm	LAST_PACKET,4,4
	.comm	KEY_CAMERA,4,4
	.comm	INTER_PACKET,4,4
	.comm	FIRST_PACKET,4,4
	.comm	D_ERR,4,4
	.comm	DISCARD_PACKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
