	.file	"extr_m5602_ov9650.c_ov9650_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ov9650_init
	.type	ov9650_init, @function
ov9650_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR dump_sensor[rip], 0
	jne	.L15
.L2:
	xor	ebx, ebx
	xor	ebp, ebp
	mov	r13, rsp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r12
	call	m5602_write_bridge@PLT
	mov	ebp, eax
.L5:
	add	rbx, 1
.L3:
	mov	rdi, QWORD PTR init_ov9650[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L9
	test	ebp, ebp
	jne	.L9
	mov	rax, QWORD PTR init_ov9650[rip]
	mov	rcx, QWORD PTR SENSOR[rip]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	rdx, QWORD PTR 16[rax]
	mov	rsi, QWORD PTR 8[rax]
	mov	QWORD PTR [rsp], rdx
	cmp	QWORD PTR [rax], rcx
	jne	.L4
	mov	ecx, 1
	mov	rdx, r13
	mov	rdi, r12
	call	m5602_write_sensor@PLT
	mov	ebp, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	ov9650_dump_registers@PLT
	jmp	.L2
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ov9650_init, .-ov9650_init
	.comm	init_ov9650,8,8
	.comm	dump_sensor,8,8
	.comm	SENSOR,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_m5602_ov9650.c_ov9650_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ov9650_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ov9650_init, %function
ov9650_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L16
	ldr	r2, .L16+4
	ldr	r3, [r3]
	sub	sp, sp, #8
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r7, r0
	bne	.L13
.L2:
	mov	r4, #0
	ldr	r6, .L16+8
	mov	r5, r4
	ldr	r8, .L16+12
	b	.L3
.L4:
	mov	r0, r7
	bl	m5602_write_bridge
	mov	r4, r0
.L5:
	add	r5, r5, #1
.L3:
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	cmp	r0, r5
	movle	r0, #0
	movgt	r0, #1
	cmp	r4, #0
	movne	r0, #0
	cmp	r0, #0
	beq	.L14
	ldr	r3, [r6]
	ldr	r0, [r8]
	ldr	r3, [r3, r5, lsl #2]
	ldmib	r3, {r1, r2}
	str	r2, [sp]
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L4
	mov	r3, #1
	mov	r2, sp
	mov	r0, r7
	bl	m5602_write_sensor
	mov	r4, r0
	b	.L5
.L14:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	bl	ov9650_dump_registers
	b	.L2
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	dump_sensor
	.word	.LC0
	.word	init_ov9650
	.word	SENSOR
	.size	ov9650_init, .-ov9650_init
	.comm	init_ov9650,4,4
	.comm	dump_sensor,4,4
	.comm	SENSOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
