LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: screencapture_openfile
static BFILE *screencapture_openfile(const char *ext)
{
	char *seq;
	BFILE *fil;

	do {	// JBF 2004022: So we don't overwrite existing screenshots
		if (capturecount > 9999) {
			return NULL;
		}

		seq = strrchr(capturename, '.'); if (!seq) return NULL;
		seq -= 4;
		seq[0] = ((capturecount/1000)%10)+48;
		seq[1] = ((capturecount/100)%10)+48;
		seq[2] = ((capturecount/10)%10)+48;
		seq[3] = (capturecount%10)+48;
		seq[5] = ext[0];
		seq[6] = ext[1];
		seq[7] = ext[2];

		if ((fil = Bfopen(capturename, "rb")) == NULL) break;
		Bfclose(fil);
		capturecount++;
	} while (1);
	fil = Bfopen(capturename, "wb");
	if (fil) capturecount++;
	return fil;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movswl 0x5760f3(%rip), %ebp    # 0x5b5b80
cmpl $0x270f, %ebp           # imm = 0x270F
jle 0x3fa9c
xorl %ebx, %ebx
jmp 0x3fc03
movq %rdi, %r14
leaq 0x641ba(%rip), %r15     # 0xa3c60
xorl %ebx, %ebx
leaq 0x36b90(%rip), %r12     # 0x7663f
movq %r15, %rdi
movl $0x2e, %esi
callq 0x69e0
testq %rax, %rax
je 0x3fc03
movswl %bp, %ecx
imull $0xffff8313, %ecx, %edx # imm = 0xFFFF8313
shrl $0x10, %edx
addl %ebp, %edx
movzwl %dx, %edx
movswl %dx, %esi
shrl $0xf, %edx
sarl $0x9, %esi
addl %edx, %esi
movswq %si, %rdx
imulq $0x66666667, %rdx, %rdx # imm = 0x66666667
movq %rdx, %rdi
shrq $0x3f, %rdi
sarq $0x22, %rdx
addl %edi, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
subl %edx, %esi
addb $0x30, %sil
movb %sil, -0x4(%rax)
imull $0x147b, %ecx, %edx     # imm = 0x147B
movl %edx, %esi
shrl $0x1f, %esi
sarl $0x13, %edx
addl %esi, %edx
movslq %edx, %rdx
imulq $0x66666667, %rdx, %rsi # imm = 0x66666667
movq %rsi, %rdi
shrq $0x3f, %rdi
sarq $0x22, %rsi
addl %edi, %esi
addl %esi, %esi
leal (%rsi,%rsi,4), %esi
subl %esi, %edx
addb $0x30, %dl
movb %dl, -0x3(%rax)
imull $0x6667, %ecx, %edx     # imm = 0x6667
movl %edx, %esi
shrl $0x1f, %esi
sarl $0x12, %edx
addl %esi, %edx
movslq %edx, %rdx
imulq $0x66666667, %rdx, %rsi # imm = 0x66666667
movq %rsi, %rdi
shrq $0x3f, %rdi
sarq $0x22, %rsi
addl %edi, %esi
addl %esi, %esi
leal (%rsi,%rsi,4), %esi
subl %esi, %edx
addb $0x30, %dl
movb %dl, -0x2(%rax)
movswq %cx, %rdx
imulq $0x66666667, %rdx, %rdx # imm = 0x66666667
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x22, %rdx
addl %esi, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
subl %edx, %ecx
addb $0x30, %cl
movb %cl, -0x1(%rax)
movb (%r14), %cl
movb %cl, 0x1(%rax)
movb 0x1(%r14), %cl
movb %cl, 0x2(%rax)
movb 0x2(%r14), %cl
movb %cl, 0x3(%rax)
movq %r15, %rdi
movq %r12, %rsi
callq 0x6ce0
testq %rax, %rax
je 0x3fbe1
movq %rax, %rdi
callq 0x6480
movzwl 0x575fb8(%rip), %ebp    # 0x5b5b80
incl %ebp
movw %bp, 0x575faf(%rip)     # 0x5b5b80
movswl %bp, %eax
cmpl $0x270f, %eax           # imm = 0x270F
jle 0x3faaf
jmp 0x3fc03
leaq 0x64078(%rip), %rdi     # 0xa3c60
leaq 0x36a53(%rip), %rsi     # 0x76642
callq 0x6ce0
movq %rax, %rbx
testq %rax, %rax
je 0x3fc03
incw 0x575f7d(%rip)          # 0x5b5b80
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: screencapture_writepcxline
static void screencapture_writepcxline(unsigned char *buf, int bytes, int elements, BFILE *fp, void *v)
{
	(void)v;
	if (elements == 3) {
		writepcxline(buf,   bytes, 3, fp);
		writepcxline(buf+1, bytes, 3, fp);
		writepcxline(buf+2, bytes, 3, fp);
		return;
	}
	writepcxline(buf, bytes, 1, fp);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %rbx
movl %esi, %ebp
movq %rdi, %r14
cmpl $0x3, %edx
jne 0x3ff44
movq %r14, %rdi
movl %ebp, %esi
movl $0x3, %edx
movq %rbx, %rcx
callq 0x3ff57
leaq 0x1(%r14), %rdi
movl %ebp, %esi
movl $0x3, %edx
movq %rbx, %rcx
callq 0x3ff57
addq $0x2, %r14
movq %r14, %rdi
movl %ebp, %esi
movl $0x3, %edx
jmp 0x3ff4e
movq %r14, %rdi
movl %ebp, %esi
movl $0x1, %edx
movq %rbx, %rcx
popq %rbx
popq %r14
popq %rbp
jmp 0x3ff57
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: writepcxline
static void writepcxline(unsigned char *buf, int bytes, int step, BFILE *fp)
{
	unsigned char ths, last;
	int srcIndex;
	unsigned char runCount;

	runCount = 1;
	last = *buf;

	for (srcIndex=1; srcIndex<bytes; srcIndex++) {
		buf += step;
		ths = *buf;
		if (ths == last) {
			runCount++;
			if (runCount == 63) {
				writepcxbyte(last, runCount, fp);
				runCount = 0;
			}
		} else {
			if (runCount)
				writepcxbyte(last, runCount, fp);

			last = ths;
			runCount = 1;
		}
	}

	if (runCount) writepcxbyte(last, runCount, fp);
	if (bytes&1) writepcxbyte(0, 1, fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movb (%rdi), %al
movb $0x1, %r13b
cmpl $0x2, %esi
movq %rsi, (%rsp)
jl 0x3ffc4
movq %rdi, %r15
movl %edx, %r12d
leal -0x1(%rsi), %ebp
addq %r12, %r15
movb $0x1, %cl
movb (%r15), %r14b
cmpb %al, %r14b
jne 0x3ff98
incb %cl
cmpb $0x3f, %cl
jne 0x3ffaf
xorl %r13d, %r13d
movl %eax, %r14d
jmp 0x3ff9f
movb $0x1, %r13b
testb %cl, %cl
je 0x3ffb5
movzbl %al, %edi
movzbl %cl, %esi
movq %rbx, %rdx
callq 0x40009
jmp 0x3ffb5
movl %eax, %r14d
movl %ecx, %r13d
addq %r12, %r15
movl %r13d, %ecx
movl %r14d, %eax
decl %ebp
jne 0x3ff81
jmp 0x3ffc7
movl %eax, %r14d
testb %r13b, %r13b
je 0x3ffdc
movzbl %r14b, %edi
movzbl %r13b, %esi
movq %rbx, %rdx
callq 0x40009
testb $0x1, (%rsp)
jne 0x3fff1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edi, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6920
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: screencapture_writepngline
static void screencapture_writepngline(unsigned char *buf, int bytes, int elements, BFILE *fp, void *v)
{
	unsigned char header[6];
	unsigned short blklen;
	int i;
	struct pngsums *sums = (struct pngsums *)v;

	blklen = (unsigned short)B_LITTLE16(1 + bytes * elements);	// One extra for the filter type.
	header[0] = 0;	// BFINAL = 0, BTYPE = 00.
	memcpy(&header[1], &blklen, 2);
	blklen = ~blklen;
	memcpy(&header[3], &blklen, 2);

	header[5] = 0;	// No filter.
	sums->adlers2 = (sums->adlers2 + sums->adlers1) % 65521;
	crc32block(&sums->crc, header, sizeof(header));
	Bfwrite(header, sizeof(header), 1, fp);

	for (i=0; i < bytes * elements; i++) {
		sums->adlers1 = (sums->adlers1 + buf[i]) % 65521;
		sums->adlers2 = (sums->adlers2 + sums->adlers1) % 65521;
	}
	crc32block(&sums->crc, buf, bytes * elements);
	Bfwrite(buf, bytes, elements, fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r12
movq %rcx, %rbp
movl %esi, %r15d
movq %rdi, %r14
movl %edx, 0xc(%rsp)
movl %edx, %r13d
imull %esi, %r13d
leal 0x1(%r13), %eax
xorl %ecx, %ecx
leaq 0x12(%rsp), %rbx
movb %cl, (%rbx)
movw %ax, 0x1(%rbx)
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
subl %r13d, %eax
movw %ax, 0x3(%rbx)
movb %cl, 0x5(%rbx)
movzwl 0x6(%r8), %eax
movzwl 0x4(%r8), %ecx
addl %eax, %ecx
imulq $0x2001f, %rcx, %rax    # imm = 0x2001F
shrq $0x21, %rax
imull $0xfff1, %eax, %eax     # imm = 0xFFF1
subl %eax, %ecx
movw %cx, 0x6(%r8)
movq %r8, %rdi
movq %rbx, %rsi
movl $0x6, %edx
callq 0x6e52e
movl $0x6, %esi
movl $0x1, %edx
movq %rbx, %rdi
movq %rbp, %rcx
callq 0x6b90
testl %r13d, %r13d
jle 0x40136
movzwl 0x4(%r12), %eax
movzwl 0x6(%r12), %ecx
movl %r13d, %edx
xorl %esi, %esi
movzwl %ax, %edi
movzbl (%r14,%rsi), %eax
addl %edi, %eax
imulq $0x2001f, %rax, %rdi    # imm = 0x2001F
shrq $0x21, %rdi
imull $0xfff1, %edi, %edi     # imm = 0xFFF1
subl %edi, %eax
movw %ax, 0x4(%r12)
movzwl %cx, %ecx
addl %eax, %ecx
imulq $0x2001f, %rcx, %rdi    # imm = 0x2001F
shrq $0x21, %rdi
imull $0xfff1, %edi, %edi     # imm = 0xFFF1
subl %edi, %ecx
movw %cx, 0x6(%r12)
incq %rsi
cmpq %rsi, %rdx
jne 0x400ed
movq %r12, %rdi
movq %r14, %rsi
movl %r13d, %edx
callq 0x6e52e
movslq %r15d, %rsi
movslq 0xc(%rsp), %rdx
movq %r14, %rdi
movq %rbp, %rcx
callq 0x6b90
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/kplib.c
// Function: kzcheckhashsiz
static int kzcheckhashsiz (int siz)
{
	int i;

	if (!kzhashbuf) //Initialize hash table on first call
	{
		memset(kzhashead,-1,sizeof(kzhashead));
		kzhashbuf = (char *)malloc(KZHASHINITSIZE); if (!kzhashbuf) return(0);
		kzhashpos = 0; kzlastfnam = -1; kzhashsiz = KZHASHINITSIZE;
	}
	if (kzhashpos+siz > kzhashsiz) //Make sure string fits in kzhashbuf
	{
		i = kzhashsiz; do { i <<= 1; } while (kzhashpos+siz > i);
		kzhashbuf = (char *)realloc(kzhashbuf,i); if (!kzhashbuf) return(0);
		kzhashsiz = i;
	}
	return(1);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
cmpq $0x0, 0x57072d(%rip)    # 0x5b5ba8
jne 0x454c7
leaq 0x57073c(%rip), %rdi    # 0x5b5bc0
movl $0x400, %edx            # imm = 0x400
movl $0xff, %esi
callq 0x62f0
movl $0x2000, %edi           # imm = 0x2000
callq 0x69a0
movq %rax, 0x570704(%rip)    # 0x5b5ba8
testq %rax, %rax
je 0x4550a
movl $0x0, 0x570701(%rip)    # 0x5b5bb4
movl $0xffffffff, 0x570b03(%rip) # imm = 0xFFFFFFFF
movl $0x2000, 0x5706e9(%rip) # imm = 0x2000
addl 0x5706e7(%rip), %ebx    # 0x5b5bb4
movl 0x5706dc(%rip), %r14d   # 0x5b5bb0
movl $0x1, %ebp
cmpl %r14d, %ebx
jle 0x4550c
addl %r14d, %r14d
cmpl %r14d, %ebx
jg 0x454de
movq 0x5706bb(%rip), %rdi    # 0x5b5ba8
movslq %r14d, %rsi
callq 0x6120
movq %rax, 0x5706ac(%rip)    # 0x5b5ba8
testq %rax, %rax
je 0x4550a
movl %r14d, 0x5706a8(%rip)   # 0x5b5bb0
jmp 0x4550c
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/kplib.c
// Function: kzcalchash
static int kzcalchash (const char *st)
{
	int i, hashind;
	char ch;

	for(i=0,hashind=0;st[i];i++)
	{
		ch = st[i];
		if ((ch >= 'a') && (ch <= 'z')) ch -= 32;
		if (ch == '/') ch = '\\';
		hashind = (ch - hashind*3);
	}
	return(hashind%(sizeof(kzhashead)/sizeof(kzhashead[0])));
}

// Assembly:
movb (%rdi), %dl
testb %dl, %dl
je 0x45555
incq %rdi
xorl %eax, %eax
movl $0x5c, %ecx
leal -0x61(%rdx), %esi
leal -0x20(%rdx), %r8d
cmpb $0x1a, %sil
movzbl %dl, %edx
movzbl %r8b, %esi
cmovael %edx, %esi
cmpb $0x2f, %sil
cmovel %ecx, %esi
leal (%rax,%rax,2), %edx
movzbl %sil, %eax
subl %edx, %eax
movb (%rdi), %dl
incq %rdi
testb %dl, %dl
jne 0x45523
movzbl %al, %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/kplib.c
// Function: initpngtables
static void initpngtables(void)
{
	int i, j, k;

		//hxbit[0-58][0-1] is a combination of 4 different tables:
		//   1st parameter: [0-29] are distances, [30-58] are lengths
		//   2nd parameter: [0]: extra bits, [1]: base number

	j = 1; k = 0;
	for(i=0;i<30;i++)
	{
		hxbit[i][1] = j; j += (1<<k);
		hxbit[i][0] = k; k += ((i&1) && (i >= 2));
	}
	j = 3; k = 0;
	for(i=257;i<285;i++)
	{
		hxbit[i+30-257][1] = j; j += (1<<k);
		hxbit[i+30-257][0] = k; k += ((!(i&3)) && (i >= 264));
	}
	hxbit[285+30-257][1] = 258; hxbit[285+30-257][0] = 0;

	k = getcputype();
	if (k&(1<<15))
	{
		gotcmov = 4;
		for(i=0;i<512;i++) abstab10[512+i] = abstab10[512-i] = i;
	}
}

// Assembly:
movl $0x1, %edx
xorl %esi, %esi
leaq 0x58a002(%rip), %rax    # 0x5cf800
xorl %ecx, %ecx
movl %edx, 0x4(%rax,%rsi,8)
movl $0x1, %edi
shll %cl, %edi
addl %edi, %edx
movl %ecx, (%rax,%rsi,8)
cmpq $0x2, %rsi
setae %dil
andb %sil, %dil
movzbl %dil, %edi
addl %edi, %ecx
incq %rsi
cmpq $0x1e, %rsi
jne 0x45800
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x101, %esi            # imm = 0x101
movl $0x1, %edi
shll %cl, %edi
movl %edx, -0x714(%rax,%rsi,8)
addl %edi, %edx
movl %ecx, -0x718(%rax,%rsi,8)
testb $0x3, %sil
sete %dil
cmpq $0x108, %rsi            # imm = 0x108
setae %r8b
andb %dil, %r8b
movzbl %r8b, %edi
addl %edi, %ecx
incq %rsi
cmpq $0x11d, %rsi            # imm = 0x11D
jne 0x45836
movabsq $0x10200000000, %rax    # imm = 0x10200000000
movq %rax, 0x58a14a(%rip)    # 0x5cf9d0
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/kplib.c
// Function: hufgencode
static void hufgencode (int *inbuf, int inum, int *hitab, int *hbmax)
{
	int i, tbuf[31];

	for(i=30;i;i--) tbuf[i] = 0;
	for(i=inum-1;i>=0;i--) tbuf[inbuf[i]]++;
	tbuf[0] = hbmax[0] = 0; //Hack to remove symbols of length 0?
	for(i=0;i<31;i++) hbmax[i+1] = hbmax[i]+tbuf[i];
	for(i=0;i<inum;i++) if (inbuf[i]) hitab[hbmax[inbuf[i]]++] = i;
}

// Assembly:
pushq %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x1c(%rsp)
movups %xmm0, -0x2c(%rsp)
movups %xmm0, -0x3c(%rsp)
movups %xmm0, -0x4c(%rsp)
movups %xmm0, -0x5c(%rsp)
movups %xmm0, -0x6c(%rsp)
movups %xmm0, -0x7c(%rsp)
movq $0x0, -0xc(%rsp)
movl %esi, %eax
testl %esi, %esi
jle 0x4796b
leaq 0x1(%rax), %r8
movslq -0x8(%rdi,%r8,4), %r9
incl -0x80(%rsp,%r9,4)
decq %r8
cmpq $0x1, %r8
jg 0x47958
xorl %r8d, %r8d
movl %r8d, (%rcx)
movl %r8d, -0x80(%rsp)
xorl %r9d, %r9d
addl -0x80(%rsp,%r9,4), %r8d
movl %r8d, 0x4(%rcx,%r9,4)
incq %r9
cmpq $0x1f, %r9
jne 0x47979
testl %esi, %esi
jle 0x479b3
xorl %esi, %esi
movslq (%rdi,%rsi,4), %r8
testq %r8, %r8
je 0x479ab
movslq (%rcx,%r8,4), %r9
leal 0x1(%r9), %r10d
movl %r10d, (%rcx,%r8,4)
movl %esi, (%rdx,%r9,4)
incq %rsi
cmpq %rsi, %rax
jne 0x47992
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/kplib.c
// Function: hufgetsym
static int hufgetsym (int *hitab, int *hbmax)
{
	int v, n;

	v = n = 0;
	do { v = (v<<1)+getbits(1)+hbmax[n]-hbmax[n+1]; n++; } while (v >= 0);
	return(hitab[hbmax[n]+v]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, (%rsp)
addq $0x4, %r14
xorl %ebx, %ebx
movl $0xfffc, %ebp           # imm = 0xFFFC
movl $0xfff80020, %r12d      # imm = 0xFFF80020
movq 0x57e789(%rip), %rax    # 0x5c6168
movl 0x57e77a(%rip), %r13d   # 0x5c6160
movl %r13d, %ecx
sarl $0x3, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx), %r15d
leal 0x1(%r13), %ecx
movl %ecx, 0x57e763(%rip)    # 0x5c6160
cmpl $-0x1, %r13d
jl 0x47ad8
cmpb $0x0, 0x56e732(%rip)    # 0x5b6140
je 0x47a59
movl 0x57e746(%rip), %eax    # 0x5c615c
movl %eax, 0x56e744(%rip)    # 0x5b6160
movl 0x56e5be(%rip), %eax    # 0x5b5fe0
subl 0x56e5c0(%rip), %eax    # 0x5b5fe8
cmpl %ebp, %eax
cmovgel %ebp, %eax
movslq %eax, %rdx
movq 0x56e591(%rip), %rcx    # 0x5b5fc8
movl $0x1, %esi
leaq 0x56e721(%rip), %rdi    # 0x5b6164
callq 0x6550
addl %eax, 0x56e59a(%rip)    # 0x5b5fe8
movl 0x57e70c(%rip), %eax    # 0x5c6160
addl %r12d, %eax
jmp 0x47ad2
movq 0x5883a0(%rip), %rcx    # 0x5cfe00
testq %rcx, %rcx
je 0x47a8a
movq %rcx, 0x57e6fc(%rip)    # 0x5c6168
movq $0x0, 0x588389(%rip) # 0x5cfe00
movl 0x5ab833(%rip), %ecx    # 0x5f32b0
shll $0x3, %ecx
movl %r13d, %eax
subl %ecx, %eax
addl $0x21, %eax
jmp 0x47ad2
movl 0x8(%rax), %ecx
bswapl %ecx
movl %ecx, 0x5ab81b(%rip)    # 0x5f32b0
movslq %ecx, %rcx
addq %rax, %rcx
addq $0xc, %rcx
movq %rcx, 0x58835a(%rip)    # 0x5cfe00
movl (%rax), %ecx
movl %ecx, 0x5ab806(%rip)    # 0x5f32b4
cmpl $0x54414449, 0xc(%rax)  # imm = 0x54414449
jne 0x47ac0
movl 0x10(%rax), %eax
movl %eax, 0x5ab7f8(%rip)    # 0x5f32b8
leaq 0x5ab7f1(%rip), %rax    # 0x5f32b8
movq %rax, 0x57e69a(%rip)    # 0x5c6168
leal -0x1f(%r13), %eax
movl %eax, 0x57e688(%rip)    # 0x5c6160
addl %ebx, %ebx
andl $0x7, %r13d
xorl %eax, %eax
btl %r13d, %r15d
setb %al
orl %ebx, %eax
movslq -0x4(%r14), %rcx
cltq
addq %rcx, %rax
movl (%r14), %ecx
addq $0x4, %r14
movl %eax, %ebx
subl %ecx, %ebx
jns 0x479d8
movq (%rsp), %rcx
movl (%rcx,%rax,4), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/kplib.c
// Function: qhufgencode
static void qhufgencode (int *hitab, int *hbmax, int *qhval, unsigned char *qhbit, int numbits)
{
	int i, j, k, n, r;

		//r is the bit reverse of i. Ex: if: i = 1011100111, r = 1110011101
	i = r = 0;
	for(n=1;n<=numbits;n++)
		for(k=hbmax[n-1];k<hbmax[n];k++)
			for(j=i+pow2mask[numbits-n];i<=j;i++)
			{
				r = bitrev(i,numbits);
				qhval[r] = hitab[k];
				qhbit[r] = (unsigned char)n;
			}
	for(j=pow2mask[numbits];i<=j;i++)
	{
		r = bitrev(i,numbits);

		//k = 0;
		//for(n=0;n<numbits;n++)
		//   k = (k<<1) + ((r>>n)&1) + hbmax[n]-hbmax[n+1];
		//
		//n = numbits;
		//k = hbmax[n]-r;
		//
		//j = peekbits(LOGQHUFSIZ); i = qhufval[j]; j = qhufbit[j];
		//
		//i = j = 0;
		//do
		//{
		//   i = (i<<1)+getbits(1)+nbuf0[j]-nbuf0[j+1]; j++;
		//} while (i >= 0);
		//i = ibuf0[nbuf0[j]+i];
		//qhval[r] = k;

		qhbit[r] = 0; //n-32;
	}

	//   //hufgetsym_skipb related code:
	//for(k=n=0;n<numbits;n++) k = (k<<1)+hbmax[n]-hbmax[n+1];
	//return(k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rax
movl %r8d, %ecx
movq %rcx, -0x8(%rsp)
testl %r8d, %r8d
jle 0x47bcb
movl $0x1, %r11d
movl %r8d, %ecx
shll %cl, %r11d
leal 0x1(%r8), %ecx
xorl %r9d, %r9d
movl $0x1, %ebx
movslq -0x4(%rsi,%rbx,4), %r15
cmpl (%rsi,%rbx,4), %r15d
jge 0x47bc1
movq -0x8(%rsp), %r14
subq %rbx, %r14
leaq 0x2ec67(%rip), %r10     # 0x767d0
movl (%r10,%r14,4), %r12d
leal (%r12,%r9), %ebp
cmpl %ebp, %r9d
cmovgl %r9d, %ebp
movl %r9d, %r13d
movl $0x1, %r14d
xorl %r9d, %r9d
xorl %r10d, %r10d
testl %r13d, %r14d
setne %r10b
leal (%r10,%r9,2), %r9d
addl %r14d, %r14d
cmpl %r11d, %r14d
jl 0x47b84
movl (%rdi,%r15,4), %r10d
movslq %r9d, %r9
movl %r10d, (%rdx,%r9,4)
movb %bl, (%rax,%r9)
leal 0x1(%r13), %r9d
cmpl %ebp, %r13d
movl %r9d, %r13d
jne 0x47b7b
incq %r15
movslq (%rsi,%rbx,4), %r10
cmpq %r10, %r15
jl 0x47b6d
incq %rbx
cmpq %rcx, %rbx
jne 0x47b4f
jmp 0x47bce
xorl %r9d, %r9d
leaq 0x2ebfb(%rip), %rcx     # 0x767d0
movq -0x8(%rsp), %rdx
movl (%rcx,%rdx,4), %edx
cmpl %edx, %r9d
jg 0x47c23
movl $0x1, %esi
movl %r8d, %ecx
shll %cl, %esi
testl %r8d, %r8d
je 0x47c11
movl $0x1, %edi
xorl %ecx, %ecx
xorl %r10d, %r10d
testl %r9d, %edi
setne %r10b
leal (%r10,%rcx,2), %ecx
addl %edi, %edi
cmpl %esi, %edi
jl 0x47bf8
movslq %ecx, %rcx
jmp 0x47c13
xorl %ecx, %ecx
movb $0x0, (%rax,%rcx)
leal 0x1(%r9), %ecx
cmpl %edx, %r9d
movl %ecx, %r9d
jne 0x47bec
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/kplib.c
// Function: kzseek
int kzseek (int offset, int whence)
{
	if (!kzfs.fil) return(-1);
	switch (whence)
	{
		case SEEK_CUR: kzfs.pos += offset; break;
		case SEEK_END: kzfs.pos = kzfs.leng+offset; break;
		case SEEK_SET: default: kzfs.pos = offset;
	}
	if (kzfs.pos < 0) kzfs.pos = 0;
	if (kzfs.pos > kzfs.leng) kzfs.pos = kzfs.leng;
	return(kzfs.pos);
}

// Assembly:
cmpq $0x0, 0x56e37f(%rip)    # 0x5b5fc8
je 0x47c5d
cmpl $0x2, %esi
je 0x47c63
cmpl $0x1, %esi
jne 0x47c69
addl 0x56e39d(%rip), %edi    # 0x5b5ff8
jmp 0x47c69
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
addl 0x56e387(%rip), %edi    # 0x5b5ff0
xorl %eax, %eax
testl %edi, %edi
cmovgl %edi, %eax
movl 0x56e37a(%rip), %ecx    # 0x5b5ff0
cmpl %ecx, %eax
cmovgel %ecx, %eax
movl %eax, 0x56e377(%rip)    # 0x5b5ff8
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/kplib.c
// Function: kpzload
void kpzload (const char *filnam, intptr_t *pic, int *bpl, int *xsiz, int *ysiz)
{
	char *buf;
	int leng;

	(*pic) = 0;
	if (!kzopen(filnam)) return;
	leng = kzfilelength();
	buf = (char *)malloc(leng); if (!buf) return;
	kzread(buf,leng);
	kzclose();

	kpgetdim(buf,leng,xsiz,ysiz);
	(*bpl) = ((*xsiz)<<2);
	(*pic) = (intptr_t)malloc((*ysiz)*(*bpl)); if (!(*pic)) { free(buf); return; }
	if (kprender(buf,leng,*pic,*bpl,*xsiz,*ysiz,0,0) < 0) { free(buf); free((void *)*pic); (*pic) = 0; return; }
	free(buf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq $0x0, (%rsi)
callq 0x45558
testl %eax, %eax
je 0x47de9
xorl %ebp, %ebp
cmpq $0x1, 0x56e291(%rip)    # 0x5b5fc8
sbbl %ebp, %ebp
orl 0x56e2b1(%rip), %ebp    # 0x5b5ff0
movslq %ebp, %rdi
callq 0x69a0
testq %rax, %rax
je 0x47de9
movq %rax, %r13
movq %rax, %rdi
movl %ebp, %esi
callq 0x45c69
movq 0x56e264(%rip), %rdi    # 0x5b5fc8
testq %rdi, %rdi
je 0x47d79
callq 0x6480
movq $0x0, 0x56e24f(%rip) # 0x5b5fc8
movq %r13, %rdi
movl %ebp, %esi
movq %r15, %rdx
movq %r14, %rcx
callq 0x40168
movl (%r15), %eax
shll $0x2, %eax
movl %eax, (%r12)
movslq (%r14), %rcx
movslq %eax, %rdi
imulq %rcx, %rdi
callq 0x69a0
movq %rax, (%rbx)
testq %rax, %rax
je 0x47df8
movl (%r12), %ecx
movl (%r15), %r8d
movl (%r14), %r9d
xorl %r10d, %r10d
movq %r13, %rdi
movl %ebp, %esi
movq %rax, %rdx
pushq %r10
pushq %r10
callq 0x403fd
addq $0x10, %rsp
movl %eax, %ebp
movq %r13, %rdi
callq 0x61c0
testl %ebp, %ebp
jns 0x47de9
movq (%rbx), %rdi
callq 0x61c0
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x61c0
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/kplib.c
// Function: huffgetval
static void huffgetval (int index, int curbits, int num, int *daval, int *dabits)
{
	int b, v, pow2, *hmax;

	hmax = &hufmaxatbit[index][0];
	pow2 = pow2long[curbits-1];
	if (num&pow2) v = 1; else v = 0;
	for(b=1;b<=16;b++)
	{
		if (v < hmax[b])
		{
			*dabits = b;
			*daval = huftable[index][hufvalatbit[index][b]+v];
			return;
		}
		pow2 >>= 1; v <<= 1;
		if (num&pow2) v++;
	}
	*dabits = 16; *daval = 0;
}

// Assembly:
pushq %rbx
movslq %edi, %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
leaq 0x587884(%rip), %r9     # 0x5cffc0
addq %rdi, %r9
decl %esi
leaq 0x2e008(%rip), %r10     # 0x76750
movl (%r10,%rsi,4), %r11d
xorl %esi, %esi
testl %edx, %r11d
setne %sil
movl $0x1, %r10d
cmpl (%r9,%r10,4), %esi
jl 0x48783
sarl %r11d
xorl %ebx, %ebx
testl %edx, %r11d
setne %bl
leal (%rbx,%rsi,2), %esi
incq %r10
cmpq $0x11, %r10
jne 0x4875b
movl $0x10, (%r8)
xorl %eax, %eax
jmp 0x487ac
movl %r10d, (%r8)
leaq 0x587ab3(%rip), %rdx    # 0x5d0240
addq %rdi, %rdx
movslq (%rdx,%r10,4), %rdx
movslq %esi, %rsi
addq %rdx, %rsi
shlq $0x8, %rax
leaq 0x587d1b(%rip), %rdx    # 0x5d04c0
addq %rax, %rdx
movzbl (%rdx,%rsi), %eax
movl %eax, (%rcx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: OSD_Cleanup
void OSD_Cleanup(void)
{
	symbol_t *s;

	for (; symbols; symbols=s) {
		s=symbols->next;
		Bfree(symbols);
	}

	osdinited=0;
}

// Assembly:
movq 0x5aa391(%rip), %rdi    # 0x5f32c0
testq %rdi, %rdi
je 0x48f4e
pushq %rbx
movq 0x8(%rdi), %rbx
callq 0x61c0
movq %rbx, 0x5aa37b(%rip)    # 0x5f32c0
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x48f35
popq %rbx
movb $0x0, 0x5aa373(%rip)    # 0x5f32c8
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: OSD_Init
void OSD_Init(void)
{
    if (osdinited) return;
	osdinited=1;

	Bmemset(osdtext, 0, TEXTSIZE);
	osdlines=1;

	atexit(OSD_Cleanup);

	OSD_RegisterFunction("listsymbols","listsymbols: lists all the recognized symbols",osdcmd_listsymbols);
	OSD_RegisterFunction("help","help: displays help on the named symbol",osdcmd_help);
	OSD_RegisterFunction("osdrows","osdrows: sets the number of visible lines of the OSD",osdcmd_osdvars);
	OSD_RegisterFunction("clear","clear: clear the OSD",osdcmd_clear);
	OSD_RegisterFunction("echo","echo: write text to the OSD",osdcmd_echo);
}

// Assembly:
cmpb $0x0, 0x5aa36b(%rip)    # 0x5f32c8
je 0x48f60
retq
pushq %rax
movb $0x1, 0x5aa360(%rip)    # 0x5f32c8
leaq 0x5aa361(%rip), %rdi    # 0x5f32d0
movl $0x4000, %edx           # imm = 0x4000
xorl %esi, %esi
callq 0x62f0
movl $0x1, 0x5acfb(%rip)     # 0xa3c80
leaq -0x64(%rip), %rdi       # 0x48f28
callq 0x71090
leaq 0x2d9b8(%rip), %rdi     # 0x76950
leaq 0x2d9bd(%rip), %rsi     # 0x7695c
leaq 0x191(%rip), %rdx       # 0x49137
callq 0x49014
leaq 0x2a2e5(%rip), %rdi     # 0x73297
leaq 0x2d9d1(%rip), %rsi     # 0x7698a
leaq 0x1bc(%rip), %rdx       # 0x4917c
callq 0x49014
leaq 0x2d9e6(%rip), %rdi     # 0x769b2
leaq 0x2d9e7(%rip), %rsi     # 0x769ba
leaq 0x1f0(%rip), %rdx       # 0x491ca
callq 0x49014
leaq 0x2da09(%rip), %rdi     # 0x769ef
leaq 0x2da08(%rip), %rsi     # 0x769f5
leaq 0x256(%rip), %rdx       # 0x4924a
callq 0x49014
leaq 0x2cbe0(%rip), %rdi     # 0x75be0
leaq 0x2da03(%rip), %rsi     # 0x76a0a
leaq 0x276(%rip), %rdx       # 0x49284
popq %rax
jmp 0x49014
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: osdcmd_listsymbols
static int osdcmd_listsymbols(const osdfuncparm_t *parm)
{
	symbol_t *i;

	(void)parm;

	OSD_Printf("Symbol listing:\n");
	for (i=symbols; i!=NULL; i=i->next)
		OSD_Printf("     %s\n", i->name);

	return OSDCMD_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x2db13(%rip), %rdi     # 0x76c55
xorl %eax, %eax
callq 0x4a654
movq 0x5aa170(%rip), %r14    # 0x5f32c0
testq %r14, %r14
je 0x49172
leaq 0x2fccb(%rip), %rbx     # 0x78e27
movq (%r14), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a654
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x4915c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: osdcmd_help
static int osdcmd_help(const osdfuncparm_t *parm)
{
	symbol_t *symb;

	if (parm->numparms != 1) return OSDCMD_SHOWHELP;
	symb = findexactsymbol(parm->parms[0]);
	if (!symb) {
		OSD_Printf("Help Error: \"%s\" is not a defined variable or function\n", parm->parms[0]);
	} else {
		OSD_Printf("%s\n", symb->help);
	}

	return OSDCMD_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0x1, %ebx
cmpl $0x1, (%rdi)
jne 0x491c0
movq 0x10(%rdi), %rax
movq (%rax), %r14
movq %r14, %rdi
callq 0x4aa78
testq %rax, %rax
je 0x491ad
movq 0x10(%rax), %rsi
leaq 0x2fc83(%rip), %rdi     # 0x78e2c
xorl %ebx, %ebx
jmp 0x491b9
leaq 0x2dab2(%rip), %rdi     # 0x76c66
xorl %ebx, %ebx
movq %r14, %rsi
xorl %eax, %eax
callq 0x4a654
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: osdcmd_osdvars
static int osdcmd_osdvars(const osdfuncparm_t *parm)
{
	int showval = (parm->numparms < 1);

	if (!Bstrcasecmp(parm->name, "osdrows")) {
		if (showval) { OSD_Printf("osdrows is %d\n", osdrows); return OSDCMD_OK; }
		else {
			osdrows = atoi(parm->parms[0]);
			if (osdrows < 1) osdrows = 1;
			else if (osdrows > osdmaxrows) osdrows = osdmaxrows;
			return OSDCMD_OK;
		}
	}
	return OSDCMD_SHOWHELP;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x8(%rdi), %rdi
leaq 0x2d7d6(%rip), %rsi     # 0x769b2
callq 0x6880
movl $0x1, %ebx
testl %eax, %eax
je 0x491f4
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
cmpl $0x0, (%r14)
jle 0x49224
movq 0x10(%r14), %rax
movq (%rax), %rdi
callq 0x6310
movl %eax, 0x5aad8(%rip)     # 0xa3ce4
testl %eax, %eax
jle 0x4923c
movl 0x5aaca(%rip), %ecx     # 0xa3ce0
xorl %ebx, %ebx
cmpl %ecx, %eax
jle 0x491ea
movl %ecx, 0x5aac2(%rip)     # 0xa3ce4
jmp 0x491ea
movl 0x5aaba(%rip), %esi     # 0xa3ce4
leaq 0x2da6d(%rip), %rdi     # 0x76c9e
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x4a654
jmp 0x491ea
movl $0x1, 0x5aa9e(%rip)     # 0xa3ce4
xorl %ebx, %ebx
jmp 0x491ea
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: osdcmd_clear
static int osdcmd_clear(const osdfuncparm_t *parm)
{
	if (parm->numparms != 0) return OSDCMD_SHOWHELP;
	Bmemset(osdtext, 0, TEXTSIZE);
	osdlines=1;
	osdhead=0;
	osdpos=0;

	return OSDCMD_OK;
}

// Assembly:
pushq %rbx
movl $0x1, %ebx
cmpl $0x0, (%rdi)
jne 0x49280
leaq 0x5aa074(%rip), %rdi    # 0x5f32d0
xorl %ebx, %ebx
movl $0x4000, %edx           # imm = 0x4000
xorl %esi, %esi
callq 0x62f0
movl $0x1, 0x5aa0c(%rip)     # 0xa3c80
movl %ebx, 0x5ae08a(%rip)    # 0x5f7304
movl %ebx, 0x5ae080(%rip)    # 0x5f7300
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: osdcmd_echo
static int osdcmd_echo(const osdfuncparm_t *parm)
{
	int i;

	if (parm->numparms == 0) return OSDCMD_SHOWHELP;
	for (i = 0; i < parm->numparms; i++) {
		if (i) OSD_Puts(" ");
		OSD_Puts(parm->parms[i]);
	}
	OSD_Puts("\n");

	return OSDCMD_OK;
}

// Assembly:
cmpl $0x0, (%rdi)
je 0x492d9
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, (%rdi)
jle 0x492c5
xorl %r15d, %r15d
leaq 0x29360(%rip), %r14     # 0x72600
testq %r15, %r15
je 0x492ad
movq %r14, %rdi
callq 0x4a70a
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x4a70a
incq %r15
movslq (%rbx), %rax
cmpq %rax, %r15
jl 0x492a0
leaq 0x2cdc0(%rip), %rdi     # 0x7608c
callq 0x4a70a
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: OSD_SetFunctions
void OSD_SetFunctions(
		void (*drawchar)(int,int,char,int,int),
		void (*drawstr)(int,int,char*,int,int,int),
		void (*drawcursor)(int,int,int,int),
		int (*colwidth)(int),
		int (*rowheight)(int),
		void (*clearbg)(int,int),
		int (*gtime)(void),
		void (*showosd)(int)
	)
{
	drawosdchar = drawchar;
	drawosdstr = drawstr;
	drawosdcursor = drawcursor;
	getcolumnwidth = colwidth;
	getrowheight = rowheight;
	clearbackground = clearbg;
	gettime = gtime;
	onshowosd = showosd;

	if (!drawosdchar) drawosdchar = _internal_drawosdchar;
	if (!drawosdstr) drawosdstr = _internal_drawosdstr;
	if (!drawosdcursor) drawosdcursor = _internal_drawosdcursor;
	if (!getcolumnwidth) getcolumnwidth = _internal_getcolumnwidth;
	if (!getrowheight) getrowheight = _internal_getrowheight;
	if (!clearbackground) clearbackground = _internal_clearbackground;
	if (!gettime) gettime = _internal_gettime;
	if (!onshowosd) onshowosd = _internal_onshowosd;
}

// Assembly:
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %r10
movq %rdi, 0x5a998(%rip)     # 0xa3c88
movq %rsi, 0x5a999(%rip)     # 0xa3c90
movq %rdx, 0x5a99a(%rip)     # 0xa3c98
movq %rcx, 0x5a99b(%rip)     # 0xa3ca0
movq %r8, 0x5a99c(%rip)      # 0xa3ca8
movq %r9, 0x5a99d(%rip)      # 0xa3cb0
movq %r10, 0x5a99e(%rip)     # 0xa3cb8
movq %rax, 0x5a99f(%rip)     # 0xa3cc0
testq %rdi, %rdi
jne 0x49334
leaq 0x8e(%rip), %rdi        # 0x493bb
movq %rdi, 0x5a954(%rip)     # 0xa3c88
testq %rsi, %rsi
jne 0x49347
leaq 0x128(%rip), %rsi       # 0x49468
movq %rsi, 0x5a949(%rip)     # 0xa3c90
testq %rdx, %rdx
jne 0x4935a
leaq 0x1fd(%rip), %rdx       # 0x49550
movq %rdx, 0x5a93e(%rip)     # 0xa3c98
testq %rcx, %rcx
jne 0x4936d
leaq 0x28a(%rip), %rcx       # 0x495f0
movq %rcx, 0x5a933(%rip)     # 0xa3ca0
testq %r8, %r8
jne 0x49380
leaq 0x285(%rip), %rcx       # 0x495fe
movq %rcx, 0x5a928(%rip)     # 0xa3ca8
testq %r9, %r9
jne 0x49393
leaq 0x28d(%rip), %rcx       # 0x49619
movq %rcx, 0x5a91d(%rip)     # 0xa3cb0
testq %r10, %r10
jne 0x493a6
leaq 0x27b(%rip), %rcx       # 0x4961a
movq %rcx, 0x5a912(%rip)     # 0xa3cb8
testq %rax, %rax
je 0x493ac
retq
leaq 0x26c(%rip), %rax       # 0x4961f
movq %rax, 0x5a906(%rip)     # 0xa3cc0
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: internal_drawosdchar
static void _internal_drawosdchar(int x, int y, char ch, int shade, int pal)
{
	char st[2] = { 0,0 };
	int colour, shadow;

	(void)shade;

	st[0] = ch;

	if (qsetmode == 200) {
		colour = palmap256[pal%4];
		shadow = palmap256[0];
	} else {
		colour = palmap16[pal%4];
		shadow = palmap16[0];
		// printext256 happens to work in 2D mode.
	}
	printext256(4+(x*8)+1,4+(y*14)+1, shadow, -1, st, 2);
	printext256(4+(x*8),4+(y*14), colour, -1, st, 2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %eax, %eax
movw %ax, 0x6(%rsp)
movb %dl, 0x6(%rsp)
leaq 0x16e654(%rip), %rcx    # 0x1b7a28
leal 0x3(%r8), %edx
testl %r8d, %r8d
cmovnsl %r8d, %edx
andl $-0x4, %edx
subl %edx, %r8d
cmpl $0xc8, (%rcx)
movslq %r8d, %rcx
jne 0x49400
leaq 0x5a8f9(%rip), %rdx     # 0xa3cf0
movzwl 0x5a8f2(%rip), %eax     # 0xa3cf0
jmp 0x49407
leaq 0x2d8f9(%rip), %rdx     # 0x76d00
movswl (%rdx,%rcx,4), %ebx
leal 0x4(,%rdi,8), %ebp
leal 0x5(,%rdi,8), %edi
leal (%rsi,%rsi), %ecx
shll $0x4, %esi
subl %ecx, %esi
leal 0x4(%rsi), %r14d
addl $0x5, %esi
movswl %ax, %edx
leaq 0x6(%rsp), %r15
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r15, %r8
movl $0x2, %r9d
callq 0x3c433
movl %ebp, %edi
movl %r14d, %esi
movl %ebx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r15, %r8
movl $0x2, %r9d
callq 0x3c433
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: internal_drawosdstr
static void _internal_drawosdstr(int x, int y, char *ch, int len, int shade, int pal)
{
	char st[1024];
	int colour, shadow;

	(void)shade;

	if (len>1023) len=1023;
	memcpy(st,ch,len);
	st[len]=0;

	if (qsetmode == 200) {
		colour = palmap256[pal%4];
		shadow = palmap256[0];
	} else {
		colour = palmap16[pal%4];
		shadow = palmap16[0];
		// printext256 happens to work in 2D mode.
	}
	printext256(4+(x*8)+1,4+(y*14)+1, shadow, -1, st, 2);
	printext256(4+(x*8),4+(y*14), colour, -1, st, 2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movl %r9d, %r12d
movl %esi, %r14d
movl %edi, %r15d
movl $0x3ff, %eax            # imm = 0x3FF
cmpl %eax, %ecx
cmovll %ecx, %eax
movslq %eax, %r13
movq %rsp, %rbx
movq %rbx, %rdi
movq %rdx, %rsi
movq %r13, %rdx
callq 0x60c0
movb $0x0, (%rsp,%r13)
leaq 0x16e57c(%rip), %rax    # 0x1b7a28
leal 0x3(%r12), %ecx
testl %r12d, %r12d
cmovnsl %r12d, %ecx
andl $-0x4, %ecx
subl %ecx, %r12d
xorl %ecx, %ecx
cmpl $0xc8, (%rax)
movslq %r12d, %rax
leaq 0x5a820(%rip), %rdx     # 0xa3cf0
leaq 0x2d829(%rip), %rsi     # 0x76d00
cmoveq %rdx, %rsi
cmovew 0x5a80d(%rip), %cx      # 0xa3cf0
movswl (%rsi,%rax,4), %ebp
leal 0x4(,%r15,8), %r12d
leal 0x5(,%r15,8), %edi
leal (%r14,%r14), %eax
shll $0x4, %r14d
subl %eax, %r14d
leal 0x4(%r14), %r15d
addl $0x5, %r14d
movswl %cx, %edx
movl %r14d, %esi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
movl $0x2, %r9d
callq 0x3c433
movl %r12d, %edi
movl %r15d, %esi
movl %ebp, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
movl $0x2, %r9d
callq 0x3c433
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: internal_drawosdcursor
static void _internal_drawosdcursor(int x, int y, int type, int lastkeypress)
{
	char st[2] = { '\x16', 0 };  // solid lower third of character cell
	int colour, yoff = 2;

	unsigned blinkcycle = gettime() - (unsigned)lastkeypress;
	if (blinkcycle % 1000 > 500) return;  // blink each half-second.

	if (type) {
		st[0] = '\xdb';  // solid block
		yoff = 0;
	}

	if (qsetmode == 200) {
		colour = palmap256[2];
	} else {
		colour = palmap16[2];
		// printext256 happens to work in 2D mode.
	}
	printext256(4+(x*8),4+(y*14)+yoff, colour, -1, st, 2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %ebx
movl %edi, %r14d
movw $0x16, 0x6(%rsp)
callq *0x5a74a(%rip)          # 0xa3cb8
subl %r15d, %eax
imulq $0x10624dd3, %rax, %rcx # imm = 0x10624DD3
shrq $0x26, %rcx
imull $0x3e8, %ecx, %ecx      # imm = 0x3E8
subl %ecx, %eax
cmpl $0x1f4, %eax            # imm = 0x1F4
ja 0x495e5
testl %ebp, %ebp
je 0x49598
movb $-0x25, 0x6(%rsp)
xorl %eax, %eax
jmp 0x4959d
movl $0x2, %eax
leaq 0x16e484(%rip), %rcx    # 0x1b7a28
cmpl $0xc8, (%rcx)
movw $0x7, %cx
jne 0x495b7
movzwl 0x5a741(%rip), %ecx     # 0xa3cf8
leal 0x4(,%r14,8), %edi
leal (%rbx,%rbx), %edx
shll $0x4, %ebx
subl %edx, %ebx
leal (%rbx,%rax), %esi
addl $0x4, %esi
movswl %cx, %edx
leaq 0x6(%rsp), %r8
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0x2, %r9d
callq 0x3c433
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: OSD_ShowDisplay
void OSD_ShowDisplay(int onf)
{
	if (onf < 0) {
		onf = !osdvisible;
	}
	osdvisible = (onf != 0);
	osdeditcontrol = 0;
	osdeditshift = 0;

	grabmouse(osdvisible == 0);
	onshowosd(osdvisible);
	releaseallbuttons();
	bflushchars();

	if (osdvisible) {
		findwhite();
	}
}

// Assembly:
pushq %rax
xorl %eax, %eax
cmpb $0x0, 0x5acff7(%rip)    # 0x5f72dc
sete %al
xorl %ecx, %ecx
testl %edi, %edi
setne %cl
cmovsl %eax, %ecx
movb %cl, 0x5acfe4(%rip)     # 0x5f72dc
movb $0x0, 0x5acfe1(%rip)    # 0x5f72e0
xorb $0x1, %cl
movzbl %cl, %edi
callq 0x6c577
movzbl 0x5acfcb(%rip), %edi    # 0x5f72dc
callq *0x599a9(%rip)          # 0xa3cc0
callq 0x6c63d
callq 0x1ec2f
cmpb $0x0, 0x5acfb4(%rip)    # 0x5f72dc
je 0x4a330
popq %rax
jmp 0x4a459
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: OSD_ResizeDisplay
void OSD_ResizeDisplay(int w, int h)
{
	int newcols;
	int newmaxlines;
	char newtext[TEXTSIZE];
	int i,j,k;

	newcols = getcolumnwidth(w);
	newmaxlines = TEXTSIZE / newcols;

	j = min(newmaxlines, osdmaxlines);
	k = min(newcols, osdcols);

	memset(newtext, 0, TEXTSIZE);
	for (i=0;i<j;i++) {
		memcpy(newtext+newcols*i, osdtext+osdcols*i, k);
	}

	memcpy(osdtext, newtext, TEXTSIZE);
	osdcols = newcols;
	osdmaxlines = newmaxlines;
	osdmaxrows = getrowheight(h)-2;

	if (osdrows > osdmaxrows) osdrows = osdmaxrows;

	osdpos = 0;
	osdhead = 0;
	osdeditwinstart = 0;
	osdeditwinend = editlinewidth;

	if (osdvisible) {
		findwhite();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4018, %rsp           # imm = 0x4018
movl %esi, 0xc(%rsp)
callq *0x59953(%rip)          # 0xa3ca0
movl %eax, %ecx
movl $0x4000, %eax           # imm = 0x4000
xorl %edx, %edx
movl %ecx, 0x4(%rsp)
idivl %ecx
movl 0x59976(%rip), %ebp     # 0xa3cd8
cmpl %ebp, %eax
movl %eax, 0x8(%rsp)
cmovll %eax, %ebp
movslq 0x5996a(%rip), %rbx     # 0xa3cdc
leaq 0x10(%rsp), %r15
movl $0x4000, %edx           # imm = 0x4000
movq %r15, %rdi
xorl %esi, %esi
callq 0x62f0
testl %ebp, %ebp
jle 0x4a3bd
movl 0x4(%rsp), %ecx
cmpl %ebx, %ecx
movl %ebx, %eax
cmovll %ecx, %eax
movslq %eax, %r12
movslq %ecx, %r14
movl %ebp, %ebp
leaq 0x5a8f2c(%rip), %r13    # 0x5f32d0
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x60c0
addq %rbx, %r13
addq %r14, %r15
decq %rbp
jne 0x4a3a4
leaq 0x5a8f0c(%rip), %rdi    # 0x5f32d0
leaq 0x10(%rsp), %rsi
movl $0x4000, %edx           # imm = 0x4000
callq 0x60c0
movl 0x4(%rsp), %eax
movl %eax, 0x598ff(%rip)     # 0xa3cdc
movl 0x8(%rsp), %eax
movl %eax, 0x598f1(%rip)     # 0xa3cd8
movl 0xc(%rsp), %edi
callq *0x598b7(%rip)          # 0xa3ca8
addl $-0x2, %eax
movl %eax, 0x598e6(%rip)     # 0xa3ce0
cmpl %eax, 0x598e4(%rip)     # 0xa3ce4
jle 0x4a408
movl %eax, 0x598dc(%rip)     # 0xa3ce4
xorl %eax, %eax
movl %eax, 0x5acef0(%rip)    # 0x5f7300
movl %eax, 0x5aceee(%rip)    # 0x5f7304
movl %eax, 0x5aceec(%rip)    # 0x5f7308
movl 0x598ba(%rip), %eax     # 0xa3cdc
addl $-0x4, %eax
movl %eax, 0x598bd(%rip)     # 0xa3ce8
cmpb $0x0, 0x5aceaa(%rip)    # 0x5f72dc
je 0x4a447
addq $0x4018, %rsp           # imm = 0x4018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4a459
addq $0x4018, %rsp           # imm = 0x4018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: findwhite
static void findwhite(void)
{
	if (qsetmode == 200) {
		palmap256[0] = getclosestcol(0,0,0);    // black
		palmap256[1] = getclosestcol(63,63,63);	// white
		palmap256[2] = getclosestcol(42,42,42);	// light grey
		palmap256[3] = getclosestcol(21,21,63);	// light blue
	}
}

// Assembly:
leaq 0x16d5c8(%rip), %rax    # 0x1b7a28
cmpl $0xc8, (%rax)
jne 0x4a4cc
pushq %rax
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x24a31
movl %eax, 0x59876(%rip)     # 0xa3cf0
movl $0x3f, %edi
movl $0x3f, %esi
movl $0x3f, %edx
callq 0x24a31
movl %eax, 0x59860(%rip)     # 0xa3cf4
movl $0x2a, %edi
movl $0x2a, %esi
movl $0x2a, %edx
callq 0x24a31
movl %eax, 0x5984a(%rip)     # 0xa3cf8
movl $0x15, %edi
movl $0x15, %esi
movl $0x3f, %edx
callq 0x24a31
movl %eax, 0x59834(%rip)     # 0xa3cfc
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: OSD_Draw
void OSD_Draw(void)
{
	unsigned topoffs;
	int row, lines, x, len;

	if (!osdvisible || !osdinited) return;

	topoffs = osdhead * osdcols;
	row = osdrows-1;
	lines = min( osdlines-osdhead, osdrows );

	clearbackground(osdcols,osdrows+1);

	for (; lines>0; lines--, row--) {
		drawosdstr(0,row,osdtext+topoffs,osdcols,osdtextshade,osdtextpal);
		topoffs+=osdcols;
	}

	drawosdchar(2,osdrows,'>',osdpromptshade,osdpromptpal);
	if (osdeditcaps) drawosdchar(0,osdrows,'C',osdpromptshade,osdpromptpal);

	len = min(osdcols-1-3, osdeditlen-osdeditwinstart);
	for (x=0; x<len; x++)
		drawosdchar(3+x,osdrows,osdeditbuf[osdeditwinstart+x],osdeditshade,osdeditpal);

	drawosdcursor(3+osdeditcursor-osdeditwinstart,osdrows,osdovertype,keytime);
}

// Assembly:
cmpb $0x0, 0x5ace08(%rip)    # 0x5f72dc
je 0x4a653
testb $0x1, 0x5a8de7(%rip)    # 0x5f32c8
je 0x4a653
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x5ace0f(%rip), %r15d   # 0x5f7304
movl 0x597e1(%rip), %ebx     # 0xa3cdc
movl 0x597e2(%rip), %r14d    # 0xa3ce4
movl 0x59778(%rip), %ebp     # 0xa3c80
subl %r15d, %ebp
cmpl %r14d, %ebp
cmovgel %r14d, %ebp
leal 0x1(%r14), %esi
movl %ebx, %edi
callq *0x59792(%rip)          # 0xa3cb0
testl %ebp, %ebp
jle 0x4a566
imull %r15d, %ebx
incl %ebp
decl %r14d
leaq 0x5a8d9e(%rip), %r15    # 0x5f32d0
movl %ebx, %edx
addq %r15, %rdx
movl 0x5979f(%rip), %ecx     # 0xa3cdc
movl 0x5acd94(%rip), %r8d    # 0x5f72d8
movl 0x59785(%rip), %r9d     # 0xa3cd0
xorl %edi, %edi
movl %r14d, %esi
callq *0x5973a(%rip)          # 0xa3c90
addl 0x59780(%rip), %ebx     # 0xa3cdc
decl %ebp
decl %r14d
cmpl $0x1, %ebp
jg 0x4a532
movl 0x59778(%rip), %esi     # 0xa3ce4
movl 0x5acd5e(%rip), %ecx    # 0x5f72d0
movl 0x5974f(%rip), %r8d     # 0xa3cc8
movl $0x2, %edi
movl $0x3e, %edx
callq *0x596ff(%rip)          # 0xa3c88
cmpl $0x0, 0x5acd6c(%rip)    # 0x5f72fc
je 0x4a5b2
movl 0x5974c(%rip), %esi     # 0xa3ce4
movl 0x5acd32(%rip), %ecx    # 0x5f72d0
movl 0x59723(%rip), %r8d     # 0xa3cc8
xorl %edi, %edi
movl $0x43, %edx
callq *0x596d6(%rip)          # 0xa3c88
movslq 0x59723(%rip), %rbx     # 0xa3cdc
leal -0x4(%rbx), %ecx
movslq 0x5acd49(%rip), %rax    # 0x5f730c
movslq 0x5acd3e(%rip), %rdx    # 0x5f7308
subq %rdx, %rax
cmpl %eax, %ecx
cmovgel %eax, %ecx
testl %ecx, %ecx
jle 0x4a61f
addq $-0x4, %rbx
cmpq %rax, %rbx
cmovgeq %rax, %rbx
xorl %r14d, %r14d
leaq 0x5acd25(%rip), %r15    # 0x5f7310
leal 0x3(%r14), %edi
movl 0x596ef(%rip), %esi     # 0xa3ce4
movslq 0x5acd0c(%rip), %rax    # 0x5f7308
addq %r14, %rax
movsbl (%r15,%rax), %edx
movl 0x5accca(%rip), %ecx    # 0x5f72d4
movl 0x596bb(%rip), %r8d     # 0xa3ccc
callq *0x59671(%rip)          # 0xa3c88
incq %r14
cmpl %r14d, %ebx
jne 0x4a5eb
movq 0x59672(%rip), %rax     # 0xa3c98
movl 0x5acee4(%rip), %edi    # 0x5f7510
subl 0x5accd6(%rip), %edi    # 0x5f7308
addl $0x3, %edi
movl 0x596a9(%rip), %esi     # 0xa3ce4
movl 0x5accb7(%rip), %edx    # 0x5f72f8
movl 0x5acca1(%rip), %ecx    # 0x5f72e8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *%rax
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: OSD_Printf
void OSD_Printf(const char *fmt, ...)
{
	char tmpstr[1024];
	va_list va;

	if (!osdinited) return;

	va_start(va, fmt);
	vsnprintf(tmpstr, sizeof(tmpstr), fmt, va);
	va_end(va);

	OSD_Puts(tmpstr);
}

// Assembly:
pushq %rbx
subq $0x4d0, %rsp            # imm = 0x4D0
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x4a6b0
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpb $0x1, 0x5a8c11(%rip)    # 0x5f32c8
jne 0x4a701
movq %rdi, %r10
leaq 0x20(%rsp), %rax
movq %rsp, %rcx
movq %rax, 0x10(%rcx)
leaq 0x4e0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rcx)
leaq 0xd0(%rsp), %rbx
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdi
movq %r10, %rdx
callq 0x6740
movq %rbx, %rdi
callq 0x4a70a
addq $0x4d0, %rsp            # imm = 0x4D0
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: OSD_Puts
void OSD_Puts(const char *str)
{
    const char *chp;

	if (!osdinited) return;

	for (chp = str; *chp; chp++) {
		if (*chp == '\r') osdpos=0;
		else if (*chp == '\n') {
			osdpos=0;
			linefeed();
		} else {
			osdtext[osdpos++] = *chp;
			if (osdpos == osdcols) {
				osdpos = 0;
				linefeed();
			}
		}
	}
}

// Assembly:
cmpb $0x1, 0x5a8bb7(%rip)    # 0x5f32c8
jne 0x4a7e2
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x5acbd2(%rip), %eax    # 0x5f7300
movl 0x5954c(%rip), %ebp     # 0xa3c80
movslq 0x595a1(%rip), %r14     # 0xa3cdc
leaq 0x5a8b8e(%rip), %r15    # 0x5f32d0
leaq (%r15,%r14), %rcx
movq %rcx, 0x10(%rsp)
movl $0x4000, %r13d          # imm = 0x4000
subq %r14, %r13
movl 0x5957e(%rip), %ecx     # 0xa3cd8
movl %ecx, 0xc(%rsp)
movzbl (%rbx), %ecx
cmpl $0xa, %ecx
je 0x4a785
cmpl $0xd, %ecx
je 0x4a7bf
testl %ecx, %ecx
je 0x4a7d4
leal 0x1(%rax), %r12d
movl %r12d, 0x5acb86(%rip)   # 0x5f7300
cltq
movb %cl, (%rax,%r15)
cmpl %r14d, %r12d
jne 0x4a7cc
movl $0x0, 0x5acb71(%rip)    # 0x5f7300
movq 0x10(%rsp), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x61a0
xorl %r12d, %r12d
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x62f0
cmpl 0xc(%rsp), %ebp
jge 0x4a7cc
incl %ebp
movl %ebp, 0x594c3(%rip)     # 0xa3c80
jmp 0x4a7cc
movl $0x0, 0x5acb37(%rip)    # 0x5f7300
xorl %r12d, %r12d
incq %rbx
movl %r12d, %eax
jmp 0x4a75e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/osd.c
// Function: OSD_DispatchQueued
void OSD_DispatchQueued(void)
{
	int cmd;

	if (!osdexeccount) return;

	cmd=osdexeccount-1;
	osdexeccount=0;

	for (; cmd>=0; cmd--) {
		OSD_Dispatch((const char *)osdhistorybuf[cmd]);
	}
}

// Assembly:
movl 0x5acd2b(%rip), %eax    # 0x5f7514
testq %rax, %rax
je 0x4a839
movl $0x0, 0x5acd1c(%rip)    # 0x5f7514
testl %eax, %eax
jle 0x4a839
pushq %r14
pushq %rbx
pushq %rax
leaq 0x1(%rax), %r14
shlq $0x9, %rax
leaq 0x5acd11(%rip), %rcx    # 0x5f7520
leaq (%rax,%rcx), %rbx
addq $-0x200, %rbx           # imm = 0xFE00
movq %rbx, %rdi
callq 0x4a83a
decq %r14
addq $-0x200, %rbx           # imm = 0xFE00
cmpq $0x1, %r14
jg 0x4a81a
addq $0x8, %rsp
popq %rbx
popq %r14
retq