	.file	"extr_panel-tpo-td043mtea1.c_td043mtea1_power_on.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	td043mtea1_power_on, @function
td043mtea1_power_on:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	xor	eax, eax
	test	edx, edx
	je	.L9
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR 12[rdi]
	call	regulator_enable@PLT
	test	eax, eax
	js	.L1
	mov	edi, 160
	call	msleep@PLT
	mov	edi, DWORD PTR 8[rbx]
	xor	esi, esi
	call	gpiod_set_value@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	TPO_R02_MODE@PLT
	or	eax, DWORD PTR TPO_R02_NCLK_RISING[rip]
	mov	esi, 2
	mov	rdi, rbx
	mov	edx, eax
	call	td043mtea1_write@PLT
	mov	edx, DWORD PTR TPO_R03_VAL_NORMAL[rip]
	mov	esi, 3
	mov	rdi, rbx
	call	td043mtea1_write@PLT
	mov	edx, 240
	mov	esi, 32
	mov	rdi, rbx
	call	td043mtea1_write@PLT
	mov	edx, 240
	mov	esi, 33
	mov	rdi, rbx
	call	td043mtea1_write@PLT
	mov	rdi, rbx
	call	td043mtea1_write_mirror@PLT
	mov	rdi, rbx
	call	td043mtea1_write_gamma@PLT
	mov	DWORD PTR [rbx], 1
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	td043mtea1_power_on, .-td043mtea1_power_on
	.comm	TPO_R03_VAL_NORMAL,4,4
	.comm	TPO_R02_NCLK_RISING,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_panel-tpo-td043mtea1.c_td043mtea1_power_on.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	td043mtea1_power_on, %function
td043mtea1_power_on:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	cmp	r5, #0
	beq	.L6
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	mov	r4, r0
	ldr	r0, [r0, #12]
	bl	regulator_enable
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	mov	r0, #160
	bl	msleep
	mov	r1, r5
	ldr	r0, [r4, #8]
	bl	gpiod_set_value
	ldr	r0, [r4, #4]
	bl	TPO_R02_MODE
	mov	r2, r0
	ldr	r3, .L7
	mov	r1, #2
	ldr	r3, [r3]
	mov	r0, r4
	orr	r2, r2, r3
	bl	td043mtea1_write
	ldr	r3, .L7+4
	mov	r1, #3
	ldr	r2, [r3]
	mov	r0, r4
	bl	td043mtea1_write
	mov	r2, #240
	mov	r1, #32
	mov	r0, r4
	bl	td043mtea1_write
	mov	r2, #240
	mov	r1, #33
	mov	r0, r4
	bl	td043mtea1_write
	mov	r0, r4
	bl	td043mtea1_write_mirror
	mov	r0, r4
	bl	td043mtea1_write_gamma
	mov	r3, #1
	mov	r0, r5
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	TPO_R02_NCLK_RISING
	.word	TPO_R03_VAL_NORMAL
	.size	td043mtea1_power_on, .-td043mtea1_power_on
	.comm	TPO_R03_VAL_NORMAL,4,4
	.comm	TPO_R02_NCLK_RISING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
