	.file	"extr_sq930x.c_sd_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sd_start, @function
sd_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	bridge_init@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	global_init@PLT
	mov	edi, 100
	call	msleep@PLT
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L16
	mov	edi, DWORD PTR mi0360_start_0[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mi0360_start_0[rip]
	mov	ecx, 8
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	mov	edi, DWORD PTR mt9v111_init_0[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mt9v111_init_0[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	mov	edi, DWORD PTR mt9v111_init_1[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mt9v111_init_1[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	mov	edi, DWORD PTR mt9v111_init_2[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mt9v111_init_2[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	mov	edi, DWORD PTR mt9v111_start_1[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mt9v111_start_1[rip]
	mov	ecx, 5
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	mov	edi, DWORD PTR mt9v111_init_3[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mt9v111_init_3[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	mov	edi, DWORD PTR mt9v111_init_4[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mt9v111_init_4[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
.L10:
	mov	rdi, rbx
	call	send_start@PLT
.L6:
	mov	edi, 1000
	call	msleep@PLT
	mov	eax, DWORD PTR SENSOR_MT9V111[rip]
	cmp	DWORD PTR [rbx], eax
	je	.L17
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR lz24bp_start_0[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR lz24bp_start_0[rip]
	mov	ecx, 8
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	mov	eax, DWORD PTR Creative_live_motion[rip]
	cmp	DWORD PTR 8[rbx], eax
	je	.L7
	mov	edi, DWORD PTR lz24bp_start_1_gen[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR lz24bp_start_1_gen[rip]
	mov	ecx, 5
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
.L8:
	mov	edi, DWORD PTR lz24bp_start_2[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR lz24bp_start_2[rip]
	mov	ecx, 6
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	rdi, rbx
	mov	esi, 1380
	cmp	DWORD PTR [rax+rdx*4], 1
	mov	eax, 784
	cmovne	esi, eax
	call	lz24bp_ppl@PLT
	mov	edi, 10
	call	msleep@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR mi0360_start_0[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mi0360_start_0[rip]
	mov	ecx, 8
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	mov	edi, DWORD PTR mi0360_init_23[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mi0360_init_23[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	mov	edi, DWORD PTR mi0360_init_24[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mi0360_init_24[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	mov	edi, DWORD PTR mi0360_init_25[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mi0360_init_25[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	mov	edi, DWORD PTR mi0360_start_1[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mi0360_start_1[rip]
	mov	ecx, 5
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	mov	edi, DWORD PTR mi0360_start_2[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mi0360_start_2[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	mov	edi, DWORD PTR mi0360_start_3[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mi0360_start_3[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	mov	rdi, rbx
	call	send_start@PLT
	mov	edi, 60
	call	msleep@PLT
	mov	rdi, rbx
	call	send_stop@PLT
	mov	edi, DWORD PTR mi0360_start_4[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR mi0360_start_4[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	i2c_write@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR icx098bq_start_0[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR icx098bq_start_0[rip]
	mov	ecx, 8
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	mov	edi, DWORD PTR icx098bq_start_1[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR icx098bq_start_1[rip]
	mov	ecx, 5
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	mov	edi, DWORD PTR icx098bq_start_2[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR icx098bq_start_2[rip]
	mov	ecx, 6
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	mov	edi, 50
	call	msleep@PLT
	mov	rdi, rbx
	call	send_start@PLT
	mov	edx, 255
	mov	rdi, rbx
	mov	esi, DWORD PTR SQ930_GPIO_EXTRA2[rip]
	or	esi, DWORD PTR SQ930_GPIO_RSTBAR[rip]
	call	gpio_set@PLT
	mov	edi, 70
	call	msleep@PLT
	mov	esi, DWORD PTR SQ930_CTRL_CAP_STOP[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	reg_w@PLT
	mov	edx, 255
	mov	esi, 127
	mov	rdi, rbx
	call	gpio_set@PLT
	mov	rdi, rbx
	call	send_start@PLT
	mov	esi, DWORD PTR SQ930_GPIO_EXTRA2[rip]
	mov	edx, 255
	mov	rdi, rbx
	or	esi, DWORD PTR SQ930_GPIO_RSTBAR[rip]
	call	gpio_set@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR SQ930_GPIO_DFL_LED[rip]
	mov	rdi, rbx
	mov	edx, esi
	call	gpio_set@PLT
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR lz24bp_start_1_clm[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR lz24bp_start_1_clm[rip]
	mov	ecx, 5
	mov	rdi, rbx
	mov	edx, eax
	call	ucbus_write@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	sd_start, .-sd_start
	.comm	mt9v111_start_1,4,4
	.comm	mt9v111_init_4,4,4
	.comm	mt9v111_init_3,4,4
	.comm	mt9v111_init_2,4,4
	.comm	mt9v111_init_1,4,4
	.comm	mt9v111_init_0,4,4
	.comm	mi0360_start_4,4,4
	.comm	mi0360_start_3,4,4
	.comm	mi0360_start_2,4,4
	.comm	mi0360_start_1,4,4
	.comm	mi0360_start_0,4,4
	.comm	mi0360_init_25,4,4
	.comm	mi0360_init_24,4,4
	.comm	mi0360_init_23,4,4
	.comm	lz24bp_start_2,4,4
	.comm	lz24bp_start_1_gen,4,4
	.comm	lz24bp_start_1_clm,4,4
	.comm	lz24bp_start_0,4,4
	.comm	icx098bq_start_2,4,4
	.comm	icx098bq_start_1,4,4
	.comm	icx098bq_start_0,4,4
	.comm	SQ930_GPIO_RSTBAR,4,4
	.comm	SQ930_GPIO_EXTRA2,4,4
	.comm	SQ930_GPIO_DFL_LED,4,4
	.comm	SQ930_CTRL_CAP_STOP,4,4
	.comm	SENSOR_MT9V111,4,4
	.comm	Creative_live_motion,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_sq930x.c_sd_start.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sd_start, %function
sd_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	bridge_init
	mov	r1, #0
	mov	r0, r4
	bl	global_init
	mov	r0, #100
	bl	msleep
	ldr	r3, [r4]
	cmp	r3, #129
	beq	.L2
	cmp	r3, #130
	beq	.L3
	cmp	r3, #128
	beq	.L18
	ldr	r3, .L20
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r3, #8
	mov	r0, r4
	bl	ucbus_write
	ldr	r3, .L20+4
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
	ldr	r3, .L20+8
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
	ldr	r3, .L20+12
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
	ldr	r3, .L20+16
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r3, #5
	mov	r0, r4
	bl	ucbus_write
	ldr	r3, .L20+20
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
	ldr	r3, .L20+24
.L16:
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
.L10:
	mov	r0, r4
	bl	send_start
.L6:
	mov	r0, #1000
	bl	msleep
	ldr	r3, .L20+28
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L19
.L11:
	mov	r0, #1
	str	r0, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L20+32
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r3, #8
	mov	r0, r4
	bl	ucbus_write
	ldr	r3, .L20+36
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	ldrne	r3, .L20+40
	ldreq	r3, .L20+44
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r3, #5
	mov	r0, r4
	bl	ucbus_write
	ldr	r3, .L20+48
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r3, #6
	mov	r0, r4
	bl	ucbus_write
	ldr	r2, [r4]
	ldr	r3, [r4, #8]
	ldr	r1, .L20+52
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r4
	cmp	r3, #1
	movne	r1, #784
	bl	lz24bp_ppl
	mov	r0, #10
	bl	msleep
	b	.L10
.L18:
	ldr	r3, .L20
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r3, #8
	mov	r0, r4
	bl	ucbus_write
	ldr	r3, .L20+56
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
	ldr	r3, .L20+60
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
	ldr	r3, .L20+64
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
	ldr	r3, .L20+68
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r3, #5
	mov	r0, r4
	bl	ucbus_write
	ldr	r3, .L20+72
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
	ldr	r3, .L20+76
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	i2c_write
	mov	r0, r4
	bl	send_start
	mov	r0, #60
	bl	msleep
	mov	r0, r4
	bl	send_stop
	ldr	r3, .L20+80
	b	.L16
.L3:
	ldr	r3, .L20+84
	ldr	r6, .L20+88
	ldr	r7, [r3]
	ldr	r5, .L20+92
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r1, r7
	mov	r2, r0
	mov	r3, #8
	mov	r0, r4
	bl	ucbus_write
	ldr	r3, .L20+96
	ldr	r7, [r3]
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r1, r7
	mov	r2, r0
	mov	r3, #5
	mov	r0, r4
	bl	ucbus_write
	ldr	r3, .L20+100
	ldr	r7, [r3]
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r1, r7
	mov	r2, r0
	mov	r3, #6
	mov	r0, r4
	bl	ucbus_write
	mov	r0, #50
	bl	msleep
	mov	r0, r4
	bl	send_start
	ldr	r3, [r5]
	ldr	r1, [r6]
	mov	r2, #255
	orr	r1, r1, r3
	mov	r0, r4
	bl	gpio_set
	mov	r0, #70
	bl	msleep
	ldr	r3, .L20+104
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	reg_w
	mov	r2, #255
	mov	r1, #127
	mov	r0, r4
	bl	gpio_set
	mov	r0, r4
	bl	send_start
	ldr	r1, [r6]
	ldr	r3, [r5]
	mov	r2, #255
	mov	r0, r4
	orr	r1, r1, r3
	bl	gpio_set
	b	.L6
.L19:
	ldr	r3, .L20+108
	mov	r0, r4
	ldr	r2, [r3]
	mov	r1, r2
	bl	gpio_set
	b	.L11
.L21:
	.align	2
.L20:
	.word	mi0360_start_0
	.word	mt9v111_init_0
	.word	mt9v111_init_1
	.word	mt9v111_init_2
	.word	mt9v111_start_1
	.word	mt9v111_init_3
	.word	mt9v111_init_4
	.word	SENSOR_MT9V111
	.word	lz24bp_start_0
	.word	Creative_live_motion
	.word	lz24bp_start_1_gen
	.word	lz24bp_start_1_clm
	.word	lz24bp_start_2
	.word	1380
	.word	mi0360_init_23
	.word	mi0360_init_24
	.word	mi0360_init_25
	.word	mi0360_start_1
	.word	mi0360_start_2
	.word	mi0360_start_3
	.word	mi0360_start_4
	.word	icx098bq_start_0
	.word	SQ930_GPIO_EXTRA2
	.word	SQ930_GPIO_RSTBAR
	.word	icx098bq_start_1
	.word	icx098bq_start_2
	.word	SQ930_CTRL_CAP_STOP
	.word	SQ930_GPIO_DFL_LED
	.size	sd_start, .-sd_start
	.comm	mt9v111_start_1,4,4
	.comm	mt9v111_init_4,4,4
	.comm	mt9v111_init_3,4,4
	.comm	mt9v111_init_2,4,4
	.comm	mt9v111_init_1,4,4
	.comm	mt9v111_init_0,4,4
	.comm	mi0360_start_4,4,4
	.comm	mi0360_start_3,4,4
	.comm	mi0360_start_2,4,4
	.comm	mi0360_start_1,4,4
	.comm	mi0360_start_0,4,4
	.comm	mi0360_init_25,4,4
	.comm	mi0360_init_24,4,4
	.comm	mi0360_init_23,4,4
	.comm	lz24bp_start_2,4,4
	.comm	lz24bp_start_1_gen,4,4
	.comm	lz24bp_start_1_clm,4,4
	.comm	lz24bp_start_0,4,4
	.comm	icx098bq_start_2,4,4
	.comm	icx098bq_start_1,4,4
	.comm	icx098bq_start_0,4,4
	.comm	SQ930_GPIO_RSTBAR,4,4
	.comm	SQ930_GPIO_EXTRA2,4,4
	.comm	SQ930_GPIO_DFL_LED,4,4
	.comm	SQ930_CTRL_CAP_STOP,4,4
	.comm	SENSOR_MT9V111,4,4
	.comm	Creative_live_motion,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
