// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: setviewback
void setviewback(void)
{
	int i, j, k;

	if (setviewcnt <= 0) return;
	setviewcnt--;

	offscreenrendering = (setviewcnt>0);
#if USE_POLYMOST
	if (setviewcnt == 0) {
		rendmode = bakrendmode;
#if USE_OPENGL
		invalidatetile(baktile,-1,-1);
#endif
	}
#endif

	setview(bakwindowx1[setviewcnt],bakwindowy1[setviewcnt],
			  bakwindowx2[setviewcnt],bakwindowy2[setviewcnt]);
	copybufbyte(&bakumost[windowx1],&startumost[windowx1],(windowx2-windowx1+1)*sizeof(startumost[0]));
	copybufbyte(&bakdmost[windowx1],&startdmost[windowx1],(windowx2-windowx1+1)*sizeof(startdmost[0]));
	frameplace = bakframeplace[setviewcnt];
	if (setviewcnt == 0)
		k = bakxsiz[0];
	else
		k = max(bakxsiz[setviewcnt-1],bakxsiz[setviewcnt]);
	j = 0; for(i=0;i<=k;i++) ylookup[i] = j, j += bytesperline;
	setvlinebpl(bytesperline);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
cmpl $0x0, 0x41a611(%rip)    # 0x472a20
jg 0x58416
jmp 0x58618
movl 0x41a604(%rip), %eax    # 0x472a20
addl $-0x1, %eax
movl %eax, 0x41a5fb(%rip)    # 0x472a20
cmpl $0x0, 0x41a5f4(%rip)    # 0x472a20
setg %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
leaq 0x1627db(%rip), %rax    # 0x1bac18
movb %cl, (%rax)
cmpl $0x0, 0x41a5da(%rip)    # 0x472a20
jne 0x5846c
movl 0x41a652(%rip), %ecx    # 0x472aa0
leaq 0x5954cb(%rip), %rax    # 0x5ed920
movl %ecx, (%rax)
movl 0x41a647(%rip), %eax    # 0x472aa4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movswl %ax, %edi
movl %edx, %esi
callq 0x58620
movslq 0x41a5ad(%rip), %rcx    # 0x472a20
leaq 0x41a5e6(%rip), %rax    # 0x472a60
movl (%rax,%rcx,4), %edi
movslq 0x41a59c(%rip), %rcx    # 0x472a20
leaq 0x41a5e5(%rip), %rax    # 0x472a70
movl (%rax,%rcx,4), %esi
movslq 0x41a58b(%rip), %rcx    # 0x472a20
leaq 0x41a5e4(%rip), %rax    # 0x472a80
movl (%rax,%rcx,4), %edx
movslq 0x41a57a(%rip), %rcx    # 0x472a20
leaq 0x41a5e3(%rip), %rax    # 0x472a90
movl (%rax,%rcx,4), %ecx
callq 0x4c7e0
movslq 0x3b5c94(%rip), %rax    # 0x40e150
leaq 0x41a5ed(%rip), %rdi    # 0x472ab0
shlq %rax
addq %rax, %rdi
movslq 0x3b5c80(%rip), %rax    # 0x40e150
leaq 0x3b45f9(%rip), %rsi    # 0x40cad0
shlq %rax
addq %rax, %rsi
movl 0x3ea85d(%rip), %eax    # 0x442d40
subl 0x3b5c67(%rip), %eax    # 0x40e150
addl $0x1, %eax
cltq
shlq %rax
movl %eax, %edx
callq 0x6ef00
movslq 0x3b5c51(%rip), %rax    # 0x40e150
leaq 0x41bc2a(%rip), %rdi    # 0x474130
shlq %rax
addq %rax, %rdi
movslq 0x3b5c3d(%rip), %rax    # 0x40e150
leaq 0x3b5c46(%rip), %rsi    # 0x40e160
shlq %rax
addq %rax, %rsi
movl 0x3ea81a(%rip), %eax    # 0x442d40
subl 0x3b5c24(%rip), %eax    # 0x40e150
addl $0x1, %eax
cltq
shlq %rax
movl %eax, %edx
callq 0x6ef00
movslq 0x41a4de(%rip), %rcx    # 0x472a20
leaq 0x41a4f7(%rip), %rax    # 0x472a40
movq (%rax,%rcx,8), %rcx
leaq 0x1626bc(%rip), %rax    # 0x1bac10
movq %rcx, (%rax)
cmpl $0x0, 0x41a4c2(%rip)    # 0x472a20
jne 0x5856b
movl 0x41a4aa(%rip), %eax    # 0x472a10
movl %eax, -0xc(%rbp)
jmp 0x585c9
movl 0x41a4af(%rip), %eax    # 0x472a20
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x41a492(%rip), %rax    # 0x472a10
movl (%rax,%rcx,4), %eax
movslq 0x41a498(%rip), %rdx    # 0x472a20
leaq 0x41a481(%rip), %rcx    # 0x472a10
cmpl (%rcx,%rdx,4), %eax
jle 0x585af
movl 0x41a486(%rip), %eax    # 0x472a20
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x41a469(%rip), %rax    # 0x472a10
movl (%rax,%rcx,4), %eax
movl %eax, -0x10(%rbp)
jmp 0x585c3
movslq 0x41a46a(%rip), %rcx    # 0x472a20
leaq 0x41a453(%rip), %rax    # 0x472a10
movl (%rax,%rcx,4), %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xc(%rbp)
movl $0x0, -0x8(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jg 0x5860a
movl -0x8(%rbp), %edx
movslq -0x4(%rbp), %rcx
leaq 0x3f9493(%rip), %rax    # 0x451a80
movl %edx, (%rax,%rcx,4)
leaq 0x1627ed(%rip), %rax    # 0x1bade4
movl (%rax), %eax
addl -0x8(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x585d7
leaq 0x1627d3(%rip), %rax    # 0x1bade4
movl (%rax), %edi
callq 0xa7550
addq $0x10, %rsp
popq %rbp
retq
nop