	.file	"extr_sh_mobile_lcdcfb.c_sh_mobile_lcdc_runtime_resume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sh_mobile_lcdc_runtime_resume, @function
sh_mobile_lcdc_runtime_resume:
.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
	xor	r12d, r12d
	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_platform_device@PLT
	mov	rdi, rax
	call	platform_get_drvdata@PLT
	mov	rdi, QWORD PTR 8[rax]
	mov	r13, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	add	r12, 1
.L2:
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	jle	.L15
	mov	rdi, QWORD PTR 8[r13]
	mov	rbp, r12
	sal	rbp, 4
	add	rbp, rdi
	mov	ecx, DWORD PTR 8[rbp]
	test	ecx, ecx
	je	.L3
	mov	edx, DWORD PTR NR_CH_REGS[rip]
	test	edx, edx
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, ebx
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	lcdc_write_chan@PLT
	cmp	DWORD PTR NR_CH_REGS[rip], ebx
	jg	.L4
	mov	rdi, QWORD PTR 8[r13]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR NR_SHARED_REGS[rip]
	xor	ebx, ebx
	test	eax, eax
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r13
	mov	edx, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR lcdc_shared_regs[rip]
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	lcdc_write@PLT
	cmp	DWORD PTR NR_SHARED_REGS[rip], ebx
	jg	.L6
.L12:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	sh_mobile_lcdc_runtime_resume, .-sh_mobile_lcdc_runtime_resume
	.comm	lcdc_shared_regs,8,8
	.comm	NR_SHARED_REGS,4,4
	.comm	NR_CH_REGS,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_sh_mobile_lcdcfb.c_sh_mobile_lcdc_runtime_resume.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh_mobile_lcdc_runtime_resume, %function
sh_mobile_lcdc_runtime_resume:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	to_platform_device
	bl	platform_get_drvdata
	mov	r6, #0
	mov	r8, r0
	ldr	r7, .L18
	ldr	r0, [r0, #4]
	b	.L2
.L3:
	add	r6, r6, #1
.L2:
	bl	ARRAY_SIZE
	cmp	r0, r6
	ble	.L17
	ldr	r0, [r8, #4]
	add	r5, r0, r6, lsl #3
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L3
	mov	r4, #0
.L4:
	ldr	r3, [r5]
	mov	r1, r4
	ldr	r2, [r3, r4, lsl #2]
	mov	r0, r5
	bl	lcdc_write_chan
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
	ldr	r0, [r8, #4]
	b	.L3
.L17:
	ldr	r5, .L18+4
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L14
	mov	r4, #0
	ldr	r6, .L18+8
.L6:
	ldr	r3, [r6]
	ldr	r2, [r8]
	ldr	r1, [r3, r4, lsl #2]
	ldr	r2, [r2, r4, lsl #2]
	mov	r0, r8
	bl	lcdc_write
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L14:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	NR_CH_REGS
	.word	NR_SHARED_REGS
	.word	lcdc_shared_regs
	.size	sh_mobile_lcdc_runtime_resume, .-sh_mobile_lcdc_runtime_resume
	.comm	lcdc_shared_regs,4,4
	.comm	NR_SHARED_REGS,4,4
	.comm	NR_CH_REGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
