	.file	"extr_m5602_mt9m111.c_mt9m111_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Configuring camera for VGA mode\n"
	.align 8
.LC1:
	.string	"Configuring camera for QVGA mode\n"
	.text
	.p2align 4
	.globl	mt9m111_start
	.type	mt9m111_start, @function
mt9m111_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rdx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	r13, rsp
	lea	rax, [rax+rdx*8]
	mov	r15d, DWORD PTR [rax]
	mov	r14d, DWORD PTR 4[rax]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR [rsp], rdx
	mov	rdx, QWORD PTR 24[rax]
	mov	ecx, 2
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rdx
	mov	rsi, QWORD PTR 8[rax]
	mov	rdx, r13
	call	m5602_write_sensor@PLT
	mov	r12d, eax
.L4:
	add	rbx, 1
.L2:
	mov	rdi, QWORD PTR start_mt9m111[rip]
	call	ARRAY_SIZE@PLT
	test	r12d, r12d
	jne	.L18
	cmp	eax, ebx
	jle	.L18
	mov	rax, QWORD PTR start_mt9m111[rip]
	mov	rcx, QWORD PTR BRIDGE[rip]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	rdx, QWORD PTR 16[rax]
	cmp	QWORD PTR [rax], rcx
	jne	.L3
	mov	rsi, QWORD PTR 8[rax]
	mov	rdi, rbp
	call	m5602_write_bridge@PLT
	mov	r12d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	test	r12d, r12d
	js	.L1
	mov	eax, r14d
	mov	rsi, QWORD PTR M5602_XB_VSYNC_PARA[rip]
	mov	rdi, rbp
	movzx	edx, ah
	call	m5602_write_bridge@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rsi, QWORD PTR M5602_XB_VSYNC_PARA[rip]
	movzx	edx, r14b
	mov	rdi, rbp
	call	m5602_write_bridge@PLT
	mov	r12d, eax
	mov	ebx, eax
	test	eax, eax
	js	.L1
	jne	.L10
.L8:
	mov	rsi, QWORD PTR M5602_XB_VSYNC_PARA[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	m5602_write_bridge@PLT
	test	ebx, ebx
	mov	ebx, 1
	setle	dl
	test	eax, eax
	mov	r12d, eax
	sete	al
	test	dl, al
	jne	.L8
	test	r12d, r12d
	js	.L1
.L10:
	mov	rsi, QWORD PTR M5602_XB_SIG_INI[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	m5602_write_bridge@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rsi, QWORD PTR M5602_XB_SIG_INI[rip]
	mov	edx, 2
	mov	rdi, rbp
	call	m5602_write_bridge@PLT
	mov	ebx, eax
	mov	r12d, eax
	test	eax, eax
	js	.L1
	jne	.L13
.L11:
	mov	rsi, QWORD PTR M5602_XB_HSYNC_PARA[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	m5602_write_bridge@PLT
	test	ebx, ebx
	mov	ebx, 1
	setle	dl
	test	eax, eax
	mov	r12d, eax
	sete	al
	test	dl, al
	jne	.L11
	test	r12d, r12d
	js	.L1
.L13:
	mov	rsi, QWORD PTR M5602_XB_HSYNC_PARA[rip]
	lea	ebx, -1[r15]
	mov	rdi, rbp
	movzx	edx, bh
	call	m5602_write_bridge@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rsi, QWORD PTR M5602_XB_HSYNC_PARA[rip]
	movzx	edx, bl
	mov	rdi, rbp
	call	m5602_write_bridge@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rsi, QWORD PTR M5602_XB_SIG_INI[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	m5602_write_bridge@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	cmp	ebx, 320
	je	.L14
	cmp	ebx, 640
	jne	.L1
	mov	esi, DWORD PTR D_CONF[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	gspca_dbg@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR D_CONF[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	call	gspca_dbg@PLT
	jmp	.L1
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mt9m111_start, .-mt9m111_start
	.comm	start_mt9m111,8,8
	.comm	M5602_XB_VSYNC_PARA,8,8
	.comm	M5602_XB_SIG_INI,8,8
	.comm	M5602_XB_HSYNC_PARA,8,8
	.comm	D_CONF,4,4
	.comm	BRIDGE,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_mt9m111.c_mt9m111_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Configuring camera for VGA mode\012\000"
	.align	2
.LC1:
	.ascii	"Configuring camera for QVGA mode\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mt9m111_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt9m111_start, %function
mt9m111_start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r0, {r2, r3}
	mov	r10, #0
	ldr	r1, .L27
	sub	sp, sp, #16
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	add	r1, r3, r2, lsl #3
	mov	r6, r0
	mov	r4, r10
	ldr	r8, [r1, #4]
	ldr	r9, [r3, r2, lsl #3]
	ldr	r5, .L27+4
	ldr	r7, .L27+8
	b	.L2
.L3:
	ldr	r1, [r3, #12]
	str	r2, [sp, #4]
	str	r1, [sp, #8]
	ldr	r1, [r3, #4]
	mov	r0, r6
	mov	r3, #2
	add	r2, sp, #4
	bl	m5602_write_sensor
	mov	r10, r0
.L4:
	add	r4, r4, #1
.L2:
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	cmp	r0, r4
	movle	r3, #0
	movgt	r3, #1
	cmp	r10, #0
	movne	r3, #0
	cmp	r3, #0
	beq	.L25
	ldr	r3, [r5]
	ldr	r1, [r7]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r0, [r3]
	ldr	r2, [r3, #8]
	cmp	r0, r1
	bne	.L3
	mov	r0, r6
	ldr	r1, [r3, #4]
	bl	m5602_write_bridge
	mov	r10, r0
	b	.L4
.L25:
	cmp	r10, #0
	blt	.L1
	ldr	r5, .L27+12
	asr	r2, r8, #8
	mov	r0, r6
	ldr	r1, [r5]
	and	r2, r2, #255
	bl	m5602_write_bridge
	subs	r10, r0, #0
	blt	.L1
	mov	r0, r6
	ldr	r1, [r5]
	and	r2, r8, #255
	bl	m5602_write_bridge
	subs	r4, r0, #0
	blt	.L16
	bne	.L9
.L7:
	mov	r2, #0
	mov	r0, r6
	ldr	r1, [r5]
	bl	m5602_write_bridge
	cmp	r4, #0
	cmple	r0, #0
	moveq	r4, #1
	movne	r4, #0
	cmp	r4, #0
	mov	r10, r0
	mov	r4, #1
	bne	.L7
	cmp	r0, #0
	blt	.L1
.L9:
	ldr	r5, .L27+16
	mov	r2, #0
	mov	r0, r6
	ldr	r1, [r5]
	bl	m5602_write_bridge
	subs	r10, r0, #0
	blt	.L1
	mov	r2, #2
	mov	r0, r6
	ldr	r1, [r5]
	bl	m5602_write_bridge
	subs	r4, r0, #0
	blt	.L16
	ldr	r7, .L27+20
	bne	.L12
.L10:
	mov	r2, #0
	mov	r0, r6
	ldr	r1, [r7]
	bl	m5602_write_bridge
	cmp	r4, #0
	cmple	r0, #0
	moveq	r4, #1
	movne	r4, #0
	cmp	r4, #0
	mov	r10, r0
	mov	r4, #1
	bne	.L10
	cmp	r0, #0
	blt	.L1
.L12:
	sub	r9, r9, #1
	asr	r2, r9, #8
	mov	r0, r6
	ldr	r1, [r7]
	and	r2, r2, #255
	bl	m5602_write_bridge
	subs	r10, r0, #0
	blt	.L1
	mov	r0, r6
	ldr	r1, [r7]
	and	r2, r9, #255
	bl	m5602_write_bridge
	subs	r10, r0, #0
	blt	.L1
	mov	r2, #0
	mov	r0, r6
	ldr	r1, [r5]
	bl	m5602_write_bridge
	subs	r10, r0, #0
	blt	.L1
	cmp	r9, #320
	beq	.L13
	cmp	r9, #640
	bne	.L1
	ldr	r3, .L27+24
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L27+28
	bl	gspca_dbg
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r10, r4
	b	.L1
.L13:
	ldr	r3, .L27+24
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L27+32
	bl	gspca_dbg
	b	.L1
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC2
	.word	start_mt9m111
	.word	BRIDGE
	.word	M5602_XB_VSYNC_PARA
	.word	M5602_XB_SIG_INI
	.word	M5602_XB_HSYNC_PARA
	.word	D_CONF
	.word	.LC0
	.word	.LC1
	.size	mt9m111_start, .-mt9m111_start
	.comm	start_mt9m111,4,4
	.comm	M5602_XB_VSYNC_PARA,4,4
	.comm	M5602_XB_SIG_INI,4,4
	.comm	M5602_XB_HSYNC_PARA,4,4
	.comm	D_CONF,4,4
	.comm	BRIDGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
