	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.sd_start(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_spca501_open_data@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_write_vector
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %r14d
	movq	_SPCA50X_REG_USB@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$6, %edx
	movl	$148, %ecx
	callq	_reg_write
	xorl	%eax, %eax
	cmpl	$1, %r14d
	setne	%al
	shll	$12, %eax
	addl	$4170, %eax                     ## imm = 0x104A
	testl	%r14d, %r14d
	movl	$74, %ecx
	cmovnel	%eax, %ecx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_reg_write
	movq	_SPCA501_REG_CTLRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$2, %ecx
	callq	_reg_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_spca501_3com_open_data,4,2     ## @spca501_3com_open_data
	.comm	_spca501c_arowana_open_data,4,2 ## @spca501c_arowana_open_data
	.comm	_spca501c_mysterious_init_data,4,2 ## @spca501c_mysterious_init_data
	.comm	_spca501_open_data,4,2          ## @spca501_open_data
	.comm	_SPCA50X_REG_USB,4,2            ## @SPCA50X_REG_USB
	.comm	_SPCA501_REG_CTLRL,4,2          ## @SPCA501_REG_CTLRL
	.no_dead_strip	_sd_start
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.sd_start
l_switch.table.sd_start:
	.quad	_spca501_3com_open_data
	.quad	_spca501c_arowana_open_data
	.quad	_spca501c_mysterious_init_data
	.quad	_spca501c_arowana_open_data

.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:
	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
	mov	x19, x0
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.sd_start@PAGE
Lloh1:
	add	x9, x9, l_switch.table.sd_start@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _spca501_open_data@GOTPAGE
Lloh3:
	ldr	x8, [x8, _spca501_open_data@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write_vector
	ldp	x9, x8, [x19]
	sbfiz	x9, x9, #2, #32
	ldr	w20, [x8, x9]
Lloh4:
	adrp	x21, _SPCA50X_REG_USB@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SPCA50X_REG_USB@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #6
	mov	w3, #148
	bl	_reg_write
	mov	w8, #8266
	mov	w9, #4170
	cmp	w20, #1
	csel	w8, w9, w8, eq
	mov	w9, #74
	cmp	w20, #0
	csel	w3, w9, w8, eq
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #7
	bl	_reg_write
Lloh6:
	adrp	x8, _SPCA501_REG_CTLRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPCA501_REG_CTLRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #2
	bl	_reg_write
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_spca501_3com_open_data,4,2     ; @spca501_3com_open_data
	.comm	_spca501c_arowana_open_data,4,2 ; @spca501c_arowana_open_data
	.comm	_spca501c_mysterious_init_data,4,2 ; @spca501c_mysterious_init_data
	.comm	_spca501_open_data,4,2          ; @spca501_open_data
	.comm	_SPCA50X_REG_USB,4,2            ; @SPCA50X_REG_USB
	.comm	_SPCA501_REG_CTLRL,4,2          ; @SPCA501_REG_CTLRL
	.no_dead_strip	_sd_start
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sd_start
l_switch.table.sd_start:
	.quad	_spca501_3com_open_data
	.quad	_spca501c_arowana_open_data
	.quad	_spca501c_mysterious_init_data
	.quad	_spca501c_arowana_open_data

.subsections_via_symbols
