	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_camchip
_init_camchip:                          ## @init_camchip
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$18, %esi
	movl	$128, %edx
	callq	_ov_write
	movl	$150, %edi
	callq	_msleep
	movq	_I2C_DETECT_RETRIES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.1:
	movl	$1, %ebx
	leaq	-42(%rbp), %r15
	leaq	-41(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$18, %esi
	movl	$128, %edx
	callq	_ov_write
	movl	$150, %edi
	callq	_msleep
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_ov_read
	leal	1(%rbx), %eax
	cmpl	(%r13), %ebx
	movl	%eax, %ebx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GENERIC_REG_ID_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_ov_read
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GENERIC_REG_ID_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_ov_read
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$127, -42(%rbp)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-94, -41(%rbp)
	jne	LBB0_6
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_PDEBUG
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_DETECT_RETRIES,4,2         ## @I2C_DETECT_RETRIES
	.comm	_GENERIC_REG_ID_HIGH,4,2        ## @GENERIC_REG_ID_HIGH
	.comm	_GENERIC_REG_ID_LOW,4,2         ## @GENERIC_REG_ID_LOW
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C synced in %d attempt(s)"

	.no_dead_strip	_init_camchip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_camchip
_init_camchip:                          ; @init_camchip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w1, #18
	mov	w2, #128
	bl	_ov_write
	mov	w0, #150
	bl	_msleep
Lloh0:
	adrp	x21, _I2C_DETECT_RETRIES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I2C_DETECT_RETRIES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w20, #1
Lloh2:
	adrp	x22, _GENERIC_REG_ID_HIGH@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GENERIC_REG_ID_HIGH@GOTPAGEOFF]
Lloh4:
	adrp	x23, _GENERIC_REG_ID_LOW@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GENERIC_REG_ID_LOW@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	w1, #18
	mov	w2, #128
	bl	_ov_write
	mov	w0, #150
	bl	_msleep
	add	x2, sp, #14
	mov	x0, x19
	mov	w1, #0
	bl	_ov_read
	ldr	w8, [x21]
	add	w9, w20, #1
	cmp	w20, w8
	mov	x20, x9
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	add	x2, sp, #15
	mov	x0, x19
	bl	_ov_read
	tbnz	x0, #63, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	add	x2, sp, #14
	mov	x0, x19
	bl	_ov_read
	tbnz	x0, #63, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #15]
	cmp	w8, #127
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #14]
	cmp	w8, #162
	b.ne	LBB0_2
; %bb.7:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_PDEBUG
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_DETECT_RETRIES,4,2         ; @I2C_DETECT_RETRIES
	.comm	_GENERIC_REG_ID_HIGH,4,2        ; @GENERIC_REG_ID_HIGH
	.comm	_GENERIC_REG_ID_LOW,4,2         ; @GENERIC_REG_ID_LOW
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C synced in %d attempt(s)"

	.no_dead_strip	_init_camchip
.subsections_via_symbols
