	.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), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PDEBUG
	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:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_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"

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

	.comm	_SEN_OV8610,4,2                 ## @SEN_OV8610
L_.str.2:                               ## @.str.2
	.asciz	"Unknown image sensor version: %d"

	.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:
	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
Lloh0:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
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	w1, w0, #0x3
	cmp	w1, #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]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh11:
	adrp	x8, _D_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PDEBUG
LBB0_4:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_err
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting ov8xx0 configuration"

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

	.comm	_SEN_OV8610,4,2                 ; @SEN_OV8610
l_.str.2:                               ; @.str.2
	.asciz	"Unknown image sensor version: %d"

	.no_dead_strip	_ov8xx0_configure
.subsections_via_symbols
