	.file	"extr_gl860-mi2020.c_mi2020_init_post_alt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\214'\007"
.LC1:
	.string	"\220\005\004"
.LC2:
	.string	"\214'\t"
.LC3:
	.string	"\220\004\002"
.LC4:
	.string	"\220\006@"
.LC5:
	.string	"\220\004\260"
	.text
	.p2align 4
	.type	mi2020_init_post_alt, @function
mi2020_init_post_alt:
.LFB0:
	.cfi_startproc
	endbr64
	movabs	rsi, 17179869328
	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
	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
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	rdx, QWORD PTR [rdi]
	mov	r13, QWORD PTR 64[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR [rdi]
	xor	edx, edx
	mov	DWORD PTR 40[rsp], 0
	cmp	QWORD PTR 40[rdi], 0
	mov	QWORD PTR 68[rsp], rsi
	setg	dl
	mov	DWORD PTR 4[rdi], -1
	xor	edx, eax
	mov	QWORD PTR 8[rsp], 144
	setg	r15b
	setg	dl
	xor	ecx, ecx
	cmp	QWORD PTR 48[rdi], 0
	setg	cl
	xor	r12d, r12d
	mov	QWORD PTR 32[rsp], 144
	movzx	r15d, r15b
	xor	ecx, eax
	mov	rax, QWORD PTR 56[rdi]
	movabs	rcx, 717259538572
	mov	QWORD PTR 56[rsp], 144
	setg	r12b
	mov	QWORD PTR 20[rsp], rcx
	xor	r14d, r14d
	mov	QWORD PTR 44[rsp], rcx
	test	rax, rax
	mov	ecx, 192
	mov	eax, 128
	cmovg	eax, ecx
	setg	r14b
	mov	DWORD PTR 64[rsp], 0
	mov	QWORD PTR 80[rsp], 144
	mov	QWORD PTR 92[rsp], 144
	mov	DWORD PTR 100[rsp], 0
	mov	DWORD PTR 16[rsp], eax
	mov	DWORD PTR 28[rsp], 157
	mov	DWORD PTR 52[rsp], 158
	test	r13, r13
	je	.L20
	cmp	r13, 1
	je	.L23
	cmp	r13, 2
	jne	.L4
	mov	DWORD PTR 40[rsp], 32
	mov	DWORD PTR 64[rsp], 32
	.p2align 4,,10
	.p2align 3
.L20:
	mov	DWORD PTR 100[rsp], 23
.L4:
	movzx	edx, dl
	mov	eax, 1
	mov	edi, 200
	sub	eax, edx
	mov	edx, 55
	sub	rdx, r12
	lea	edx, [rax+rdx*2]
	mov	DWORD PTR 76[rsp], edx
	mov	edx, 19
	sub	rdx, r12
	lea	eax, [rax+rdx*2]
	mov	DWORD PTR 88[rsp], eax
	call	msleep@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	xor	r9d, r9d
	xor	r8d, r8d
	push	0
	.cfi_def_cfa_offset 192
	mov	ecx, 1
	mov	edx, 5
	mov	rdi, rbp
	mov	esi, 64
	xor	eax, eax
	call	ctrl_out@PLT
	mov	edi, 2
	call	msleep@PLT
	mov	rdi, rbp
	call	common@PLT
	mov	edi, 142
	call	msleep@PLT
	xor	r9d, r9d
	mov	r8d, 16
	xor	eax, eax
	mov	ecx, 16
	mov	edx, 1
	mov	esi, 64
	mov	rdi, rbp
	mov	QWORD PTR [rsp], 0
	call	ctrl_out@PLT
	xor	r9d, r9d
	mov	r8d, 193
	xor	eax, eax
	mov	ecx, 3
	mov	edx, 1
	mov	esi, 64
	mov	rdi, rbp
	mov	QWORD PTR [rsp], 0
	call	ctrl_out@PLT
	xor	r9d, r9d
	mov	r8d, 194
	xor	eax, eax
	mov	ecx, 66
	mov	edx, 1
	mov	esi, 64
	mov	rdi, rbp
	mov	QWORD PTR [rsp], 0
	call	ctrl_out@PLT
	xor	r9d, r9d
	mov	r8d, 13
	xor	eax, eax
	mov	ecx, 106
	mov	edx, 1
	mov	esi, 64
	mov	rdi, rbp
	mov	QWORD PTR [rsp], 0
	call	ctrl_out@PLT
	pop	r9
	.cfi_def_cfa_offset 184
	pop	r10
	.cfi_def_cfa_offset 176
	cmp	rbx, 129
	jbe	.L24
	lea	rax, -130[rbx]
	cmp	rax, 1
	ja	.L8
	cmp	rbx, 131
	je	.L25
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_1600[rip]
	.cfi_def_cfa_offset 192
	xor	ecx, ecx
	mov	rdi, rbp
	mov	r9d, 12
	mov	r8d, 512
	mov	edx, 3
	xor	eax, eax
	mov	esi, 64
	call	ctrl_out@PLT
	lea	rax, .LC0[rip]
	mov	r9d, 3
	mov	r8d, 51
	mov	QWORD PTR [rsp], rax
	mov	ecx, 31232
	mov	rdi, rbp
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	lea	rax, .LC4[rip]
	mov	r9d, 3
	mov	r8d, 51
	mov	QWORD PTR [rsp], rax
	mov	ecx, 31232
	mov	rdi, rbp
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	lea	rax, .LC2[rip]
	mov	r9d, 3
	mov	r8d, 51
	mov	QWORD PTR [rsp], rax
	mov	ecx, 31232
	mov	rdi, rbp
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	lea	rax, .LC5[rip]
.L21:
	mov	QWORD PTR [rsp], rax
	mov	r8d, 51
	mov	rdi, rbp
	xor	eax, eax
	mov	ecx, 31232
	mov	edx, 3
	mov	esi, 64
	mov	r9d, 3
	call	ctrl_out@PLT
	mov	edi, DWORD PTR tbl_init_post_alt_big[rip]
	pop	r9
	.cfi_def_cfa_offset 184
	pop	r10
	.cfi_def_cfa_offset 176
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR tbl_init_post_alt_big[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	fetch_idxdata@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	xor	r9d, r9d
	mov	rdi, rbp
	push	0
	.cfi_def_cfa_offset 192
	mov	r8d, 16
	mov	ecx, 1
	xor	eax, eax
	mov	edx, 1
	mov	esi, 64
	call	ctrl_out@PLT
	xor	r9d, r9d
	mov	r8d, 193
	xor	ecx, ecx
	mov	edx, 1
	mov	esi, 64
	mov	rdi, rbp
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	ctrl_out@PLT
	xor	r9d, r9d
	mov	r8d, 194
	xor	eax, eax
	mov	ecx, 65
	mov	edx, 1
	mov	esi, 64
	mov	rdi, rbp
	mov	QWORD PTR [rsp], 0
	call	ctrl_out@PLT
	mov	edi, 1850
	call	msleep@PLT
	pop	r11
	.cfi_def_cfa_offset 184
	pop	rax
	.cfi_def_cfa_offset 176
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	cmp	rbx, 127
	ja	.L26
.L8:
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	xor	r9d, r9d
	xor	r8d, r8d
	mov	ecx, 64
	push	0
	.cfi_def_cfa_offset 192
	mov	edx, 1
	mov	esi, 64
	mov	rdi, rbp
	xor	eax, eax
	call	ctrl_out@PLT
	mov	edi, 40
	call	msleep@PLT
	pop	rax
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_freq1[rip]
	.cfi_def_cfa_offset 192
	mov	rdi, rbp
	mov	r9d, 3
	mov	r8d, 51
	mov	ecx, 31232
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	pop	rdx
	.cfi_def_cfa_offset 184
	mov	r9d, 3
	mov	rdi, rbp
	lea	rax, 16[rsp]
	mov	r8d, 51
	mov	ecx, 31232
	mov	edx, 3
	push	rax
	.cfi_def_cfa_offset 192
	mov	esi, 64
	xor	eax, eax
	call	ctrl_out@PLT
	mov	edi, 33
	call	msleep@PLT
	pop	rcx
	.cfi_def_cfa_offset 184
	mov	r9d, 3
	mov	rdi, rbp
	lea	rax, 28[rsp]
	mov	r8d, 51
	mov	ecx, 31232
	mov	edx, 3
	push	rax
	.cfi_def_cfa_offset 192
	mov	esi, 64
	xor	eax, eax
	call	ctrl_out@PLT
	pop	rsi
	.cfi_def_cfa_offset 184
	mov	r9d, 3
	mov	rdi, rbp
	lea	rax, 40[rsp]
	mov	r8d, 51
	mov	ecx, 31232
	mov	edx, 3
	push	rax
	.cfi_def_cfa_offset 192
	mov	esi, 64
	xor	eax, eax
	call	ctrl_out@PLT
	pop	rdi
	.cfi_def_cfa_offset 184
	mov	r9d, 3
	mov	rdi, rbp
	lea	rax, 52[rsp]
	mov	r8d, 51
	mov	ecx, 31232
	mov	edx, 3
	push	rax
	.cfi_def_cfa_offset 192
	mov	esi, 64
	xor	eax, eax
	call	ctrl_out@PLT
	pop	r8
	.cfi_def_cfa_offset 184
	mov	r9d, 3
	mov	rdi, rbp
	lea	rax, 64[rsp]
	mov	r8d, 51
	mov	ecx, 31232
	mov	edx, 3
	push	rax
	.cfi_def_cfa_offset 192
	mov	esi, 64
	xor	eax, eax
	call	ctrl_out@PLT
	pop	r9
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_wbal1[rip]
	.cfi_def_cfa_offset 192
	mov	rdi, rbp
	mov	r9d, 3
	mov	r8d, 51
	mov	ecx, 31232
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	pop	r10
	.cfi_def_cfa_offset 184
	mov	r9d, 3
	mov	rdi, rbp
	lea	rax, 100[rsp]
	mov	r8d, 51
	mov	ecx, 31232
	mov	edx, 3
	push	rax
	.cfi_def_cfa_offset 192
	mov	esi, 64
	xor	eax, eax
	call	ctrl_out@PLT
	pop	r11
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_multi5[rip]
	.cfi_def_cfa_offset 192
	mov	rdi, rbp
	mov	r9d, 3
	mov	r8d, 51
	mov	ecx, 31232
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	pop	rax
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_multi6[rip]
	.cfi_def_cfa_offset 192
	mov	rdi, rbp
	mov	r9d, 3
	mov	r8d, 51
	mov	ecx, 31232
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	mov	edi, 7
	call	msleep@PLT
	pop	rax
	.cfi_def_cfa_offset 184
	mov	r9d, 1
	xor	r8d, r8d
	lea	rax, 12[rsp]
	xor	ecx, ecx
	mov	edx, 2
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 192
	mov	esi, 192
	call	ctrl_in@PLT
	mov	edi, DWORD PTR tbl_init_post_alt_3B[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR tbl_init_post_alt_3B[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	fetch_idxdata@PLT
	pop	rax
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_hvflip1[rip]
	.cfi_def_cfa_offset 192
	mov	rdi, rbp
	mov	ecx, 31232
	mov	edx, 3
	xor	eax, eax
	add	rbx, -128
	mov	r9d, 3
	mov	r8d, 51
	mov	esi, 64
	call	ctrl_out@PLT
	pop	rax
	.cfi_def_cfa_offset 184
	mov	r9d, 3
	mov	rdi, rbp
	lea	rax, 76[rsp]
	mov	r8d, 51
	mov	ecx, 31232
	mov	edx, 3
	push	rax
	.cfi_def_cfa_offset 192
	mov	esi, 64
	xor	eax, eax
	call	ctrl_out@PLT
	pop	rax
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_hvflip3[rip]
	.cfi_def_cfa_offset 192
	mov	rdi, rbp
	mov	r9d, 3
	mov	r8d, 51
	mov	ecx, 31232
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	pop	rdx
	.cfi_def_cfa_offset 184
	mov	r9d, 3
	mov	rdi, rbp
	lea	rax, 88[rsp]
	mov	r8d, 51
	mov	ecx, 31232
	mov	edx, 3
	push	rax
	.cfi_def_cfa_offset 192
	mov	esi, 64
	xor	eax, eax
	call	ctrl_out@PLT
	pop	rcx
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_hvflip5[rip]
	.cfi_def_cfa_offset 192
	mov	rdi, rbp
	mov	r9d, 3
	mov	r8d, 51
	mov	ecx, 31232
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	pop	rsi
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_hvflip6[rip]
	.cfi_def_cfa_offset 192
	mov	rdi, rbp
	mov	r8d, 51
	mov	r9d, 3
	mov	ecx, 31232
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	mov	edi, 250
	call	msleep@PLT
	pop	rdi
	.cfi_def_cfa_offset 184
	pop	r8
	.cfi_def_cfa_offset 176
	cmp	rbx, 1
	jbe	.L27
	mov	edi, DWORD PTR tbl_middle_hvflip_big[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR tbl_middle_hvflip_big[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	fetch_idxdata@PLT
.L15:
	mov	edi, DWORD PTR tbl_end_hvflip[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR tbl_end_hvflip[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	fetch_idxdata@PLT
	mov	DWORD PTR 4[rbp], 0
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], r15
	mov	QWORD PTR 16[rbp], r12
	mov	QWORD PTR 24[rbp], r14
	mov	QWORD PTR 32[rbp], r13
	call	mi2020_camera_settings@PLT
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	edi, DWORD PTR tbl_middle_hvflip_low[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR tbl_middle_hvflip_low[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	fetch_idxdata@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L26:
	cmp	rbx, 128
	je	.L10
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_640[rip]
	.cfi_def_cfa_offset 192
	xor	ecx, ecx
	mov	rdi, rbp
	mov	r8d, 512
	mov	r9d, 12
	mov	edx, 3
	xor	eax, eax
	mov	esi, 64
	call	ctrl_out@PLT
	mov	edi, DWORD PTR tbl_init_post_alt_low1[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR tbl_init_post_alt_low1[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	fetch_idxdata@PLT
	pop	rdi
	.cfi_def_cfa_offset 184
	pop	r8
	.cfi_def_cfa_offset 176
.L11:
	mov	edi, DWORD PTR tbl_init_post_alt_low3[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR tbl_init_post_alt_low3[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	fetch_idxdata@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	xor	r9d, r9d
	mov	rdi, rbp
	push	0
	.cfi_def_cfa_offset 192
	mov	r8d, 16
	mov	ecx, 16
	xor	eax, eax
	mov	edx, 1
	mov	esi, 64
	call	ctrl_out@PLT
	xor	r9d, r9d
	mov	r8d, 193
	xor	ecx, ecx
	mov	edx, 1
	mov	esi, 64
	mov	rdi, rbp
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	ctrl_out@PLT
	mov	edx, 1
	xor	r9d, r9d
	mov	rdi, rbp
	mov	r8d, 194
	mov	ecx, 65
	mov	esi, 64
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	ctrl_out@PLT
	mov	edi, 120
	call	msleep@PLT
	pop	rax
	.cfi_def_cfa_offset 184
	pop	rdx
	.cfi_def_cfa_offset 176
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	DWORD PTR 100[rsp], 53
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	sub	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_1280[rip]
	.cfi_def_cfa_offset 192
	xor	ecx, ecx
	mov	rdi, rbp
	mov	r9d, 12
	mov	r8d, 512
	mov	edx, 3
	xor	eax, eax
	mov	esi, 64
	call	ctrl_out@PLT
	lea	rax, .LC0[rip]
	mov	r9d, 3
	mov	r8d, 51
	mov	QWORD PTR [rsp], rax
	mov	ecx, 31232
	mov	rdi, rbp
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	lea	rax, .LC1[rip]
	mov	r9d, 3
	mov	r8d, 51
	mov	QWORD PTR [rsp], rax
	mov	ecx, 31232
	mov	rdi, rbp
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	lea	rax, .LC2[rip]
	mov	r9d, 3
	mov	r8d, 51
	mov	QWORD PTR [rsp], rax
	mov	ecx, 31232
	mov	rdi, rbp
	xor	eax, eax
	mov	edx, 3
	mov	esi, 64
	call	ctrl_out@PLT
	lea	rax, .LC3[rip]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	push	QWORD PTR dat_800[rip]
	.cfi_def_cfa_offset 192
	xor	ecx, ecx
	mov	rdi, rbp
	mov	r9d, 12
	mov	r8d, 512
	mov	edx, 3
	xor	eax, eax
	mov	esi, 64
	call	ctrl_out@PLT
	mov	edi, DWORD PTR tbl_init_post_alt_low1[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR tbl_init_post_alt_low1[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	fetch_idxdata@PLT
	mov	edi, DWORD PTR tbl_init_post_alt_low2[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR tbl_init_post_alt_low2[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	fetch_idxdata@PLT
	pop	rcx
	.cfi_def_cfa_offset 184
	pop	rsi
	.cfi_def_cfa_offset 176
	jmp	.L11
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mi2020_init_post_alt, .-mi2020_init_post_alt
	.comm	tbl_middle_hvflip_low,4,4
	.comm	tbl_middle_hvflip_big,4,4
	.comm	tbl_init_post_alt_low3,4,4
	.comm	tbl_init_post_alt_low2,4,4
	.comm	tbl_init_post_alt_low1,4,4
	.comm	tbl_init_post_alt_big,4,4
	.comm	tbl_init_post_alt_3B,4,4
	.comm	tbl_end_hvflip,4,4
	.comm	dat_wbal1,8,8
	.comm	dat_multi6,8,8
	.comm	dat_multi5,8,8
	.comm	dat_hvflip6,8,8
	.comm	dat_hvflip5,8,8
	.comm	dat_hvflip3,8,8
	.comm	dat_hvflip1,8,8
	.comm	dat_freq1,8,8
	.comm	dat_800,8,8
	.comm	dat_640,8,8
	.comm	dat_1600,8,8
	.comm	dat_1280,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_gl860-mi2020.c_mi2020_init_post_alt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC4:
	.ascii	"\214'\007\000"
	.align	2
.LC5:
	.ascii	"\220\005\004\000"
	.align	2
.LC6:
	.ascii	"\214'\011\000"
	.align	2
.LC7:
	.ascii	"\220\004\002\000"
	.align	2
.LC8:
	.ascii	"\220\006@\000"
	.align	2
.LC9:
	.ascii	"\220\004\260\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mi2020_init_post_alt, %function
mi2020_init_post_alt:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	ldr	r3, [r0, #24]
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r3, #0
	movle	r3, r2
	eorgt	r3, r2, #1
	ldr	r7, [r0, #28]
	mov	r9, #0
	cmp	r7, #0
	movle	r7, r2
	eorgt	r7, r2, #1
	cmp	r3, #0
	movle	r3, #0
	movgt	r3, #1
	ldr	r1, [r0, #32]
	sub	sp, sp, #132
	cmp	r7, #0
	mov	r4, r0
	str	r3, [sp, #16]
	movle	r7, #0
	ldr	r3, .L28
	movgt	r7, #1
	cmp	r1, #0
	ldr	r1, [r0, #4]
	ldr	r0, .L28+4
	add	ip, sp, #28
	ldr	r0, [r0]
	str	r0, [sp, #124]
	mov	r0,#0
	ldr	r8, [r1, r2, lsl #2]
	add	r10, r3, #12
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldm	r10, {r0, r1, r2}
	add	ip, sp, #40
	stm	ip, {r0, r1, r2}
	add	ip, sp, #64
	stm	ip, {r0, r1, r2}
	movle	r2, r9
	movgt	r2, #1
	mov	fp, #144
	str	r2, [sp, #20]
	add	ip, sp, #88
	add	r2, r3, #24
	add	r3, r3, #36
	ldr	r10, [r4, #36]
	str	r9, [sp, #56]
	str	r9, [sp, #60]
	str	r9, [sp, #80]
	str	fp, [sp, #52]
	str	fp, [sp, #76]
	str	r9, [sp, #84]
	ldm	r2, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldm	r3, {r0, r1, r2}
	mov	r3, #158
	movle	r5, #128
	movgt	r5, #192
	cmp	r10, r9
	mvn	r6, #0
	mov	lr, #157
	str	r3, [sp, #72]
	moveq	r3, #23
	str	r9, [sp, #120]
	str	r9, [sp, #116]
	add	r9, sp, #100
	stm	r9, {r0, r1, r2}
	str	fp, [sp, #112]
	str	r6, [r4, #4]
	str	r5, [sp, #36]
	str	lr, [sp, #48]
	streq	r3, [sp, #120]
	beq	.L4
	cmp	r10, #1
	moveq	r3, #53
	streq	r3, [sp, #120]
	beq	.L4
	cmp	r10, #2
	moveq	r3, #32
	moveq	r2, #23
	streq	r3, [sp, #60]
	streq	r3, [sp, #84]
	streq	r2, [sp, #120]
.L4:
	mov	r5, #0
	ldr	r3, [sp, #16]
	rsb	r1, r7, #19
	rsb	r3, r3, #1
	rsb	r2, r7, #55
	add	r2, r3, r2, lsl #1
	mov	r0, #200
	add	r3, r3, r1, lsl #1
	str	r2, [sp, #96]
	str	r3, [sp, #108]
	bl	msleep
	mov	r3, #1
	mov	r2, #5
	mov	r1, #64
	mov	r0, r4
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r5, [sp]
	bl	ctrl_out
	mov	r0, #2
	bl	msleep
	mov	r0, r4
	bl	common
	mov	r0, #142
	bl	msleep
	mov	r3, #16
	mov	r2, #1
	mov	r1, #64
	stm	sp, {r3, r5}
	mov	r0, r4
	str	r5, [sp, #8]
	bl	ctrl_out
	mov	r3, #193
	mov	r2, #1
	mov	r1, #64
	stm	sp, {r3, r5}
	mov	r0, r4
	mov	r3, #3
	str	r5, [sp, #8]
	bl	ctrl_out
	mov	r3, #194
	mov	r2, #1
	mov	r1, #64
	stm	sp, {r3, r5}
	mov	r0, r4
	mov	r3, #66
	str	r5, [sp, #8]
	bl	ctrl_out
	mov	r3, #13
	mov	r2, #1
	stm	sp, {r3, r5}
	mov	r1, #64
	mov	r3, #106
	mov	r0, r4
	str	r5, [sp, #8]
	bl	ctrl_out
	cmp	r8, #129
	bls	.L24
	sub	r3, r8, #130
	cmp	r3, #1
	bhi	.L8
	cmp	r8, #131
	mov	r0, #12
	mov	r2, #512
	mov	r6, #3
	mov	fp, #51
	beq	.L25
	ldr	r1, .L28+8
	mov	r3, r5
	ldr	r1, [r1]
	str	r2, [sp]
	stmib	sp, {r0, r1}
	mov	r2, r6
	mov	r1, #64
	mov	r0, r4
	bl	ctrl_out
	ldr	r3, .L28+12
	mov	r2, r6
	mov	r1, #64
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	str	r6, [sp, #4]
	str	fp, [sp]
	bl	ctrl_out
	ldr	r3, .L28+16
	mov	r2, r6
	mov	r1, #64
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	str	r6, [sp, #4]
	str	fp, [sp]
	bl	ctrl_out
	ldr	r3, .L28+20
	mov	r2, r6
	str	r3, [sp, #8]
	mov	r1, #64
	mov	r3, #31232
	mov	r0, r4
	str	r6, [sp, #4]
	str	fp, [sp]
	bl	ctrl_out
	ldr	r3, .L28+24
.L21:
	mov	r2, r6
	mov	r1, #64
	str	r6, [sp, #4]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	str	fp, [sp]
	bl	ctrl_out
	ldr	r3, .L28+28
	mov	r5, #0
	ldr	r6, [r3]
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	fetch_idxdata
	mov	r3, #1
	mov	r2, #16
	mov	r1, #64
	stm	sp, {r2, r5}
	mov	r0, r4
	mov	r2, r3
	str	r5, [sp, #8]
	bl	ctrl_out
	mov	r2, #193
	mov	r3, r5
	str	r2, [sp]
	mov	r1, #64
	mov	r2, #1
	mov	r0, r4
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	bl	ctrl_out
	mov	r3, #194
	mov	r2, #1
	stm	sp, {r3, r5}
	mov	r1, #64
	mov	r3, #65
	mov	r0, r4
	str	r5, [sp, #8]
	bl	ctrl_out
	ldr	r0, .L28+32
	bl	msleep
	b	.L8
.L24:
	cmp	r8, #127
	bhi	.L26
.L8:
	mov	fp, #0
	mov	r3, #64
	mov	r5, #3
	mov	r6, #51
	mov	r1, r3
	mov	r2, #1
	str	fp, [sp, #8]
	str	fp, [sp, #4]
	str	fp, [sp]
	mov	r0, r4
	bl	ctrl_out
	mov	r0, #40
	bl	msleep
	ldr	r3, .L28+36
	str	r5, [sp, #4]
	ldr	r3, [r3]
	mov	r2, r5
	mov	r1, #64
	str	r3, [sp, #8]
	str	r6, [sp]
	mov	r3, #31232
	mov	r0, r4
	bl	ctrl_out
	add	r3, sp, #28
	mov	r2, r5
	mov	r1, #64
	str	r5, [sp, #4]
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	mov	r0, #33
	bl	msleep
	add	r3, sp, #40
	mov	r2, r5
	mov	r1, #64
	str	r5, [sp, #4]
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	add	r3, sp, #52
	mov	r2, r5
	mov	r1, #64
	str	r5, [sp, #4]
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	add	r3, sp, #64
	mov	r2, r5
	mov	r1, #64
	str	r5, [sp, #4]
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	add	r3, sp, #76
	mov	r2, r5
	mov	r1, #64
	str	r5, [sp, #4]
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	ldr	r3, .L28+40
	str	r5, [sp, #4]
	ldr	r3, [r3]
	mov	r2, r5
	mov	r1, #64
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	add	r3, sp, #112
	mov	r2, r5
	mov	r1, #64
	str	r5, [sp, #4]
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	ldr	r3, .L28+44
	str	r5, [sp, #4]
	ldr	r3, [r3]
	mov	r2, r5
	mov	r1, #64
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	ldr	r3, .L28+48
	str	r5, [sp, #4]
	ldr	r3, [r3]
	mov	r2, r5
	mov	r1, #64
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	mov	r0, #7
	bl	msleep
	mov	r1, #1
	add	r2, sp, #24
	mov	r3, fp
	stmib	sp, {r1, r2}
	str	fp, [sp]
	mov	r2, #2
	mov	r1, #192
	mov	r0, r4
	bl	ctrl_in
	ldr	r3, .L28+52
	sub	r8, r8, #128
	ldr	fp, [r3]
	mov	r0, fp
	bl	ARRAY_SIZE
	mov	r1, fp
	mov	r2, r0
	mov	r0, r4
	bl	fetch_idxdata
	ldr	r3, .L28+56
	str	r5, [sp, #4]
	ldr	r3, [r3]
	mov	r2, r5
	mov	r1, #64
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	add	r3, sp, #88
	mov	r2, r5
	mov	r1, #64
	str	r5, [sp, #4]
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	ldr	r3, .L28+60
	str	r5, [sp, #4]
	ldr	r3, [r3]
	mov	r2, r5
	mov	r1, #64
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	mov	r2, r5
	mov	r3, #31232
	mov	r1, #64
	str	r5, [sp, #4]
	str	r6, [sp]
	mov	r0, r4
	str	r9, [sp, #8]
	bl	ctrl_out
	ldr	r3, .L28+64
	str	r5, [sp, #4]
	ldr	r3, [r3]
	mov	r2, r5
	mov	r1, #64
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	ldr	r3, .L28+68
	str	r5, [sp, #4]
	ldr	r3, [r3]
	mov	r2, r5
	mov	r1, #64
	str	r6, [sp]
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	bl	ctrl_out
	mov	r0, #250
	bl	msleep
	cmp	r8, #1
	ldrls	r3, .L28+72
	ldrhi	r3, .L28+76
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	fetch_idxdata
	ldr	r3, .L28+80
	mov	r5, #0
	ldr	r6, [r3]
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	fetch_idxdata
	ldr	r3, [sp, #16]
	mov	r0, r4
	str	r3, [r4, #8]
	ldr	r3, [sp, #20]
	str	r7, [r4, #12]
	str	r3, [r4, #16]
	str	r10, [r4, #20]
	str	r5, [r4, #4]
	bl	mi2020_camera_settings
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [sp, #124]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r5
	add	sp, sp, #132
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	cmp	r8, #128
	mov	r0, #12
	mov	r2, #512
	beq	.L10
	ldr	r1, .L28+84
	mov	r3, r5
	ldr	r1, [r1]
	str	r2, [sp]
	stmib	sp, {r0, r1}
	mov	r2, #3
	mov	r1, #64
	mov	r0, r4
	bl	ctrl_out
	ldr	r3, .L28+88
.L20:
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	fetch_idxdata
	ldr	r3, .L28+92
	mov	r5, #0
	ldr	r6, [r3]
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	fetch_idxdata
	mov	r3, #16
	mov	r2, #1
	stm	sp, {r3, r5}
	mov	r1, #64
	mov	r0, r4
	str	r5, [sp, #8]
	bl	ctrl_out
	mov	r2, #193
	mov	r3, r5
	str	r2, [sp]
	mov	r1, #64
	mov	r2, #1
	mov	r0, r4
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	bl	ctrl_out
	mov	r3, #194
	mov	r2, #1
	stm	sp, {r3, r5}
	mov	r1, #64
	mov	r3, #65
	mov	r0, r4
	str	r5, [sp, #8]
	bl	ctrl_out
	mov	r0, #120
	bl	msleep
	b	.L8
.L25:
	ldr	r1, .L28+96
	mov	r3, r5
	ldr	r1, [r1]
	str	r2, [sp]
	stmib	sp, {r0, r1}
	mov	r2, r6
	mov	r1, #64
	mov	r0, r4
	bl	ctrl_out
	ldr	r3, .L28+12
	mov	r2, r6
	mov	r1, #64
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	str	r6, [sp, #4]
	str	fp, [sp]
	bl	ctrl_out
	ldr	r3, .L28+100
	mov	r2, r6
	mov	r1, #64
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #31232
	str	r6, [sp, #4]
	str	fp, [sp]
	bl	ctrl_out
	ldr	r3, .L28+20
	mov	r2, r6
	str	r3, [sp, #8]
	mov	r1, #64
	mov	r3, #31232
	mov	r0, r4
	str	r6, [sp, #4]
	str	fp, [sp]
	bl	ctrl_out
	ldr	r3, .L28+104
	b	.L21
.L10:
	ldr	r1, .L28+108
	mov	r3, r5
	ldr	r1, [r1]
	str	r2, [sp]
	stmib	sp, {r0, r1}
	mov	r2, #3
	mov	r1, #64
	mov	r0, r4
	bl	ctrl_out
	ldr	r3, .L28+88
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	fetch_idxdata
	ldr	r3, .L28+112
	b	.L20
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LANCHOR0
	.word	.LC10
	.word	dat_1600
	.word	.LC4
	.word	.LC8
	.word	.LC6
	.word	.LC9
	.word	tbl_init_post_alt_big
	.word	1850
	.word	dat_freq1
	.word	dat_wbal1
	.word	dat_multi5
	.word	dat_multi6
	.word	tbl_init_post_alt_3B
	.word	dat_hvflip1
	.word	dat_hvflip3
	.word	dat_hvflip5
	.word	dat_hvflip6
	.word	tbl_middle_hvflip_low
	.word	tbl_middle_hvflip_big
	.word	tbl_end_hvflip
	.word	dat_640
	.word	tbl_init_post_alt_low1
	.word	tbl_init_post_alt_low3
	.word	dat_1280
	.word	.LC5
	.word	.LC7
	.word	dat_800
	.word	tbl_init_post_alt_low2
	.size	mi2020_init_post_alt, .-mi2020_init_post_alt
	.comm	tbl_middle_hvflip_low,4,4
	.comm	tbl_middle_hvflip_big,4,4
	.comm	tbl_init_post_alt_low3,4,4
	.comm	tbl_init_post_alt_low2,4,4
	.comm	tbl_init_post_alt_low1,4,4
	.comm	tbl_init_post_alt_big,4,4
	.comm	tbl_init_post_alt_3B,4,4
	.comm	tbl_end_hvflip,4,4
	.comm	dat_wbal1,4,4
	.comm	dat_multi6,4,4
	.comm	dat_multi5,4,4
	.comm	dat_hvflip6,4,4
	.comm	dat_hvflip5,4,4
	.comm	dat_hvflip3,4,4
	.comm	dat_hvflip1,4,4
	.comm	dat_freq1,4,4
	.comm	dat_800,4,4
	.comm	dat_640,4,4
	.comm	dat_1600,4,4
	.comm	dat_1280,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	144
	.word	0
	.word	128
.LC1:
	.word	140
	.word	167
	.word	0
.LC2:
	.word	144
	.word	4
	.word	108
.LC3:
	.word	144
	.word	0
	.word	36
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
