	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, 8(%rdi)
	movl	(%rdi), %eax
	leal	-32769(%rax), %ecx
	cmpl	$9, %ecx
	ja	LBB0_1
## %bb.12:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	%rbx, %rdi
	callq	_start_spy_cam
	jmp	LBB0_10
LBB0_1:
	cmpl	$28675, %eax                    ## imm = 0x7003
	je	LBB0_9
## %bb.2:
	cmpl	$28677, %eax                    ## imm = 0x7005
	jne	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_start_genius_cam
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_5:
	movq	%rbx, %rdi
	callq	_start_cif_cam
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	_start_ms350_cam
	jmp	LBB0_10
LBB0_7:
	movq	%rbx, %rdi
	callq	_start_vivitar_cam
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	callq	_start_genius_videocam_live
LBB0_10:
	movl	$-1, 4(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting unknown camera, please report this\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.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
	str	xzr, [x0, #8]
	ldr	w8, [x0]
	mov	w9, #-32769
	add	w9, w8, w9
	cmp	w9, #9
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_start_spy_cam
	b	LBB0_11
LBB0_3:
	mov	w9, #28675
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.4:
	mov	w9, #28677
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_start_genius_cam
	b	LBB0_11
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_7:
	mov	x0, x19
	bl	_start_cif_cam
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_start_ms350_cam
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_start_vivitar_cam
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_start_genius_videocam_live
LBB0_11:
	mov	w8, #-1
	str	w8, [x19, #4]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting unknown camera, please report this\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_sd_start
.subsections_via_symbols
