LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/cache1d.c
// Function: kzipopen
static int kzipopen(const char *filnam)
{
	unsigned int i;
	char newst[BMAX_PATH+4];

	newst[0] = '|';
	for(i=0;filnam[i] && (i < sizeof(newst)-2);i++) newst[i+1] = filnam[i];
	newst[i+1] = 0;
	return(kzopen(newst));
}

// Assembly:
subq $0x408, %rsp            # imm = 0x408
movb $0x7c, (%rsp)
xorl %eax, %eax
cmpq $0x401, %rax            # imm = 0x401
ja 0x1de2a
movb (%rdi,%rax), %cl
testb %cl, %cl
je 0x1de2a
movb %cl, 0x1(%rsp,%rax)
incq %rax
jmp 0x1de12
movb $0x0, 0x1(%rsp,%rax)
movq %rsp, %rdi
callq 0x405fa
addq $0x408, %rsp            # imm = 0x408
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/cache1d.c
// Function: klseek
int klseek(int handle, int offset, int whence)
{
	int i, groupnum;

	groupnum = filegrp[handle];

	if (groupnum == 255) return((int)lseek(filehan[handle],offset,whence));
#ifdef WITHKPLIB
	else if (groupnum == 254)
	{
		if (kzcurhand != handle)
		{
			if (kztell() >= 0) { filepos[kzcurhand] = kztell(); kzclose(); }
			kzcurhand = handle;
			kzipopen(filenamsav[handle]);
			kzseek(filepos[handle],SEEK_SET);
		}
		return(kzseek(offset,whence));
	}
#endif

	if (groupfil[groupnum] != -1)
	{
		switch(whence)
		{
			case BSEEK_SET: filepos[handle] = offset; break;
			case BSEEK_END: i = filehan[handle];
				filepos[handle] = (gfileoffs[groupnum][i+1]-gfileoffs[groupnum][i])+offset;
				break;
			case BSEEK_CUR: filepos[handle] += offset; break;
		}
		return(filepos[handle]);
	}
	return(-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %ebx
movslq %edi, %r15
leaq 0x18f748(%rip), %rax    # 0x1ad780
movzbl (%r15,%rax), %eax
cmpl $0xfe, %eax
je 0x1e06c
cmpl $0xff, %eax
jne 0x1e0dd
leaq 0x7effa(%rip), %rax     # 0x9d050
movl (%rax,%r15,4), %edi
movslq %ebx, %rsi
movl %ebp, %edx
callq 0x62b0
movq %rax, %rbx
jmp 0x1e13f
movl %edi, %r14d
cmpl %edi, 0x7f0db(%rip)     # 0x9d150
je 0x1e0ca
callq 0x41773
testl %eax, %eax
js 0x1e09b
callq 0x41773
movslq 0x7f0c4(%rip), %rcx     # 0x9d150
leaq 0x18f72d(%rip), %rdx    # 0x1ad7c0
movl %eax, (%rdx,%rcx,4)
callq 0x417cf
movl %r14d, 0x7f0ae(%rip)    # 0x9d150
imulq $0x104, %r15, %rax      # imm = 0x104
leaq 0x18f810(%rip), %rdi    # 0x1ad8c0
addq %rax, %rdi
callq 0x1de05
leaq 0x18f701(%rip), %rax    # 0x1ad7c0
movl (%rax,%r15,4), %edi
xorl %esi, %esi
callq 0x4172f
movl %ebx, %edi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4172f
leaq 0x7ef5c(%rip), %rcx     # 0x9d040
cmpl $-0x1, (%rcx,%rax,4)
je 0x1e11e
testl %ebp, %ebp
je 0x1e115
cmpl $0x1, %ebp
je 0x1e123
cmpl $0x2, %ebp
jne 0x1e134
leaq 0x7ef51(%rip), %rcx     # 0x9d050
movslq (%rcx,%r15,4), %rcx
leaq 0x18f656(%rip), %rdx    # 0x1ad760
movq (%rdx,%rax,8), %rax
addl 0x4(%rax,%rcx,4), %ebx
subl (%rax,%rcx,4), %ebx
leaq 0x18f6a4(%rip), %rax    # 0x1ad7c0
jmp 0x1e12e
pushq $-0x1
popq %rbx
jmp 0x1e13f
leaq 0x18f696(%rip), %rax    # 0x1ad7c0
addl (%rax,%r15,4), %ebx
movl %ebx, (%rax,%r15,4)
jmp 0x1e13f
leaq 0x18f685(%rip), %rax    # 0x1ad7c0
movl (%rax,%r15,4), %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/cache1d.c
// Function: kfilelength
int kfilelength(int handle)
{
	int i, groupnum;

	groupnum = filegrp[handle];
	if (groupnum == 255) {
		return (int)Bfilelength(filehan[handle]);
	}
#ifdef WITHKPLIB
	else if (groupnum == 254)
	{
		if (kzcurhand != handle)
		{
			if (kztell() >= 0) { filepos[kzcurhand] = kztell(); kzclose(); }
			kzcurhand = handle;
			kzipopen(filenamsav[handle]);
			kzseek(filepos[handle],SEEK_SET);
		}
		return kzfilelength();
	}
#endif
	i = filehan[handle];
	return(gfileoffs[groupnum][i+1]-gfileoffs[groupnum][i]);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movslq %edi, %r14
leaq 0x18f626(%rip), %rax    # 0x1ad780
movzbl (%r14,%rax), %eax
cmpl $0xfe, %eax
je 0x1e182
cmpl $0xff, %eax
jne 0x1e1ea
leaq 0x7eedc(%rip), %rax     # 0x9d050
movl (%rax,%r14,4), %edi
callq 0x1f90a
jmp 0x1e207
movl %edi, %ebx
cmpl %edi, 0x7efc6(%rip)     # 0x9d150
je 0x1e1de
callq 0x41773
testl %eax, %eax
js 0x1e1b0
callq 0x41773
movslq 0x7efaf(%rip), %rcx     # 0x9d150
leaq 0x18f618(%rip), %rdx    # 0x1ad7c0
movl %eax, (%rdx,%rcx,4)
callq 0x417cf
movl %ebx, 0x7ef9a(%rip)     # 0x9d150
imulq $0x104, %r14, %rax      # imm = 0x104
leaq 0x18f6fc(%rip), %rdi    # 0x1ad8c0
addq %rax, %rdi
callq 0x1de05
leaq 0x18f5ed(%rip), %rax    # 0x1ad7c0
movl (%rax,%r14,4), %edi
xorl %esi, %esi
callq 0x4172f
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4171c
leaq 0x7ee5f(%rip), %rcx     # 0x9d050
movslq (%rcx,%r14,4), %rcx
leaq 0x18f564(%rip), %rdx    # 0x1ad760
movq (%rdx,%rax,8), %rdx
movl 0x4(%rdx,%rcx,4), %eax
subl (%rdx,%rcx,4), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/cache1d.c
// Function: ktell
int ktell(int handle)
{
	int groupnum;

	groupnum = filegrp[handle];

	if (groupnum == 255) return((int)lseek(filehan[handle],0,SEEK_CUR));
#ifdef WITHKPLIB
	else if (groupnum == 254)
	{
		if (kzcurhand != handle)
		{
			if (kztell() >= 0) { filepos[kzcurhand] = kztell(); kzclose(); }
			kzcurhand = handle;
			kzipopen(filenamsav[handle]);
			kzseek(filepos[handle],SEEK_SET);
		}
		return kztell();
	}
#endif
	if (groupfil[groupnum] != -1)
		return filepos[handle];
	return(-1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movslq %edi, %r14
leaq 0x18f563(%rip), %rax    # 0x1ad780
movzbl (%r14,%rax), %eax
cmpl $0xfe, %eax
je 0x1e24e
cmpl $0xff, %eax
jne 0x1e2b6
leaq 0x7ee15(%rip), %rax     # 0x9d050
movl (%rax,%r14,4), %edi
pushq $0x1
popq %rdx
xorl %esi, %esi
callq 0x62b0
jmp 0x1e2d3
movl %edi, %ebx
cmpl %edi, 0x7eefa(%rip)     # 0x9d150
je 0x1e2aa
callq 0x41773
testl %eax, %eax
js 0x1e27c
callq 0x41773
movslq 0x7eee3(%rip), %rcx     # 0x9d150
leaq 0x18f54c(%rip), %rdx    # 0x1ad7c0
movl %eax, (%rdx,%rcx,4)
callq 0x417cf
movl %ebx, 0x7eece(%rip)     # 0x9d150
imulq $0x104, %r14, %rax      # imm = 0x104
leaq 0x18f630(%rip), %rdi    # 0x1ad8c0
addq %rax, %rdi
callq 0x1de05
leaq 0x18f521(%rip), %rax    # 0x1ad7c0
movl (%rax,%r14,4), %edi
xorl %esi, %esi
callq 0x4172f
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x41773
leaq 0x7ed83(%rip), %rcx     # 0x9d040
cmpl $-0x1, (%rcx,%rax,4)
je 0x1e2d0
leaq 0x18f4f6(%rip), %rax    # 0x1ad7c0
movl (%rax,%r14,4), %eax
jmp 0x1e2d3
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/cache1d.c
// Function: kclose
void kclose(int handle)
{
	if (handle < 0) return;
	if (filegrp[handle] == 255) Bclose(filehan[handle]);
#ifdef WITHKPLIB
	else if (filegrp[handle] == 254)
	{
		kzclose();
		kzcurhand = -1;
	}
#endif
	filehan[handle] = -1;
}

// Assembly:
testl %edi, %edi
js 0x1e324
pushq %rbx
movl %edi, %ebx
leaq 0x18f497(%rip), %rax    # 0x1ad780
movzbl (%rbx,%rax), %eax
cmpl $0xfe, %eax
je 0x1e30c
cmpl $0xff, %eax
jne 0x1e318
leaq 0x7ed4e(%rip), %rax     # 0x9d050
movl (%rax,%rbx,4), %edi
callq 0x6220
jmp 0x1e318
callq 0x417cf
orl $-0x1, 0x7ee38(%rip)    # 0x9d150
leaq 0x7ed31(%rip), %rax     # 0x9d050
orl $-0x1, (%rax,%rbx,4)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/cache1d.c
// Function: klistfree
void klistfree(CACHE1D_FIND_REC *rec)
{
	CACHE1D_FIND_REC *n;
	
	while (rec) {
		n = rec->next;
		free(rec);
		rec = n;
	}
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1e339
movq 0x10(%rdi), %rbx
callq 0x61c0
movq %rbx, %rdi
jmp 0x1e326
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/cache1d.c
// Function: kdfread
unsigned kdfread(void *buffer, unsigned dasizeof, unsigned count, int fil)
{
	size_t i, j;
	int k, kgoal;
	unsigned short leng;
	unsigned char *ptr;

	lzwallocate();

	if (dasizeof > LZWSIZE) { count *= dasizeof; dasizeof = 1; }
	ptr = (unsigned char *)buffer;

	if (kread(fil,&leng,2) != 2) { lzwrelease(); return 0; }
	leng = B_LITTLE16(leng);
	if (kread(fil,lzwbuf5,(int)leng) != leng) { lzwrelease(); return 0; }
	k = 0; kgoal = lzwuncompress(lzwbuf5,(int)leng,lzwbuf4);

	copybufbyte(lzwbuf4,ptr,(int)dasizeof);
	k += (int)dasizeof;

	for(i=1;i<count;i++)
	{
		if (k >= kgoal)
		{
			if (kread(fil,&leng,2) != 2) { lzwrelease(); return -1; }
			leng = B_LITTLE16(leng);
			if (kread(fil,lzwbuf5,(int)leng) != leng) { lzwrelease(); return -1; }
			k = 0; kgoal = lzwuncompress(lzwbuf5,(int)leng,lzwbuf4);
		}
		for(j=0;j<dasizeof;j++) ptr[j+dasizeof] = ((ptr[j]+lzwbuf4[j+k])&255);
		k += dasizeof;
		ptr += dasizeof;
	}
	lzwrelease();
	return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebx
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %r14
callq 0x1ea64
cmpl $0x4001, %r15d          # imm = 0x4001
pushq $0x1
popq %r13
movl %r15d, %ebp
cmovael %r13d, %ebp
cmovael %r15d, %r13d
leaq 0xe(%rsp), %rsi
pushq $0x2
popq %rdx
movl %ebx, %edi
callq 0x1de3f
xorl %r15d, %r15d
cmpl $0x2, %eax
jne 0x1ea41
movzwl 0xe(%rsp), %edx
movq 0x193074(%rip), %rsi    # 0x1b19c0
movl %ebx, 0x14(%rsp)
movl %ebx, %edi
callq 0x1de3f
movzwl 0xe(%rsp), %ecx
cmpl %ecx, %eax
jne 0x1ea41
imull %r12d, %r13d
movq 0x193051(%rip), %rdi    # 0x1b19c0
movq 0x193052(%rip), %rdx    # 0x1b19c8
movl %eax, %esi
callq 0x1eb23
movl %eax, %r12d
movq 0x193041(%rip), %rdi    # 0x1b19c8
movq %r14, %rsi
movl %ebp, %edx
callq 0x44524
movl %r13d, 0x10(%rsp)
movl %r13d, %r15d
movl %ebp, %r13d
pushq $0x1
popq %rbx
movl %ebp, %eax
cmpq %r15, %rbx
jae 0x1ea36
cmpl %r12d, %eax
jl 0x1ea00
movl 0x14(%rsp), %r12d
movl %r12d, %edi
leaq 0xe(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x1de3f
cmpl $0x2, %eax
jne 0x1ea3d
movzwl 0xe(%rsp), %edx
movq 0x192feb(%rip), %rsi    # 0x1b19c0
movl %r12d, %edi
callq 0x1de3f
movzwl 0xe(%rsp), %ecx
cmpl %ecx, %eax
jne 0x1ea3d
movq 0x192fd3(%rip), %rdi    # 0x1b19c0
movq 0x192fd4(%rip), %rdx    # 0x1b19c8
movl %eax, %esi
callq 0x1eb23
movl %eax, %r12d
xorl %eax, %eax
movslq %eax, %rdx
leaq (%r14,%r13), %rcx
xorl %esi, %esi
cmpq %rsi, %r13
je 0x1ea29
movq 0x192fb3(%rip), %rdi    # 0x1b19c8
addq %rdx, %rdi
movb (%rsi,%rdi), %dil
addb (%r14,%rsi), %dil
movb %dil, (%rcx,%rsi)
incq %rsi
jmp 0x1ea09
addl %ebp, %eax
incq %rbx
movq %rcx, %r14
jmp 0x1e9a1
movl 0x10(%rsp), %r15d
jmp 0x1ea41
pushq $-0x1
popq %r15
movb $0x1, 0x192f8c(%rip)    # 0x1b19d4
movl $0x1010101, 0x192f7e(%rip) # imm = 0x1010101
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/cache1d.c
// Function: lzwallocate
static void lzwallocate(void)
{
	lzwbuflock[0] = lzwbuflock[1] = lzwbuflock[2] = lzwbuflock[3] = lzwbuflock[4] = 200;
	if (lzwbuf1 == NULL) allocache((void **)&lzwbuf1,LZWSIZE+(LZWSIZE>>4),&lzwbuflock[0]);
	if (lzwbuf2 == NULL) allocache((void **)&lzwbuf2,(LZWSIZE+(LZWSIZE>>4))*2,&lzwbuflock[1]);
	if (lzwbuf3 == NULL) allocache((void **)&lzwbuf3,(LZWSIZE+(LZWSIZE>>4))*2,&lzwbuflock[2]);
	if (lzwbuf4 == NULL) allocache((void **)&lzwbuf4,LZWSIZE,&lzwbuflock[3]);
	if (lzwbuf5 == NULL) allocache((void **)&lzwbuf5,LZWSIZE+(LZWSIZE>>4),&lzwbuflock[4]);
}

// Assembly:
pushq %rax
movb $-0x38, 0x192f68(%rip)  # 0x1b19d4
movl $0xc8c8c8c8, 0x192f5a(%rip) # imm = 0xC8C8C8C8
cmpq $0x0, 0x192f5a(%rip)    # 0x1b19d8
jne 0x1ea98
leaq 0x192f51(%rip), %rdi    # 0x1b19d8
leaq 0x192f42(%rip), %rdx    # 0x1b19d0
movl $0x4400, %esi           # imm = 0x4400
callq 0x1cfb5
cmpq $0x0, 0x192f40(%rip)    # 0x1b19e0
jne 0x1eaba
leaq 0x192f37(%rip), %rdi    # 0x1b19e0
leaq 0x192f21(%rip), %rdx    # 0x1b19d1
movl $0x8800, %esi           # imm = 0x8800
callq 0x1cfb5
cmpq $0x0, 0x192f26(%rip)    # 0x1b19e8
jne 0x1eadc
leaq 0x192f1d(%rip), %rdi    # 0x1b19e8
leaq 0x192f00(%rip), %rdx    # 0x1b19d2
movl $0x8800, %esi           # imm = 0x8800
callq 0x1cfb5
cmpq $0x0, 0x192ee4(%rip)    # 0x1b19c8
jne 0x1eafe
leaq 0x192edb(%rip), %rdi    # 0x1b19c8
leaq 0x192edf(%rip), %rdx    # 0x1b19d3
movl $0x4000, %esi           # imm = 0x4000
callq 0x1cfb5
cmpq $0x0, 0x192eba(%rip)    # 0x1b19c0
je 0x1eb0a
popq %rax
retq
leaq 0x192eaf(%rip), %rdi    # 0x1b19c0
leaq 0x192ebc(%rip), %rdx    # 0x1b19d4
movl $0x4400, %esi           # imm = 0x4400
popq %rax
jmp 0x1cfb5
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/compat.c
// Function: Bvasprintf
int Bvasprintf(char **ret, const char *format, va_list ap)
{
    int len;
    va_list app;

    va_copy(app, ap);
    len = vsnprintf(NULL, 0, format, app);
    va_end(app);

    if (len < 0) return -1;
    if ((*ret = malloc(len + 1)) == NULL) return -1;

    va_copy(app, ap);
    len = vsnprintf(*ret, len + 1, format, app);
    va_end(app);

    return len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdx), %rax
movq %rsp, %rcx
movq %rax, 0x10(%rcx)
movups (%rdx), %xmm0
movaps %xmm0, (%rcx)
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x6740
pushq $-0x1
popq %rbp
testl %eax, %eax
js 0x1f591
movl %eax, %r12d
incl %r12d
movq %r12, %rdi
callq 0x69a0
movq %rax, (%r14)
testq %rax, %rax
je 0x1f591
movq 0x10(%r15), %rax
movq %rsp, %rcx
movq %rax, 0x10(%rcx)
movups (%r15), %xmm0
movaps %xmm0, (%rcx)
movq (%r14), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x6740
movl %eax, %ebp
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/compat.c
// Function: Bstrtoken
char *Bstrtoken(char *s, char *delim, char **ptrptr, int chop)
{
	char *p, *start;

	if (!ptrptr) return NULL;
	
	if (s) p = s;
	else p = *ptrptr;

	if (!p) return NULL;

	while (*p != 0 && strchr(delim, *p)) p++;
	if (*p == 0) {
		*ptrptr = NULL;
		return NULL;
	}
	start = p;
	while (*p != 0 && !strchr(delim, *p)) p++;
	if (*p == 0) *ptrptr = NULL;
	else {
		if (chop) *(p++) = 0;
		*ptrptr = p;
	}

	return start;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdx, %rdx
je 0x1f815
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x1f7f4
movq (%r14), %rbx
testq %rbx, %rbx
je 0x1f815
xorl %r13d, %r13d
movsbl (%rbx), %r12d
testl %r12d, %r12d
je 0x1f819
movq %r15, %rdi
movl %r12d, %esi
callq 0x6530
testq %rax, %rax
je 0x1f81d
incq %rbx
jmp 0x1f7f7
xorl %ebx, %ebx
jmp 0x1f858
xorl %ebx, %ebx
jmp 0x1f855
leaq 0x1(%rbx), %r13
testb %r12b, %r12b
je 0x1f840
movsbl %r12b, %esi
movq %r15, %rdi
callq 0x6530
testq %rax, %rax
jne 0x1f845
movb (%r13), %r12b
incq %r13
jmp 0x1f821
xorl %r13d, %r13d
jmp 0x1f855
leaq -0x1(%r13), %rax
testl %ebp, %ebp
je 0x1f852
movb $0x0, (%rax)
jmp 0x1f855
movq %rax, %r13
movq %r13, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/compat.c
// Function: Bwildmatch
int Bwildmatch (const char *i, const char *j)
{
	const char *k;
	char c0, c1;

	if (!*j) return(1);
	do
	{
		if (*j == '*')
		{
			for(k=i,j++;*k;k++) if (Bwildmatch(k,j)) return(1);
			continue;
		}
		if (!*i) return(0);
		if (*j == '?') { i++; j++; continue; }
		c0 = *i; if ((c0 >= 'a') && (c0 <= 'z')) c0 -= 32;
		c1 = *j; if ((c1 >= 'a') && (c1 <= 'z')) c1 -= 32;
#ifdef _WIN32
		if (c0 == '/') c0 = '\\';
		if (c1 == '/') c1 = '\\';
#endif
		if (c0 != c1) return(0);
		i++; j++;
	} while (*j);
	return(!*i);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movb (%rsi), %cl
pushq $0x1
popq %rbp
testb %cl, %cl
je 0x1faab
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x2a, %cl
jne 0x1fa5b
incq %r14
movq %rbx, %r15
cmpb $0x0, (%r15)
je 0x1fa9a
movq %r15, %rdi
movq %r14, %rsi
callq 0x1fa20
incq %r15
testl %eax, %eax
je 0x1fa41
jmp 0x1faab
movb (%rbx), %dl
xorl %eax, %eax
testb %dl, %dl
je 0x1faad
cmpb $0x3f, %cl
je 0x1fa94
leal -0x61(%rdx), %esi
leal -0x20(%rdx), %edi
cmpb $0x1a, %sil
movzbl %dl, %edx
movzbl %dil, %esi
cmovael %edx, %esi
leal -0x61(%rcx), %edx
leal -0x20(%rcx), %edi
cmpb $0x1a, %dl
movzbl %cl, %ecx
movzbl %dil, %edx
cmovael %ecx, %edx
cmpb %dl, %sil
jne 0x1faad
incq %rbx
incq %r14
movb (%r14), %cl
testb %cl, %cl
jne 0x1fa36
xorl %eax, %eax
cmpb $0x0, (%rbx)
sete %al
jmp 0x1faad
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/defs.c
// Function: loaddefinitionsfile
int loaddefinitionsfile(const char *fn)
{
	scriptfile *script;

	script = scriptfile_fromfile(fn);
	if (!script) return -1;

	defsparser(script);

	scriptfile_close(script);
	scriptfile_clearsymbols();

	return 0;
}

// Assembly:
pushq %rbx
callq 0x44c62
testq %rax, %rax
je 0x1fb17
movq %rax, %rbx
movq %rax, %rdi
callq 0x1fb1c
movq %rbx, %rdi
callq 0x44d91
callq 0x44ed1
xorl %eax, %eax
jmp 0x1fb1a
pushq $-0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/defs.c
// Function: getatoken
static int getatoken(scriptfile *sf, tokenlist *tl, int ntokens)
{
	char *tok;
	int i;

	if (!sf) return T_ERROR;
	tok = scriptfile_gettoken(sf);
	if (!tok) return T_EOF;

	for(i=0;i<ntokens;i++) {
		if (!Bstrcasecmp(tok, tl[i].text))
			return tl[i].tokenid;
	}

	return T_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r14d
movq %rsi, %rbx
callq 0x4454c
testq %rax, %rax
je 0x21488
movq %rax, %r15
xorl %ecx, %ecx
testl %r14d, %r14d
cmovlel %ecx, %r14d
shlq $0x4, %r14
addq $0x10, %r14
pushq $-0x1
popq %rbp
leaq 0x10(%rcx), %r12
cmpq %r12, %r14
je 0x2148b
movq (%rbx,%rcx), %rsi
movq %r15, %rdi
callq 0x6880
movq %r12, %rcx
testl %eax, %eax
jne 0x21465
movl -0x8(%rbx,%r12), %ebp
jmp 0x2148b
pushq $-0x2
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: animateoffs
int animateoffs(short tilenum, short fakevar)
{
	int i, k, offs;

	(void)fakevar;

	offs = 0;
	i = (totalclocklock>>((picanm[tilenum]>>24)&15));
	if ((picanm[tilenum]&63) > 0)
	{
		switch(picanm[tilenum]&192)
		{
			case 64:
				k = (i%((picanm[tilenum]&63)<<1));
				if (k < (picanm[tilenum]&63))
					offs = k;
				else
					offs = (((picanm[tilenum]&63)<<1)-k);
				break;
			case 128:
				offs = (i%((picanm[tilenum]&63)+1));
					break;
			case 192:
				offs = -(i%((picanm[tilenum]&63)+1));
		}
	}
	return(offs);
}

// Assembly:
movl 0x212417(%rip), %eax    # 0x233a58
movslq %edi, %rcx
leaq 0x212415(%rip), %rdx    # 0x233a60
movl (%rdx,%rcx,4), %esi
movl %esi, %ecx
shrl $0x18, %ecx
andb $0xf, %cl
sarl %cl, %eax
movl %esi, %ecx
andl $0x3f, %ecx
je 0x21684
shrl $0x6, %esi
andl $0x3, %esi
leaq 0x4a7b4(%rip), %rdx     # 0x6be20
movslq (%rdx,%rsi,4), %rdi
addq %rdx, %rdi
jmpq *%rdi
leal (%rcx,%rcx), %esi
cltd
idivl %esi
subl %edx, %esi
cmpl %ecx, %edx
cmovll %edx, %esi
jmp 0x2169a
xorl %esi, %esi
jmp 0x2169a
incl %ecx
cltd
idivl %ecx
movl %edx, %esi
jmp 0x2169a
incl %ecx
cltd
idivl %ecx
movl %edx, %esi
negl %esi
movl %esi, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: buildprintf
void buildprintf(const char *fmt, ...)
{
	char tmpstr[1024];
	va_list va, vac;

	va_start(va, fmt);

	va_copy(vac, va);
	vfprintf(stdout, fmt, vac);
	va_end(vac);

	if (logfile) {
		va_copy(vac, va);
		vfprintf(logfile, fmt, vac);
		va_end(vac);
	}

	va_copy(vac, va);
	vsnprintf(tmpstr, sizeof(tmpstr), fmt, vac);
	va_end(vac);

	initputs(tmpstr);
	OSD_Puts(tmpstr);

	va_end(va);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x4f8, %rsp            # imm = 0x4F8
movq %rdi, %rbx
leaq 0x40(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x2248e
movaps %xmm0, 0x70(%rsp)
movaps %xmm1, 0x80(%rsp)
movaps %xmm2, 0x90(%rsp)
movaps %xmm3, 0xa0(%rsp)
movaps %xmm4, 0xb0(%rsp)
movaps %xmm5, 0xc0(%rsp)
movaps %xmm6, 0xd0(%rsp)
movaps %xmm7, 0xe0(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
leaq 0x510(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
leaq 0x20(%rsp), %rdx
movq %rdi, 0x10(%rdx)
movq (%rsp), %rax
movq %rax, (%rdx)
movq 0x8(%rsp), %rax
movq %rax, 0x8(%rdx)
movq 0x69ae2(%rip), %rax     # 0x8bfb0
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x6b60
movq 0x383018(%rip), %rdi    # 0x3a54f8
testq %rdi, %rdi
je 0x22502
movq 0x10(%rsp), %rax
leaq 0x20(%rsp), %rdx
movq %rax, 0x10(%rdx)
movaps (%rsp), %xmm0
movaps %xmm0, (%rdx)
movq %rbx, %rsi
callq 0x6b60
movq 0x10(%rsp), %rax
leaq 0x20(%rsp), %rcx
movq %rax, 0x10(%rcx)
movaps (%rsp), %xmm0
movaps %xmm0, (%rcx)
leaq 0xf0(%rsp), %r14
movl $0x400, %esi            # imm = 0x400
movq %r14, %rdi
movq %rbx, %rdx
callq 0x6740
movq %r14, %rdi
callq 0x628ee
movq %r14, %rdi
callq 0x4409d
addq $0x4f8, %rsp            # imm = 0x4F8
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: uninitengine
void uninitengine(void)
{
	int i;

	//buildprintf("cacheresets = %d, cacheinvalidates = %d\n", cacheresets, cacheinvalidates);

#if USE_POLYMOST && USE_OPENGL
	polymost_glreset();
	PTClear();
	PTCacheUnloadIndex();
	hicinit();
	freeallmodels();
#endif

	uninitsystem();

	if (logfile) Bfclose(logfile);
	logfile = NULL;

	if (artfil != -1) kclose(artfil);

	if (transluc != NULL) { kfree(transluc); transluc = NULL; }
	if (pic != NULL) { kfree(pic); pic = NULL; }
	if (lookups != NULL) { kfree(lookups); lookups = NULL; }
	for(i=0;i<MAXPALOOKUPS;i++)
		if (palookup[i] != NULL) { kfree(palookup[i]); palookup[i] = NULL; }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x46917
callq 0x5c890
callq 0x5d9fc
callq 0x55478
callq 0x55890
callq 0x626ed
movq 0x3827f0(%rip), %rdi    # 0x3a54f8
testq %rdi, %rdi
je 0x22d12
callq 0x6480
andq $0x0, 0x3827de(%rip)    # 0x3a54f8
movl 0x7af24(%rip), %edi     # 0x9dc44
cmpl $-0x1, %edi
je 0x22d2a
callq 0x1e2db
movq 0x18ecff(%rip), %rdi    # 0x1b1a30
testq %rdi, %rdi
je 0x22d43
callq 0x61c0
andq $0x0, 0x18eced(%rip)    # 0x1b1a30
movq 0x18ecbe(%rip), %rdi    # 0x1b1a08
testq %rdi, %rdi
je 0x22d5c
callq 0x61c0
andq $0x0, 0x18ecac(%rip)    # 0x1b1a08
movq 0x38279d(%rip), %rdi    # 0x3a5500
testq %rdi, %rdi
je 0x22d75
callq 0x61c0
andq $0x0, 0x38278b(%rip)    # 0x3a5500
xorl %ebx, %ebx
leaq 0x36ed62(%rip), %r14    # 0x391ae0
cmpq $0x800, %rbx            # imm = 0x800
je 0x22da0
movq (%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x22d9a
callq 0x61c0
andq $0x0, (%rbx,%r14)
addq $0x8, %rbx
jmp 0x22d7e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: initspritelists
void initspritelists(void)
{
	int i;

	for (i=0;i<MAXSECTORS;i++)     //Init doubly-linked sprite sector lists
		headspritesect[i] = -1;
	headspritesect[MAXSECTORS] = 0;
	for(i=0;i<MAXSPRITES;i++)
	{
		prevspritesect[i] = i-1;
		nextspritesect[i] = i+1;
		sprite[i].sectnum = MAXSECTORS;
	}
	prevspritesect[0] = -1;
	nextspritesect[MAXSPRITES-1] = -1;


	for(i=0;i<MAXSTATUS;i++)      //Init doubly-linked sprite status lists
		headspritestat[i] = -1;
	headspritestat[MAXSTATUS] = 0;
	for(i=0;i<MAXSPRITES;i++)
	{
		prevspritestat[i] = i-1;
		nextspritestat[i] = i+1;
		sprite[i].statnum = MAXSTATUS;
	}
	prevspritestat[0] = -1;
	nextspritestat[MAXSPRITES-1] = -1;
}

// Assembly:
xorl %eax, %eax
leaq 0x38275f(%rip), %rcx    # 0x3a5510
cmpq $0x2000, %rax           # imm = 0x2000
je 0x22dc4
orw $-0x1, (%rax,%rcx)
addq $0x2, %rax
jmp 0x22db1
andw $0x0, 0x384744(%rip)    # 0x3a7510
movw $0xffff, %ax            # imm = 0xFFFF
leaq 0x252ef1(%rip), %rcx    # 0x275cc8
xorl %edx, %edx
leaq 0x384740(%rip), %rsi    # 0x3a7520
leaq 0x38c739(%rip), %rdi    # 0x3af520
cmpq $0x8000, %rdx           # imm = 0x8000
je 0x22e0e
movw %ax, (%rdx,%rsi)
leal 0x2(%rax), %r8d
movw %r8w, (%rdx,%rdi)
movw $0x1000, (%rcx)         # imm = 0x1000
incl %eax
addq $0x2, %rdx
addq $0x2c, %rcx
jmp 0x22de7
orw $-0x1, 0x38470a(%rip)   # 0x3a7520
orw $-0x1, 0x394700(%rip)   # 0x3b751e
xorl %eax, %eax
leaq 0x3946f9(%rip), %rcx    # 0x3b7520
cmpq $0x800, %rax            # imm = 0x800
je 0x22e3a
orw $-0x1, (%rax,%rcx)
addq $0x2, %rax
jmp 0x22e27
andw $0x0, 0x394ede(%rip)    # 0x3b7d20
movw $0xffff, %ax            # imm = 0xFFFF
leaq 0x252e7d(%rip), %rcx    # 0x275cca
xorl %edx, %edx
leaq 0x394eda(%rip), %rsi    # 0x3b7d30
leaq 0x39ced3(%rip), %rdi    # 0x3bfd30
cmpq $0x8000, %rdx           # imm = 0x8000
je 0x22e84
movw %ax, (%rdx,%rsi)
leal 0x2(%rax), %r8d
movw %r8w, (%rdx,%rdi)
movw $0x400, (%rcx)          # imm = 0x400
incl %eax
addq $0x2, %rdx
addq $0x2c, %rcx
jmp 0x22e5d
orw $-0x1, 0x394ea4(%rip)   # 0x3b7d30
orw $-0x1, 0x3a4e9a(%rip)   # 0x3c7d2e
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: updatesector
void updatesector(int x, int y, short *sectnum)
{
	walltype *wal;
	int i, j;

	if (inside(x,y,*sectnum) == 1) return;

	if ((*sectnum >= 0) && (*sectnum < numsectors))
	{
		wal = &wall[sector[*sectnum].wallptr];
		j = sector[*sectnum].wallnum;
		do
		{
			i = wal->nextsector;
			if (i >= 0)
				if (inside(x,y,(short)i) == 1)
				{
					*sectnum = i;
					return;
				}
			wal++;
			j--;
		} while (j != 0);
	}

	for(i=numsectors-1;i>=0;i--)
		if (inside(x,y,(short)i) == 1)
		{
			*sectnum = i;
			return;
		}

	*sectnum = -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movl %edi, %r14d
movswl (%rdx), %r15d
movl %r15d, %edx
callq 0x330c8
cmpl $0x1, %eax
je 0x2372d
movslq %r15d, %rax
testw %ax, %ax
setns %cl
movzwl 0x3a58c5(%rip), %edx    # 0x3c8f60
movw %dx, 0x6(%rsp)
cmpw %dx, %ax
setl %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x236fd
imulq $0x28, %rax, %rax
leaq 0x2193a8(%rip), %rcx    # 0x23ca60
movswq (%rax,%rcx), %rdx
movswl 0x2(%rax,%rcx), %r13d
shlq $0x5, %rdx
leaq 0x18e382(%rip), %rax    # 0x1b1a50
leaq (%rdx,%rax), %r12
addq $0xc, %r12
movzwl (%r12), %r15d
testw %r15w, %r15w
js 0x236f4
movswl %r15w, %edx
movl %r14d, %edi
movl %ebp, %esi
callq 0x330c8
cmpl $0x1, %eax
je 0x23729
addq $0x20, %r12
decl %r13d
jne 0x236d6
movswl 0x6(%rsp), %r15d
testl %r15d, %r15d
jle 0x23724
movl %r15d, %eax
decl %r15d
decl %eax
movswl %ax, %edx
movl %r14d, %edi
movl %ebp, %esi
callq 0x330c8
cmpl $0x1, %eax
jne 0x23703
jmp 0x23729
movw $0xffff, %r15w          # imm = 0xFFFF
movw %r15w, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: getzsofslope
void getzsofslope(short sectnum, int dax, int day, int *ceilz, int *florz)
{
	int dx, dy, i, j;
	walltype *wal, *wal2;
	sectortype *sec;

	sec = &sector[sectnum];
	*ceilz = sec->ceilingz; *florz = sec->floorz;
	if ((sec->ceilingstat|sec->floorstat)&2)
	{
		wal = &wall[sec->wallptr]; wal2 = &wall[wal->point2];
		dx = wal2->x-wal->x; dy = wal2->y-wal->y;
		i = (nsqrtasm(dx*dx+dy*dy)<<5); if (i == 0) return;
		j = dmulscale3(dx,day-wal->y,-dy,dax-wal->x);
		if (sec->ceilingstat&2) *ceilz = (*ceilz)+scale(sec->ceilingheinum,j,i);
		if (sec->floorstat&2) *florz = (*florz)+scale(sec->floorheinum,j,i);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movslq %edi, %rax
imulq $0x28, %rax, %rax
leaq 0x219308(%rip), %r12    # 0x23ca60
movl 0x4(%rax,%r12), %edi
movl %edi, (%rcx)
movl 0x8(%rax,%r12), %edi
movl %edi, (%r8)
movl 0xc(%rax,%r12), %ebp
movzwl 0xe(%rax,%r12), %r15d
movl %r15d, %edi
orl %ebp, %edi
testb $0x2, %dil
je 0x23858
addq %rax, %r12
movswq (%r12), %rax
shlq $0x5, %rax
movl %esi, 0xc(%rsp)
leaq 0x18e2b8(%rip), %rsi    # 0x1b1a50
movswq 0x8(%rax,%rsi), %rdi
shlq $0x5, %rdi
movslq (%rdi,%rsi), %r11
movslq (%rax,%rsi), %rbx
movq %rbx, 0x18(%rsp)
subq %rbx, %r11
movslq 0x4(%rdi,%rsi), %r14
movslq 0x4(%rax,%rsi), %rax
movq %rax, 0x10(%rsp)
subq %rax, %r14
movq %r11, 0x20(%rsp)
movl %r11d, %eax
imull %r11d, %eax
movl %r14d, %edi
imull %r14d, %edi
addl %eax, %edi
movq %r8, %r13
movq %rcx, %rbx
movl %edx, 0x8(%rsp)
callq 0x22169
movl 0x8(%rsp), %ecx
movl 0xc(%rsp), %edx
shll $0x5, %eax
je 0x23858
movslq %ecx, %rcx
subq 0x10(%rsp), %rcx
negq %r14
movslq %edx, %rdx
subq 0x18(%rsp), %rdx
imulq %r14, %rdx
imulq 0x20(%rsp), %rcx
addq %rdx, %rcx
shrq $0x3, %rcx
movslq %eax, %rsi
testb $0x2, %bpl
je 0x2383c
movswq 0x12(%r12), %rdx
movslq %ecx, %rax
imulq %rdx, %rax
cqto
idivq %rsi
addl %eax, (%rbx)
movzwl 0xe(%r12), %r15d
testb $0x2, %r15b
je 0x23858
movswq 0x1a(%r12), %rdx
movslq %ecx, %rax
imulq %rdx, %rax
cqto
idivq %rsi
addl %eax, (%r13)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: bunchfront
static int bunchfront(int b1, int b2)
{
	int x1b1, x2b1, x1b2, x2b2, b1f, b2f, i;

	b1f = bunchfirst[b1]; x1b1 = xb1[b1f]; x2b2 = xb2[bunchlast[b2]]+1;
	if (x1b1 >= x2b2) return(-1);
	b2f = bunchfirst[b2]; x1b2 = xb1[b2f]; x2b1 = xb2[bunchlast[b1]]+1;
	if (x1b2 >= x2b1) return(-1);

	if (x1b1 >= x1b2)
	{
		for(i=b2f;xb2[i]<x1b1;i=p2[i]);
		return(wallfront(b1f,i));
	}
	for(i=b1f;xb2[i]<x1b2;i=p2[i]);
	return(wallfront(i,b2f));
}

// Assembly:
movslq %edi, %r8
leaq 0x3aa49e(%rip), %rdx    # 0x3d07c0
movswq (%rdx,%r8,2), %rdi
leaq 0x23e742(%rip), %r9     # 0x264a70
movl (%r9,%rdi,4), %ecx
movslq %esi, %rsi
leaq 0x3ac484(%rip), %r10    # 0x3d27c0
movswq (%r10,%rsi,2), %r11
leaq 0x242738(%rip), %rax    # 0x268a80
cmpl (%rax,%r11,4), %ecx
jg 0x26362
movswq (%rdx,%rsi,2), %rsi
movl (%r9,%rsi,4), %edx
movswq (%r10,%r8,2), %r8
cmpl (%rax,%r8,4), %edx
jle 0x26366
pushq $-0x1
popq %rax
retq
cmpl %edx, %ecx
jge 0x26381
leaq 0x3b245f(%rip), %rcx    # 0x3d87d0
movslq %edi, %r8
cmpl %edx, (%rax,%r8,4)
jge 0x26398
movswl (%rcx,%r8,2), %edi
jmp 0x26371
leaq 0x3b2448(%rip), %rdx    # 0x3d87d0
movslq %esi, %r8
cmpl %ecx, (%rax,%r8,4)
jge 0x26398
movswl (%rdx,%r8,2), %esi
jmp 0x26388
jmp 0x214a3
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: spritewallfront
static int spritewallfront(spritetype *s, int w)
{
	walltype *wal;
	int x1, y1;

	wal = &wall[w]; x1 = wal->x; y1 = wal->y;
	wal = &wall[wal->point2];
	return (dmulscale32(wal->x-x1,s->y-y1,-(s->x-x1),wal->y-y1) >= 0);
}

// Assembly:
movslq %esi, %rax
shlq $0x5, %rax
leaq 0x186d11(%rip), %rcx    # 0x1b1a50
movslq (%rax,%rcx), %rdx
movslq 0x4(%rax,%rcx), %rsi
movswq 0x8(%rax,%rcx), %rax
shlq $0x5, %rax
movslq (%rax,%rcx), %r8
subq %rdx, %r8
movslq 0x4(%rdi), %r9
subq %rsi, %r9
imulq %r8, %r9
movslq (%rdi), %rdi
subq %rdi, %rdx
movslq 0x4(%rax,%rcx), %rcx
subq %rsi, %rcx
imulq %rdx, %rcx
xorl %eax, %eax
addq %r9, %rcx
setns %al
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: lastwall
int lastwall(short point)
{
	int i, j, cnt;

	if ((point > 0) && (wall[point-1].point2 == point)) return(point-1);
	i = point;
	cnt = MAXWALLS;
	do
	{
		j = wall[i].point2;
		if (j == point) return(i);
		i = j;
		cnt--;
	} while (cnt > 0);
	return(point);
}

// Assembly:
leaq 0x185b1a(%rip), %rcx    # 0x1b1a50
testw %di, %di
jle 0x2bf4c
leal -0x1(%rdi), %eax
movq %rax, %rdx
shlq $0x5, %rdx
cmpw %di, 0x8(%rdx,%rcx)
je 0x2bf6f
movl $0x4001, %edx           # imm = 0x4001
movl %edi, %esi
movl %esi, %eax
movslq %esi, %rsi
shlq $0x5, %rsi
movswl 0x8(%rsi,%rcx), %esi
cmpw %di, %si
je 0x2bf6f
decl %edx
cmpl $0x1, %edx
ja 0x2bf53
movl %edi, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: loadtile
void loadtile(short tilenume)
{
	char *ptr;
	int i, dasiz;

	if ((unsigned)tilenume >= (unsigned)MAXTILES) return;
	dasiz = tilesizx[tilenume]*tilesizy[tilenume];
	if (dasiz <= 0) return;

	i = tilefilenum[tilenume];
	if (i != artfilnum)
	{
		if (artfil != -1) kclose(artfil);
		artfilnum = i;
		artfilplc = 0L;

		artfilename[7] = (i%10)+48;
		artfilename[6] = ((i/10)%10)+48;
		artfilename[5] = ((i/100)%10)+48;
		artfil = kopen4load(artfilename,0);
		faketimerhandler();
	}

	if (cachedebug) buildprintf("Tile:%d\n",tilenume);

	if (waloff[tilenume] == 0)
	{
		walock[tilenume] = 199;
		allocache((void **)&waloff[tilenume],dasiz,&walock[tilenume]);
	}

	if (artfilplc != tilefileoffs[tilenume])
	{
		klseek(artfil,tilefileoffs[tilenume]-artfilplc,BSEEK_CUR);
		faketimerhandler();
	}
	ptr = (char *)waloff[tilenume];
	kread(artfil,ptr,dasiz);
	faketimerhandler();
	artfilplc = tilefileoffs[tilenume]+dasiz;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %ebp
cmpw $0x23ff, %bp            # imm = 0x23FF
ja 0x2cd91
movzwl %bp, %r14d
leal (%r14,%r14), %eax
leaq 0x3dc3b2(%rip), %rcx    # 0x409020
movswl (%rax,%rcx), %ecx
leaq 0x3cdb67(%rip), %rdx    # 0x3fa7e0
movswl (%rax,%rdx), %ebx
imull %ecx, %ebx
testl %ebx, %ebx
jle 0x2cd91
leaq 0x3ef221(%rip), %rax    # 0x41beb0
movzbl (%r14,%rax), %r15d
cmpl %r15d, 0x3faa95(%rip)   # 0x427730
je 0x2cd0a
movl 0x70fa1(%rip), %edi     # 0x9dc44
cmpl $-0x1, %edi
je 0x2ccad
callq 0x1e2db
movl %r15d, 0x3faa7c(%rip)   # 0x427730
andl $0x0, 0x3faa79(%rip)    # 0x427734
movzbl %r15b, %ecx
movb $0xa, %dl
movl %ecx, %eax
divb %dl
movzbl %ah, %esi
orb $0x30, %sil
movb %sil, 0x3ef1c4(%rip)    # 0x41be97
leaq 0x3ef1b6(%rip), %rdi    # 0x41be90
movzbl %al, %eax
divb %dl
movzbl %ah, %eax
orb $0x30, %al
movb %al, 0x3ef1ac(%rip)     # 0x41be96
movb $0x64, %dl
movl %ecx, %eax
divb %dl
orb $0x30, %al
movb %al, 0x3ef19d(%rip)     # 0x41be95
xorl %esi, %esi
callq 0x1dc36
movl %eax, 0x70f3f(%rip)     # 0x9dc44
callq 0x9fd2
cmpb $0x0, 0x3faa27(%rip)    # 0x427738
je 0x2cd23
leaq 0x3f68a(%rip), %rdi     # 0x6c3a4
movl %ebp, %esi
xorl %eax, %eax
callq 0x22427
leaq 0x3655b6(%rip), %r15    # 0x3922e0
cmpq $0x0, (%r15,%r14,8)
jne 0x2cd4b
leaq (%r15,%r14,8), %rdi
leaq 0x3faa04(%rip), %rdx    # 0x427740
movb $-0x39, (%r14,%rdx)
addq %r14, %rdx
movl %ebx, %esi
callq 0x1cfb5
leaq 0x3f155e(%rip), %r12    # 0x41e2b0
movl (%r12,%r14,4), %esi
subl 0x3fa9d8(%rip), %esi    # 0x427734
je 0x2cd71
movl 0x70ee0(%rip), %edi     # 0x9dc44
pushq $0x1
popq %rdx
callq 0x1e023
callq 0x9fd2
movq (%r15,%r14,8), %rsi
movl 0x70ec9(%rip), %edi     # 0x9dc44
movl %ebx, %edx
callq 0x1de3f
callq 0x9fd2
addl (%r12,%r14,4), %ebx
movl %ebx, 0x3fa9a3(%rip)    # 0x427734
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: convertv6sectv7
static void convertv6sectv7(struct sectortypev6 *from, sectortype *to)
{
	to->ceilingz = from->ceilingz;
	to->floorz = from->floorz;
	to->wallptr = from->wallptr;
	to->wallnum = from->wallnum;
	to->ceilingpicnum = from->ceilingpicnum;
	to->ceilingheinum = max(min(((int)from->ceilingheinum)<<5,32767),-32768);
	if ((from->ceilingstat&2) == 0) to->ceilingheinum = 0;
	to->ceilingshade = from->ceilingshade;
	to->ceilingpal = from->ceilingpal;
	to->ceilingxpanning = from->ceilingxpanning;
	to->ceilingypanning = from->ceilingypanning;
	to->floorpicnum = from->floorpicnum;
	to->floorheinum = max(min(((int)from->floorheinum)<<5,32767),-32768);
	if ((from->floorstat&2) == 0) to->floorheinum = 0;
	to->floorshade = from->floorshade;
	to->floorpal = from->floorpal;
	to->floorxpanning = from->floorxpanning;
	to->floorypanning = from->floorypanning;
	to->ceilingstat = from->ceilingstat;
	to->floorstat = from->floorstat;
	to->visibility = from->visibility;
	to->filler = 0;
	to->lotag = from->lotag;
	to->hitag = from->hitag;
	to->extra = from->extra;
}

// Assembly:
movl 0xc(%rdi), %eax
movl %eax, 0x4(%rsi)
movl 0x10(%rdi), %eax
movl %eax, 0x8(%rsi)
movzwl (%rdi), %eax
movw %ax, (%rsi)
movzwl 0x2(%rdi), %eax
movw %ax, 0x2(%rsi)
movzwl 0x4(%rdi), %eax
movw %ax, 0x10(%rsi)
movl 0x8(%rdi), %edx
movl %edx, %r8d
shll $0x5, %r8d
movw $0x400, %ax             # imm = 0x400
cmpw %ax, %dx
movl $0x7fff, %ecx           # imm = 0x7FFF
cmovgel %ecx, %r8d
movw $0xfc01, %r9w           # imm = 0xFC01
cmpw %r9w, %dx
movl $0x8000, %edx           # imm = 0x8000
cmovll %edx, %r8d
movw %r8w, 0x12(%rsi)
xorl %r10d, %r10d
testb $0x2, 0x1a(%rdi)
cmovel %r10d, %r8d
movw %r8w, 0x12(%rsi)
movb 0x14(%rdi), %r8b
movb %r8b, 0x14(%rsi)
movb 0x1c(%rdi), %r8b
movb %r8b, 0x15(%rsi)
movb 0x16(%rdi), %r8b
movb %r8b, 0x16(%rsi)
movb 0x18(%rdi), %r8b
movb %r8b, 0x17(%rsi)
movzwl 0x6(%rdi), %r8d
movw %r8w, 0x18(%rsi)
movzwl 0xa(%rdi), %r8d
movl %r8d, %r11d
shll $0x5, %r11d
cmpw %ax, %r8w
cmovgel %ecx, %r11d
cmpw %r9w, %r8w
cmovll %edx, %r11d
movw %r11w, 0x1a(%rsi)
testb $0x2, 0x1b(%rdi)
cmovel %r10d, %r11d
movw %r11w, 0x1a(%rsi)
movb 0x15(%rdi), %al
movb %al, 0x1c(%rsi)
movb 0x1d(%rdi), %al
movb %al, 0x1d(%rsi)
movb 0x17(%rdi), %al
movb %al, 0x1e(%rsi)
movb 0x19(%rdi), %al
movb %al, 0x1f(%rsi)
movzbl 0x1a(%rdi), %eax
movw %ax, 0xc(%rsi)
movzbl 0x1b(%rdi), %eax
movw %ax, 0xe(%rsi)
movb 0x1e(%rdi), %al
movb %al, 0x20(%rsi)
movb $0x0, 0x21(%rsi)
movzwl 0x20(%rdi), %eax
movw %ax, 0x22(%rsi)
movzwl 0x22(%rdi), %eax
movw %ax, 0x24(%rsi)
movzwl 0x24(%rdi), %eax
movw %ax, 0x26(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: convertv5wallv6
static void convertv5wallv6(struct walltypev5 *from, struct walltypev6 *to, int i)
{
	to->x = from->x;
	to->y = from->y;
	to->point2 = from->point2;
	to->nextsector = from->nextsector1;
	to->nextwall = from->nextwall1;
	to->picnum = from->picnum;
	to->overpicnum = from->overpicnum;
	to->shade = from->shade;
	to->pal = sector[sectorofwallv5((short)i)].floorpal;
	to->cstat = from->cstat;
	to->xrepeat = from->xrepeat;
	to->yrepeat = from->yrepeat;
	to->xpanning = from->xpanning;
	to->ypanning = from->ypanning;
	to->lotag = from->lotag;
	to->hitag = from->hitag;
	to->extra = from->extra;
}

// Assembly:
movl (%rdi), %eax
movl %eax, (%rsi)
movl 0x4(%rdi), %eax
movl %eax, 0x4(%rsi)
movzwl 0x8(%rdi), %eax
movw %ax, 0x8(%rsi)
movzwl 0x16(%rdi), %eax
movw %ax, 0xa(%rsi)
movzwl 0x18(%rdi), %eax
movw %ax, 0xc(%rsi)
movzwl 0xa(%rdi), %eax
movw %ax, 0xe(%rsi)
movzwl 0xc(%rdi), %eax
movw %ax, 0x10(%rsi)
movb 0xe(%rdi), %al
movb %al, 0x12(%rsi)
movzwl 0x39a03c(%rip), %ecx    # 0x3c8f60
xorl %eax, %eax
testw %cx, %cx
cmovlel %eax, %ecx
movzwl %cx, %r8d
leaq 0x20db2b(%rip), %r9     # 0x23ca62
pushq $-0x1
popq %rcx
cmpq %rax, %r8
je 0x2ef63
movzwl -0x2(%r9), %r10d
cmpw %dx, %r10w
jg 0x2ef57
addw (%r9), %r10w
decl %r10d
cmpw %dx, %r10w
jge 0x2ef60
incq %rax
addq $0x28, %r9
jmp 0x2ef3a
movq %rax, %rcx
imulq $0x28, %rcx, %rax
leaq 0x20daf2(%rip), %rcx    # 0x23ca60
movb 0x1d(%rax,%rcx), %al
movb %al, 0x13(%rsi)
movzwl 0x10(%rdi), %eax
movw %ax, 0x14(%rsi)
movb 0x12(%rdi), %al
movb %al, 0x16(%rsi)
movb 0x13(%rdi), %al
movb %al, 0x17(%rsi)
movb 0x14(%rdi), %al
movb %al, 0x18(%rsi)
movb 0x15(%rdi), %al
movb %al, 0x19(%rsi)
movzwl 0x1e(%rdi), %eax
movw %ax, 0x1a(%rsi)
movzwl 0x20(%rdi), %eax
movw %ax, 0x1c(%rsi)
movzwl 0x22(%rdi), %eax
movw %ax, 0x1e(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: buildputs
void buildputs(const char *str)
{
    fputs(str, stdout);
    if (logfile) fputs(str, logfile);
    initputs(str);  // the startup window
    OSD_Puts(str);  // the onscreen-display
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x5b318(%rip), %rax     # 0x8bfb0
movq (%rax), %rsi
callq 0x6320
movq 0x374851(%rip), %rsi    # 0x3a54f8
testq %rsi, %rsi
je 0x30cb4
movq %rbx, %rdi
callq 0x6320
movq %rbx, %rdi
callq 0x628ee
movq %rbx, %rdi
popq %rbx
jmp 0x4409d
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: setview
void setview(int x1, int y1, int x2, int y2)
{
	int i, xfov = 65536;

	if (widescreen) xfov = divscale16(xdim*3, ydim*4);

	windowx1 = x1; wx1 = (x1<<12);
	windowy1 = y1; wy1 = (y1<<12);
	windowx2 = x2; wx2 = ((x2+1)<<12);
	windowy2 = y2; wy2 = ((y2+1)<<12);

	xdimen = (x2-x1)+1; halfxdimen = (xdimen>>1);
	xdimenrecip = divscale32(1L,xdimen);
	ydimen = (y2-y1)+1;

	setaspect(mulscale16(65536,xfov), pixelaspect);

	for(i=0;i<windowx1;i++) { startumost[i] = 1, startdmost[i] = 0; }
	for(i=windowx1;i<=windowx2;i++)
		{ startumost[i] = windowy1, startdmost[i] = windowy2+1; }
	for(i=windowx2+1;i<xdim;i++) { startumost[i] = 1, startdmost[i] = 0; }

#if USE_POLYMOST && USE_OPENGL
	polymost_setview();
#endif
}

// Assembly:
movl %edx, %r8d
movl %edi, %r9d
cmpl $0x0, 0x3deb45(%rip)    # 0x40fc70
je 0x31150
movslq 0x3cfeb8(%rip), %rax    # 0x400fec
movslq 0x3cfeb5(%rip), %rdi    # 0x400ff0
shlq $0x2, %rdi
imulq $0x30000, %rax, %rax    # imm = 0x30000
cqto
idivq %rdi
movq %rax, %rdi
jmp 0x31155
movl $0x10000, %edi          # imm = 0x10000
pushq %rbx
movl %r9d, 0x399c13(%rip)    # 0x3cad70
movl %r9d, %eax
shll $0xc, %eax
movl %eax, 0x3fe423(%rip)    # 0x42f58c
movl %esi, 0x39ba11(%rip)    # 0x3ccb80
movl %esi, %eax
shll $0xc, %eax
movl %eax, 0x3fe416(%rip)    # 0x42f590
movl %r8d, 0x3cfe5f(%rip)    # 0x400fe0
movl %r8d, %eax
shll $0xc, %eax
movl $0x1000, %edx           # imm = 0x1000
addl %edx, %eax
movl %eax, 0x3fe400(%rip)    # 0x42f594
movl %ecx, 0x3cfe4a(%rip)    # 0x400fe4
movl %ecx, %eax
shll $0xc, %eax
addl %edx, %eax
movl %eax, 0x3fe3f1(%rip)    # 0x42f598
subl %r9d, %r8d
incl %r8d
movl %r8d, 0x6c67c(%rip)     # 0x9d830
movslq %r8d, %r9
sarl %r8d
movl %r8d, 0x3e0ca3(%rip)    # 0x411e64
xorl %ebx, %ebx
movabsq $0x100000000, %rax      # imm = 0x100000000
xorl %edx, %edx
idivq %r9
movl %eax, 0x3fe3c4(%rip)    # 0x42f59c
subl %esi, %ecx
incl %ecx
movl %ecx, 0x2438b2(%rip)    # 0x274a94
movl 0x3dea90(%rip), %esi    # 0x40fc78
callq 0x38117
movslq 0x399b7c(%rip), %rdx    # 0x3cad70
testl %edx, %edx
movl $0x0, %esi
cmovgl %edx, %esi
addl %esi, %esi
leaq 0x397d69(%rip), %rax    # 0x3c8f70
leaq 0x399b72(%rip), %rcx    # 0x3cad80
cmpq %rbx, %rsi
je 0x31224
movw $0x1, (%rbx,%rax)
andw $0x0, (%rbx,%rcx)
addq $0x2, %rbx
jmp 0x3120e
movslq 0x3cfdb5(%rip), %rsi    # 0x400fe0
movzwl 0x39b94e(%rip), %edi    # 0x3ccb80
movl 0x3cfdab(%rip), %r8d    # 0x400fe4
incl %r8d
leaq (%rdx,%rdx), %r9
popq %rbx
cmpq %rsi, %rdx
jg 0x31259
movw %di, (%r9,%rax)
movw %r8w, (%r9,%rcx)
incq %rdx
addq $0x2, %r9
jmp 0x31241
movslq 0x3cfd8c(%rip), %rdx    # 0x400fec
incq %rsi
cmpq %rdx, %rsi
jge 0x4714d
movw $0x1, (%rax,%rsi,2)
andw $0x0, (%rcx,%rsi,2)
jmp 0x31260
// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0xc8, 0x18054d(%rip)   # 0x1b1a28
jne 0x31511
leaq 0x5c246c(%rip), %rax    # 0x5f3950
cmpl $0x3, (%rax)
jne 0x3151c
cmpl $0x0, 0x6c29c(%rip)     # 0x9d78c
je 0x3154c
movslq %edi, %rdx
leaq 0x3fe4b4(%rip), %rsi    # 0x42f9b0
leaq (%rsi,%rdx,4), %rax
leaq (%rsi,%rdx,4), %rcx
incq %rcx
leaq (%rsi,%rdx,4), %rdx
addq $0x2, %rdx
jmp 0x31582
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
imull $0x1010101, %edi, %edx  # imm = 0x1010101
leaq 0x145b87(%rip), %rax    # 0x1770b0
movq (%rax), %rdi
leaq 0x145d55(%rip), %rax    # 0x177288
movl (%rax), %esi
sarl $0x2, %esi
callq 0x444af
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x9fd2
movslq 0x1804b1(%rip), %rcx    # 0x1b1a04
movslq %edi, %rdx
leaq 0x3fe453(%rip), %rsi    # 0x42f9b0
movzbl (%rsi,%rdx,4), %eax
shlq $0x8, %rcx
leaq 0x3fec44(%rip), %rdi    # 0x4301b0
addq %rcx, %rdi
addq %rdi, %rax
movzbl 0x1(%rsi,%rdx,4), %ecx
addq %rdi, %rcx
movzbl 0x2(%rsi,%rdx,4), %edx
addq %rdi, %rdx
movzbl (%rax), %ebx
movzbl (%rcx), %ebp
movzbl (%rdx), %r14d
leaq 0x5c21ad(%rip), %r15    # 0x5f3740
movl 0x3cfa53(%rip), %edx    # 0x400fec
movl 0x3cfa51(%rip), %ecx    # 0x400ff0
xorl %edi, %edi
xorl %esi, %esi
callq *0x80(%r15)
cvtsi2sd %ebx, %xmm0
movsd 0x3a9e2(%rip), %xmm2    # 0x6bf98
divsd %xmm2, %xmm0
cvtsd2ss %xmm0, %xmm0
leaq 0x5c2403(%rip), %rax    # 0x5f39c8
cvtsi2sd %ebp, %xmm1
divsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
cvtsi2sd %r14d, %xmm3
movl $0xbf800000, (%rax)     # imm = 0xBF800000
divsd %xmm2, %xmm3
cvtsd2ss %xmm3, %xmm2
xorps %xmm3, %xmm3
callq *(%r15)
movl $0x4000, %edi           # imm = 0x4000
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *0x8(%rax)
// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: allocatepermanenttile
intptr_t allocatepermanenttile(short tilenume, int xsiz, int ysiz)
{
	int j, dasiz;

	if ((xsiz <= 0) || (ysiz <= 0) || ((unsigned)tilenume >= (unsigned)MAXTILES))
		return(0);

	dasiz = xsiz*ysiz;

	walock[tilenume] = 255;
	allocache((void **)&waloff[tilenume],dasiz,&walock[tilenume]);

	tilesizx[tilenume] = xsiz;
	tilesizy[tilenume] = ysiz;
	picanm[tilenume] = 0;

	j = 15; while ((j > 1) && (pow2long[j] > xsiz)) j--;
	picsiz[tilenume] = ((unsigned char)j);
	j = 15; while ((j > 1) && (pow2long[j] > ysiz)) j--;
	picsiz[tilenume] += ((unsigned char)(j<<4));

	return(waloff[tilenume]);
}

// Assembly:
xorl %eax, %eax
cmpw $0x23ff, %di            # imm = 0x23FF
ja 0x32c2a
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
testl %esi, %esi
jle 0x32c20
movl %edx, %ebx
testl %edx, %edx
jle 0x32c20
movl %ebx, %esi
imull %ebp, %esi
movzwl %di, %r14d
leaq 0x3f4ba7(%rip), %rdx    # 0x427740
movb $-0x1, (%r14,%rdx)
addq %r14, %rdx
leaq 0x35f738(%rip), %r15    # 0x3922e0
leaq (%r15,%r14,8), %rdi
callq 0x1cfb5
movl %r14d, %eax
addl %eax, %eax
leaq 0x3d6463(%rip), %rcx    # 0x409020
movw %bp, (%rax,%rcx)
leaq 0x3c7c18(%rip), %rcx    # 0x3fa7e0
leaq 0x200e91(%rip), %rdx    # 0x233a60
andl $0x0, (%rdx,%r14,4)
movw %bx, (%rax,%rcx)
pushq $0xf
popq %rcx
pushq $0x1
popq %rax
leaq 0x6abcb(%rip), %rdx     # 0x9d7b0
cmpl $0x2, %ecx
jb 0x32bf5
movl %ecx, %esi
cmpl %ebp, (%rdx,%rsi,4)
jle 0x32bf7
decl %ecx
jmp 0x32be5
movl %eax, %ecx
pushq $0xf
popq %rsi
cmpl $0x2, %esi
jb 0x32c0c
movl %esi, %edi
cmpl %ebx, (%rdx,%rdi,4)
jle 0x32c0a
decl %esi
jmp 0x32bfa
movl %esi, %eax
shlb $0x4, %al
addb %cl, %al
leaq 0x3dac38(%rip), %rcx    # 0x40d850
movb %al, (%r14,%rcx)
movq (%r15,%r14,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq