	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_config
_sd_config:                             ## @sd_config
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_D_PROBE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_gspca_dbg
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	leal	-32768(%rax), %ecx
	cmpl	$10, %ecx
	ja	LBB0_1
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_10:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_11
LBB0_1:
	cmpl	$28677, %eax                    ## imm = 0x7005
	je	LBB0_2
## %bb.4:
	cmpl	$28675, %eax                    ## imm = 0x7003
	jne	LBB0_12
## %bb.5:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_11
LBB0_9:
	movl	(%r15), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	_V4L2_IN_ST_VFLIP@GOTPCREL(%rip), %rcx
	movq	_V4L2_IN_ST_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
LBB0_11:
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	movl	(%r14), %eax
LBB0_12:
	addl	$-32768, %eax                   ## imm = 0x8000
	cmpl	$3, %eax
	ja	LBB0_13
## %bb.14:
	cltq
	leaq	l_switch.table.sd_config(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_vga_mode@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rdi
	movq	%rdi, 16(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SN9C2028 camera detected (vid/pid 0x%04X:0x%04X)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Genius Smart 300 camera\n"

L_.str.2:                               ## @.str.2
	.asciz	"Genius Videocam Live v2\n"

L_.str.3:                               ## @.str.3
	.asciz	"DC31VC\n"

L_.str.4:                               ## @.str.4
	.asciz	"Spy camera\n"

L_.str.5:                               ## @.str.5
	.asciz	"CIF camera\n"

L_.str.6:                               ## @.str.6
	.asciz	"Mini-Shotz ms-350 camera\n"

L_.str.7:                               ## @.str.7
	.asciz	"Vivitar 3350b type camera\n"

	.comm	_V4L2_IN_ST_VFLIP,4,2           ## @V4L2_IN_ST_VFLIP
	.comm	_V4L2_IN_ST_HFLIP,4,2           ## @V4L2_IN_ST_HFLIP
	.comm	_cif_mode,8,3                   ## @cif_mode
	.comm	_vga_mode,8,3                   ## @vga_mode
	.no_dead_strip	_sd_config
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.sd_config
l_switch.table.sd_config:
	.quad	_cif_mode
	.quad	_cif_mode
	.quad	_vga_mode
	.quad	_cif_mode

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_config
_sd_config:                             ; @sd_config
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _D_PROBE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _D_PROBE@GOTPAGEOFF]
	ldr	w1, [x21]
	ldp	w9, w8, [x20]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_gspca_dbg
	ldr	w8, [x20]
	str	w8, [x19]
	sub	w9, w8, #8, lsl #12             ; =32768
	cmp	w9, #10
	b.hi	LBB0_3
; %bb.1:
Lloh4:
	adrp	x10, lJTI0_0@PAGE
Lloh5:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_3:
	mov	w9, #28677
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.4:
	mov	w9, #28675
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.5:
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_6:
Lloh10:
	adrp	x2, l_.str.4@PAGE
Lloh11:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x2, l_.str.5@PAGE
Lloh13:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x2, l_.str.6@PAGE
Lloh15:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldr	w1, [x21]
Lloh16:
	adrp	x2, l_.str.7@PAGE
Lloh17:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh18:
	adrp	x8, _V4L2_IN_ST_VFLIP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_IN_ST_VFLIP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _V4L2_IN_ST_HFLIP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _V4L2_IN_ST_HFLIP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_12
LBB0_10:
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_11:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_gspca_dbg
	ldr	w8, [x19]
LBB0_12:
	sub	w8, w8, #8, lsl #12             ; =32768
	cmp	w8, #3
	b.hi	LBB0_14
; %bb.13:
Lloh26:
	adrp	x9, l_switch.table.sd_config@PAGE
Lloh27:
	add	x9, x9, l_switch.table.sd_config@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_15
LBB0_14:
Lloh28:
	adrp	x8, _vga_mode@GOTPAGE
Lloh29:
	ldr	x8, [x8, _vga_mode@GOTPAGEOFF]
LBB0_15:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
	str	x0, [x19, #8]
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SN9C2028 camera detected (vid/pid 0x%04X:0x%04X)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Genius Smart 300 camera\n"

l_.str.2:                               ; @.str.2
	.asciz	"Genius Videocam Live v2\n"

l_.str.3:                               ; @.str.3
	.asciz	"DC31VC\n"

l_.str.4:                               ; @.str.4
	.asciz	"Spy camera\n"

l_.str.5:                               ; @.str.5
	.asciz	"CIF camera\n"

l_.str.6:                               ; @.str.6
	.asciz	"Mini-Shotz ms-350 camera\n"

l_.str.7:                               ; @.str.7
	.asciz	"Vivitar 3350b type camera\n"

	.comm	_V4L2_IN_ST_VFLIP,4,2           ; @V4L2_IN_ST_VFLIP
	.comm	_V4L2_IN_ST_HFLIP,4,2           ; @V4L2_IN_ST_HFLIP
	.comm	_cif_mode,8,3                   ; @cif_mode
	.comm	_vga_mode,8,3                   ; @vga_mode
	.no_dead_strip	_sd_config
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sd_config
l_switch.table.sd_config:
	.quad	_cif_mode
	.quad	_cif_mode
	.quad	_vga_mode
	.quad	_cif_mode

.subsections_via_symbols
