	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov8xx0_configure
_ov8xx0_configure:                      ## @ov8xx0_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %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_3
## %bb.1:
	andl	$3, %eax
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.4:
	movq	_SEN_OV8610@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gspca_err                      ## TAILCALL
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gspca_err                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting ov8xx0 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_OV8610,4,2                 ## @SEN_OV8610
L_.str.2:                               ## @.str.2
	.asciz	"Unknown image sensor version: %d\n"

	.no_dead_strip	_ov8xx0_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov8xx0_configure
_ov8xx0_configure:                      ; @ov8xx0_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	x8, _D_PROBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_gspca_dbg
Lloh5:
	adrp	x8, _OV7610_REG_COM_I@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OV7610_REG_COM_I@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_r
	tbnz	w0, #31, LBB0_3
; %bb.1:
	and	w8, w0, #0x3
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _SEN_OV8610@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEN_OV8610@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	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_4:
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
LBB0_5:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting ov8xx0 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_OV8610,4,2                 ; @SEN_OV8610
l_.str.2:                               ; @.str.2
	.asciz	"Unknown image sensor version: %d\n"

	.no_dead_strip	_ov8xx0_configure
.subsections_via_symbols
