	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	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), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	movl	$1, %r12d
	movq	_SENSOR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	-8(%rax,%r12,8), %rax
	movq	16(%rax), %rdx
	movq	%rdx, -56(%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	-56(%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, %ebx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	testl	%ebx, %ebx
	je	LBB0_4
LBB0_9:
	movq	_EXPOSURE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_ov9650_set_exposure
	testl	%eax, %eax
	js	LBB0_18
## %bb.10:
	movq	_GAIN_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_ov9650_set_gain
	testl	%eax, %eax
	js	LBB0_18
## %bb.11:
	movq	_RED_BALANCE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_ov9650_set_red_balance
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movq	_BLUE_BALANCE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_ov9650_set_blue_balance
	testl	%eax, %eax
	js	LBB0_18
## %bb.13:
	movq	_HFLIP_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_ov9650_set_hflip
	testl	%eax, %eax
	js	LBB0_18
## %bb.14:
	movq	_VFLIP_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_ov9650_set_vflip
	testl	%eax, %eax
	js	LBB0_18
## %bb.15:
	movq	_AUTO_EXPOSURE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_ov9650_set_auto_exposure
	testl	%eax, %eax
	js	LBB0_18
## %bb.16:
	movq	_AUTO_WHITE_BALANCE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_ov9650_set_auto_white_balance
	testl	%eax, %eax
	js	LBB0_18
## %bb.17:
	movq	_AUTO_GAIN_CTRL_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_ov9650_set_auto_gain
LBB0_18:
	addq	$24, %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
	.comm	_EXPOSURE_IDX,8,3               ## @EXPOSURE_IDX
	.comm	_GAIN_IDX,8,3                   ## @GAIN_IDX
	.comm	_RED_BALANCE_IDX,8,3            ## @RED_BALANCE_IDX
	.comm	_BLUE_BALANCE_IDX,8,3           ## @BLUE_BALANCE_IDX
	.comm	_HFLIP_IDX,8,3                  ## @HFLIP_IDX
	.comm	_VFLIP_IDX,8,3                  ## @VFLIP_IDX
	.comm	_AUTO_EXPOSURE_IDX,8,3          ## @AUTO_EXPOSURE_IDX
	.comm	_AUTO_WHITE_BALANCE_IDX,8,3     ## @AUTO_WHITE_BALANCE_IDX
	.comm	_AUTO_GAIN_CTRL_IDX,8,3         ## @AUTO_GAIN_CTRL_IDX
.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
	ldr	x21, [x0, #8]
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	x22, _init_ov9650@GOTPAGE
Lloh4:
	ldr	x22, [x22, _init_ov9650@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x23, #0
Lloh5:
	adrp	x24, _SENSOR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _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	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	ccmp	w20, #0, #0, lt
	b.ne	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	ldp	x1, x2, [x8, #8]
	str	x2, [sp, #8]
	ldr	x9, [x24]
	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:
Lloh7:
	adrp	x8, _EXPOSURE_IDX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXPOSURE_IDX@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_ov9650_set_exposure
	tbnz	w0, #31, LBB0_17
; %bb.9:
Lloh10:
	adrp	x8, _GAIN_IDX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GAIN_IDX@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_ov9650_set_gain
	tbnz	w0, #31, LBB0_17
; %bb.10:
Lloh13:
	adrp	x8, _RED_BALANCE_IDX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RED_BALANCE_IDX@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_ov9650_set_red_balance
	tbnz	w0, #31, LBB0_17
; %bb.11:
Lloh16:
	adrp	x8, _BLUE_BALANCE_IDX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BLUE_BALANCE_IDX@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_ov9650_set_blue_balance
	tbnz	w0, #31, LBB0_17
; %bb.12:
Lloh19:
	adrp	x8, _HFLIP_IDX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HFLIP_IDX@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_ov9650_set_hflip
	tbnz	w0, #31, LBB0_17
; %bb.13:
Lloh22:
	adrp	x8, _VFLIP_IDX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VFLIP_IDX@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_ov9650_set_vflip
	tbnz	w0, #31, LBB0_17
; %bb.14:
Lloh25:
	adrp	x8, _AUTO_EXPOSURE_IDX@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AUTO_EXPOSURE_IDX@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_ov9650_set_auto_exposure
	tbnz	w0, #31, LBB0_17
; %bb.15:
Lloh28:
	adrp	x8, _AUTO_WHITE_BALANCE_IDX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AUTO_WHITE_BALANCE_IDX@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_ov9650_set_auto_white_balance
	tbnz	w0, #31, LBB0_17
; %bb.16:
Lloh31:
	adrp	x8, _AUTO_GAIN_CTRL_IDX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AUTO_GAIN_CTRL_IDX@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
	mov	x0, x19
	bl	_ov9650_set_auto_gain
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_dump_sensor,8,3                ; @dump_sensor
	.comm	_init_ov9650,8,3                ; @init_ov9650
	.comm	_SENSOR,8,3                     ; @SENSOR
	.comm	_EXPOSURE_IDX,8,3               ; @EXPOSURE_IDX
	.comm	_GAIN_IDX,8,3                   ; @GAIN_IDX
	.comm	_RED_BALANCE_IDX,8,3            ; @RED_BALANCE_IDX
	.comm	_BLUE_BALANCE_IDX,8,3           ; @BLUE_BALANCE_IDX
	.comm	_HFLIP_IDX,8,3                  ; @HFLIP_IDX
	.comm	_VFLIP_IDX,8,3                  ; @VFLIP_IDX
	.comm	_AUTO_EXPOSURE_IDX,8,3          ; @AUTO_EXPOSURE_IDX
	.comm	_AUTO_WHITE_BALANCE_IDX,8,3     ; @AUTO_WHITE_BALANCE_IDX
	.comm	_AUTO_GAIN_CTRL_IDX,8,3         ; @AUTO_GAIN_CTRL_IDX
.subsections_via_symbols
