LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi_zlib_decode_malloc_guesssize_headerflag
STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)
{
   stbi__zbuf a;
   char *p = (char *) stbi__malloc(initial_size);
   if (p == NULL) return NULL;
   a.zbuffer = (stbi_uc *) buffer;
   a.zbuffer_end = (stbi_uc *) buffer + len;
   if (stbi__do_zlib(&a, p, initial_size, 1, parse_header)) {
      if (outlen) *outlen = (int) (a.zout - a.zout_start);
      return a.zout_start;
   } else {
      STBI_FREE(a.zout_start);
      return NULL;
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movl %r8d, %ebp
movq %rcx, %rbx
movl %edx, %r14d
movl %esi, %r12d
movq %rdi, %r15
movslq %edx, %rdi
callq 0x2210
testq %rax, %rax
je 0x3cfc
movq %rsp, %rdi
movq %r15, (%rdi)
movslq %r12d, %rcx
addq %r15, %rcx
movq %rcx, 0x8(%rdi)
movq %rax, %rsi
movl %r14d, %edx
movl $0x1, %ecx
movl %ebp, %r8d
callq 0x32a8
testl %eax, %eax
je 0x3cf2
testq %rbx, %rbx
je 0x3ceb
movl 0x18(%rsp), %eax
subl 0x20(%rsp), %eax
movl %eax, (%rbx)
movq 0x20(%rsp), %rax
jmp 0x3cfe
movq 0x20(%rsp), %rdi
callq 0x21e0
xorl %eax, %eax
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi_zlib_decode_noheader_malloc
STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)
{
   stbi__zbuf a;
   char *p = (char *) stbi__malloc(16384);
   if (p == NULL) return NULL;
   a.zbuffer = (stbi_uc *) buffer;
   a.zbuffer_end = (stbi_uc *) buffer+len;
   if (stbi__do_zlib(&a, p, 16384, 1, 0)) {
      if (outlen) *outlen = (int) (a.zout - a.zout_start);
      return a.zout_start;
   } else {
      STBI_FREE(a.zout_start);
      return NULL;
   }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x4000, %edi           # imm = 0x4000
callq 0x2210
testq %rax, %rax
je 0x3dc6
movq %rsp, %rdi
movq %r14, (%rdi)
movslq %ebp, %rcx
addq %r14, %rcx
movq %rcx, 0x8(%rdi)
movq %rax, %rsi
movl $0x4000, %edx           # imm = 0x4000
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x32a8
testl %eax, %eax
je 0x3dbc
testq %rbx, %rbx
je 0x3db5
movl 0x18(%rsp), %eax
subl 0x20(%rsp), %eax
movl %eax, (%rbx)
movq 0x20(%rsp), %rax
jmp 0x3dc8
movq 0x20(%rsp), %rdi
callq 0x21e0
xorl %eax, %eax
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi_info
STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp)
{
    FILE *f = stbi__fopen(filename, "rb");
    int result;
    if (!f) return stbi__err("can't fopen", "Unable to open file");
    result = stbi_info_from_file(f, x, y, comp);
    fclose(f);
    return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
leaq 0x13adc(%rip), %rsi     # 0x17920
callq 0x21d0
testq %rax, %rax
je 0x3e70
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3e8c
movl %eax, %ebx
movq %r12, %rdi
callq 0x2180
movl %ebx, %eax
jmp 0x3e80
leaq 0x13aac(%rip), %rax     # 0x17923
movq %rax, 0x183aa(%rip)     # 0x1c228
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi_info_from_file
STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)
{
   int r;
   stbi__context s;
   long pos = ftell(f);
   stbi__start_file(&s, f);
   r = stbi__info_main(&s,x,y,comp);
   fseek(f,pos,SEEK_SET);
   return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x2030
movq %rax, %r13
leaq 0x18308(%rip), %rsi     # 0x1c1c0
movq %rsp, %rbp
movq %rbp, %rdi
movq %r12, %rdx
callq 0x291b
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3efa
movl %eax, %ebx
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x21b0
movl %ebx, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi_is_16_bit
STBIDEF int stbi_is_16_bit(char const *filename)
{
    FILE *f = stbi__fopen(filename, "rb");
    int result;
    if (!f) return stbi__err("can't fopen", "Unable to open file");
    result = stbi_is_16_bit_from_file(f);
    fclose(f);
    return result;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
leaq 0x137e4(%rip), %rsi     # 0x17920
callq 0x21d0
testq %rax, %rax
je 0x415f
movq %rax, %rbx
movq %rax, %rdi
callq 0x4176
movl %eax, %ebp
movq %rbx, %rdi
callq 0x2180
movl %ebp, %eax
jmp 0x416f
leaq 0x137bd(%rip), %rax     # 0x17923
movq %rax, 0x180bb(%rip)     # 0x1c228
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi_is_16_bit_from_file
STBIDEF int stbi_is_16_bit_from_file(FILE *f)
{
   int r;
   stbi__context s;
   long pos = ftell(f);
   stbi__start_file(&s, f);
   r = stbi__is_16_main(&s);
   fseek(f,pos,SEEK_SET);
   return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
callq 0x2030
movq %rax, %r14
leaq 0x1802b(%rip), %rsi     # 0x1c1c0
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rdx
callq 0x291b
movq %r15, %rdi
callq 0x41ca
movl %eax, %ebp
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x21b0
movl %ebp, %eax
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__is_16_main(stbi__context*)
static int stbi__is_16_main(stbi__context *s)
{
   #ifndef STBI_NO_PNG
   if (stbi__png_is16(s))  return 1;
   #endif

   #ifndef STBI_NO_PSD
   if (stbi__psd_is16(s))  return 1;
   #endif

   return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq %rsp, %rdi
movq %rbx, (%rdi)
movl $0x2, %esi
xorl %edx, %edx
callq 0x103ca
testl %eax, %eax
je 0x41fa
cmpl $0x10, 0x20(%rsp)
jne 0x41fa
movl $0x1, %eax
jmp 0x42c8
movq (%rsp), %rax
movups 0xc8(%rax), %xmm0
movups %xmm0, 0xb8(%rax)
movq %rbx, %rdi
callq 0xf497
movl %eax, %ebp
shll $0x10, %ebp
movq %rbx, %rdi
callq 0xf497
orl %ebp, %eax
cmpl $0x38425053, %eax       # imm = 0x38425053
jne 0x42b8
movq %rbx, %rdi
callq 0xf497
cmpl $0x1, %eax
jne 0x42b8
cmpq $0x0, 0x10(%rbx)
je 0x426f
movq 0xc0(%rbx), %rcx
movl 0xb8(%rbx), %edx
movl %ecx, %eax
subl %edx, %eax
cmpl $0x5, %eax
jg 0x426f
movq %rcx, 0xb8(%rbx)
movq 0x28(%rbx), %rdi
movl $0x6, %esi
subl %eax, %esi
callq *0x18(%rbx)
jmp 0x4277
addq $0x6, 0xb8(%rbx)
movq %rbx, %rdi
callq 0xf497
cmpl $0x11, %eax
jae 0x42b8
movq %rbx, %rdi
callq 0xf497
movq %rbx, %rdi
callq 0xf497
movq %rbx, %rdi
callq 0xf497
movq %rbx, %rdi
callq 0xf497
movq %rbx, %rdi
callq 0xf497
movl %eax, %ecx
movl $0x1, %eax
cmpl $0x10, %ecx
je 0x42c8
movups 0xc8(%rbx), %xmm0
movups %xmm0, 0xb8(%rbx)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/png2tlg.cpp
// Function: SlideCompressor::SlideCompressor()
SlideCompressor::SlideCompressor()
{
	S = 0;
	for(int i = 0; i < SLIDE_N + SLIDE_M - 1; i++) Text[i] = 0;
	for(int i = 0; i < 256*256; i++)
		Map[i] = -1;
	for(int i = 0; i < SLIDE_N; i++)
		Chains[i].Prev = Chains[i].Next = -1;
	for(int i = SLIDE_N - 1; i >= 0; i--)
		AddMap(i);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x17998(%rip), %rax     # 0x1bd88
movq %rax, (%rdi)
movl $0x0, 0x92228(%rdi)
addq $0x8, %rdi
xorl %r14d, %r14d
movl $0x1110, %edx           # imm = 0x1110
xorl %esi, %esi
callq 0x20f0
leaq 0x1118(%rbx), %rdi
movl $0x40000, %edx          # imm = 0x40000
movl $0xff, %esi
callq 0x20f0
leaq 0x41118(%rbx), %rdi
movl $0x8000, %edx           # imm = 0x8000
movl $0xff, %esi
callq 0x20f0
movl $0xfff, %eax            # imm = 0xFFF
movzbl 0x1007(%rbx,%r14), %ecx
leal 0x1000(%r14), %edx
andl %eax, %edx
movzbl 0x8(%rbx,%rdx), %edx
shll $0xa, %edx
leal (%rdx,%rcx,4), %edx
movslq 0x1118(%rbx,%rdx), %rcx
leal (%r14,%rax), %esi
movl %esi, 0x1118(%rbx,%rdx)
cmpq $-0x1, %rcx
je 0x4499
leal 0xfff(%r14), %edx
movl %edx, 0x41118(%rbx,%rcx,8)
movl %ecx, 0x49114(%rbx,%r14,8)
movl $0xffffffff, 0x49110(%rbx,%r14,8) # imm = 0xFFFFFFFF
decq %r14
cmpq $-0x1000, %r14          # imm = 0xF000
jne 0x4441
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/png2tlg.cpp
// Function: SlideCompressor::GetMatch(unsigned char const*, int, int&, int)
int SlideCompressor::GetMatch(const unsigned char*cur, int curlen, int &pos, int s)
{
	// get match length
	if(curlen < 3) return 0;

	int place = cur[0] + ((int)cur[1] << 8);

	int maxlen = 0;
	if((place = Map[place]) != -1)
	{
		int place_org;
		curlen -= 1;
		do
		{
			place_org = place;
			if(s == place || s == ((place + 1) & (SLIDE_N -1))) continue;
			place += 2;
			int lim = (SLIDE_M < curlen ? SLIDE_M : curlen) + place_org;
			const unsigned char *c = cur + 2;
			if(lim >= SLIDE_N)
			{
				if(place_org <= s && s < SLIDE_N)
					lim = s;
				else if(s < (lim&(SLIDE_N-1)))
					lim = s + SLIDE_N;
			}
			else
			{
				if(place_org <= s && s < lim)
					lim = s;
			}
			while(Text[place] == *(c++) && place < lim) place++;
			int matchlen = place - place_org;
			if(matchlen > maxlen) pos = place_org, maxlen = matchlen;
			if(matchlen == SLIDE_M) return maxlen;

		} while((place = Chains[place_org].Next) != -1);
	}
	return maxlen;
}

// Assembly:
xorl %eax, %eax
cmpl $0x3, %edx
jl 0x4631
movzwl (%rsi), %r9d
movl 0x1118(%rdi,%r9,4), %r9d
cmpl $-0x1, %r9d
je 0x4631
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl $0x112, %r10d           # imm = 0x112
cmpl %r10d, %edx
cmovll %edx, %r10d
decl %r10d
leal 0x1000(%r8), %eax
movl %eax, -0xc(%rsp)
leaq 0x9(%rdi), %rax
movq %rax, -0x8(%rsp)
xorl %ebx, %ebx
cmpl %r8d, %r9d
je 0x4610
leal 0x1(%r9), %eax
andl $0xfff, %eax            # imm = 0xFFF
cmpl %r8d, %eax
je 0x4610
leal (%r10,%r9), %eax
cmpl $0x1000, %eax           # imm = 0x1000
jl 0x45a3
cmpl $0xfff, %r8d            # imm = 0xFFF
jg 0x458e
movl %r8d, %r15d
cmpl %r8d, %r9d
jle 0x45b4
movl %eax, %edx
andl $0xfff, %edx            # imm = 0xFFF
cmpl %r8d, %edx
cmovgl -0xc(%rsp), %eax
movl %eax, %r15d
jmp 0x45b4
cmpl %r8d, %eax
movl %r8d, %r15d
cmovll %eax, %r15d
cmpl %r8d, %r9d
cmovgl %eax, %r15d
leal 0x2(%r9), %eax
movslq %eax, %r14
movb 0x8(%rdi,%r14), %dl
cmpb 0x2(%rsi), %dl
jne 0x45f8
cmpl %r15d, %eax
jge 0x45f8
movslq %r15d, %r15
movq -0x8(%rsp), %rdx
leaq (%rdx,%r14), %r12
incq %r14
xorl %r13d, %r13d
movb (%r12,%r13), %r11b
leaq 0x1(%r13), %rdx
cmpb 0x3(%rsi,%r13), %r11b
jne 0x45f6
addq %r14, %r13
cmpq %r15, %r13
movq %rdx, %r13
jl 0x45dc
addl %edx, %eax
subl %r9d, %eax
cmpl %ebx, %eax
jle 0x4604
movl %r9d, (%rcx)
movl %eax, %ebx
cmpl $0x111, %eax            # imm = 0x111
cmovel %ebx, %ebp
movl %ebp, %eax
je 0x4627
movslq %r9d, %rax
movl 0x4111c(%rdi,%rax,8), %r9d
movl %ebx, %eax
cmpl $-0x1, %r9d
jne 0x4557
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/png2tlg.cpp
// Function: SlideCompressor::DeleteMap(int)
void SlideCompressor::DeleteMap(int p)
{
	int n;
	if((n = Chains[p].Next) != -1)
		Chains[n].Prev = Chains[p].Prev;

	if((n = Chains[p].Prev) != -1)
	{
		Chains[n].Next = Chains[p].Next;
	}
	else if(Chains[p].Next != -1)
	{
		int place = Text[p] + ((int)Text[(p + 1) & (SLIDE_N - 1)] << 8);
		Map[place] = Chains[p].Next;
	}
	else
	{
		int place = Text[p] + ((int)Text[(p + 1) & (SLIDE_N - 1)] << 8);
		Map[place] = -1;
	}

	Chains[p].Prev = -1;
	Chains[p].Next = -1;
}

// Assembly:
movslq %esi, %rax
movslq 0x4111c(%rdi,%rax,8), %rcx
cmpq $-0x1, %rcx
je 0x4651
movl 0x41118(%rdi,%rax,8), %edx
movl %edx, 0x41118(%rdi,%rcx,8)
movslq 0x41118(%rdi,%rax,8), %rdx
cmpq $-0x1, %rdx
je 0x4668
movl %ecx, 0x4111c(%rdi,%rdx,8)
jmp 0x469a
movzbl 0x8(%rdi,%rax), %esi
leal 0x1(%rax), %edx
andl $0xfff, %edx            # imm = 0xFFF
movzbl 0x8(%rdi,%rdx), %edx
shll $0x8, %edx
orq %rsi, %rdx
cmpl $-0x1, %ecx
je 0x468f
movl %ecx, 0x1118(%rdi,%rdx,4)
jmp 0x469a
movl $0xffffffff, 0x1118(%rdi,%rdx,4) # imm = 0xFFFFFFFF
movq $-0x1, 0x41118(%rdi,%rax,8)
retq
nop
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/png2tlg.cpp
// Function: SlideCompressor::Store()
void SlideCompressor::Store()
{
	S2 = S;
	int i;
	for(i = 0; i < SLIDE_N + SLIDE_M - 1; i++)
		Text2[i] = Text[i];

	for(i = 0; i < 256*256; i++)
		Map2[i] = Map[i];

	for(i = 0; i < SLIDE_N; i++)
		Chains2[i] = Chains[i];
}

// Assembly:
movl 0x92228(%rdi), %eax
movl %eax, 0x9222c(%rdi)
movq $-0x1110, %rax          # imm = 0xEEF0
movb 0x1118(%rdi,%rax), %cl
movb %cl, 0x4a228(%rdi,%rax)
incq %rax
jne 0x4a3f
movq $-0x10000, %rax         # imm = 0xFFFF0000
movl 0x41118(%rdi,%rax,4), %ecx
movl %ecx, 0x8a228(%rdi,%rax,4)
incq %rax
jne 0x4a59
xorl %eax, %eax
movq 0x41118(%rdi,%rax,8), %rcx
movq %rcx, 0x8a228(%rdi,%rax,8)
incq %rax
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x4a6e
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/png2tlg.cpp
// Function: SlideCompressor::Restore()
void SlideCompressor::Restore()
{
	S = S2;
	int i;
	for(i = 0; i < SLIDE_N + SLIDE_M - 1; i++)
		Text[i] = Text2[i];

	for(i = 0; i < 256*256; i++)
		Map[i] = Map2[i];

	for(i = 0; i < SLIDE_N; i++)
		Chains[i] = Chains2[i];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x9222c(%rdi), %eax
movl %eax, 0x92228(%rdi)
leaq 0x49118(%rdi), %rsi
addq $0x8, %rdi
movl $0x1110, %edx           # imm = 0x1110
callq 0x2150
leaq 0x4a228(%rbx), %rsi
leaq 0x1118(%rbx), %rdi
movl $0x40000, %edx          # imm = 0x40000
callq 0x2150
leaq 0x8a228(%rbx), %rsi
addq $0x41118, %rbx          # imm = 0x41118
movl $0x8000, %edx           # imm = 0x8000
movq %rbx, %rdi
popq %rbx
jmp 0x2150
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/png2tlg.cpp
// Function: TVPTLG6InitGolombTable()
void TVPTLG6InitGolombTable()
{
	if(TVPTLG6GolombTableInit) return;
	for(int n = 0; n < TVP_TLG6_GOLOMB_N_COUNT; n++)
	{
		int a = 0;
		for(int i = 0; i < 9; i++)
		{
			for(int j = 0; j < TVPTLG6GolombCompressed[n][i]; j++)
				TVPTLG6GolombBitLengthTable[a++][n] = (char)i;
		}
		if(a != TVP_TLG6_GOLOMB_N_COUNT*2*128)
			*(char*)0 = 0;   // THIS MUST NOT BE EXECUETED!
				// (this is for compressed table data check)
	}
	TVPTLG6GolombTableInit = true;
}

// Assembly:
cmpb $0x0, 0x18756(%rip)     # 0x1d240
jne 0x4b4b
leaq 0x1774d(%rip), %rax     # 0x1c240
xorl %ecx, %ecx
leaq 0x12864(%rip), %rdx     # 0x17360
leaq (%rcx,%rcx,8), %rsi
leaq (%rdx,%rsi,2), %rsi
xorl %edi, %edi
xorl %r8d, %r8d
movswl (%rsi,%rdi,2), %r10d
testl %r10d, %r10d
jle 0x4b2f
movslq %r8d, %r9
leaq (%rax,%r9,4), %r9
movl %r10d, %r10d
xorl %r11d, %r11d
movb %dil, (%r9,%r11,4)
incq %r11
cmpl %r11d, %r10d
jne 0x4b20
addl %r11d, %r8d
incq %rdi
cmpq $0x9, %rdi
jne 0x4b09
incq %rcx
incq %rax
cmpq $0x4, %rcx
jne 0x4afc
movb $0x1, 0x186f5(%rip)     # 0x1d240
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/png2tlg.cpp
// Function: main
int main(int argc, char *argv[])
{
	if (argc != 3) {
		std::cerr << "usage: " << argv[0] << " input output" << std::endl;
		return 1;
	}
	tTVPBaseBitmap bmp(argv[1]);
	std::fstream fs(argv[2], std::fstream::out | std::fstream::binary);
	SaveTLG6( &fs, &bmp, false );
	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rsi, %r14
cmpl $0x3, %edi
jne 0x66cb
movq 0x8(%r14), %rsi
movq %rsp, %rdi
leaq 0x38(%rsp), %rdx
callq 0x16686
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x166c4
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x668c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x10(%r14), %rsi
leaq 0x38(%rsp), %rdi
movl $0x14, %edx
callq 0x2220
leaq 0x48(%rsp), %rdi
leaq 0x20(%rsp), %rsi
xorl %ebx, %ebx
xorl %edx, %edx
callq 0x5a70
leaq 0x38(%rsp), %rdi
callq 0x2070
movq 0x30(%rsp), %rdi
callq 0x21e0
jmp 0x6761
movq 0x15916(%rip), %rbx     # 0x1bfe8
leaq 0x1127d(%rip), %rsi     # 0x17956
movl $0x7, %edx
movq %rbx, %rdi
callq 0x21c0
movq (%r14), %r14
testq %r14, %r14
je 0x670a
movq %r14, %rdi
callq 0x20c0
movq 0x158eb(%rip), %rdi     # 0x1bfe8
movq %r14, %rsi
movq %rax, %rdx
callq 0x21c0
jmp 0x6721
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x22f0
leaq 0x11236(%rip), %rsi     # 0x1795e
movl $0xd, %edx
movq %rbx, %rdi
callq 0x21c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2110
movl $0x1, %ebx
movl %ebx, %eax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x2070
jmp 0x6780
movq %rax, %rbx
movq 0x30(%rsp), %rdi
callq 0x21e0
jmp 0x67af
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67af
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x67af
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__vertical_flip(void*, int, int, int)
static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)
{
   int row;
   size_t bytes_per_row = (size_t)w * bytes_per_pixel;
   stbi_uc temp[2048];
   stbi_uc *bytes = (stbi_uc *)image;

   for (row = 0; row < (h>>1); row++) {
      stbi_uc *row0 = bytes + row*bytes_per_row;
      stbi_uc *row1 = bytes + (h - row - 1)*bytes_per_row;
      // swap row0 with row1
      size_t bytes_left = bytes_per_row;
      while (bytes_left) {
         size_t bytes_copy = (bytes_left < sizeof(temp)) ? bytes_left : sizeof(temp);
         memcpy(temp, row0, bytes_copy);
         memcpy(row0, row1, bytes_copy);
         memcpy(row1, temp, bytes_copy);
         row0 += bytes_copy;
         row1 += bytes_copy;
         bytes_left -= bytes_copy;
      }
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x838, %rsp            # imm = 0x838
movq %rdi, 0x20(%rsp)
movl %edx, 0x14(%rsp)
movl %edx, %eax
sarl %eax
testl %eax, %eax
jle 0x9fd0
movslq %esi, %rdx
movslq %ecx, %rcx
imulq %rdx, %rcx
movq %rcx, 0x18(%rsp)
movl %eax, %eax
movq %rax, 0x28(%rsp)
movq $0x0, 0x8(%rsp)
movl $0x800, %ebx            # imm = 0x800
leaq 0x30(%rsp), %r15
cmpq $0x0, 0x18(%rsp)
je 0x9fb8
movq 0x8(%rsp), %rcx
movl %ecx, %eax
notl %eax
addl 0x14(%rsp), %eax
movslq %eax, %r12
movq 0x18(%rsp), %r14
imulq %r14, %r12
movq 0x20(%rsp), %rax
addq %rax, %r12
movq %r14, %r13
imulq %rcx, %r13
addq %rax, %r13
cmpq %rbx, %r14
movl $0x800, %ebp            # imm = 0x800
cmovbq %r14, %rbp
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x2150
movq %r13, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x2150
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x2150
addq %rbp, %r13
addq %rbp, %r12
subq %rbp, %r14
jne 0x9f77
movq 0x8(%rsp), %rcx
incq %rcx
movq %rcx, 0x8(%rsp)
cmpq 0x28(%rsp), %rcx
jne 0x9f44
addq $0x838, %rsp            # imm = 0x838
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__pnm_test(stbi__context*)
static int      stbi__pnm_test(stbi__context *s)
{
   char p, t;
   p = (char) stbi__get8(s);
   t = (char) stbi__get8(s);
   if (p != 'P' || (t != '5' && t != '6')) {
       stbi__rewind( s );
       return 0;
   }
   return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0xb8(%rdi), %rax
cmpq 0xc0(%rdi), %rax
jb 0xb6eb
cmpl $0x0, 0x30(%rbx)
je 0xb6c2
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %r14
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0xb6c7
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0xb6e4
movb $0x1, %bpl
jmp 0xb6fd
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
leaq 0x39(%rbx), %rax
movq %rax, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
cmpb $0x50, (%rax)
setne %bpl
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jb 0xb765
cmpl $0x0, 0x30(%rbx)
je 0xb73d
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %r14
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0xb741
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0xb75e
movb $0x1, %al
jmp 0xb779
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
leaq 0x39(%rbx), %rax
movq %rax, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
addb $-0x37, %al
cmpb $-0x2, %al
setb %al
orb %al, %bpl
movl $0x1, %eax
cmpb $0x1, %bpl
jne 0xb797
movups 0xc8(%rbx), %xmm0
movups %xmm0, 0xb8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__pnm_load(stbi__context*, int*, int*, int*, int, stbi__result_info*)
static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)
{
   stbi_uc *out;
   STBI_NOTUSED(ri);

   if (!stbi__pnm_info(s, (int *)&s->img_x, (int *)&s->img_y, (int *)&s->img_n))
      return 0;

   *x = s->img_x;
   *y = s->img_y;
   if (comp) *comp = s->img_n;

   if (!stbi__mad3sizes_valid(s->img_n, s->img_x, s->img_y, 0))
      return stbi__errpuc("too large", "PNM too large");

   out = (stbi_uc *) stbi__malloc_mad3(s->img_n, s->img_x, s->img_y, 0);
   if (!out) return stbi__errpuc("outofmem", "Out of memory");
   stbi__getn(s, out, s->img_n * s->img_x * s->img_y);

   if (req_comp && req_comp != s->img_n) {
      out = stbi__convert_format(out, s->img_n, req_comp, s->img_x, s->img_y);
      if (out == NULL) return out; // stbi__convert_format frees input on failure
   }
   return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
leaq 0x4(%rdi), %rdx
leaq 0x8(%rdi), %r15
movq %rdi, %rsi
movq %r15, %rcx
callq 0x14b06
testl %eax, %eax
je 0xb878
movl %ebp, 0x4(%rsp)
movl (%r14), %eax
movl %eax, (%r13)
movl 0x4(%r14), %eax
movl %eax, (%r12)
testq %rbx, %rbx
je 0xb7ee
movl (%r15), %eax
movl %eax, (%rbx)
movl 0x8(%r14), %r13d
movl (%r14), %ebp
movl 0x4(%r14), %ebx
movl %r13d, %edi
movl %ebp, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0xf725
testl %eax, %eax
je 0xb861
movl %r13d, %edi
movl %ebp, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0xf848
testq %rax, %rax
je 0xb86a
movq %rax, %r12
imull %r13d, %ebp
imull %ebx, %ebp
movq %r14, %rdi
movq %rax, %rsi
movl %ebp, %edx
callq 0x11f02
movl 0x4(%rsp), %edx
testl %edx, %edx
je 0xb87b
movl (%r15), %esi
cmpl %edx, %esi
je 0xb87b
movl (%r14), %ecx
movl 0x4(%r14), %r8d
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x115e7
leaq 0xc287(%rip), %rax      # 0x17aef
jmp 0xb871
leaq 0xc288(%rip), %rax      # 0x17af9
movq %rax, 0x109b0(%rip)     # 0x1c228
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__hdr_to_ldr(float*, int, int, int)
static stbi_uc *stbi__hdr_to_ldr(float   *data, int x, int y, int comp)
{
   int i,k,n;
   stbi_uc *output;
   if (!data) return NULL;
   output = (stbi_uc *) stbi__malloc_mad3(x, y, comp, 0);
   if (output == NULL) { STBI_FREE(data); return stbi__errpuc("outofmem", "Out of memory"); }
   // compute number of non-alpha components
   if (comp & 1) n = comp; else n = comp-1;
   for (i=0; i < x*y; ++i) {
      for (k=0; k < n; ++k) {
         float z = (float) pow(data[i*comp+k]*stbi__h2l_scale_i, stbi__h2l_gamma_i) * 255 + 0.5f;
         if (z < 0) z = 0;
         if (z > 255) z = 255;
         output[i*comp + k] = (stbi_uc) stbi__float2int(z);
      }
      if (k < comp) {
         float z = data[i*comp+k] * 255 + 0.5f;
         if (z < 0) z = 0;
         if (z > 255) z = 255;
         output[i*comp + k] = (stbi_uc) stbi__float2int(z);
      }
   }
   STBI_FREE(data);
   return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
je 0xc300
movl %edx, %ebp
movl %esi, %r12d
movl %esi, %edi
movl %edx, %esi
movq %rcx, 0x20(%rsp)
movl %ecx, %edx
xorl %ecx, %ecx
callq 0xf848
testq %rax, %rax
je 0xc2e8
movq %rax, 0x10(%rsp)
imull %r12d, %ebp
testl %ebp, %ebp
movq 0x20(%rsp), %rsi
jle 0xc2d7
movl %esi, %eax
andl $0x1, %eax
addl %esi, %eax
decl %eax
movslq %esi, %r13
movl %ebp, %ecx
movq %rcx, 0x30(%rsp)
movl %eax, 0x1c(%rsp)
movl %eax, %r14d
leaq (,%r13,4), %rax
movq %rax, 0x28(%rsp)
xorl %ebp, %ebp
movss 0xadf6(%rip), %xmm2     # 0x17004
movss 0xadfa(%rip), %xmm3     # 0x17010
movq 0x10(%rsp), %r15
movq 0x8(%rsp), %r12
movl $0x0, %ebx
cmpl $0x0, 0x1c(%rsp)
jle 0xc284
xorl %ebx, %ebx
movss (%r12,%rbx,4), %xmm0
mulss 0xff80(%rip), %xmm0     # 0x1c1bc
movss 0xff74(%rip), %xmm1     # 0x1c1b8
callq 0x2290
movss 0xadbf(%rip), %xmm3     # 0x17010
movss 0xadab(%rip), %xmm2     # 0x17004
mulss %xmm2, %xmm0
addss %xmm3, %xmm0
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
movaps %xmm2, %xmm0
minss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, (%r15,%rbx)
incq %rbx
cmpq %rbx, %r14
jne 0xc22e
movq 0x20(%rsp), %rsi
cmpl %esi, %ebx
jge 0xc2c1
movq %rbp, %rax
imulq %r13, %rax
movslq %ebx, %rcx
addq %rax, %rcx
movq 0x8(%rsp), %rax
movss (%rax,%rcx,4), %xmm0
mulss %xmm2, %xmm0
addss %xmm3, %xmm0
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
movaps %xmm2, %xmm0
minss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movq 0x10(%rsp), %rdx
movb %al, (%rdx,%rcx)
incq %rbp
addq 0x28(%rsp), %r12
addq %r13, %r15
cmpq 0x30(%rsp), %rbp
jne 0xc220
movq 0x8(%rsp), %rdi
callq 0x21e0
movq 0x10(%rsp), %rax
jmp 0xc302
movq 0x8(%rsp), %rdi
callq 0x21e0
leaq 0xb800(%rip), %rax      # 0x17af9
movq %rax, 0xff28(%rip)      # 0x1c228
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__decode_jpeg_header(stbi__jpeg*, int)
static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)
{
   int m;
   z->jfif = 0;
   z->app14_color_transform = -1; // valid values are 0,1,2
   z->marker = STBI__MARKER_none; // initialize cached marker to empty
   m = stbi__get_marker(z);
   if (!stbi__SOI(m)) return stbi__err("no SOI","Corrupt JPEG");
   if (scan == STBI__SCAN_type) return 1;
   m = stbi__get_marker(z);
   while (!stbi__SOF(m)) {
      if (!stbi__process_marker(z,m)) return 0;
      m = stbi__get_marker(z);
      while (m == STBI__MARKER_none) {
         // some files have extra padding after their blocks, so ok, we'll scan
         if (stbi__at_eof(z->s)) return stbi__err("no SOF", "Corrupt JPEG");
         m = stbi__get_marker(z);
      }
   }
   z->progressive = stbi__SOF_progressive(m);
   if (!stbi__process_frame_header(z, scan)) return 0;
   return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x4848(%rdi)
movb $-0x1, 0x4828(%rdi)
callq 0xe3fc
cmpb $-0x28, %al
jne 0xd2b1
movl $0x1, %ebp
cmpl $0x1, %ebx
je 0xd2c1
movq %r14, %rdi
callq 0xe3fc
movzbl %al, %esi
movl %esi, %ecx
andl $-0x2, %ecx
cmpl $0xc0, %ecx
sete %cl
cmpb $-0x3e, %sil
sete %dl
orb %cl, %dl
jne 0xd28f
xorl %ebp, %ebp
movq %r14, %rdi
callq 0xe52e
testl %eax, %eax
je 0xd2c1
movq %r14, %rdi
callq 0xe3fc
cmpb $-0x1, %al
jne 0xd27b
movq (%r14), %r15
cmpq $0x0, 0x10(%r15)
je 0xd269
movq 0x28(%r15), %rdi
callq *0x20(%r15)
testl %eax, %eax
je 0xd240
cmpl $0x0, 0x30(%r15)
je 0xd2ce
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jb 0xd240
jmp 0xd2ce
cmpb $-0x3e, %al
je 0xd28f
movzbl %al, %esi
movl %esi, %ecx
andl $-0x2, %ecx
cmpl $0xc0, %ecx
jne 0xd230
xorl %ecx, %ecx
cmpb $-0x3e, %al
sete %cl
movl %ecx, 0x4830(%r14)
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xed8e
leaq 0xa749(%rip), %rax      # 0x17a01
movq %rax, 0xef69(%rip)      # 0x1c228
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa733(%rip), %rax      # 0x17a08
movq %rax, 0xef4c(%rip)      # 0x1c228
jmp 0xd2c1
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__YCbCr_to_RGB_row(unsigned char*, unsigned char const*, unsigned char const*, unsigned char const*, int, int)
static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)
{
   int i;
   for (i=0; i < count; ++i) {
      int y_fixed = (y[i] << 20) + (1<<19); // rounding
      int r,g,b;
      int cr = pcr[i] - 128;
      int cb = pcb[i] - 128;
      r = y_fixed +  cr* stbi__float2fixed(1.40200f);
      g = y_fixed + (cr*-stbi__float2fixed(0.71414f)) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000);
      b = y_fixed                                     +   cb* stbi__float2fixed(1.77200f);
      r >>= 20;
      g >>= 20;
      b >>= 20;
      if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; }
      if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; }
      if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; }
      out[0] = (stbi_uc)r;
      out[1] = (stbi_uc)g;
      out[2] = (stbi_uc)b;
      out[3] = 255;
      out += step;
   }
}

// Assembly:
testl %r8d, %r8d
jle 0xd853
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq %r9d, %rax
movl %r8d, %r8d
addq $0x3, %rdi
xorl %r9d, %r9d
xorl %r10d, %r10d
movl $0xff, %ebp
movzbl (%rsi,%r10), %ebx
shll $0x14, %ebx
movzbl (%rcx,%r10), %r14d
addl $-0x80, %r14d
imull $0x166f00, %r14d, %r11d # imm = 0x166F00
addl %ebx, %r11d
addl $0x80000, %r11d         # imm = 0x80000
sarl $0x14, %r11d
testl %r11d, %r11d
cmovlel %r9d, %r11d
cmpl %ebp, %r11d
jl 0xd7c9
movl $0xff, %r11d
movzbl (%rdx,%r10), %r15d
addl $-0x80, %r15d
imull $0xfff49300, %r14d, %r14d # imm = 0xFFF49300
leal (%r14,%rbx), %r12d
addl $0x80000, %r12d         # imm = 0x80000
imull $0xfffa7e00, %r15d, %r14d # imm = 0xFFFA7E00
andl $0xffff0000, %r14d      # imm = 0xFFFF0000
addl %r12d, %r14d
sarl $0x14, %r14d
testl %r14d, %r14d
jg 0xd801
xorl %r14d, %r14d
cmpl %ebp, %r14d
jl 0xd80c
movl $0xff, %r14d
imull $0x1c5a00, %r15d, %r15d # imm = 0x1C5A00
addl %r15d, %ebx
addl $0x80000, %ebx          # imm = 0x80000
sarl $0x14, %ebx
testl %ebx, %ebx
cmovlel %r9d, %ebx
cmpl %ebp, %ebx
jl 0xd82e
movl $0xff, %ebx
movb %r11b, -0x3(%rdi)
movb %r14b, -0x2(%rdi)
movb %bl, -0x1(%rdi)
movb $-0x1, (%rdi)
incq %r10
addq %rax, %rdi
cmpq %r10, %r8
jne 0xd791
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__resample_row_hv_2(unsigned char*, unsigned char*, unsigned char*, int, int)
static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
   // need to generate 2x2 samples for every one in input
   int i,t0,t1;
   if (w == 1) {
      out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2);
      return out;
   }

   t1 = 3*in_near[0] + in_far[0];
   out[0] = stbi__div4(t1+2);
   for (i=1; i < w; ++i) {
      t0 = t1;
      t1 = 3*in_near[i]+in_far[i];
      out[i*2-1] = stbi__div16(3*t0 + t1 + 8);
      out[i*2  ] = stbi__div16(3*t1 + t0 + 8);
   }
   out[w*2-1] = stbi__div4(t1+2);

   STBI_NOTUSED(hs);

   return out;
}

// Assembly:
movq %rdi, %rax
movzbl (%rsi), %r8d
movzbl (%rdx), %edi
cmpl $0x1, %ecx
jne 0xd87b
movzwl %r8w, %ecx
leal (%rcx,%rcx,2), %ecx
movzwl %di, %edx
addl %edx, %ecx
addl $0x2, %ecx
shrl $0x2, %ecx
movb %cl, 0x1(%rax)
movb %cl, (%rax)
retq
movzwl %r8w, %r8d
leal (%r8,%r8,2), %r8d
movzwl %di, %r9d
leal (%r8,%r9), %edi
addl %r9d, %r8d
addl $0x2, %r8d
shrl $0x2, %r8d
movb %r8b, (%rax)
cmpl $0x2, %ecx
jl 0xd8ea
movl %ecx, %r8d
movl $0x1, %r10d
movzbl (%rsi,%r10), %r9d
leal (%r9,%r9,2), %r11d
movzbl (%rdx,%r10), %r9d
addl %r11d, %r9d
leal (%rdi,%rdi,2), %r11d
addl %r9d, %r11d
addl $0x8, %r11d
shrl $0x4, %r11d
movb %r11b, -0x1(%rax,%r10,2)
leal (%r9,%r9,2), %r11d
addl %r11d, %edi
addl $0x8, %edi
shrl $0x4, %edi
movb %dil, (%rax,%r10,2)
incq %r10
movl %r9d, %edi
cmpq %r10, %r8
jne 0xd8a7
jmp 0xd8ed
movl %edi, %r9d
addl $0x2, %r9d
shrl $0x2, %r9d
movslq %ecx, %rcx
movb %r9b, -0x1(%rax,%rcx,2)
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__get_marker(stbi__jpeg*)
static stbi_uc stbi__get_marker(stbi__jpeg *j)
{
   stbi_uc x;
   if (j->marker != STBI__MARKER_none) { x = j->marker; j->marker = STBI__MARKER_none; return x; }
   x = stbi__get8(j->s);
   if (x != 0xff) return STBI__MARKER_none;
   while (x == 0xff)
      x = stbi__get8(j->s); // consume repeated 0xff fill bytes
   return x;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movb 0x4828(%rdi), %al
cmpb $-0x1, %al
je 0xe41a
movb $-0x1, 0x4828(%rbx)
jmp 0xe528
movq (%rbx), %r15
movq 0xb8(%r15), %rcx
cmpq 0xc0(%r15), %rcx
jb 0xe48d
cmpl $0x0, 0x30(%r15)
je 0xe460
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0xe467
movq %r14, 0xb8(%r15)
cltq
addq %r14, %rax
movq %rax, 0xc0(%r15)
jmp 0xe486
movb $-0x1, %al
jmp 0xe528
movl $0x0, 0x30(%r15)
movq %r14, 0xb8(%r15)
leaq 0x39(%r15), %rax
movq %rax, 0xc0(%r15)
movb $0x0, 0x38(%r15)
movq 0xb8(%r15), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0xb8(%r15)
movb $-0x1, %al
cmpb $-0x1, (%rcx)
jne 0xe528
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jb 0xe513
cmpl $0x0, 0x30(%r15)
je 0xe4e9
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0xe4ed
movq %r14, 0xb8(%r15)
cltq
addq %r14, %rax
movq %rax, 0xc0(%r15)
jmp 0xe50c
xorl %eax, %eax
jmp 0xe520
movl $0x0, 0x30(%r15)
movq %r14, 0xb8(%r15)
leaq 0x39(%r15), %rax
movq %rax, 0xc0(%r15)
movb $0x0, 0x38(%r15)
movq 0xb8(%r15), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r15)
movb (%rax), %al
cmpb $-0x1, %al
je 0xe4a3
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__get8(stbi__context*)
stbi_inline static stbi_uc stbi__get8(stbi__context *s)
{
   if (s->img_buffer < s->img_buffer_end)
      return *s->img_buffer++;
   if (s->read_from_callbacks) {
      stbi__refill_buffer(s);
      return *s->img_buffer++;
   }
   return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xb8(%rdi), %rax
cmpq 0xc0(%rdi), %rax
jb 0xf482
cmpl $0x0, 0x30(%rbx)
je 0xf45a
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %r14
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0xf45e
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0xf47b
xorl %eax, %eax
jmp 0xf48f
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
leaq 0x39(%rbx), %rax
movq %rax, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__build_huffman(stbi__huffman*, int*)
static int stbi__build_huffman(stbi__huffman *h, int *count)
{
   int i,j,k=0;
   unsigned int code;
   // build size list for each symbol (from JPEG spec)
   for (i=0; i < 16; ++i)
      for (j=0; j < count[i]; ++j)
         h->size[k++] = (stbi_uc) (i+1);
   h->size[k] = 0;

   // compute actual symbols (from jpeg spec)
   code = 0;
   k = 0;
   for(j=1; j <= 16; ++j) {
      // compute delta to add to code to compute symbol id
      h->delta[j] = k - code;
      if (h->size[k] == j) {
         while (h->size[k] == j)
            h->code[k++] = (stbi__uint16) (code++);
         if (code-1 >= (1u << j)) return stbi__err("bad code lengths","Corrupt JPEG");
      }
      // compute largest code + 1 for this size, preshifted as needed later
      h->maxcode[j] = code << (16-j);
      code <<= 1;
   }
   h->maxcode[j] = 0xffffffff;

   // build non-spec acceleration table; 255 is flag for not-accelerated
   memset(h->fast, 255, 1 << FAST_BITS);
   for (i=0; i < k; ++i) {
      int s = h->size[i];
      if (s <= FAST_BITS) {
         int c = h->code[i] << (FAST_BITS-s);
         int m = 1 << (FAST_BITS-s);
         for (j=0; j < m; ++j) {
            h->fast[c+j] = (stbi_uc) i;
         }
      }
   }
   return 1;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x500(%rdi), %rax
xorl %ecx, %ecx
xorl %edx, %edx
cmpl $0x0, (%rsi,%rcx,4)
jle 0xf5c9
leal 0x1(%rcx), %edi
movslq %edx, %r8
addq %rax, %r8
xorl %r9d, %r9d
movb %dil, (%r8,%r9)
incq %r9
cmpl (%rsi,%rcx,4), %r9d
jl 0xf5b9
addl %r9d, %edx
incq %rcx
cmpq $0x10, %rcx
jne 0xf5a7
movslq %edx, %rax
movb $0x0, 0x500(%rbx,%rax)
xorl %edx, %edx
movl $0x1, %eax
xorl %ebp, %ebp
movl %ebp, %ecx
subl %edx, %ecx
movl %ecx, 0x64c(%rbx,%rax,4)
movslq %ebp, %rcx
movzbl 0x500(%rbx,%rcx), %esi
cmpq %rsi, %rax
jne 0xf639
movzbl 0x500(%rbx,%rcx), %esi
cmpq %rsi, %rax
jne 0xf62a
movw %dx, 0x200(%rbx,%rcx,2)
incl %edx
movzbl 0x501(%rbx,%rcx), %esi
incq %rcx
cmpq %rsi, %rax
je 0xf60e
movl %ecx, %ebp
leal -0x1(%rdx), %esi
movl %eax, %ecx
shrl %cl, %esi
testl %esi, %esi
jne 0xf6c0
movb $0x10, %cl
subb %al, %cl
movl %edx, %esi
shll %cl, %esi
movl %esi, 0x604(%rbx,%rax,4)
addl %edx, %edx
incq %rax
cmpq $0x11, %rax
jne 0xf5e6
movl $0xffffffff, 0x648(%rbx) # imm = 0xFFFFFFFF
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
movl $0xff, %esi
callq 0x20f0
movl $0x1, %eax
testl %ebp, %ebp
jle 0xf6d0
movl %ebp, %edx
xorl %esi, %esi
movzbl 0x500(%rbx,%rsi), %r8d
cmpq $0x9, %r8
ja 0xf6b6
movzwl 0x200(%rbx,%rsi,2), %edi
movl $0x9, %ecx
subq %r8, %rcx
shlq %cl, %rdi
addq %rbx, %rdi
xorl %r8d, %r8d
movb %sil, (%rdi,%r8)
incq %r8
movl %r8d, %r9d
shrl %cl, %r9d
testl %r9d, %r9d
je 0xf6a4
incq %rsi
cmpq %rdx, %rsi
jne 0xf67c
jmp 0xf6d0
leaq 0x83c0(%rip), %rax      # 0x17a87
movq %rax, 0xcb5a(%rip)      # 0x1c228
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__skip(stbi__context*, int)
static void stbi__skip(stbi__context *s, int n)
{
   if (n < 0) {
      s->img_buffer = s->img_buffer_end;
      return;
   }
   if (s->io.read) {
      int blen = (int) (s->img_buffer_end - s->img_buffer);
      if (blen < n) {
         s->img_buffer = s->img_buffer_end;
         (s->io.skip)(s->io_user_data, n - blen);
         return;
      }
   }
   s->img_buffer += n;
}

// Assembly:
testl %esi, %esi
js 0xf716
cmpq $0x0, 0x10(%rdi)
je 0xf70c
movq 0xc0(%rdi), %rcx
movl 0xb8(%rdi), %eax
movl %ecx, %edx
subl %eax, %edx
movl %esi, %eax
subl %edx, %eax
jle 0xf70c
movq %rcx, 0xb8(%rdi)
movq 0x18(%rdi), %rcx
movq 0x28(%rdi), %rdi
movl %eax, %esi
jmpq *%rcx
movl %esi, %eax
addq %rax, 0xb8(%rdi)
retq
movq 0xc0(%rdi), %rax
movq %rax, 0xb8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__free_jpeg_components(stbi__jpeg*, int, int)
static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)
{
   int i;
   for (i=0; i < ncomp; ++i) {
      if (z->img_comp[i].raw_data) {
         STBI_FREE(z->img_comp[i].raw_data);
         z->img_comp[i].raw_data = NULL;
         z->img_comp[i].data = NULL;
      }
      if (z->img_comp[i].raw_coeff) {
         STBI_FREE(z->img_comp[i].raw_coeff);
         z->img_comp[i].raw_coeff = 0;
         z->img_comp[i].coeff = 0;
      }
      if (z->img_comp[i].linebuf) {
         STBI_FREE(z->img_comp[i].linebuf);
         z->img_comp[i].linebuf = NULL;
      }
   }
   return why;
}

// Assembly:
testl %esi, %esi
jle 0xf847
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, %eax
addq $0x46f0, %rbx           # imm = 0x46F0
shlq $0x5, %rax
leaq (%rax,%rax,2), %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq -0x18(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0xf803
callq 0x21e0
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rbx,%r12)
movq -0x10(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0xf81b
callq 0x21e0
movq %r15, -0x10(%rbx,%r12)
movq %r15, (%rbx,%r12)
movq -0x8(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0xf833
callq 0x21e0
movq $0x0, -0x8(%rbx,%r12)
addq $0x60, %r12
cmpq %r12, %r14
jne 0xf7eb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__resample_row_v_2(unsigned char*, unsigned char*, unsigned char*, int, int)
static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
   // need to generate two samples vertically for every one in input
   int i;
   STBI_NOTUSED(hs);
   for (i=0; i < w; ++i)
      out[i] = stbi__div4(3*in_near[i] + in_far[i] + 2);
   return out;
}

// Assembly:
movq %rdi, %rax
testl %ecx, %ecx
jle 0xf8bf
movl %ecx, %ecx
xorl %edi, %edi
movzbl (%rsi,%rdi), %r8d
leal (%r8,%r8,2), %r8d
movzbl (%rdx,%rdi), %r9d
addl %r9d, %r8d
addl $0x2, %r8d
shrl $0x2, %r8d
movb %r8b, (%rax,%rdi)
incq %rdi
cmpq %rdi, %rcx
jne 0xf89a
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__resample_row_h_2(unsigned char*, unsigned char*, unsigned char*, int, int)
static stbi_uc*  stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
   // need to generate two samples horizontally for every one in input
   int i;
   stbi_uc *input = in_near;

   if (w == 1) {
      // if only one sample, can't do any interpolation
      out[0] = out[1] = input[0];
      return out;
   }

   out[0] = input[0];
   out[1] = stbi__div4(input[0]*3 + input[1] + 2);
   for (i=1; i < w-1; ++i) {
      int n = 3*input[i]+2;
      out[i*2+0] = stbi__div4(n+input[i-1]);
      out[i*2+1] = stbi__div4(n+input[i+1]);
   }
   out[i*2+0] = stbi__div4(input[w-2]*3 + input[w-1] + 2);
   out[i*2+1] = input[w-1];

   STBI_NOTUSED(in_far);
   STBI_NOTUSED(hs);

   return out;
}

// Assembly:
movq %rdi, %rax
movb (%rsi), %dl
cmpl $0x1, %ecx
jne 0xf8d0
movb %dl, 0x1(%rax)
movb %dl, (%rax)
retq
movb %dl, (%rax)
movzbl (%rsi), %edx
leal (%rdx,%rdx,2), %edx
movzbl 0x1(%rsi), %edi
addl %edi, %edx
addl $0x2, %edx
shrl $0x2, %edx
movb %dl, 0x1(%rax)
leal -0x1(%rcx), %edi
movl $0x2, %edx
cmpl $0x3, %ecx
jl 0xf940
movl %edi, %r8d
leaq 0x2(%rsi), %r9
addq %r8, %r8
movl $0x2, %edx
movzbl -0x1(%r9), %r10d
leal (%r10,%r10,2), %r10d
movzbl -0x2(%r9), %r11d
addl %r10d, %r11d
addl $0x2, %r11d
shrl $0x2, %r11d
movb %r11b, (%rax,%rdx)
movzbl (%r9), %r11d
addl %r11d, %r10d
addl $0x2, %r10d
shrl $0x2, %r10d
movb %r10b, 0x1(%rax,%rdx)
incq %r9
addq $0x2, %rdx
cmpq %rdx, %r8
jne 0xf903
movslq %ecx, %rcx
movzbl -0x2(%rsi,%rcx), %ecx
leal (%rcx,%rcx,2), %ecx
movslq %edi, %rdi
movzbl (%rsi,%rdi), %r8d
addl %r8d, %ecx
addl $0x2, %ecx
shrl $0x2, %ecx
movl %edx, %edx
movb %cl, (%rax,%rdx)
movb (%rsi,%rdi), %cl
movb %cl, 0x1(%rax,%rdx)
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__resample_row_generic(unsigned char*, unsigned char*, unsigned char*, int, int)
static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
   // resample with nearest-neighbor
   int i,j;
   STBI_NOTUSED(in_far);
   for (i=0; i < w; ++i)
      for (j=0; j < hs; ++j)
         out[i*hs+j] = in_near[i];
   return out;
}

// Assembly:
movq %rdi, %rax
testl %ecx, %ecx
jle 0xf99d
movl %r8d, %edx
movl %ecx, %ecx
xorl %edi, %edi
movq %rax, %r9
testl %r8d, %r8d
jle 0xf992
xorl %r10d, %r10d
movb (%rsi,%rdi), %r11b
movb %r11b, (%r9,%r10)
incq %r10
cmpq %r10, %rdx
jne 0xf982
incq %rdi
addq %rdx, %r9
cmpq %rcx, %rdi
jne 0xf97a
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__grow_buffer_unsafe(stbi__jpeg*)
static void stbi__grow_buffer_unsafe(stbi__jpeg *j)
{
   do {
      unsigned int b = j->nomore ? 0 : stbi__get8(j->s);
      if (b == 0xff) {
         int c = stbi__get8(j->s);
         while (c == 0xff) c = stbi__get8(j->s); // consume fill bytes
         if (c != 0) {
            j->marker = (unsigned char) c;
            j->nomore = 1;
            return;
         }
      }
      j->code_buffer |= b << (24 - j->code_bits);
      j->code_bits += 8;
   } while (j->code_bits <= 24);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %ebp, %ebp
cmpl $0x0, 0x482c(%rbx)
jne 0xff4e
movq (%rbx), %r15
movq 0xb8(%r15), %rax
cmpq 0xc0(%r15), %rax
jb 0xff40
cmpl $0x0, 0x30(%r15)
je 0xff4e
movq 0x28(%r15), %rdi
leaq 0x38(%r15), %r14
movl 0x34(%r15), %edx
movq %r14, %rsi
callq *0x10(%r15)
testl %eax, %eax
je 0xff1a
movq %r14, 0xb8(%r15)
cltq
addq %r14, %rax
movq %rax, 0xc0(%r15)
jmp 0xff39
movl $0x0, 0x30(%r15)
movq %r14, 0xb8(%r15)
leaq 0x39(%r15), %rax
movq %rax, 0xc0(%r15)
movb $0x0, 0x38(%r15)
movq 0xb8(%r15), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r15)
movzbl (%rax), %ebp
cmpl $0xff, %ebp
jne 0xfff4
movq (%rbx), %r12
leaq 0xb8(%r12), %r15
movq 0xb8(%r12), %rax
cmpq 0xc0(%r12), %rax
jb 0xff83
cmpl $0x0, 0x30(%r12)
jne 0xffbb
xorl %eax, %eax
jmp 0xff8c
leaq 0x1(%rax), %rcx
movq %rcx, (%r15)
movb (%rax), %al
cmpb $-0x1, %al
jne 0xffed
movq (%rbx), %r12
movq 0xb8(%r12), %rax
cmpq 0xc0(%r12), %rax
jb 0x10046
xorl %eax, %eax
cmpl $0x0, 0x30(%r12)
je 0xff8c
leaq 0xb8(%r12), %r15
movq 0x28(%r12), %rdi
leaq 0x38(%r12), %r14
movl 0x34(%r12), %edx
movq %r14, %rsi
callq *0x10(%r12)
testl %eax, %eax
je 0x1001a
movq %r14, 0xb8(%r12)
cltq
addq %r14, %rax
movq %rax, 0xc0(%r12)
jmp 0x1003e
movzbl %al, %ecx
testl %ecx, %ecx
jne 0x10055
movl 0x4824(%rbx), %eax
movb $0x18, %cl
subb %al, %cl
shll %cl, %ebp
orl %ebp, 0x4820(%rbx)
leal 0x8(%rax), %ecx
movl %ecx, 0x4824(%rbx)
cmpl $0x11, %eax
jl 0xfec9
jmp 0x10065
movl $0x0, 0x30(%r12)
movq %r14, 0xb8(%r12)
leaq 0x39(%r12), %rax
movq %rax, 0xc0(%r12)
movb $0x0, 0x38(%r12)
movq (%r15), %rax
jmp 0xff83
addq $0xb8, %r12
movq %r12, %r15
jmp 0xff83
movb %al, 0x4828(%rbx)
movl $0x1, 0x482c(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__check_png_header(stbi__context*)
static int stbi__check_png_header(stbi__context *s)
{
   static const stbi_uc png_sig[8] = { 137,80,78,71,13,10,26,10 };
   int i;
   for (i=0; i < 8; ++i)
      if (stbi__get8(s) != png_sig[i]) return stbi__err("bad png sig","Not a PNG");
   return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x38(%rdi), %r14
leaq 0x39(%rdi), %r15
xorl %r12d, %r12d
leaq 0x81ad(%rip), %r13      # 0x184da
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jb 0x1038d
cmpl $0x0, 0x30(%rbx)
je 0x10369
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r14, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x1036d
movq %r14, 0xb8(%rbx)
cltq
addq %r14, %rax
movq %rax, 0xc0(%rbx)
jmp 0x10386
xorl %eax, %eax
jmp 0x1039a
movl $0x0, 0x30(%rbx)
movq %r14, 0xb8(%rbx)
movq %r15, 0xc0(%rbx)
movb $0x0, 0x38(%rbx)
movq 0xb8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
cmpb (%r12,%r13), %al
jne 0x103b0
incq %r12
cmpq $0x8, %r12
jne 0x1032d
movl $0x1, %eax
jmp 0x103c0
leaq 0x78d5(%rip), %rax      # 0x17c8c
movq %rax, 0xbe6a(%rip)      # 0x1c228
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq