	.file	"extr_panel.c_set_data_bits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_data_bits, @function
set_data_bits:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, DWORD PTR pprt[rip]
	call	r_dtr@PLT
	mov	ecx, DWORD PTR LCD_BITS[rip]
	test	ecx, ecx
	jle	.L2
	mov	rsi, QWORD PTR LCD_PORT_D[rip]
	mov	rdx, QWORD PTR lcd_bits[rip]
	sub	ecx, 1
	mov	rdi, QWORD PTR BIT_MSK[rip]
	mov	r8, QWORD PTR [rdx+rsi*8]
	lea	rsi, 0[0+rdi*4]
	mov	rdx, r8
	lea	rdi, [r8+rcx*8]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rcx, QWORD PTR [rdx]
	and	eax, DWORD PTR [rcx+rsi]
	mov	rcx, rdx
	add	rdx, 8
	cmp	rdi, rcx
	jne	.L3
.L4:
	mov	rdx, QWORD PTR LCD_BIT_E[rip]
	mov	rsi, QWORD PTR bits[rip]
	mov	edi, DWORD PTR pprt[rip]
	mov	rcx, QWORD PTR [r8+rdx*8]
	mov	rdx, QWORD PTR LCD_BIT_RS[rip]
	mov	r12d, DWORD PTR [rcx+rsi*4]
	mov	rdx, QWORD PTR [r8+rdx*8]
	mov	rcx, QWORD PTR bits[rip+8]
	or	r12d, DWORD PTR [rdx+rcx*4]
	mov	rdx, QWORD PTR bits[rip+16]
	or	r12d, eax
	mov	rax, QWORD PTR LCD_BIT_RW[rip]
	mov	rax, QWORD PTR [r8+rax*8]
	or	r12d, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR LCD_BIT_BL[rip]
	mov	rdx, QWORD PTR bits[rip+24]
	mov	rax, QWORD PTR [r8+rax*8]
	or	r12d, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR LCD_BIT_CL[rip]
	mov	rdx, QWORD PTR bits[rip+32]
	mov	rax, QWORD PTR [r8+rax*8]
	or	r12d, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR LCD_BIT_DA[rip]
	mov	rdx, QWORD PTR bits[rip+40]
	mov	rax, QWORD PTR [r8+rax*8]
	or	r12d, DWORD PTR [rax+rdx*4]
	mov	esi, r12d
	call	w_dtr@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rcx, QWORD PTR LCD_PORT_D[rip]
	mov	rdx, QWORD PTR lcd_bits[rip]
	mov	r8, QWORD PTR [rdx+rcx*8]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	set_data_bits, .-set_data_bits
	.comm	pprt,4,4
	.comm	lcd_bits,8,8
	.comm	bits,48,32
	.comm	LCD_PORT_D,8,8
	.comm	LCD_BIT_RW,8,8
	.comm	LCD_BIT_RS,8,8
	.comm	LCD_BIT_E,8,8
	.comm	LCD_BIT_DA,8,8
	.comm	LCD_BIT_CL,8,8
	.comm	LCD_BIT_BL,8,8
	.comm	LCD_BITS,4,4
	.comm	BIT_MSK,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_panel.c_set_data_bits.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_data_bits, %function
set_data_bits:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L8
	ldr	r0, [r5]
	bl	r_dtr
	ldr	r3, .L8+4
	ldr	r2, .L8+8
	ldr	r1, [r3]
	ldr	r3, .L8+12
	cmp	r1, #0
	ble	.L2
	ldr	ip, [r2]
	ldr	r2, [r3]
	ldr	r3, .L8+16
	ldr	lr, [r2, ip, lsl #2]
	ldr	ip, [r3]
	add	r1, lr, r1, lsl #2
	sub	r1, r1, #4
	sub	r3, lr, #4
	lsl	ip, ip, #2
.L3:
	ldr	r2, [r3, #4]!
	ldr	r2, [r2, ip]
	cmp	r1, r3
	and	r0, r0, r2
	bne	.L3
.L4:
	ldr	r3, .L8+20
	ldr	r2, .L8+24
	ldr	ip, [r3]
	ldr	r3, .L8+28
	ldr	ip, [lr, ip, lsl #2]
	ldr	r4, [r3]
	ldr	r2, [r2]
	ldr	r4, [ip, r4, lsl #2]
	ldr	r2, [lr, r2, lsl #2]
	ldr	ip, [r3, #4]
	ldr	r1, .L8+32
	ldr	r2, [r2, ip, lsl #2]
	ldr	r6, [r1]
	ldr	r1, .L8+36
	orr	r4, r4, r2
	ldr	ip, .L8+40
	ldr	r2, .L8+44
	ldr	r6, [lr, r6, lsl #2]
	ldr	r1, [r1]
	orr	r4, r4, r0
	ldr	r0, [r3, #8]
	ldr	ip, [ip]
	ldr	r2, [r2]
	ldr	r1, [lr, r1, lsl #2]
	ldr	r0, [r6, r0, lsl #2]
	ldr	r6, [r3, #12]
	ldr	ip, [lr, ip, lsl #2]
	ldr	r2, [lr, r2, lsl #2]
	ldr	lr, [r3, #16]
	orr	r4, r4, r0
	ldr	r0, [r1, r6, lsl #2]
	ldr	r1, [r3, #20]
	ldr	r3, [ip, lr, lsl #2]
	ldr	r1, [r2, r1, lsl #2]
	orr	r4, r4, r0
	orr	r4, r4, r3
	orr	r4, r4, r1
	mov	r1, r4
	ldr	r0, [r5]
	bl	w_dtr
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	lr, [r3, r2, lsl #2]
	b	.L4
.L9:
	.align	2
.L8:
	.word	pprt
	.word	LCD_BITS
	.word	LCD_PORT_D
	.word	lcd_bits
	.word	BIT_MSK
	.word	LCD_BIT_E
	.word	LCD_BIT_RS
	.word	bits
	.word	LCD_BIT_RW
	.word	LCD_BIT_BL
	.word	LCD_BIT_CL
	.word	LCD_BIT_DA
	.size	set_data_bits, .-set_data_bits
	.comm	pprt,4,4
	.comm	lcd_bits,4,4
	.comm	bits,24,4
	.comm	LCD_PORT_D,4,4
	.comm	LCD_BIT_RW,4,4
	.comm	LCD_BIT_RS,4,4
	.comm	LCD_BIT_E,4,4
	.comm	LCD_BIT_DA,4,4
	.comm	LCD_BIT_CL,4,4
	.comm	LCD_BIT_BL,4,4
	.comm	LCD_BITS,4,4
	.comm	BIT_MSK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
