	.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	8(%rdi), %edi
	movl	12(%r13), %edx
	movl	$34, %ecx
	callq	_jpeg_define
	movl	4(%r13), %esi
	movl	8(%r13), %edi
	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), %edi
	movq	(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	movl	(%rbx), %edi
	movl	8(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_PDEBUG
	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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
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	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spca500 Sensor Address 0x%02x"

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
	.comm	_D_ERR,4,2                      ## @D_ERR
L_.str.2:                               ## @.str.2
	.asciz	"spca50x_setup_qtable failed"

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

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

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

	.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, #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	x19, x0
	ldr	w1, [x0, #16]
	ldr	w0, [x0, #8]
	ldr	w2, [x19, #12]
	mov	w3, #34
	bl	_jpeg_define
	ldp	w1, w0, [x19, #4]
	bl	_jpeg_set_qual
	ldr	w20, [x19]
	mov	x0, x19
	mov	w1, #35332
	mov	w2, #1
	bl	_reg_r
Lloh0:
	adrp	x22, _D_STREAM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _D_STREAM@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	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	w0, [x22]
	csel	x10, x11, x10, eq
	ldr	w11, [x19, #8]
	csel	x8, x9, x8, eq
	stp	x8, x10, [sp, #8]
	str	x11, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PDEBUG
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #14
	b.hi	LBB0_31
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrh	w11, [x9, x8, lsl #1]
	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
Lloh8:
	adrp	x8, _qtable_pocketdv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qtable_pocketdv@GOTPAGEOFF]
Lloh10:
	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:
Lloh11:
	adrp	x8, _D_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PDEBUG
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	x8, _D_ERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PDEBUG
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
Lloh24:
	adrp	x8, _Clicksmart510_defaults@GOTPAGE
Lloh25:
	ldr	x8, [x8, _Clicksmart510_defaults@GOTPAGEOFF]
Lloh26:
	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:
Lloh27:
	adrp	x8, _D_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PDEBUG
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34058
	mov	w3, #1
	bl	_reg_w
	tbz	w0, #31, LBB0_12
; %bb.11:
Lloh32:
	adrp	x8, _D_ERR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_PDEBUG
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #34944
	mov	w3, #3
	bl	_reg_w
Lloh37:
	adrp	x8, _qtable_creative_pccam@GOTPAGE
Lloh38:
	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
Lloh39:
	adrp	x22, _qtable_creative_pccam@GOTPAGE
Lloh40:
	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:
Lloh41:
	adrp	x8, _D_ERR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PDEBUG
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:
Lloh46:
	adrp	x8, _D_ERR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PDEBUG
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
Lloh51:
	adrp	x8, _spca500_visual_defaults@GOTPAGE
Lloh52:
	ldr	x8, [x8, _spca500_visual_defaults@GOTPAGEOFF]
Lloh53:
	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:
Lloh54:
	adrp	x8, _D_ERR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_PDEBUG
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:
Lloh59:
	adrp	x8, _D_ERR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
Lloh62:
	adrp	x1, l_.str.2@PAGE
Lloh63:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PDEBUG
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:
Lloh64:
	adrp	x8, _D_ERR@GOTPAGE
Lloh65:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
Lloh67:
	adrp	x1, l_.str.5@PAGE
Lloh68:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PDEBUG
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
Lloh69:
	adrp	x8, _qtable_kodak_ez200@GOTPAGE
Lloh70:
	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:
Lloh71:
	adrp	x8, _D_ERR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
Lloh74:
	adrp	x1, l_.str.2@PAGE
Lloh75:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PDEBUG
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:
Lloh76:
	adrp	x8, _D_ERR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
Lloh79:
	adrp	x1, l_.str.3@PAGE
Lloh80:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PDEBUG
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, #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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_5-LBB0_2)>>2
	.short	(LBB0_5-LBB0_2)>>2
	.short	(LBB0_13-LBB0_2)>>2
	.short	(LBB0_22-LBB0_2)>>2
	.short	(LBB0_8-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_8-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spca500 Sensor Address 0x%02x"

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
	.comm	_D_ERR,4,2                      ; @D_ERR
l_.str.2:                               ; @.str.2
	.asciz	"spca50x_setup_qtable failed"

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

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

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

	.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
