	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_start
_sd_start:                              ## @sd_start
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	16(%rdi), %esi
	movl	4(%rdi), %edi
	movl	12(%r13), %edx
	movl	$34, %ecx
	callq	_jpeg_define
	movl	4(%r13), %edi
	movq	_QUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_jpeg_set_qual
	cmpl	$134, (%r13)
	movl	$22, %eax
	movl	$40, %r15d
	cmovel	%eax, %r15d
	movl	$18, %eax
	movl	$30, %r14d
	cmovel	%eax, %r14d
	movq	%r13, %rdi
	movl	$35332, %esi                    ## imm = 0x8A04
	movl	$1, %edx
	callq	_reg_r
	movq	_D_STREAM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	movl	(%rbx), %esi
	movl	8(%r13), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_gspca_dbg
	movl	(%r13), %eax
	addl	$-128, %eax
	cmpl	$14, %eax
	ja	LBB0_31
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_25:
	movq	%r13, %rdi
	callq	_spca500_reinit
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$3329, %edx                     ## imm = 0xD01
	movl	$1, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34058, %edx                    ## imm = 0x850A
	movl	$1, %ecx
	callq	_reg_w
	movq	_qtable_pocketdv@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34816, %edx                    ## imm = 0x8800
	movl	$34880, %ecx                    ## imm = 0x8840
	callq	_spca50x_setup_qtable
	testl	%eax, %eax
	jns	LBB0_27
## %bb.26:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_27:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34944, %edx                    ## imm = 0x8880
	movl	$2, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32778, %edx                    ## imm = 0x800A
	xorl	%ecx, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$33295, %edx                    ## imm = 0x820F
	movl	$1, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34570, %edx                    ## imm = 0x870A
	movl	$4, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_spca500_setmode
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$4, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$68, %ecx
	callq	_reg_r_wait
	jmp	LBB0_13
LBB0_28:
	movq	%r13, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34058, %edx                    ## imm = 0x850A
	movl	$1, %ecx
	callq	_reg_w
	movq	_qtable_creative_pccam@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34816, %edx                    ## imm = 0x8800
	movl	$34880, %ecx                    ## imm = 0x8840
	callq	_spca50x_setup_qtable
	testl	%eax, %eax
	jns	LBB0_30
## %bb.29:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_30:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34944, %edx                    ## imm = 0x8880
	movl	$3, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32778, %edx                    ## imm = 0x800A
	xorl	%ecx, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34570, %edx                    ## imm = 0x870A
	movl	$4, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_spca500_setmode
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$4, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$68, %ecx
	callq	_reg_r_wait
	movq	%r13, %rdi
	movl	$33131, %esi                    ## imm = 0x816B
	movl	$1, %edx
	callq	_reg_r
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$33131, %edx                    ## imm = 0x816B
	callq	_reg_w
	movq	_Clicksmart510_defaults@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_write_vector
	jmp	LBB0_31
LBB0_14:
	movq	%r13, %rdi
	callq	_spca500_full_reset
	testl	%eax, %eax
	jns	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_16:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34058, %edx                    ## imm = 0x850A
	movl	$1, %ecx
	callq	_reg_w
	testl	%eax, %eax
	jns	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_18:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34944, %edx                    ## imm = 0x8880
	movl	$3, %ecx
	callq	_reg_w
	movq	_qtable_creative_pccam@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_2:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_spca500_setmode
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34058, %edx                    ## imm = 0x850A
	movl	$1, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34944, %edx                    ## imm = 0x8880
	movl	$3, %ecx
	callq	_reg_w
	movq	_qtable_creative_pccam@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34816, %edx                    ## imm = 0x8800
	movl	$34880, %ecx                    ## imm = 0x8840
	callq	_spca50x_setup_qtable
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_4:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34570, %edx                    ## imm = 0x870A
	movl	$4, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$4, %ecx
	callq	_reg_w
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msleep
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$68, %ecx
	callq	_reg_r_wait
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_6:
	movq	%r13, %rdi
	movl	$33131, %esi                    ## imm = 0x816B
	movl	$1, %edx
	callq	_reg_r
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$33131, %edx                    ## imm = 0x816B
	callq	_reg_w
	movq	%r13, %rdi
	callq	_spca500_synch310
	movq	_spca500_visual_defaults@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_write_vector
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_spca500_setmode
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34058, %edx                    ## imm = 0x850A
	movl	$1, %ecx
	callq	_reg_w
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34944, %edx                    ## imm = 0x8880
	movl	$3, %ecx
	callq	_reg_w
	movl	(%r12), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34816, %edx                    ## imm = 0x8800
	movl	$34880, %ecx                    ## imm = 0x8840
	callq	_spca50x_setup_qtable
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_10:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34570, %edx                    ## imm = 0x870A
	jmp	LBB0_11
LBB0_22:
	movq	%r13, %rdi
	callq	_spca500_full_reset
	testl	%eax, %eax
	jns	LBB0_24
## %bb.23:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_24:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34058, %edx                    ## imm = 0x850A
	movl	$1, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34944, %edx                    ## imm = 0x8880
	xorl	%ecx, %ecx
	callq	_reg_w
	movq	_qtable_kodak_ez200@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$34816, %edx                    ## imm = 0x8800
	movl	$34880, %ecx                    ## imm = 0x8840
	callq	_spca50x_setup_qtable
	testl	%eax, %eax
	jns	LBB0_21
## %bb.20:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_21:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_spca500_setmode
	movq	%r13, %rdi
	movl	$32, %esi
	movl	$1, %edx
LBB0_11:
	movl	$4, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$4, %ecx
	callq	_reg_w
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$68, %ecx
	callq	_reg_r_wait
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_gspca_err
LBB0_13:
	movq	%r13, %rdi
	movl	$33131, %esi                    ## imm = 0x816B
	movl	$1, %edx
	callq	_reg_r
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$33131, %edx                    ## imm = 0x816B
	callq	_reg_w
LBB0_31:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_2
	.long	L0_0_set_22
	.long	L0_0_set_14
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_14
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.end_data_region
                                        ## -- End function
	.comm	_QUALITY,4,2                    ## @QUALITY
	.comm	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spca500 Sensor Address 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Spca500 curr_mode: %d Xmult: 0x%02x, Ymult: 0x%02x"

	.comm	_qtable_creative_pccam,4,2      ## @qtable_creative_pccam
L_.str.2:                               ## @.str.2
	.asciz	"spca50x_setup_qtable failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"reg_r_wait() failed\n"

	.comm	_spca500_visual_defaults,4,2    ## @spca500_visual_defaults
L_.str.4:                               ## @.str.4
	.asciz	"failed to enable drop packet\n"

L_.str.5:                               ## @.str.5
	.asciz	"spca500_full_reset failed\n"

	.comm	_qtable_kodak_ez200,4,2         ## @qtable_kodak_ez200
	.comm	_qtable_pocketdv,4,2            ## @qtable_pocketdv
	.comm	_Clicksmart510_defaults,4,2     ## @Clicksmart510_defaults
	.no_dead_strip	_sd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_start
_sd_start:                              ; @sd_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #4]
	ldp	w2, w1, [x19, #12]
	mov	w3, #34
	bl	_jpeg_define
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _QUALITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUALITY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_jpeg_set_qual
	ldr	w20, [x19]
	mov	x0, x19
	mov	w1, #35332
	mov	w2, #1
	bl	_reg_r
Lloh3:
	adrp	x22, _D_STREAM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _D_STREAM@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x8, [x19]
	ldr	w3, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	mov	w8, #40
	mov	w9, #22
	cmp	w20, #134
	csel	w21, w9, w8, eq
	mov	w10, #30
	mov	w11, #18
	csel	w20, w11, w10, eq
	ldr	w1, [x22]
	ldr	w3, [x19, #8]
	csel	x10, x11, x10, eq
	csel	x8, x9, x8, eq
	stp	x8, x10, [sp]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #14
	b.hi	LBB0_31
; %bb.1:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_spca500_reinit
	mov	x0, x19
	mov	w1, #0
	mov	w2, #3329
	mov	w3, #1
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34058
	mov	w3, #1
	bl	_reg_w
Lloh11:
	adrp	x8, _qtable_pocketdv@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtable_pocketdv@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34816
	mov	w3, #34880
	bl	_spca50x_setup_qtable
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34944
	mov	w3, #2
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32778
	mov	w3, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #33295
	mov	w3, #1
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34570
	mov	w3, #4
	bl	_reg_w
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_spca500_setmode
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32768
	mov	w3, #4
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32768
	mov	w3, #68
	bl	_reg_r_wait
	b	LBB0_30
LBB0_5:
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	mov	w3, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34058
	mov	w3, #1
	bl	_reg_w
Lloh16:
	adrp	x8, _qtable_creative_pccam@GOTPAGE
Lloh17:
	ldr	x8, [x8, _qtable_creative_pccam@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34816
	mov	w3, #34880
	bl	_spca50x_setup_qtable
	tbz	w0, #31, LBB0_7
; %bb.6:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34944
	mov	w3, #3
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32778
	mov	w3, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34570
	mov	w3, #4
	bl	_reg_w
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_spca500_setmode
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32768
	mov	w3, #4
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32768
	mov	w3, #68
	bl	_reg_r_wait
	mov	x0, x19
	mov	w1, #33131
	mov	w2, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #33131
	bl	_reg_w
Lloh21:
	adrp	x8, _Clicksmart510_defaults@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Clicksmart510_defaults@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write_vector
	b	LBB0_31
LBB0_8:
	mov	x0, x19
	bl	_spca500_full_reset
	tbz	w0, #31, LBB0_10
; %bb.9:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34058
	mov	w3, #1
	bl	_reg_w
	tbz	w0, #31, LBB0_12
; %bb.11:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34944
	mov	w3, #3
	bl	_reg_w
Lloh28:
	adrp	x8, _qtable_creative_pccam@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qtable_creative_pccam@GOTPAGEOFF]
	b	LBB0_25
LBB0_13:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_spca500_setmode
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34058
	mov	w3, #1
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34944
	mov	w3, #3
	bl	_reg_w
Lloh30:
	adrp	x22, _qtable_creative_pccam@GOTPAGE
Lloh31:
	ldr	x22, [x22, _qtable_creative_pccam@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34816
	mov	w3, #34880
	bl	_spca50x_setup_qtable
	tbz	w0, #31, LBB0_15
; %bb.14:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_15:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34570
	mov	w3, #4
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32768
	mov	w3, #4
	bl	_reg_w
	mov	w0, #500
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32768
	mov	w3, #68
	bl	_reg_r_wait
	cbz	w0, LBB0_17
; %bb.16:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_17:
	mov	x0, x19
	mov	w1, #33131
	mov	w2, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #33131
	bl	_reg_w
	mov	x0, x19
	bl	_spca500_synch310
Lloh36:
	adrp	x8, _spca500_visual_defaults@GOTPAGE
Lloh37:
	ldr	x8, [x8, _spca500_visual_defaults@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write_vector
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_spca500_setmode
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34058
	mov	w3, #1
	bl	_reg_w
	tbz	w0, #31, LBB0_19
; %bb.18:
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_19:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34944
	mov	w3, #3
	bl	_reg_w
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34816
	mov	w3, #34880
	bl	_spca50x_setup_qtable
	tbz	w0, #31, LBB0_21
; %bb.20:
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_21:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34570
	b	LBB0_28
LBB0_22:
	mov	x0, x19
	bl	_spca500_full_reset
	tbz	w0, #31, LBB0_24
; %bb.23:
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_24:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34058
	mov	w3, #1
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34944
	mov	w3, #0
	bl	_reg_w
Lloh45:
	adrp	x8, _qtable_kodak_ez200@GOTPAGE
Lloh46:
	ldr	x8, [x8, _qtable_kodak_ez200@GOTPAGEOFF]
LBB0_25:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34816
	mov	w3, #34880
	bl	_spca50x_setup_qtable
	tbz	w0, #31, LBB0_27
; %bb.26:
Lloh47:
	adrp	x1, l_.str.2@PAGE
Lloh48:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_27:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_spca500_setmode
	mov	x0, x19
	mov	w1, #32
	mov	w2, #1
LBB0_28:
	mov	w3, #4
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32768
	mov	w3, #4
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32768
	mov	w3, #68
	bl	_reg_r_wait
	cbz	w0, LBB0_30
; %bb.29:
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_30:
	mov	x0, x19
	mov	w1, #33131
	mov	w2, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #33131
	bl	_reg_w
LBB0_31:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_QUALITY,4,2                    ; @QUALITY
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spca500 Sensor Address 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Spca500 curr_mode: %d Xmult: 0x%02x, Ymult: 0x%02x"

	.comm	_qtable_creative_pccam,4,2      ; @qtable_creative_pccam
l_.str.2:                               ; @.str.2
	.asciz	"spca50x_setup_qtable failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"reg_r_wait() failed\n"

	.comm	_spca500_visual_defaults,4,2    ; @spca500_visual_defaults
l_.str.4:                               ; @.str.4
	.asciz	"failed to enable drop packet\n"

l_.str.5:                               ; @.str.5
	.asciz	"spca500_full_reset failed\n"

	.comm	_qtable_kodak_ez200,4,2         ; @qtable_kodak_ez200
	.comm	_qtable_pocketdv,4,2            ; @qtable_pocketdv
	.comm	_Clicksmart510_defaults,4,2     ; @Clicksmart510_defaults
	.no_dead_strip	_sd_start
.subsections_via_symbols
