	.file	"extr_lcd_mipid.c_ls041y3_esd_check_mode2.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ESD mode 2 state %02x\n"
	.text
	.p2align 4
	.type	ls041y3_esd_check_mode2, @function
ls041y3_esd_check_mode2:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, rd_ctrl.1954[rip]
	mov	rbp, rdi
	mov	esi, 176
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ecx, 4
	mov	ebx, 3
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR rd.1953[rip], rdx
.L3:
	add	rdx, 8
	mov	rdi, rbp
	call	mipid_write@PLT
	mov	rax, QWORD PTR rd.1953[rip]
	lea	rdx, 20[rax]
	mov	QWORD PTR rd.1953[rip], rdx
	sub	ebx, 1
	je	.L2
	mov	ecx, DWORD PTR 24[rax]
	mov	esi, DWORD PTR 20[rax]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, 10
	mov	ebx, 3
	call	udelay@PLT
	mov	rdx, rsp
	mov	ecx, 2
	mov	rdi, rbp
	mov	rax, QWORD PTR rd.1953[rip]
	mov	esi, DWORD PTR [rax]
	call	mipid_read@PLT
	add	QWORD PTR rd.1953[rip], 20
.L4:
	mov	edi, 10
	call	udelay@PLT
	mov	rax, QWORD PTR rd.1953[rip]
	mov	rdi, rbp
	mov	ecx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	lea	rdx, 8[rax]
	call	mipid_write@PLT
	add	QWORD PTR rd.1953[rip], 20
	sub	ebx, 1
	jne	.L4
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L10
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	ls041y3_esd_recover@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ls041y3_esd_check_mode2, .-ls041y3_esd_check_mode2
	.section	.rodata
	.align 32
	.type	rd_ctrl.1954, @object
	.size	rd_ctrl.1954, 140
rd_ctrl.1954:
	.long	176
	.long	4
	.long	257
	.long	510
	.zero	4
	.long	177
	.long	4
	.long	478
	.long	289
	.zero	4
	.long	194
	.long	4
	.long	256
	.long	256
	.zero	4
	.long	189
	.long	2
	.long	256
	.zero	8
	.long	194
	.long	4
	.long	508
	.long	259
	.zero	4
	.long	180
	.long	0
	.zero	12
	.long	0
	.long	0
	.zero	12
	.local	rd.1953
	.comm	rd.1953,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_lcd_mipid.c_ls041y3_esd_check_mode2.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ESD mode 2 state %02x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ls041y3_esd_check_mode2, %function
ls041y3_esd_check_mode2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	ip, .L12
	ldr	r3, .L12+4
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	mov	r2, ip
	mov	r6, #3
	mov	r3, #4
	mov	r1, #176
	ldr	r4, .L12+8
	str	ip, [r4]
.L3:
	add	r2, r2, #8
	mov	r0, r5
	bl	mipid_write
	ldr	r3, [r4]
	subs	r6, r6, #1
	add	r2, r3, #20
	str	r2, [r4]
	ldrne	r1, [r3, #20]
	ldrne	r3, [r3, #24]
	bne	.L3
.L2:
	mov	r6, #3
	mov	r0, #10
	bl	udelay
	ldr	r2, [r4]
	mov	r3, #2
	ldr	r1, [r2]
	mov	r0, r5
	add	r2, sp, #4
	bl	mipid_read
	ldr	r3, [r4]
	add	r3, r3, #20
	str	r3, [r4]
.L4:
	mov	r0, #10
	bl	udelay
	ldr	r3, [r4]
	mov	r0, r5
	mov	r2, r3
	ldr	r3, [r3, #4]
	ldr	r1, [r2], #8
	bl	mipid_write
	ldr	r3, [r4]
	subs	r6, r6, #1
	add	r3, r3, #20
	str	r3, [r4]
	bne	.L4
	ldr	r2, [sp, #8]
	ldr	r1, .L12+12
	ldr	r0, [r5]
	bl	dev_dbg
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L10
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	mov	r0, r5
	bl	ls041y3_esd_recover
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LANCHOR0
	.word	.LC1
	.word	.LANCHOR1
	.word	.LC0
	.size	ls041y3_esd_check_mode2, .-ls041y3_esd_check_mode2
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	rd_ctrl.4238, %object
	.size	rd_ctrl.4238, 140
rd_ctrl.4238:
	.word	176
	.word	4
	.word	257
	.word	510
	.space	4
	.word	177
	.word	4
	.word	478
	.word	289
	.space	4
	.word	194
	.word	4
	.word	256
	.word	256
	.space	4
	.word	189
	.word	2
	.word	256
	.space	8
	.word	194
	.word	4
	.word	508
	.word	259
	.space	4
	.word	180
	.word	0
	.space	12
	.word	0
	.word	0
	.space	12
	.bss
	.align	2
	.set	.LANCHOR1,. + 0
	.type	rd.4237, %object
	.size	rd.4237, 4
rd.4237:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
