	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movl	$34, %ecx
	callq	_jpeg_define
	movl	12(%rbx), %edi
	movq	_QUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_jpeg_set_qual
	movl	(%rbx), %eax
	movq	_BRIDGE_SPCA504B@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_spca504B_setQtable
LBB0_2:
	movq	%rbx, %rdi
	callq	_spca504B_SetSizeType
	movl	(%rbx), %eax
	cmpl	$131, %eax
	je	LBB0_11
## %bb.3:
	cmpl	$132, %eax
	jne	LBB0_4
## %bb.7:
	movl	8(%rbx), %eax
	movq	_AiptekMiniPenCam13@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_spca504_read_info
	movq	%rbx, %rdi
	movl	$36, %esi
	movl	$8, %edx
	movl	$3, %ecx
	movl	$158, %r8d
	movl	$1, %r9d
	callq	_spca504A_acknowledged_command
	movq	%rbx, %rdi
	movl	$36, %esi
	movl	$8, %edx
	movl	$3, %ecx
	movl	$158, %r8d
	xorl	%r9d, %r9d
	callq	_spca504A_acknowledged_command
	movq	%rbx, %rdi
	movl	$36, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$157, %r8d
	movl	$1, %r9d
	callq	_spca504A_acknowledged_command
	jmp	LBB0_10
LBB0_11:
	movl	8(%rbx), %eax
	movq	_LogitechClickSmart420@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.13:
	movq	_spca504A_clicksmart420_init_data@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movl	8(%rbx), %eax
	addl	$-128, %eax
	movq	%rbx, %rdi
	cmpl	$2, %eax
	ja	LBB0_6
## %bb.5:
	movl	$240, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	callq	_spca504B_WaitCmdStatus
	movq	%rbx, %rdi
	movl	$240, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_reg_r
	movq	%rbx, %rdi
	callq	_spca504B_WaitCmdStatus
	jmp	LBB0_15
LBB0_9:
	movq	%rbx, %rdi
	movl	$36, %esi
	movl	$8, %edx
	movl	$3, %ecx
	callq	_spca504_acknowledged_command
	movq	%rbx, %rdi
	callq	_spca504_read_info
	movq	%rbx, %rdi
	movl	$36, %esi
	movl	$8, %edx
	movl	$3, %ecx
	callq	_spca504_acknowledged_command
	movq	%rbx, %rdi
	movl	$36, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_spca504_acknowledged_command
LBB0_10:
	movq	%rbx, %rdi
	callq	_spca504B_SetSizeType
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$9996, %edx                     ## imm = 0x270C
	movl	$5, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8976, %edx                     ## imm = 0x2310
	movl	$5, %ecx
	callq	_reg_w_riv
	jmp	LBB0_15
LBB0_12:
	movq	_spca504_pccam600_init_data@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_write_vector
	xorl	%eax, %eax
	cmpl	$0, 4(%rbx)
	setne	%al
	leal	(%rax,%rax,2), %r14d
	incl	%r14d
	movq	%rbx, %rdi
	movl	$12, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	movl	$176, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	movl	$48, %esi
	movl	$1, %edx
	movl	$800, %ecx                      ## imm = 0x320
	callq	_reg_w_riv
	movq	%rbx, %rdi
	movl	$48, %esi
	movl	$2, %edx
	movl	$1600, %ecx                     ## imm = 0x640
	callq	_reg_w_riv
	movq	%rbx, %rdi
	callq	_spca504B_SetSizeType
	jmp	LBB0_15
LBB0_6:
	movl	$49, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_reg_w_riv
	movq	%rbx, %rdi
	callq	_spca504B_WaitCmdStatus
	movq	%rbx, %rdi
	callq	_spca504B_PollingDataReady
LBB0_15:
	movq	%rbx, %rdi
	callq	_init_ctl_reg
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUALITY,4,2                    ## @QUALITY
	.comm	_BRIDGE_SPCA504B,4,2            ## @BRIDGE_SPCA504B
	.comm	_AiptekMiniPenCam13,4,2         ## @AiptekMiniPenCam13
	.comm	_LogitechClickSmart420,4,2      ## @LogitechClickSmart420
	.comm	_spca504A_clicksmart420_init_data,4,2 ## @spca504A_clicksmart420_init_data
	.comm	_spca504_pccam600_init_data,4,2 ## @spca504_pccam600_init_data
	.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldp	w2, w1, [x19, #4]
	mov	w3, #34
	bl	_jpeg_define
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x8, _QUALITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUALITY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_jpeg_set_qual
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _BRIDGE_SPCA504B@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRIDGE_SPCA504B@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spca504B_setQtable
LBB0_2:
	mov	x0, x19
	bl	_spca504B_SetSizeType
	ldr	w8, [x19]
	cmp	w8, #131
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #132
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _AiptekMiniPenCam13@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AiptekMiniPenCam13@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.5:
	bl	_spca504_read_info
	mov	x0, x19
	mov	w1, #36
	mov	w2, #8
	mov	w3, #3
	mov	w4, #158
	mov	w5, #1
	bl	_spca504A_acknowledged_command
	mov	x0, x19
	mov	w1, #36
	mov	w2, #8
	mov	w3, #3
	mov	w4, #158
	mov	w5, #0
	bl	_spca504A_acknowledged_command
	mov	x0, x19
	mov	w1, #36
	mov	w2, #0
	mov	w3, #0
	mov	w4, #157
	mov	w5, #1
	bl	_spca504A_acknowledged_command
	b	LBB0_10
LBB0_6:
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _LogitechClickSmart420@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LogitechClickSmart420@GOTPAGEOFF]
Lloh11:
	adrp	x10, _spca504A_clicksmart420_init_data@GOTPAGE
Lloh12:
	ldr	x10, [x10, _spca504A_clicksmart420_init_data@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x11, _spca504_pccam600_init_data@GOTPAGE
Lloh15:
	ldr	x11, [x11, _spca504_pccam600_init_data@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_write_vector
	ldr	w8, [x19, #4]
	cmp	w8, #0
	mov	w8, #4
	csinc	w20, w8, wzr, ne
	mov	x0, x19
	mov	w1, #12
	mov	w2, #0
	mov	x3, x20
	bl	_reg_w_riv
	mov	x0, x19
	mov	w1, #176
	mov	w2, #0
	mov	x3, x20
	bl	_reg_w_riv
	mov	x0, x19
	mov	w1, #48
	mov	w2, #1
	mov	w3, #800
	bl	_reg_w_riv
	mov	x0, x19
	mov	w1, #48
	mov	w2, #2
	mov	w3, #1600
	bl	_reg_w_riv
	mov	x0, x19
	bl	_spca504B_SetSizeType
	b	LBB0_12
LBB0_7:
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	mov	x0, x19
	cmp	w8, #2
	b.hi	LBB0_11
; %bb.8:
	mov	w1, #240
	mov	w2, #0
	mov	w3, #0
	bl	_reg_w_riv
	mov	x0, x19
	bl	_spca504B_WaitCmdStatus
	mov	x0, x19
	mov	w1, #240
	mov	w2, #4
	mov	w3, #0
	bl	_reg_r
	mov	x0, x19
	bl	_spca504B_WaitCmdStatus
	b	LBB0_12
LBB0_9:
	mov	w1, #36
	mov	w2, #8
	mov	w3, #3
	bl	_spca504_acknowledged_command
	mov	x0, x19
	bl	_spca504_read_info
	mov	x0, x19
	mov	w1, #36
	mov	w2, #8
	mov	w3, #3
	bl	_spca504_acknowledged_command
	mov	x0, x19
	mov	w1, #36
	mov	w2, #0
	mov	w3, #0
	bl	_spca504_acknowledged_command
LBB0_10:
	mov	x0, x19
	bl	_spca504B_SetSizeType
	mov	x0, x19
	mov	w1, #0
	mov	w2, #9996
	mov	w3, #5
	bl	_reg_w_riv
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8976
	mov	w3, #5
	bl	_reg_w_riv
	b	LBB0_12
LBB0_11:
	mov	w1, #49
	mov	w2, #4
	mov	w3, #0
	bl	_reg_w_riv
	mov	x0, x19
	bl	_spca504B_WaitCmdStatus
	mov	x0, x19
	bl	_spca504B_PollingDataReady
LBB0_12:
	mov	x0, x19
	bl	_init_ctl_reg
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QUALITY,4,2                    ; @QUALITY
	.comm	_BRIDGE_SPCA504B,4,2            ; @BRIDGE_SPCA504B
	.comm	_AiptekMiniPenCam13,4,2         ; @AiptekMiniPenCam13
	.comm	_LogitechClickSmart420,4,2      ; @LogitechClickSmart420
	.comm	_spca504A_clicksmart420_init_data,4,2 ; @spca504A_clicksmart420_init_data
	.comm	_spca504_pccam600_init_data,4,2 ; @spca504_pccam600_init_data
	.no_dead_strip	_sd_start
.subsections_via_symbols
