	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov9650_init                    ## -- Begin function ov9650_init
	.p2align	4, 0x90
_ov9650_init:                           ## @ov9650_init
	.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, %r15
	movq	_dump_sensor@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_ov9650_dump_registers
LBB0_2:
	movq	_init_ov9650@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	movl	$1, %ebx
	movq	_SENSOR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	-8(%rax,%rbx,8), %rax
	movq	16(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movq	(%rax), %rcx
	movq	8(%rax), %rsi
	cmpq	(%r14), %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rdx
	movl	$1, %ecx
	callq	_m5602_write_sensor
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_m5602_write_bridge
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r13d
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	testl	%r13d, %r13d
	je	LBB0_4
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dump_sensor,8,3                ## @dump_sensor
	.comm	_init_ov9650,8,3                ## @init_ov9650
	.comm	_SENSOR,8,3                     ## @SENSOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov9650_init                    ; -- Begin function ov9650_init
	.p2align	2
_ov9650_init:                           ; @ov9650_init
	.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
Lloh0:
	adrp	x8, _dump_sensor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dump_sensor@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ov9650_dump_registers
LBB0_2:
Lloh3:
	adrp	x21, _init_ov9650@GOTPAGE
Lloh4:
	ldr	x21, [x21, _init_ov9650@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x22, #0
Lloh5:
	adrp	x23, _SENSOR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SENSOR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_m5602_write_bridge
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	ccmp	w20, #0, #0, lt
	b.ne	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x22, lsl #3]
	ldp	x1, x2, [x8, #8]
	str	x2, [sp, #8]
	ldr	x9, [x23]
	ldr	x10, [x8]
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_dump_sensor,8,3                ; @dump_sensor
	.comm	_init_ov9650,8,3                ; @init_ov9650
	.comm	_SENSOR,8,3                     ; @SENSOR
.subsections_via_symbols
