	.file	"extr_cirrusfb.c_WClut.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	WClut, @function
WClut:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	movzx	edx, sil
	mov	esi, DWORD PTR VGA_PEL_IW[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, DWORD PTR VGA_PEL_D[rip]
	movzx	r15d, r15b
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	movzx	r13d, r13b
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, DWORD PTR 8[rdi]
	movzx	r12d, r12b
	call	vga_w@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR BT_PICASSO[rip]
	je	.L5
	cmp	rax, QWORD PTR BT_PICASSO4[rip]
	je	.L3
	cmp	rax, QWORD PTR BT_ALPINE[rip]
	je	.L3
	cmp	rax, QWORD PTR BT_GD5480[rip]
	je	.L3
	cmp	rax, QWORD PTR BT_SD64[rip]
	je	.L3
	mov	rdi, rbx
	call	is_laguna@PLT
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR BT_PICASSO[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r15d
	mov	esi, r14d
	call	vga_w@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r12d
	mov	esi, r14d
	call	vga_w@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r13d
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r14d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	vga_w@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	r14d, 4095
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r13d
	mov	esi, r14d
	call	vga_w@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r12d
	mov	esi, r14d
	call	vga_w@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r15d
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	WClut, .-WClut
	.comm	VGA_PEL_IW,4,4
	.comm	VGA_PEL_D,4,4
	.comm	BT_SD64,8,8
	.comm	BT_PICASSO4,8,8
	.comm	BT_PICASSO,8,8
	.comm	BT_GD5480,8,8
	.comm	BT_ALPINE,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_cirrusfb.c_WClut.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	WClut, %function
WClut:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r5, .L8
	ldr	ip, .L8+4
	ldr	r7, .L8+8
	mov	r8, r2
	ldr	r0, [r0, #4]
	mov	r2, r1
	ldr	r1, [r5]
	mov	r6, r3
	ldr	r5, [ip]
	ldrb	r9, [sp, #32]	@ zero_extendqisi2
	bl	vga_w
	ldr	r1, [r4]
	ldr	r0, [r7]
	cmp	r1, r0
	beq	.L5
	ldr	r3, .L8+12
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L3
	ldr	r3, .L8+16
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L3
	ldr	r3, .L8+20
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L3
	ldr	r3, .L8+24
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L3
	mov	r0, r4
	bl	is_laguna
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r7]
	ldr	r2, [r4]
	cmp	r2, r3
	beq	.L5
.L3:
	mov	r2, r8
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	vga_w
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	vga_w
	mov	r2, r9
	mov	r1, r5
	ldr	r0, [r4, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	vga_w
.L5:
	add	r5, r5, #4080
	add	r5, r5, #15
	b	.L3
.L4:
	mov	r2, r9
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	vga_w
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	vga_w
	mov	r2, r8
	mov	r1, r5
	ldr	r0, [r4, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	vga_w
.L9:
	.align	2
.L8:
	.word	VGA_PEL_IW
	.word	VGA_PEL_D
	.word	BT_PICASSO
	.word	BT_PICASSO4
	.word	BT_ALPINE
	.word	BT_GD5480
	.word	BT_SD64
	.size	WClut, .-WClut
	.comm	VGA_PEL_IW,4,4
	.comm	VGA_PEL_D,4,4
	.comm	BT_SD64,4,4
	.comm	BT_PICASSO4,4,4
	.comm	BT_PICASSO,4,4
	.comm	BT_GD5480,4,4
	.comm	BT_ALPINE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
