	.file	"extr_ltv350qv.c_ltv350qv_power_on.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ltv350qv_power_on, @function
ltv350qv_power_on:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR LTV_PWRCTL1[rip]
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	ltv350qv_write_reg@PLT
	test	eax, eax
	je	.L16
.L3:
	mov	edx, DWORD PTR LTV_VCOM_DISABLE[rip]
	mov	esi, DWORD PTR LTV_PWRCTL1[rip]
	mov	rdi, rbp
	call	ltv350qv_write_reg@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, 15
	call	msleep@PLT
	mov	edx, DWORD PTR LTV_VCOM_DISABLE[rip]
	mov	esi, DWORD PTR LTV_PWRCTL1[rip]
	mov	rdi, rbp
	call	ltv350qv_write_reg@PLT
	test	eax, eax
	jne	.L3
	mov	edx, DWORD PTR LTV_VCOML_ENABLE[rip]
	mov	esi, DWORD PTR LTV_PWRCTL2[rip]
	mov	rdi, rbp
	call	ltv350qv_write_reg@PLT
	test	eax, eax
	je	.L17
.L6:
.L9:
.L10:
	mov	esi, DWORD PTR LTV_PWRCTL2[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	ltv350qv_write_reg@PLT
	mov	edi, 1
	call	msleep@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, 5
	call	LTV_DRIVE_CURRENT@PLT
	mov	edi, 5
	mov	r12d, DWORD PTR LTV_VCOM_DISABLE[rip]
	mov	ebx, eax
	call	LTV_SUPPLY_CURRENT@PLT
	mov	esi, DWORD PTR LTV_PWRCTL1[rip]
	mov	rdi, rbp
	or	ebx, eax
	mov	edx, ebx
	or	edx, r12d
	call	ltv350qv_write_reg@PLT
	test	eax, eax
	jne	.L10
	mov	edi, 55
	call	msleep@PLT
	mov	edi, 29
	mov	ebx, DWORD PTR LTV_NMD[rip]
	or	ebx, DWORD PTR LTV_REV[rip]
	call	LTV_NL@PLT
	mov	esi, DWORD PTR LTV_IFCTL[rip]
	mov	rdi, rbp
	or	ebx, eax
	mov	edx, ebx
	call	ltv350qv_write_reg@PLT
	mov	esi, DWORD PTR LTV_DATACTL[rip]
	mov	edx, DWORD PTR LTV_DS_SAME[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR LTV_CHS_480[rip]
	or	edx, DWORD PTR LTV_DF_RGB[rip]
	mov	ebx, eax
	or	edx, DWORD PTR LTV_RGB_BGR[rip]
	call	ltv350qv_write_reg@PLT
	mov	esi, DWORD PTR LTV_ENTRY_MODE[rip]
	mov	edx, DWORD PTR LTV_VSPL_ACTIVE_LOW[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR LTV_HSPL_ACTIVE_LOW[rip]
	or	edx, DWORD PTR LTV_DPL_SAMPLE_RISING[rip]
	or	ebx, eax
	or	edx, DWORD PTR LTV_EPL_ACTIVE_LOW[rip]
	or	edx, DWORD PTR LTV_SS_RIGHT_TO_LEFT[rip]
	call	ltv350qv_write_reg@PLT
	mov	edi, 3
	or	ebx, eax
	call	LTV_CLW@PLT
	mov	esi, DWORD PTR LTV_GATECTL1[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 3
	or	ebx, eax
	call	LTV_FWI@PLT
	mov	esi, DWORD PTR LTV_GATECTL2[rip]
	or	eax, DWORD PTR LTV_NW_INV_1LINE[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	ltv350qv_write_reg@PLT
	mov	esi, DWORD PTR LTV_VBP[rip]
	mov	edx, 10
	mov	rdi, rbp
	or	ebx, eax
	call	ltv350qv_write_reg@PLT
	mov	esi, DWORD PTR LTV_HBP[rip]
	mov	edx, 33
	mov	rdi, rbp
	or	ebx, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 3
	or	ebx, eax
	call	LTV_SDT@PLT
	xor	edi, edi
	mov	r12d, eax
	call	LTV_EQ@PLT
	mov	esi, DWORD PTR LTV_SOTCTL[rip]
	mov	edx, r12d
	mov	rdi, rbp
	or	edx, eax
	call	ltv350qv_write_reg@PLT
	or	ebx, eax
	xor	edi, edi
	call	LTV_GAMMA@PLT
	mov	edx, 259
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 1
	or	ebx, eax
	call	LTV_GAMMA@PLT
	mov	edx, 769
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 2
	or	ebx, eax
	call	LTV_GAMMA@PLT
	mov	edx, 7951
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 3
	or	ebx, eax
	call	LTV_GAMMA@PLT
	mov	edx, 7951
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 4
	or	ebx, eax
	call	LTV_GAMMA@PLT
	mov	edx, 1799
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 5
	or	ebx, eax
	call	LTV_GAMMA@PLT
	mov	edx, 775
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 6
	or	ebx, eax
	call	LTV_GAMMA@PLT
	mov	edx, 1799
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 7
	or	ebx, eax
	call	LTV_GAMMA@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 8
	or	ebx, eax
	call	LTV_GAMMA@PLT
	mov	edx, 4
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	mov	edi, 9
	or	ebx, eax
	call	LTV_GAMMA@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, eax
	call	ltv350qv_write_reg@PLT
	or	ebx, eax
	jne	.L10
	mov	edi, 20
	call	msleep@PLT
	mov	edi, 5
	mov	ebx, DWORD PTR LTV_VCOM_DISABLE[rip]
	or	ebx, DWORD PTR LTV_VCOMOUT_ENABLE[rip]
	or	ebx, DWORD PTR LTV_POWER_ON[rip]
	call	LTV_DRIVE_CURRENT@PLT
	mov	edi, 5
	or	ebx, eax
	call	LTV_SUPPLY_CURRENT@PLT
	mov	esi, DWORD PTR LTV_PWRCTL1[rip]
	mov	rdi, rbp
	or	ebx, eax
	mov	edx, ebx
	call	ltv350qv_write_reg@PLT
	mov	r12d, DWORD PTR LTV_NW_INV_1LINE[rip]
	mov	edi, 3
	or	r12d, DWORD PTR LTV_DSC[rip]
	mov	ebx, eax
	call	LTV_FWI@PLT
	mov	edx, r12d
	mov	esi, DWORD PTR LTV_GATECTL2[rip]
	mov	rdi, rbp
	or	edx, eax
	call	ltv350qv_write_reg@PLT
	or	eax, ebx
	je	.L1
	mov	edi, 5
	call	LTV_DRIVE_CURRENT@PLT
	mov	edi, 5
	mov	r12d, DWORD PTR LTV_VCOM_DISABLE[rip]
	mov	ebx, eax
	call	LTV_SUPPLY_CURRENT@PLT
	mov	esi, DWORD PTR LTV_PWRCTL1[rip]
	mov	rdi, rbp
	or	ebx, eax
	mov	edx, ebx
	or	edx, r12d
	call	ltv350qv_write_reg@PLT
	mov	edi, 3
	call	LTV_FWI@PLT
	mov	esi, DWORD PTR LTV_GATECTL2[rip]
	or	eax, DWORD PTR LTV_NW_INV_1LINE[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	ltv350qv_write_reg@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	ltv350qv_power_on, .-ltv350qv_power_on
	.comm	LTV_VSPL_ACTIVE_LOW,4,4
	.comm	LTV_VCOM_DISABLE,4,4
	.comm	LTV_VCOMOUT_ENABLE,4,4
	.comm	LTV_VCOML_ENABLE,4,4
	.comm	LTV_VBP,4,4
	.comm	LTV_SS_RIGHT_TO_LEFT,4,4
	.comm	LTV_SOTCTL,4,4
	.comm	LTV_RGB_BGR,4,4
	.comm	LTV_REV,4,4
	.comm	LTV_PWRCTL2,4,4
	.comm	LTV_PWRCTL1,4,4
	.comm	LTV_POWER_ON,4,4
	.comm	LTV_NW_INV_1LINE,4,4
	.comm	LTV_NMD,4,4
	.comm	LTV_IFCTL,4,4
	.comm	LTV_HSPL_ACTIVE_LOW,4,4
	.comm	LTV_HBP,4,4
	.comm	LTV_GATECTL2,4,4
	.comm	LTV_GATECTL1,4,4
	.comm	LTV_EPL_ACTIVE_LOW,4,4
	.comm	LTV_ENTRY_MODE,4,4
	.comm	LTV_DS_SAME,4,4
	.comm	LTV_DSC,4,4
	.comm	LTV_DPL_SAMPLE_RISING,4,4
	.comm	LTV_DF_RGB,4,4
	.comm	LTV_DATACTL,4,4
	.comm	LTV_CHS_480,4,4
	.comm	EIO,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_ltv350qv.c_ltv350qv_power_on.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ltv350qv_power_on, %function
ltv350qv_power_on:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L17
	mov	r2, #0
	ldr	r1, [r7]
	sub	sp, sp, #12
	mov	r4, r0
	bl	ltv350qv_write_reg
	cmp	r0, #0
	ldr	r6, .L17+4
	beq	.L2
.L3:
	mov	r0, r4
	ldr	r2, [r6]
	ldr	r1, [r7]
	bl	ltv350qv_write_reg
	ldr	r3, .L17+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, #15
	bl	msleep
	mov	r0, r4
	ldr	r2, [r6]
	ldr	r1, [r7]
	bl	ltv350qv_write_reg
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L17+12
	ldr	r8, .L17+16
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r8]
	bl	ltv350qv_write_reg
	cmp	r0, #0
	beq	.L16
.L6:
.L9:
.L10:
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r8]
	bl	ltv350qv_write_reg
	mov	r0, #1
	bl	msleep
	b	.L3
.L16:
	mov	r0, #5
	ldr	r9, [r7]
	bl	LTV_DRIVE_CURRENT
	mov	r5, r0
	mov	r0, #5
	ldr	r10, [r6]
	bl	LTV_SUPPLY_CURRENT
	orr	r5, r5, r0
	mov	r1, r9
	mov	r0, r4
	orr	r2, r5, r10
	bl	ltv350qv_write_reg
	subs	fp, r0, #0
	bne	.L10
	mov	r0, #55
	bl	msleep
	ldr	r2, .L17+20
	ldr	r3, .L17+24
	ldr	r5, [r2]
	ldr	r2, [r3]
	ldr	r3, .L17+28
	mov	r0, #29
	ldr	r9, [r3]
	orr	r5, r5, r2
	bl	LTV_NL
	mov	r1, r9
	orr	r2, r5, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	ldr	r2, .L17+32
	ldr	r3, .L17+36
	mov	r5, r0
	ldr	r0, .L17+40
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L17+44
	ldr	r0, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L17+48
	orr	r3, r3, r0
	orr	r2, r3, r2
	ldr	r1, [r1]
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	ip, r0
	ldr	r1, .L17+52
	ldr	r3, .L17+56
	ldr	r2, .L17+60
	ldr	lr, [r1]
	ldr	r3, [r3]
	ldr	r0, .L17+64
	ldr	r1, [r2]
	ldr	r2, .L17+68
	orr	r3, r3, lr
	ldr	r0, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L17+72
	orr	r3, r3, r0
	ldr	r1, [r1]
	orr	r2, r3, r2
	mov	r0, r4
	orr	r5, r5, ip
	bl	ltv350qv_write_reg
	mov	r3, r0
	ldr	r2, .L17+76
	mov	r0, #3
	ldr	r9, [r2]
	orr	r5, r5, r3
	bl	LTV_CLW
	mov	r1, r9
	mov	r2, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	ldr	r10, .L17+80
	mov	r0, #3
	ldr	r1, [r10]
	orr	r5, r5, r3
	str	r1, [sp]
	bl	LTV_FWI
	mov	r2, r0
	ldr	r9, .L17+84
	ldr	r1, [sp]
	ldr	r3, [r9]
	mov	r0, r4
	orr	r2, r2, r3
	bl	ltv350qv_write_reg
	mov	r3, r0
	ldr	r1, .L17+88
	mov	r2, #10
	ldr	r1, [r1]
	mov	r0, r4
	orr	r5, r5, r3
	bl	ltv350qv_write_reg
	mov	r3, r0
	ldr	r1, .L17+92
	mov	r2, #33
	ldr	r1, [r1]
	mov	r0, r4
	orr	r5, r5, r3
	bl	ltv350qv_write_reg
	mov	r2, r0
	ldr	r3, .L17+96
	mov	r0, #3
	ldr	r1, [r3]
	orr	r5, r5, r2
	str	r1, [sp, #4]
	bl	LTV_SDT
	mov	r3, r0
	mov	r0, fp
	str	r3, [sp]
	bl	LTV_EQ
	ldr	r3, [sp]
	ldr	r1, [sp, #4]
	orr	r2, r3, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, fp
	orr	r5, r5, r3
	bl	LTV_GAMMA
	ldr	r2, .L17+100
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, #1
	orr	r5, r5, r3
	bl	LTV_GAMMA
	ldr	r2, .L17+104
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, #2
	orr	r5, r5, r3
	bl	LTV_GAMMA
	ldr	r2, .L17+108
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, #3
	orr	r5, r5, r3
	bl	LTV_GAMMA
	ldr	r2, .L17+108
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, #4
	orr	r5, r5, r3
	bl	LTV_GAMMA
	ldr	r2, .L17+112
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, #5
	orr	r5, r5, r3
	bl	LTV_GAMMA
	ldr	r2, .L17+116
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, #6
	orr	r5, r5, r3
	bl	LTV_GAMMA
	ldr	r2, .L17+112
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, #7
	orr	r5, r5, r3
	bl	LTV_GAMMA
	mov	r2, fp
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, #8
	orr	r5, r5, r3
	bl	LTV_GAMMA
	mov	r2, #4
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r3, r0
	mov	r0, #9
	orr	r5, r5, r3
	bl	LTV_GAMMA
	mov	r2, fp
	mov	r1, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	orrs	r3, r5, r0
	bne	.L10
	mov	r0, #20
	bl	msleep
	ldr	r3, .L17+120
	ldr	r2, .L17+124
	ldr	r3, [r3]
	ldr	r5, [r6]
	ldr	r2, [r2]
	orr	r5, r5, r3
	mov	r0, #5
	ldr	fp, [r7]
	orr	r5, r5, r2
	bl	LTV_DRIVE_CURRENT
	mov	r2, r0
	mov	r0, #5
	orr	r5, r5, r2
	bl	LTV_SUPPLY_CURRENT
	mov	r1, fp
	orr	r2, r5, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	ldr	r3, .L17+128
	ldr	r1, [r10]
	ldr	r2, [r3]
	ldr	fp, [r9]
	mov	r5, r0
	mov	r0, #3
	orr	fp, fp, r2
	str	r1, [sp]
	bl	LTV_FWI
	ldr	r1, [sp]
	orr	r2, fp, r0
	mov	r0, r4
	bl	ltv350qv_write_reg
	orrs	r0, r5, r0
	beq	.L1
	mov	r0, #5
	ldr	fp, [r7]
	bl	LTV_DRIVE_CURRENT
	ldr	r2, [r6]
	mov	r5, r0
	mov	r0, #5
	str	r2, [sp]
	bl	LTV_SUPPLY_CURRENT
	ldr	r2, [sp]
	orr	r5, r5, r0
	mov	r1, fp
	orr	r2, r5, r2
	mov	r0, r4
	bl	ltv350qv_write_reg
	mov	r0, #3
	ldr	r5, [r10]
	bl	LTV_FWI
	ldr	r2, [r9]
	mov	r1, r5
	orr	r2, r0, r2
	mov	r0, r4
	bl	ltv350qv_write_reg
	b	.L10
.L18:
	.align	2
.L17:
	.word	LTV_PWRCTL1
	.word	LTV_VCOM_DISABLE
	.word	EIO
	.word	LTV_VCOML_ENABLE
	.word	LTV_PWRCTL2
	.word	LTV_NMD
	.word	LTV_REV
	.word	LTV_IFCTL
	.word	LTV_CHS_480
	.word	LTV_DS_SAME
	.word	LTV_DF_RGB
	.word	LTV_RGB_BGR
	.word	LTV_DATACTL
	.word	LTV_HSPL_ACTIVE_LOW
	.word	LTV_VSPL_ACTIVE_LOW
	.word	LTV_DPL_SAMPLE_RISING
	.word	LTV_EPL_ACTIVE_LOW
	.word	LTV_SS_RIGHT_TO_LEFT
	.word	LTV_ENTRY_MODE
	.word	LTV_GATECTL1
	.word	LTV_GATECTL2
	.word	LTV_NW_INV_1LINE
	.word	LTV_VBP
	.word	LTV_HBP
	.word	LTV_SOTCTL
	.word	259
	.word	769
	.word	7951
	.word	1799
	.word	775
	.word	LTV_VCOMOUT_ENABLE
	.word	LTV_POWER_ON
	.word	LTV_DSC
	.size	ltv350qv_power_on, .-ltv350qv_power_on
	.comm	LTV_VSPL_ACTIVE_LOW,4,4
	.comm	LTV_VCOM_DISABLE,4,4
	.comm	LTV_VCOMOUT_ENABLE,4,4
	.comm	LTV_VCOML_ENABLE,4,4
	.comm	LTV_VBP,4,4
	.comm	LTV_SS_RIGHT_TO_LEFT,4,4
	.comm	LTV_SOTCTL,4,4
	.comm	LTV_RGB_BGR,4,4
	.comm	LTV_REV,4,4
	.comm	LTV_PWRCTL2,4,4
	.comm	LTV_PWRCTL1,4,4
	.comm	LTV_POWER_ON,4,4
	.comm	LTV_NW_INV_1LINE,4,4
	.comm	LTV_NMD,4,4
	.comm	LTV_IFCTL,4,4
	.comm	LTV_HSPL_ACTIVE_LOW,4,4
	.comm	LTV_HBP,4,4
	.comm	LTV_GATECTL2,4,4
	.comm	LTV_GATECTL1,4,4
	.comm	LTV_EPL_ACTIVE_LOW,4,4
	.comm	LTV_ENTRY_MODE,4,4
	.comm	LTV_DS_SAME,4,4
	.comm	LTV_DSC,4,4
	.comm	LTV_DPL_SAMPLE_RISING,4,4
	.comm	LTV_DF_RGB,4,4
	.comm	LTV_DATACTL,4,4
	.comm	LTV_CHS_480,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
