	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov6xx0_configure
_ov6xx0_configure:                      ## @ov6xx0_configure
	.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
	movq	_D_PROBE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	callq	_gspca_dbg
	movq	_OV7610_REG_COM_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_r
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.4:
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	_SEN_OV6630@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gspca_err                      ## TAILCALL
LBB0_2:
	cmpl	$144, %eax
	jne	LBB0_9
## %bb.3:
	movq	_SEN_OV6630@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str.6(%rip), %rdi
LBB0_11:
	callq	_pr_warn
	jmp	LBB0_12
LBB0_7:
	movq	_SEN_OV6630@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	(%r14), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_6
LBB0_8:
	movq	_SEN_OV66308AF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	(%r14), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gspca_err                      ## TAILCALL
LBB0_5:
	movq	_SEN_OV6620@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	(%r14), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_6:
	movq	%rbx, %rdi
	callq	_gspca_dbg
LBB0_12:
	movl	$1, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting OV6xx0 configuration\n"

	.comm	_OV7610_REG_COM_I,4,2           ## @OV7610_REG_COM_I
L_.str.1:                               ## @.str.1
	.asciz	"Error detecting sensor type\n"

	.comm	_SEN_OV6630,8,3                 ## @SEN_OV6630
L_.str.2:                               ## @.str.2
	.asciz	"WARNING: Sensor is an OV66308. Your camera may have been misdetected in previous driver versions.\n"

	.comm	_SEN_OV6620,8,3                 ## @SEN_OV6620
L_.str.3:                               ## @.str.3
	.asciz	"Sensor is an OV6620\n"

L_.str.4:                               ## @.str.4
	.asciz	"Sensor is an OV66308AE\n"

	.comm	_SEN_OV66308AF,8,3              ## @SEN_OV66308AF
L_.str.5:                               ## @.str.5
	.asciz	"Sensor is an OV66308AF\n"

L_.str.6:                               ## @.str.6
	.asciz	"WARNING: Sensor is an OV66307. Your camera may have been misdetected in previous driver versions.\n"

L_.str.7:                               ## @.str.7
	.asciz	"FATAL: Unknown sensor version: 0x%02x\n"

	.no_dead_strip	_ov6xx0_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov6xx0_configure
_ov6xx0_configure:                      ; @ov6xx0_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _D_PROBE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _D_PROBE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_gspca_dbg
Lloh4:
	adrp	x8, _OV7610_REG_COM_I@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OV7610_REG_COM_I@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_r
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cmp	w0, #3
	b.hi	LBB0_5
; %bb.2:
	mov	w8, w0
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh9:
	adrp	x8, _SEN_OV6630@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEN_OV6630@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_gspca_err
LBB0_5:
	cmp	w0, #144
	b.ne	LBB0_10
; %bb.6:
Lloh16:
	adrp	x8, _SEN_OV6630@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEN_OV6630@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh19:
	adrp	x0, l_.str.6@PAGE
Lloh20:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_7:
	bl	_pr_warn
	b	LBB0_13
LBB0_8:
Lloh21:
	adrp	x8, _SEN_OV6630@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SEN_OV6630@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w1, [x20]
Lloh24:
	adrp	x2, l_.str.4@PAGE
Lloh25:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh26:
	adrp	x8, _SEN_OV66308AF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SEN_OV66308AF@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w1, [x20]
Lloh29:
	adrp	x2, l_.str.5@PAGE
Lloh30:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_10:
	str	x0, [sp]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
	b	LBB0_14
LBB0_11:
Lloh33:
	adrp	x8, _SEN_OV6620@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SEN_OV6620@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w1, [x20]
Lloh36:
	adrp	x2, l_.str.3@PAGE
Lloh37:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_gspca_dbg
LBB0_13:
	mov	w8, #1
	str	w8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting OV6xx0 configuration\n"

	.comm	_OV7610_REG_COM_I,4,2           ; @OV7610_REG_COM_I
l_.str.1:                               ; @.str.1
	.asciz	"Error detecting sensor type\n"

	.comm	_SEN_OV6630,8,3                 ; @SEN_OV6630
l_.str.2:                               ; @.str.2
	.asciz	"WARNING: Sensor is an OV66308. Your camera may have been misdetected in previous driver versions.\n"

	.comm	_SEN_OV6620,8,3                 ; @SEN_OV6620
l_.str.3:                               ; @.str.3
	.asciz	"Sensor is an OV6620\n"

l_.str.4:                               ; @.str.4
	.asciz	"Sensor is an OV66308AE\n"

	.comm	_SEN_OV66308AF,8,3              ; @SEN_OV66308AF
l_.str.5:                               ; @.str.5
	.asciz	"Sensor is an OV66308AF\n"

l_.str.6:                               ; @.str.6
	.asciz	"WARNING: Sensor is an OV66307. Your camera may have been misdetected in previous driver versions.\n"

l_.str.7:                               ; @.str.7
	.asciz	"FATAL: Unknown sensor version: 0x%02x\n"

	.no_dead_strip	_ov6xx0_configure
.subsections_via_symbols
