// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/polymost.c
// Function: resizeglcheck
void resizeglcheck (void)
{
	if (glredbluemode < lastglredbluemode) {
		glox1 = -1;
		glfunc.glColorMask(1,1,1,1);
	} else if (glredbluemode != lastglredbluemode) {
		redblueclearcnt = 0;
	}
	lastglredbluemode = glredbluemode;

#if (USE_OPENGL != USE_GLES2)
	if (lastglpolygonmode != glpolygonmode)
	{
		lastglpolygonmode = glpolygonmode;
		switch(glpolygonmode)
		{
			default:
			case 0: glfunc.glPolygonMode(GL_FRONT_AND_BACK,GL_FILL); break;
			case 1: glfunc.glPolygonMode(GL_FRONT_AND_BACK,GL_LINE); break;
			case 2: glfunc.glPolygonMode(GL_FRONT_AND_BACK,GL_POINT); break;
		}
	}
#endif

	if ((glox1 != windowx1) || (gloy1 != windowy1) || (glox2 != windowx2) || (gloy2 != windowy2))
	{
		glox1 = windowx1; gloy1 = windowy1;
		glox2 = windowx2; gloy2 = windowy2;

		glfunc.glViewport(windowx1,yres-(windowy2+1),windowx2-windowx1+1,windowy2-windowy1+1);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl 0x57a7b2(%rip), %eax    # 0x5ed950
cmpl 0x57a7fc(%rip), %eax    # 0x5ed9a0
jge 0x731cd
movss 0x3ef4a(%rip), %xmm0    # 0xb20f8
movss %xmm0, 0x57a7e2(%rip)   # 0x5ed998
movl $0x1, %ecx
leaq 0x57a54e(%rip), %rax    # 0x5ed710
movl %ecx, %edi
movl %ecx, %esi
movl %ecx, %edx
callq *0x10(%rax)
jmp 0x731e7
movl 0x57a77d(%rip), %eax    # 0x5ed950
cmpl 0x57a7c7(%rip), %eax    # 0x5ed9a0
je 0x731e5
movl $0x0, 0x57a837(%rip)    # 0x5eda1c
jmp 0x731e7
movl 0x57a763(%rip), %eax    # 0x5ed950
movl %eax, 0x57a7ad(%rip)    # 0x5ed9a0
movl 0x57a7a3(%rip), %eax    # 0x5ed99c
cmpl 0x57a771(%rip), %eax    # 0x5ed970
je 0x73274
movl 0x57a769(%rip), %eax    # 0x5ed970
movl %eax, 0x57a78f(%rip)    # 0x5ed99c
movl 0x57a75d(%rip), %eax    # 0x5ed970
movl %eax, -0x4(%rbp)
testl %eax, %eax
je 0x73232
jmp 0x7321c
movl -0x4(%rbp), %eax
subl $0x1, %eax
je 0x73248
jmp 0x73226
movl -0x4(%rbp), %eax
subl $0x2, %eax
je 0x7325e
jmp 0x73230
jmp 0x73232
movl $0x408, %edi            # imm = 0x408
movl $0x1b02, %esi           # imm = 0x1B02
leaq 0x57a4cd(%rip), %rax    # 0x5ed710
callq *0x38(%rax)
jmp 0x73272
movl $0x408, %edi            # imm = 0x408
movl $0x1b01, %esi           # imm = 0x1B01
leaq 0x57a4b7(%rip), %rax    # 0x5ed710
callq *0x38(%rax)
jmp 0x73272
movl $0x408, %edi            # imm = 0x408
movl $0x1b00, %esi           # imm = 0x1B00
leaq 0x57a4a1(%rip), %rax    # 0x5ed710
callq *0x38(%rax)
jmp 0x73274
movss 0x57a71c(%rip), %xmm0   # 0x5ed998
leaq 0x39aecd(%rip), %rax    # 0x40e150
cvtsi2ssl (%rax), %xmm1
ucomiss %xmm1, %xmm0
jne 0x732e1
jp 0x732e1
movss 0x57a78a(%rip), %xmm0   # 0x5eda20
leaq 0x39c543(%rip), %rax    # 0x40f7e0
cvtsi2ssl (%rax), %xmm1
ucomiss %xmm1, %xmm0
jne 0x732e1
jp 0x732e1
movss 0x57a774(%rip), %xmm0   # 0x5eda24
leaq 0x3cfa89(%rip), %rax    # 0x442d40
cvtsi2ssl (%rax), %xmm1
ucomiss %xmm1, %xmm0
jne 0x732e1
jp 0x732e1
movss 0x57a75e(%rip), %xmm0   # 0x5eda28
leaq 0x3cfa73(%rip), %rax    # 0x442d44
cvtsi2ssl (%rax), %xmm1
ucomiss %xmm1, %xmm0
jne 0x732e1
jp 0x732e1
jmp 0x73388
leaq 0x39ae68(%rip), %rax    # 0x40e150
cvtsi2ssl (%rax), %xmm0
movss %xmm0, 0x57a6a4(%rip)   # 0x5ed998
leaq 0x39c4e5(%rip), %rax    # 0x40f7e0
cvtsi2ssl (%rax), %xmm0
movss %xmm0, 0x57a719(%rip)   # 0x5eda20
leaq 0x3cfa32(%rip), %rax    # 0x442d40
cvtsi2ssl (%rax), %xmm0
movss %xmm0, 0x57a70a(%rip)   # 0x5eda24
leaq 0x3cfa23(%rip), %rax    # 0x442d44
cvtsi2ssl (%rax), %xmm0
movss %xmm0, 0x57a6fb(%rip)   # 0x5eda28
leaq 0x57a3dc(%rip), %rax    # 0x5ed710
movq 0x80(%rax), %rax
leaq 0x39ae0e(%rip), %rcx    # 0x40e150
movl (%rcx), %edi
leaq 0x6d0ad(%rip), %rcx     # 0xe03f8
movl (%rcx), %esi
leaq 0x3cf9f0(%rip), %rcx    # 0x442d44
movl (%rcx), %ecx
addl $0x1, %ecx
subl %ecx, %esi
leaq 0x3cf9de(%rip), %rcx    # 0x442d40
movl (%rcx), %edx
leaq 0x39ade5(%rip), %rcx    # 0x40e150
subl (%rcx), %edx
addl $0x1, %edx
leaq 0x3cf9cd(%rip), %rcx    # 0x442d44
movl (%rcx), %ecx
leaq 0x39c460(%rip), %r8     # 0x40f7e0
subl (%r8), %ecx
addl $0x1, %ecx
callq *%rax
addq $0x10, %rsp
popq %rbp
retq
nop