	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov6xx0_detect
_ov6xx0_detect:                         ## @ov6xx0_detect
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	callq	_PDEBUG
	movq	_GENERIC_REG_COM_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-17(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ov_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movzbl	-17(%rbp), %eax
	andl	$3, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_CC_OV6630@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_PERROR
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_4:
	movq	_CC_OV6620@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_7
LBB0_5:
	movq	_CC_OV6630@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_7
LBB0_6:
	movq	_CC_OV6630@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.5(%rip), %rdi
LBB0_7:
	movq	%rax, (%r14)
	callq	_PINFO
	movq	(%r14), %rax
	movq	_CC_OV6620@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_ov6x20_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ov6x30_ops@GOTPCREL(%rip), %rax
LBB0_10:
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_GENERIC_REG_COM_I,4,2          ## @GENERIC_REG_COM_I
L_.str.1:                               ## @.str.1
	.asciz	"Error detecting ov6xx0 type"

	.comm	_CC_OV6630,8,3                  ## @CC_OV6630
L_.str.2:                               ## @.str.2
	.asciz	"Camera chip is an OV6630"

	.comm	_CC_OV6620,8,3                  ## @CC_OV6620
L_.str.3:                               ## @.str.3
	.asciz	"Camera chip is an OV6620"

L_.str.4:                               ## @.str.4
	.asciz	"Camera chip is an OV6630AE"

L_.str.5:                               ## @.str.5
	.asciz	"Camera chip is an OV6630AF"

	.comm	_ov6x20_ops,4,2                 ## @ov6x20_ops
	.comm	_ov6x30_ops,4,2                 ## @ov6x30_ops
	.no_dead_strip	_ov6xx0_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov6xx0_detect
_ov6xx0_detect:                         ; @ov6xx0_detect
	.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	x20, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_PDEBUG
Lloh2:
	adrp	x8, _GENERIC_REG_COM_I@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GENERIC_REG_COM_I@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #15
	mov	x0, x20
	bl	_ov_read
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldrb	w8, [sp, #15]
	and	x8, x8, #0x3
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
Lloh7:
	adrp	x20, _CC_OV6620@GOTPAGE
Lloh8:
	ldr	x20, [x20, _CC_OV6620@GOTPAGEOFF]
	br	x10
LBB0_2:
Lloh9:
	adrp	x8, _CC_OV6630@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CC_OV6630@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_PERROR
	mov	w0, #-1
	b	LBB0_11
LBB0_4:
	ldr	x8, [x20]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh18:
	adrp	x8, _CC_OV6630@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CC_OV6630@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x8, _CC_OV6630@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CC_OV6630@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_7:
	str	x8, [x19]
	bl	_PINFO
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
Lloh28:
	adrp	x8, _ov6x20_ops@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ov6x20_ops@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
Lloh30:
	adrp	x8, _ov6x30_ops@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ov6x30_ops@GOTPAGEOFF]
LBB0_10:
	str	x8, [x19, #8]
LBB0_11:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_GENERIC_REG_COM_I,4,2          ; @GENERIC_REG_COM_I
l_.str.1:                               ; @.str.1
	.asciz	"Error detecting ov6xx0 type"

	.comm	_CC_OV6630,8,3                  ; @CC_OV6630
l_.str.2:                               ; @.str.2
	.asciz	"Camera chip is an OV6630"

	.comm	_CC_OV6620,8,3                  ; @CC_OV6620
l_.str.3:                               ; @.str.3
	.asciz	"Camera chip is an OV6620"

l_.str.4:                               ; @.str.4
	.asciz	"Camera chip is an OV6630AE"

l_.str.5:                               ; @.str.5
	.asciz	"Camera chip is an OV6630AF"

	.comm	_ov6x20_ops,4,2                 ; @ov6x20_ops
	.comm	_ov6x30_ops,4,2                 ; @ov6x30_ops
	.no_dead_strip	_ov6xx0_detect
.subsections_via_symbols
