// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: clearallviews
void clearallviews(int dacol)
{
	if (qsetmode != 200) return;

#if USE_POLYMOST && USE_OPENGL
	if (rendmode == 3) {
		palette_t p;
		if (usegammabrightness) p = curpalette[dacol];
		else {
			p.r = britable[curbrightness][ curpalette[dacol].r ];
			p.g = britable[curbrightness][ curpalette[dacol].g ];
			p.b = britable[curbrightness][ curpalette[dacol].b ];
		}
		glfunc.glViewport(0,0,xdim,ydim); glox1 = -1;
		glfunc.glClearColor(((float)p.r)/255.0,
					  ((float)p.g)/255.0,
					  ((float)p.b)/255.0,
					  0);
		glfunc.glClear(GL_COLOR_BUFFER_BIT);
		return;
	}
#endif

	dacol += (dacol<<8); dacol += (dacol<<16);
	clearbuf((void*)frameplace,imageSize>>2,dacol);

	faketimerhandler();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
cmpl $0xc8, 0x1a88b3(%rip)   # 0x1f5588
je 0x4ccdc
jmp 0x4ce60
leaq 0x5a0c3d(%rip), %rax    # 0x5ed920
cmpl $0x3, (%rax)
jne 0x4ce25
cmpl $0x0, 0x93f89(%rip)     # 0xe0c7c
je 0x4cd0b
movslq -0x4(%rbp), %rcx
leaq 0x424500(%rip), %rax    # 0x471200
movl (%rax,%rcx,4), %eax
movl %eax, -0x8(%rbp)
jmp 0x4cd8b
movslq 0x1a8852(%rip), %rcx    # 0x1f5564
leaq 0x424ce7(%rip), %rax    # 0x471a00
shlq $0x8, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rdx
leaq 0x4244d5(%rip), %rcx    # 0x471200
movzbl (%rcx,%rdx,4), %ecx
movb (%rax,%rcx), %al
movb %al, -0x8(%rbp)
movslq 0x1a8828(%rip), %rcx    # 0x1f5564
leaq 0x424cbd(%rip), %rax    # 0x471a00
shlq $0x8, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rdx
leaq 0x4244ab(%rip), %rcx    # 0x471200
movzbl 0x1(%rcx,%rdx,4), %ecx
movb (%rax,%rcx), %al
movb %al, -0x7(%rbp)
movslq 0x1a87fd(%rip), %rcx    # 0x1f5564
leaq 0x424c92(%rip), %rax    # 0x471a00
shlq $0x8, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rdx
leaq 0x424480(%rip), %rcx    # 0x471200
movzbl 0x2(%rcx,%rdx,4), %ecx
movb (%rax,%rcx), %al
movb %al, -0x6(%rbp)
leaq 0x5a097e(%rip), %rax    # 0x5ed710
movq %rax, -0x10(%rbp)
movq 0x80(%rax), %rax
movl 0x3f5fa9(%rip), %edx    # 0x442d4c
movl 0x3f5fa7(%rip), %ecx    # 0x442d50
xorl %esi, %esi
movl %esi, %edi
callq *%rax
movq -0x10(%rbp), %rax
leaq 0x5a0bde(%rip), %rcx    # 0x5ed998
movl $0xbf800000, (%rcx)     # imm = 0xBF800000
movq (%rax), %rax
movzbl -0x8(%rbp), %ecx
cvtsi2ss %ecx, %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x65f49(%rip), %xmm2    # 0xb2d20
divsd %xmm2, %xmm0
cvtsd2ss %xmm0, %xmm0
movzbl -0x7(%rbp), %ecx
cvtsi2ss %ecx, %xmm1
cvtss2sd %xmm1, %xmm1
divsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movzbl -0x6(%rbp), %ecx
cvtsi2ss %ecx, %xmm2
cvtss2sd %xmm2, %xmm2
movsd 0x65f19(%rip), %xmm3    # 0xb2d20
divsd %xmm3, %xmm2
cvtsd2ss %xmm2, %xmm2
xorps %xmm3, %xmm3
callq *%rax
movl $0x4000, %edi           # imm = 0x4000
leaq 0x5a08f0(%rip), %rax    # 0x5ed710
callq *0x8(%rax)
jmp 0x4ce60
movl -0x4(%rbp), %eax
shll $0x8, %eax
addl -0x4(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
shll $0x10, %eax
addl -0x4(%rbp), %eax
movl %eax, -0x4(%rbp)
leaq 0x16ddcc(%rip), %rax    # 0x1bac10
movq (%rax), %rdi
leaq 0x16df9a(%rip), %rax    # 0x1bade8
movl (%rax), %esi
sarl $0x2, %esi
movl -0x4(%rbp), %edx
callq 0x6ed50
callq 0xc220
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)