	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov519_pkt_scan
_ov519_pkt_scan:                        ## @ov519_pkt_scan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ecx
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpl	$255, (%rsi)
	jne	LBB0_12
## %bb.1:
	cmpl	$255, 4(%rbx)
	jne	LBB0_12
## %bb.2:
	cmpl	$255, 8(%rbx)
	jne	LBB0_12
## %bb.3:
	movl	12(%rbx), %eax
	cmpl	$81, %eax
	je	LBB0_9
## %bb.4:
	cmpl	$80, %eax
	jne	LBB0_12
## %bb.5:
	cmpl	$255, 64(%rbx)
	je	LBB0_7
## %bb.6:
	cmpl	$216, 68(%rbx)
	jne	LBB0_8
LBB0_7:
	addq	$64, %rbx
	addl	$-16, %ecx
	movq	_FIRST_PACKET@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_INTER_PACKET@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gspca_frame_add                ## TAILCALL
LBB0_9:
	movl	44(%rbx), %esi
	andl	$1, %esi
	movq	%r14, %rdi
	callq	_ov51x_handle_button
	cmpl	$0, 36(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_DISCARD_PACKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_11:
	movq	_LAST_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_8:
	movq	_DISCARD_PACKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRST_PACKET,4,2               ## @FIRST_PACKET
	.comm	_DISCARD_PACKET,8,3             ## @DISCARD_PACKET
	.comm	_LAST_PACKET,4,2                ## @LAST_PACKET
	.comm	_INTER_PACKET,4,2               ## @INTER_PACKET
	.comm	_HDRSZ,4,2                      ## @HDRSZ
	.no_dead_strip	_ov519_pkt_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov519_pkt_scan
_ov519_pkt_scan:                        ; @ov519_pkt_scan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x3, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #255
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #255
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x20, #8]
	cmp	w8, #255
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x20, #12]
	cmp	w8, #81
	b.eq	LBB0_10
; %bb.4:
	cmp	w8, #80
	b.ne	LBB0_8
; %bb.5:
	mov	x2, x20
	ldr	w8, [x2, #64]!
	cmp	w8, #255
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x20, #68]
	cmp	w8, #216
	b.ne	LBB0_13
LBB0_7:
Lloh0:
	adrp	x8, _FIRST_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIRST_PACKET@GOTPAGEOFF]
	sub	w3, w3, #16
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _INTER_PACKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTER_PACKET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gspca_frame_add
LBB0_10:
	ldr	w8, [x20, #44]
	and	w1, w8, #0x1
	mov	x0, x19
	bl	_ov51x_handle_button
	ldr	w8, [x20, #36]
	cbz	w8, LBB0_12
; %bb.11:
Lloh6:
	adrp	x8, _DISCARD_PACKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DISCARD_PACKET@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_12:
Lloh9:
	adrp	x8, _LAST_PACKET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LAST_PACKET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	b	LBB0_9
LBB0_13:
Lloh12:
	adrp	x8, _DISCARD_PACKET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DISCARD_PACKET@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRST_PACKET,4,2               ; @FIRST_PACKET
	.comm	_DISCARD_PACKET,8,3             ; @DISCARD_PACKET
	.comm	_LAST_PACKET,4,2                ; @LAST_PACKET
	.comm	_INTER_PACKET,4,2               ; @INTER_PACKET
	.comm	_HDRSZ,4,2                      ; @HDRSZ
	.no_dead_strip	_ov519_pkt_scan
.subsections_via_symbols
