	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cit_find_sof
_cit_find_sof:                          ## @cit_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %ecx
	leal	-128(%rcx), %eax
	cmpl	$5, %eax
	ja	LBB0_26
## %bb.1:
	movq	%rdi, %r14
	movl	$58, %edi
	btl	%eax, %edi
	jae	LBB0_17
## %bb.2:
	testl	%edx, %edx
	jle	LBB0_26
## %bb.3:
	movl	%edx, %r10d
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %r9
	movl	$2, %r8d
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edx, %edx
	cmpl	$0, (%rsi)
	sete	%dl
	leal	(%rdx,%rdx,2), %edi
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, 4(%r14)
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	addq	$4, %rsi
	cmpq	%rbx, %r10
	je	LBB0_34
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	cmpl	$132, %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rdi, %rbx
	jne	LBB0_34
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$3, %edi
	ja	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, %edx
	movslq	(%r9,%rdx,4), %rdx
	addq	%r9, %rdx
	jmpq	*%rdx
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, (%rsi)
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	jmp	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rsi), %edx
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	cmpl	$255, %edx
	cmovel	%r8d, %edi
	jmp	LBB0_5
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rsi), %edx
	movl	$2, %edi
	cmpl	$255, %edx
	je	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	testl	%edx, %edx
	je	LBB0_32
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_5
LBB0_17:
	testl	%edx, %edx
	jle	LBB0_26
## %bb.18:
	movl	%edx, %ecx
	movl	4(%r14), %edi
	negq	%rcx
	xorl	%eax, %eax
	movq	%rsi, %rbx
	xorl	%edx, %edx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	$0, 4(%r14)
	xorl	%edi, %edi
	cmpl	$255, (%rbx)
	je	LBB0_28
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	decq	%rdx
	addq	$4, %rbx
	cmpq	%rdx, %rcx
	je	LBB0_34
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %edi
	je	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	testl	%edi, %edi
	jne	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	jne	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	$1, 4(%r14)
	movl	$1, %edi
	jmp	LBB0_20
LBB0_26:
	xorl	%eax, %eax
LBB0_34:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_28:
	movl	%edx, %edi
	negl	%edi
	movq	_D_FRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdx, %rcx
	notq	%rcx
	cmpl	$4, %edi
	jb	LBB0_30
## %bb.29:
	movl	$4294967292, %edi               ## imm = 0xFFFFFFFC
	subl	%edx, %edi
	movl	(%rsi,%rdi,4), %r8d
	movl	$-3, %edi
	subl	%edx, %edi
	movl	(%rsi,%rdi,4), %r9d
	movq	%rbx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_gspca_dbg
	jmp	LBB0_31
LBB0_30:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_gspca_dbg
LBB0_31:
	movl	$-1, %eax
	movq	%rbx, %rsi
	jmp	LBB0_33
LBB0_32:
	movl	$0, 4(%r14)
	movl	$-3, %eax
LBB0_33:
	movslq	8(%r14), %rcx
	cltq
	addq	%rcx, %rax
	leaq	(%rsi,%rax,4), %rax
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_D_FRAM,4,2                     ## @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"header found at offset: %d: %02x %02x 00 %3ph\n\n"

L_.str.1:                               ## @.str.1
	.asciz	"header found at offset: %d: 00 %3ph\n\n"

	.no_dead_strip	_cit_find_sof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cit_find_sof
_cit_find_sof:                          ; @cit_find_sof
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_27
; %bb.1:
	mov	x19, x0
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #58
	tst	w9, w10
	b.eq	LBB0_18
; %bb.2:
	cmp	w2, #1
	b.lt	LBB0_27
; %bb.3:
	mov	x9, #0
	mov	w10, w2
	mov	w11, #2
	mov	w12, #3
Lloh0:
	adrp	x13, lJTI0_0@PAGE
Lloh1:
	add	x13, x13, lJTI0_0@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x1]
	cmp	w14, #0
	csel	w14, w12, wzr, eq
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w14, [x19, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
	add	x1, x1, #4
	cmp	x10, x9
	b.eq	LBB0_27
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x19, #4]
	cmp	w8, #132
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x9, x14
	b.ne	LBB0_27
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w14, #3
	b.hi	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	adr	x15, LBB0_4
	ldrb	w16, [x13, x14]
	add	x15, x15, x16, lsl #2
	br	x15
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x1]
	cbnz	w14, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w14, #1
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x1]
	cmp	w14, #0
	cset	w15, eq
	cmp	w14, #255
	csel	w14, w11, w15, eq
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x1]
	cmp	w14, #255
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	cbz	w14, LBB0_33
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w14, #0
	b	LBB0_5
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w14, #2
	b	LBB0_5
LBB0_18:
	cmp	w2, #1
	b.lt	LBB0_27
; %bb.19:
	mov	w10, #0
	ldr	w8, [x19, #4]
	mov	w9, #-3
	mov	x20, x1
	mov	w11, w2
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	w8, #0
	str	wzr, [x19, #4]
	ldr	w12, [x20]
	cmp	w12, #255
	b.eq	LBB0_29
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x9, x9, #1
	add	x20, x20, #4
	add	w10, w10, #1
	subs	x11, x11, #1
	b.eq	LBB0_27
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #1
	b.eq	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	cbnz	w8, LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w8, #0
	b	LBB0_21
LBB0_26:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_21
LBB0_27:
	mov	x0, #0
LBB0_28:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_29:
Lloh2:
	adrp	x8, _D_FRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D_FRAM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w3, w10, #1
	cmp	w10, #4
	b.lo	LBB0_31
; %bb.30:
	sub	w10, w9, #1
	ldr	w10, [x1, w10, uxtw #2]
	ldr	w9, [x1, w9, uxtw #2]
	stp	x9, x20, [sp, #8]
	str	x10, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_32
LBB0_31:
	str	x20, [sp]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_32:
	mov	x0, x19
	mov	x1, x8
	bl	_gspca_dbg
	mov	w8, #-1
	mov	x1, x20
	b	LBB0_34
LBB0_33:
	str	wzr, [x19, #4]
	mov	w8, #-3
LBB0_34:
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	add	x0, x1, w8, sxtw #2
	b	LBB0_28
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
                                        ; -- End function
	.comm	_D_FRAM,4,2                     ; @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"header found at offset: %d: %02x %02x 00 %3ph\n\n"

l_.str.1:                               ; @.str.1
	.asciz	"header found at offset: %d: 00 %3ph\n\n"

	.no_dead_strip	_cit_find_sof
.subsections_via_symbols
