	.file	"extr_panel-jdi-lt070me05000.c_jdi_panel_prepare.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"regulator enable failed, %d\n"
.LC1:
	.string	"failed to init panel: %d\n"
.LC2:
	.string	"failed to set panel on: %d\n"
.LC3:
	.string	"regulator disable failed, %d\n"
	.text
	.p2align 4
	.type	jdi_panel_prepare, @function
jdi_panel_prepare:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_jdi_panel@PLT
	mov	r12d, DWORD PTR [rax]
	test	r12d, r12d
	je	.L11
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	ebp, DWORD PTR 16[rax]
	mov	r13, QWORD PTR 24[rax]
	mov	rbx, rax
	mov	edi, ebp
	call	ARRAY_SIZE@PLT
	mov	esi, ebp
	mov	edi, eax
	call	regulator_bulk_enable@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L12
	mov	edi, 20
	call	msleep@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, 1
	call	gpiod_set_value@PLT
	mov	esi, 20
	mov	edi, 10
	call	usleep_range@PLT
	mov	edi, DWORD PTR 8[rbx]
	xor	esi, esi
	call	gpiod_set_value@PLT
	mov	esi, 20
	mov	edi, 10
	call	usleep_range@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	esi, 1
	call	gpiod_set_value@PLT
	mov	edi, 10
	mov	esi, 20
	call	usleep_range@PLT
	mov	rdi, rbx
	call	jdi_panel_init@PLT
	test	eax, eax
	js	.L13
	mov	rdi, rbx
	call	jdi_panel_on@PLT
	test	eax, eax
	js	.L14
	mov	DWORD PTR [rbx], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, r13
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	r12d, ebp
	call	dev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	dev_err@PLT
.L5:
	mov	ebp, DWORD PTR 16[rbx]
	mov	edi, ebp
	call	ARRAY_SIZE@PLT
	mov	esi, ebp
	mov	edi, eax
	call	regulator_bulk_disable@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L15
.L7:
	mov	edi, DWORD PTR 12[rbx]
	xor	esi, esi
	call	gpiod_set_value@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, 1
	call	gpiod_set_value@PLT
	mov	edi, DWORD PTR 4[rbx]
	xor	esi, esi
	call	gpiod_set_value@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	jdi_panel_prepare, .-jdi_panel_prepare
	.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-jdi-lt070me05000.c_jdi_panel_prepare.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"regulator enable failed, %d\012\000"
	.align	2
.LC1:
	.ascii	"failed to init panel: %d\012\000"
	.align	2
.LC2:
	.ascii	"failed to set panel on: %d\012\000"
	.align	2
.LC3:
	.ascii	"regulator disable failed, %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	jdi_panel_prepare, %function
jdi_panel_prepare:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	to_jdi_panel
	ldr	r5, [r0]
	cmp	r5, #0
	movne	r5, #0
	beq	.L11
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	mov	r4, r0
	ldr	r0, [r0, #16]
	ldr	r6, [r4, #20]
	bl	ARRAY_SIZE
	ldr	r1, [r4, #16]
	bl	regulator_bulk_enable
	subs	r2, r0, #0
	blt	.L12
	mov	r0, #20
	bl	msleep
	mov	r1, #1
	ldr	r0, [r4, #4]
	bl	gpiod_set_value
	mov	r1, #20
	mov	r0, #10
	bl	usleep_range
	mov	r1, r5
	ldr	r0, [r4, #8]
	bl	gpiod_set_value
	mov	r1, #20
	mov	r0, #10
	bl	usleep_range
	mov	r1, #1
	ldr	r0, [r4, #12]
	bl	gpiod_set_value
	mov	r1, #20
	mov	r0, #10
	bl	usleep_range
	mov	r0, r4
	bl	jdi_panel_init
	subs	r2, r0, #0
	blt	.L13
	mov	r0, r4
	bl	jdi_panel_on
	subs	r2, r0, #0
	movge	r3, #1
	strge	r3, [r4]
	bge	.L1
	mov	r0, r6
	ldr	r1, .L15
	bl	dev_err
	b	.L5
.L12:
	mov	r5, r2
	mov	r0, r6
	ldr	r1, .L15+4
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	mov	r0, r6
	ldr	r1, .L15+8
	bl	dev_err
.L5:
	ldr	r0, [r4, #16]
	bl	ARRAY_SIZE
	ldr	r1, [r4, #16]
	bl	regulator_bulk_disable
	subs	r5, r0, #0
	blt	.L14
.L7:
	mov	r1, #0
	ldr	r0, [r4, #12]
	bl	gpiod_set_value
	mov	r1, #1
	ldr	r0, [r4, #8]
	bl	gpiod_set_value
	mov	r1, #0
	ldr	r0, [r4, #4]
	bl	gpiod_set_value
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L15+12
	bl	dev_err
	b	.L7
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.size	jdi_panel_prepare, .-jdi_panel_prepare
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
