	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ovfx2_pkt_scan
_ovfx2_pkt_scan:                        ## @ovfx2_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, %ebx
	movq	%rsi, %rdx
	movq	%rdi, %r14
	movq	_INTER_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %ecx
	callq	_gspca_frame_add
	cmpl	%ebx, 8(%r14)
	jle	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	decq	%rax
	movq	%rax, 8(%r14)
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_4
## %bb.3:
	movq	_DISCARD_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_4:
	movq	_LAST_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gspca_frame_add
	movq	_FIRST_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gspca_frame_add                ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTER_PACKET,4,2               ## @INTER_PACKET
	.comm	_DISCARD_PACKET,4,2             ## @DISCARD_PACKET
	.comm	_LAST_PACKET,4,2                ## @LAST_PACKET
	.comm	_FIRST_PACKET,4,2               ## @FIRST_PACKET
	.no_dead_strip	_ovfx2_pkt_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ovfx2_pkt_scan
_ovfx2_pkt_scan:                        ; @ovfx2_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	x20, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _INTER_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTER_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x3, x20
	bl	_gspca_frame_add
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.le	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	sub	x8, x8, #1
	str	x8, [x19, #8]
	ldp	w8, w9, [x19]
	mul	w9, w9, w8
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _DISCARD_PACKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISCARD_PACKET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_4:
Lloh6:
	adrp	x8, _LAST_PACKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LAST_PACKET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_gspca_frame_add
Lloh9:
	adrp	x8, _FIRST_PACKET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FIRST_PACKET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gspca_frame_add
LBB0_5:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INTER_PACKET,4,2               ; @INTER_PACKET
	.comm	_DISCARD_PACKET,4,2             ; @DISCARD_PACKET
	.comm	_LAST_PACKET,4,2                ; @LAST_PACKET
	.comm	_FIRST_PACKET,4,2               ; @FIRST_PACKET
	.no_dead_strip	_ovfx2_pkt_scan
.subsections_via_symbols
