	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pac_find_sof
_pac_find_sof:                          ## @pac_find_sof
	.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
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%ecx, %r10d
	movl	(%rsi), %esi
	incq	%rbx
	negq	%r10
	movl	$1, %r8d
	leaq	LJTI0_0(%rip), %r9
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	cmpb	$-1, -1(%rbx)
	sete	%dl
	shll	$2, %edx
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, (%r14)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	leaq	(%r10,%r8), %rax
	incq	%rax
	incq	%r8
	movl	%edx, %esi
	cmpq	$1, %rax
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, %edx
	cmpl	$4, %esi
	ja	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %eax
	movslq	(%r9,%rax,4), %rax
	addq	%r9, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	cmpb	$-1, -1(%rbx)
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edx
	jmp	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	cmpb	$-1, -1(%rbx)
	sete	%dl
	addl	%edx, %edx
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-1(%rbx), %eax
	cmpb	$-1, %al
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$3, %edx
	testb	%al, %al
	je	LBB0_11
	jmp	LBB0_10
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-1(%rbx), %eax
	movl	$2, %edx
	cmpb	$-1, %al
	je	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-106, %al
	je	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %edx
	jmp	LBB0_12
LBB0_13:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	movq	_D_FRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_gspca_dbg
	movl	$0, (%r14)
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_D_FRAM,4,2                     ## @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SOF found, bytes to analyze: %u - Frame starts at byte #%u\n"

	.no_dead_strip	_pac_find_sof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pac_find_sof
_pac_find_sof:                          ; @pac_find_sof
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w3, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, #0
	mov	w3, w3
	ldr	w9, [x1]
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	b	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x19, x21]
	cmp	w9, #255
	b.eq	LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #150
	b.eq	LBB0_21
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #0
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w9, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	cmp	x3, x21
	b.eq	LBB0_19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, w9
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x19, x21]
	cmp	w9, #255
	b.eq	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #0
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x19, x21]
	cmp	w9, #255
	cset	w9, eq
	lsl	w9, w9, #1
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x19, x21]
	cbz	w9, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #255
	b.ne	LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #2
	b	LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x19, x21]
	cmp	w9, #255
	cset	w9, eq
	lsl	w9, w9, #2
	b	LBB0_5
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #2
	b	LBB0_5
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #1
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #3
	b	LBB0_5
LBB0_19:
	mov	x0, #0
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_21:
Lloh2:
	adrp	x8, _D_FRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D_FRAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	w4, w21, #1
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_gspca_dbg
	str	wzr, [x20]
	add	x8, x19, x21
	add	x0, x8, #1
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_D_FRAM,4,2                     ; @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SOF found, bytes to analyze: %u - Frame starts at byte #%u\n"

	.no_dead_strip	_pac_find_sof
.subsections_via_symbols
