	.file	"extr_sn9c20x.c_ov9650_init_sensor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"sensor id for ov9650 doesn't match (0x%04x)\n"
	.align 8
.LC1:
	.string	"OV9650 sensor initialization failed\n"
	.text
	.p2align 4
	.type	ov9650_init_sensor, @function
ov9650_init_sensor:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, 28
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	call	i2c_r2@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	js	.L1
	mov	esi, DWORD PTR 4[rsp]
	cmp	esi, 32674
	jne	.L9
	mov	edx, 128
	mov	esi, 18
	mov	rdi, rbx
	call	i2c_w1@PLT
	mov	edi, 200
	call	msleep@PLT
	mov	edi, DWORD PTR ov9650_init[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR ov9650_init[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_w1_buf@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	js	.L10
.L4:
	movabs	rax, 30064771073
	mov	QWORD PTR [rbx], rax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_err@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ov9650_init_sensor, .-ov9650_init_sensor
	.comm	ov9650_init,4,4
	.comm	ENODEV,4,4
	.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_sn9c20x.c_ov9650_init_sensor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sensor id for ov9650 doesn't match (0x%04x)\012\000"
	.align	2
.LC1:
	.ascii	"OV9650 sensor initialization failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ov9650_init_sensor, %function
ov9650_init_sensor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r3, .L12
	sub	sp, sp, #12
	mov	r2, sp
	mov	r1, #28
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	i2c_r2
	ldr	r3, [r4]
	cmp	r3, #0
	blt	.L1
	ldr	r1, [sp]
	ldr	r3, .L12+4
	cmp	r1, r3
	bne	.L9
	mov	r2, #128
	mov	r1, #18
	mov	r0, r4
	bl	i2c_w1
	mov	r0, #200
	bl	msleep
	ldr	r3, .L12+8
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_w1_buf
	ldr	r3, [r4]
	cmp	r3, #0
	blt	.L10
.L4:
	mov	r2, #1
	mov	r3, #7
	stm	r4, {r2, r3}
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r0, .L12+12
	bl	pr_err
	ldr	r3, .L12+16
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [r4]
	b	.L1
.L10:
	ldr	r0, .L12+20
	bl	pr_err
	b	.L4
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	32674
	.word	ov9650_init
	.word	.LC0
	.word	ENODEV
	.word	.LC1
	.size	ov9650_init_sensor, .-ov9650_init_sensor
	.comm	ov9650_init,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
