	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_pkt_scan
_sd_pkt_scan:                           ## @sd_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %eax
	leal	(,%rax,4), %r15d
	andl	$768, %r15d                     ## imm = 0x300
	orl	4(%rsi), %r15d
	notl	%eax
	testb	$63, %al
	jne	LBB0_2
## %bb.1:
	movq	_D_FRAM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_gspca_dbg
	movl	(%r12), %esi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	16(%rbx), %r9d
	movl	20(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	addq	$120, %rbx
	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
	jmp	LBB0_4
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:
	addq	$32, %rbx
	movq	_INTER_PACKET@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gspca_frame_add                ## TAILCALL
LBB0_5:
	movq	_DISCARD_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_FRAM,4,2                     ## @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"header packet found datalength %d !!\n"

L_.str.1:                               ## @.str.1
	.asciz	"G %d R %d G %d B %d"

	.comm	_LAST_PACKET,4,2                ## @LAST_PACKET
	.comm	_FIRST_PACKET,4,2               ## @FIRST_PACKET
	.comm	_INTER_PACKET,4,2               ## @INTER_PACKET
	.comm	_DISCARD_PACKET,4,2             ## @DISCARD_PACKET
	.no_dead_strip	_sd_pkt_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_pkt_scan
_sd_pkt_scan:                           ; @sd_pkt_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldp	w8, w9, [x1]
	mvn	w10, w8
	lsl	w8, w8, #2
	and	w8, w8, #0x300
	orr	w20, w8, w9
	tst	w10, #0x3f
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x22, _D_FRAM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _D_FRAM@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_gspca_dbg
	ldr	w1, [x22]
	ldp	w3, w8, [x21, #8]
	ldp	w9, w10, [x21, #16]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	add	x21, x21, #120
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, x21
	b	LBB0_4
LBB0_2:
	cbz	w20, LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _INTER_PACKET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTER_PACKET@GOTPAGEOFF]
	add	x2, x21, #32
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
LBB0_4:
	mov	x3, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_gspca_frame_add
LBB0_5:
Lloh15:
	adrp	x8, _DISCARD_PACKET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DISCARD_PACKET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_D_FRAM,4,2                     ; @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"header packet found datalength %d !!\n"

l_.str.1:                               ; @.str.1
	.asciz	"G %d R %d G %d B %d"

	.comm	_LAST_PACKET,4,2                ; @LAST_PACKET
	.comm	_FIRST_PACKET,4,2               ; @FIRST_PACKET
	.comm	_INTER_PACKET,4,2               ; @INTER_PACKET
	.comm	_DISCARD_PACKET,4,2             ; @DISCARD_PACKET
	.no_dead_strip	_sd_pkt_scan
.subsections_via_symbols
