LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/jasmeet13n[P]HTTP-Proxy-Server-Client/proxy.cpp
// Function: parse_http_request(char*, int)
struct info * parse_http_request(char *buf, int num_bytes){
	struct info* output = (struct info *)malloc(sizeof(struct info));
	int i;
	for(i=0; i<num_bytes; i++){
		if(buf[i]==' '){
			i++;
			break;
		}
	}
	int k=0;
	output->file[0]='/';
	if(buf[i+8]=='\r' && buf[i+9]=='\n'){
		output->file[1]='\0';
	}
	else{
		while(buf[i]!=' ')
			output->file[k++]=buf[i++];
		output->file[k]='\0';
	}
	i+=1;
	while(buf[i++]!=' ');
	k=0;
	while(buf[i]!='\r')
		output->host[k++]=buf[i++];
	output->host[k]='\0';
	return output;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movl $0x800, %edi            # imm = 0x800
callq 0x33e0
xorl %ecx, %ecx
testl %r14d, %r14d
cmovlel %ecx, %r14d
cmpq %rcx, %r14
je 0x3b4a
cmpb $0x20, (%rbx,%rcx)
je 0x3b45
incq %rcx
jmp 0x3b35
incl %ecx
movl %ecx, %r14d
movb $0x2f, (%rax)
movslq %r14d, %rcx
cmpb $0xd, 0x8(%rbx,%rcx)
jne 0x3b66
cmpb $0xa, 0x9(%rbx,%rcx)
jne 0x3b66
movq %rax, %rcx
incq %rcx
jmp 0x3b89
addq %rbx, %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %sil
cmpb $0x20, %sil
je 0x3b7e
movb %sil, (%rax,%rdx)
incq %rdx
jmp 0x3b6b
addl %edx, %r14d
movl %edx, %edx
movq %rax, %rcx
addq %rdx, %rcx
movb $0x0, (%rcx)
incl %r14d
movslq %r14d, %rcx
addq %rbx, %rcx
incl %r14d
cmpb $0x20, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x3b95
movslq %r14d, %rcx
addq %rcx, %rbx
xorl %ecx, %ecx
movb (%rbx,%rcx), %dl
cmpb $0xd, %dl
je 0x3bbd
movb %dl, 0x400(%rax,%rcx)
incq %rcx
jmp 0x3ba9
movl %ecx, %ecx
movb $0x0, 0x400(%rax,%rcx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/clementino1971[P]ICC065-protoTerminal/protoTerminal.cpp
// Function: runCommand(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
void runCommand(vector<string> command){
    if(command.empty()) return;

    if(command[0] == "pwd") {
            pwd(dir);
    }

    //run special functions
    if(mapa.find(command[0]) != mapa.end()){
        void (*choice)(vector<string>);
        choice = mapa[command[0]];
        choice(command);
    }else{
        run(command);
    }
    return;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
cmpq 0x8(%rbx), %rdi
je 0x26c4
leaq 0x29d4(%rip), %rsi      # 0x5020
callq 0x3196
testb %al, %al
je 0x2661
leaq 0x5c84(%rip), %rdi      # 0x82e0
callq 0x4286
movq (%rbx), %rsi
leaq 0x5bdd(%rip), %rdi      # 0x8248
callq 0x3578
leaq 0x5bd9(%rip), %rcx      # 0x8250
cmpq %rcx, %rax
je 0x26a5
movq (%rbx), %rsi
leaq 0x5bc2(%rip), %rdi      # 0x8248
callq 0x31a6
movq (%rax), %r15
leaq -0x48(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3210
movq %r14, %rdi
callq *%r15
jmp 0x26bc
leaq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3210
movq %r14, %rdi
callq 0x4295
movq %r14, %rdi
callq 0x3264
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
jmp 0x26df
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x3264
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O2/clementino1971[P]ICC065-protoTerminal/protoTerminal.cpp
// Function: balance(char const*, char)
char balance(const char* a, char del=0) {
    int i = 0;
    while(a[i]!=0) {
        if(!del) {
            if((i==0 || a[i-1]!='\\') && possible_delimiters.count(a[i])) del=a[i];
        }
        else {
            if((i==0 || a[i-1]!='\\') && a[i]==del) del=0;
        }
        i++;
    } 
    return del;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %eax
movq %rdi, %rbx
xorl %r12d, %r12d
leaq 0x565c(%rip), %r14      # 0x8278
xorl %r13d, %r13d
movb (%rbx,%r13), %cl
testb %cl, %cl
je 0x2c70
testb %al, %al
je 0x2c43
testq %r13, %r13
je 0x2c38
cmpb $0x5c, -0x1(%rbx,%r13)
je 0x2c6b
cmpb %al, %cl
movzbl %al, %eax
cmovel %r12d, %eax
jmp 0x2c6b
testq %r13, %r13
je 0x2c50
cmpb $0x5c, -0x1(%rbx,%r13)
je 0x2c69
leaq (%rbx,%r13), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x32c2
testq %rax, %rax
je 0x2c69
movb (%r15), %al
jmp 0x2c6b
xorl %eax, %eax
incq %r13
jmp 0x2c1f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/clementino1971[P]ICC065-protoTerminal/protoTerminal.cpp
// Function: clean_backwards(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string clean_backwards(string a) {
    string cleaned="";
    for(int i = a.size()-1;i>=0;i--) {
        if((i==0 || a[i-1]!='\\') && special_characters.count(a[i]));
        else cleaned = a[i]+cleaned;
    } 
    return cleaned;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x246e(%rip), %rsi      # 0x510b
leaq -0x48(%rbp), %r15
movq %r15, %rdx
callq 0x32e6
movl 0x8(%r14), %eax
leaq -0x1(%rax), %r12
testl %r12d, %r12d
js 0x2d1c
movq (%r14), %rsi
cmpl $0x1, %eax
je 0x2cd3
addl $-0x2, %eax
cmpb $0x5c, (%rsi,%rax)
jne 0x2cd3
movl %r12d, %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
jmp 0x2cf4
movl %r12d, %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
addq %r13, %rsi
leaq 0x55c1(%rip), %rdi      # 0x82a8
callq 0x32c2
testq %rax, %rax
jne 0x2d17
movq (%r14), %rsi
movsbl (%rsi,%r13), %esi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x3321
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2270
movq %r15, %rdi
callq 0x20f0
movq %r12, %rax
jmp 0x2cad
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d30
movq %rax, %r14
movq %rbx, %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O2/clementino1971[P]ICC065-protoTerminal/source/commands.cpp
// Function: run(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
void run(vector<string> commands){
    int nWords = commands.size();

    char *myArgs[nWords+1];
    myArgs[nWords]=NULL;

    for(int i=0;i<nWords;i++){
        char* buffer = new char[commands[i].length()+1];
        strcpy(buffer, commands[i].c_str());


        if(strcmp(buffer,"<") == 0){
            buffer = new char[commands[i+1].length()+1];
            strcpy(buffer,commands[i+1].c_str());	

            freopen(buffer,"r+",stdin);

            i++;
            continue;
        }

        if(strcmp(buffer,">") == 0){
            buffer = new char[commands[i+1].length()+1];
            strcpy(buffer, commands[i+1].c_str());

            freopen(buffer, "w+", stdout);

            i++;
            continue;
        }

        myArgs[i] = buffer;

    }
    execvp(myArgs[0], myArgs);
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rdi), %rax
movq %rdi, -0x38(%rbp)
subq (%rdi), %rax
movq %rax, %rcx
shrq $0x5, %rcx
movq %rcx, -0x40(%rbp)
incl %ecx
leaq 0xf(,%rcx,8), %rcx
andq $-0x10, %rcx
movq %rsp, %rdx
subq %rcx, %rdx
movq %rdx, %rsp
shlq $0x1b, %rax
sarq $0x1d, %rax
movq %rdx, -0x30(%rbp)
andq $0x0, (%rax,%rdx)
xorl %r12d, %r12d
cmpl -0x40(%rbp), %r12d
jge 0x43bc
movslq %r12d, %r15
movq -0x38(%rbp), %rax
movq (%rax), %r14
movq %r15, %rbx
shlq $0x5, %rbx
movq 0x8(%r14,%rbx), %rdi
incq %rdi
callq 0x2030
movq %rax, %r13
movq (%r14,%rbx), %rsi
movq %rax, %rdi
callq 0x21d0
movzbl (%r13), %eax
cmpl $0x3e, %eax
je 0x436a
cmpl $0x3c, %eax
jne 0x4371
cmpb $0x0, 0x1(%r13)
jne 0x4371
incl %r12d
movq 0x28(%rbx,%r14), %rdi
incq %rdi
callq 0x2030
movq %rax, %r13
movq 0x20(%rbx,%r14), %rsi
movq %rax, %rdi
callq 0x21d0
movq 0x3c65(%rip), %rax      # 0x7fc0
movq (%rax), %rdx
movq %r13, %rdi
leaq 0xdaf(%rip), %rsi       # 0x5117
jmp 0x43af
cmpb $0x0, 0x1(%r13)
je 0x437b
movq -0x30(%rbp), %rax
movq %r13, (%rax,%r15,8)
jmp 0x43b4
incl %r12d
movq 0x28(%rbx,%r14), %rdi
incq %rdi
callq 0x2030
movq %rax, %r13
movq 0x20(%rbx,%r14), %rsi
movq %rax, %rdi
callq 0x21d0
movq 0x3c06(%rip), %rax      # 0x7fa8
movq (%rax), %rdx
movq %r13, %rdi
leaq 0xd6b(%rip), %rsi       # 0x511a
callq 0x2220
incl %r12d
jmp 0x42e7
movq -0x30(%rbp), %rsi
movq (%rsi), %rdi
callq 0x2160
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/marxn[P]pupp/3rdparty/gmp/gen-jacobitab.c
// Function: main
int
main (int argc, char **argv)
{
  unsigned bits;

  for (bits = 0; bits < 208; bits++)
    {
      unsigned e, a, b, d_old, d, q;

      if (bits && !(bits & 0xf))
	printf("\n");

      q = bits & 3;
      d = (bits >> 2) & 1;

      e = JACOBI_E (bits >> 3);
      a = JACOBI_A (bits >> 3);
      b = JACOBI_B (bits >> 3);
      d_old = JACOBI_D (bits >> 3);

      if (d != d_old && a == 3 && b == 3)
	e ^= 1;

      if (d == 1)
	{
	  if (b == 2)
	    e ^= (q & (a >> 1)) ^ (q >> 1);
	  a = (a - q * b) & 3;
	}
      else
	{
	  if (a == 2)
	    e ^= (q & (b >> 1)) ^ (q >> 1);
	  b = (b - q * a) & 3;
	}

      printf("%2d,", (encode (a, b, d) << 1) | e);
    }
  printf("\n");

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq $0xa
popq %rbx
leaq 0xe8f(%rip), %r15       # 0x2010
leaq 0xea2(%rip), %r14       # 0x202a
xorl %r12d, %r12d
cmpl $0xd0, %r12d
je 0x12b5
testl %r12d, %r12d
sete %al
testb $0xf, %r12b
setne %cl
orb %al, %cl
jne 0x11b0
movl %ebx, %edi
callq 0x1030
movl %r12d, %esi
andl $0x3, %esi
movl %r12d, %r9d
shrl $0x3, %r9d
andl $0x1, %r9d
movl %r12d, %eax
shrl $0x4, %eax
movb (%r15,%rax,2), %dil
movb 0x1(%r15,%rax,2), %r8b
movzbl %dil, %ecx
movzbl %r8b, %edx
cmpl $0x7, %eax
sete %al
movl %r12d, %r10d
shrb $0x2, %r10b
xorb %al, %r10b
cmpb $0x3, %dil
sete %al
andb %r10b, %al
cmpb $0x3, %r8b
sete %r10b
andb %al, %r10b
movzbl %r10b, %eax
xorl %r9d, %eax
testb $0x4, %r12b
jne 0x1236
cmpl $0x2, %ecx
jne 0x121f
movl %edx, %r8d
shrl %r8d
andl %esi, %r8d
shrl %esi
xorl %r8d, %esi
xorl %esi, %eax
cmpb $0x4, %dil
jae 0x12e6
movl %r12d, %esi
imull %ecx, %esi
subl %esi, %edx
andl $0x3, %edx
jmp 0x125c
cmpl $0x2, %edx
jne 0x1247
movl %ecx, %edi
shrl %edi
andl %esi, %edi
shrl %esi
xorl %edi, %esi
xorl %esi, %eax
cmpb $0x4, %r8b
jae 0x12ff
movl %r12d, %esi
imull %edx, %esi
subl %esi, %ecx
andl $0x3, %ecx
movl %ecx, %esi
orl %edx, %esi
testb $0x1, %sil
je 0x12cd
cmpl $0x3, %edx
jne 0x1295
cmpl $0x3, %ecx
jne 0x1295
xorl %ecx, %ecx
testb $0x4, %r12b
sete %cl
leal (%rcx,%rcx,4), %esi
addl $0x7, %esi
addl %esi, %esi
orl %eax, %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1050
incl %r12d
jmp 0x118b
xorl %esi, %esi
cmpq $0xc, %rsi
je 0x12c8
movzbl (%r15,%rsi,2), %edi
cmpl %edi, %ecx
jne 0x12b0
movzbl 0x1(%r15,%rsi,2), %edi
cmpl %edi, %edx
je 0x127f
incq %rsi
jmp 0x1297
pushq $0xa
popq %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x1040
leaq 0xdb5(%rip), %rdi       # 0x2089
leaq 0xd54(%rip), %rsi       # 0x202f
leaq 0xd5d(%rip), %rcx       # 0x203f
pushq $0x4a
jmp 0x1316
leaq 0xd90(%rip), %rdi       # 0x207d
leaq 0xd3b(%rip), %rsi       # 0x202f
leaq 0xd44(%rip), %rcx       # 0x203f
pushq $0x48
jmp 0x1316
leaq 0xd7d(%rip), %rdi       # 0x2083
leaq 0xd22(%rip), %rsi       # 0x202f
leaq 0xd2b(%rip), %rcx       # 0x203f
pushq $0x49
popq %rdx
callq 0x1060
// File: /workspace/github_cpp_makefile_star2_O2/Overv[P]pqpp/./pq.hpp
// Function: pq::connection::connection(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
connection(const string& connInfo) {
            conn = shared_ptr<PGconn>(PQconnectdb(connInfo.c_str()), [=](PGconn* conn) {
                PQfinish(conn);
            });

            if (PQstatus(conn.get()) != CONNECTION_OK) {
                throw runtime_error(PQerrorMessage(conn.get()));
            }
        }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq (%rsi), %rdi
callq 0x2170
movq %rsp, %rdi
movq %rax, %rsi
callq 0x34f6
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3666
leaq 0x8(%rsp), %rdi
callq 0x3694
movq (%rbx), %rdi
callq 0x2090
testl %eax, %eax
jne 0x2a24
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %r14
movq (%rbx), %rdi
callq 0x2290
movq %r14, %rdi
movq %rax, %rsi
callq 0x20b0
movq 0x6597(%rip), %rsi      # 0x8fe0
movq 0x6578(%rip), %rdx      # 0x8fc8
movq %r14, %rdi
callq 0x21c0
movq %rax, %r15
movq %r14, %rdi
callq 0x2280
jmp 0x2a6a
jmp 0x2a67
movq %rax, %r15
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x3694
movq %r15, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O2/Overv[P]pqpp/./pq.hpp
// Function: std::vector<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, pq::value, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, pq::value>>>, std::allocator<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, pq::value, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, pq::value>>>>> pq::connection::exec<>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
vector<row_t> exec(const string& query, Args... param_args) {
            vector<value> args = make_value_list(param_args...);
            vector<const char*> pq_args = make_pq_args(args);

            auto tmp = PQexecParams(conn.get(), query.c_str(), pq_args.size(), nullptr, pq_args.data(), nullptr, nullptr, 0);
            auto res = unique_ptr<PGresult, function<void(PGresult*)>>(tmp, [=](PGresult* res) {
                PQclear(res);
            });

            return get_rows(move(res));
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
leaq 0x18(%rsp), %rdi
callq 0x38bc
movq (%r14), %rdi
movq (%r15), %rsi
movq 0x18(%rsp), %r8
movq 0x20(%rsp), %rdx
subq %r8, %rdx
shrq $0x3, %rdx
andl $0x0, 0x8(%rsp)
andq $0x0, (%rsp)
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x2200
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x122b(%rip), %rcx      # 0x3d18
movq %rcx, 0x18(%r15)
leaq 0x1228(%rip), %rcx      # 0x3d20
movq %rcx, 0x10(%r15)
leaq 0x48(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x3778
movq %r15, %rdi
callq 0x3710
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3936
leaq 0x48(%rsp), %rdi
callq 0x372c
leaq 0x18(%rsp), %rdi
callq 0x4742
leaq 0x30(%rsp), %rdi
callq 0x3b96
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x372c
jmp 0x2b67
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4742
jmp 0x2b76
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3b96
movq %rbx, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O2/Overv[P]pqpp/./pq.hpp
// Function: pq::connection::prepare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
prepared_statement prepare(const string& name, const string& query, int parameters) {
            auto tmp = PQprepare(conn.get(), name.c_str(), query.c_str(), parameters, nullptr);
            auto res = unique_ptr<PGresult, function<void(PGresult*)>>(tmp, [=](PGresult* res) {
                PQclear(res);
            });

            if (PQresultStatus(res.get()) == PGRES_COMMAND_OK) {
                return prepared_statement(name, parameters);
            } else {
                throw runtime_error(PQerrorMessage(conn.get()));
            }
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r8d, %ebp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
movq (%rdx), %rsi
movq (%rcx), %rdx
movl %r8d, %ecx
xorl %r8d, %r8d
callq 0x20a0
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %r12
movaps %xmm0, (%r12)
leaq 0xb6c(%rip), %rcx       # 0x3758
movq %rcx, 0x18(%r12)
leaq 0xb68(%rip), %rcx       # 0x3760
movq %rcx, 0x10(%r12)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x3778
movq %r12, %rdi
callq 0x3710
movq 0x20(%r13), %rdi
callq 0x2340
cmpl $0x1, %eax
jne 0x2c50
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2140
movl %ebp, 0x20(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x372c
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %rbx
movq (%r14), %rdi
callq 0x2290
movq %rbx, %rdi
movq %rax, %rsi
callq 0x20b0
movq 0x636b(%rip), %rsi      # 0x8fe0
movq 0x634c(%rip), %rdx      # 0x8fc8
movq %rbx, %rdi
callq 0x21c0
movq %rax, %r14
movq %rbx, %rdi
callq 0x2280
jmp 0x2c94
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x372c
movq %r14, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O2/Overv[P]pqpp/./pq.hpp
// Function: std::vector<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, pq::value, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, pq::value>>>, std::allocator<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, pq::value, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, pq::value>>>>> pq::connection::exec<char const*, int>(pq::prepared_statement const&, char const*, int)
vector<row_t> exec(const prepared_statement& stmt, Args... param_args) {
            vector<value> args = make_value_list(param_args...);
            vector<const char*> pq_args = make_pq_args(args);

            auto tmp = PQexecPrepared(conn.get(), stmt.get_name().c_str(), stmt.get_parameters(), pq_args.data(), nullptr, nullptr, 0);
            auto res = unique_ptr<PGresult, function<void(PGresult*)>>(tmp, [=](PGresult* res) {
                PQclear(res);
            });

            return get_rows(move(res));
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %rcx, %rsi
movl %r8d, %edx
callq 0x4784
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x38bc
movq (%r14), %rdi
movq (%r15), %rsi
movl 0x20(%r15), %edx
movq 0x8(%rsp), %rcx
andl $0x0, (%rsp)
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x2190
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x1e59(%rip), %rcx      # 0x4b6a
movq %rcx, 0x18(%r15)
leaq 0x1e56(%rip), %rcx      # 0x4b72
movq %rcx, 0x10(%r15)
leaq 0x38(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x3778
movq %r15, %rdi
callq 0x3710
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3936
leaq 0x38(%rsp), %rdi
callq 0x372c
leaq 0x8(%rsp), %rdi
callq 0x4742
leaq 0x20(%rsp), %rdi
callq 0x3b96
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x372c
jmp 0x2d8b
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4742
jmp 0x2d9a
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3b96
movq %rbx, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O2/Overv[P]pqpp/./pq.hpp
// Function: pq::connection::make_pq_args(std::vector<pq::value, std::allocator<pq::value>> const&)
vector<const char*> make_pq_args(const vector<value>& arguments) {
            vector<const char*> pq_args;

            for (auto& val : arguments) {
                if (val.is_null()) {
                    pq_args.push_back(nullptr);
                } else {
                    pq_args.push_back(val.str().c_str());
                }
            }

            return pq_args;
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq (%rdx), %r15
movq 0x8(%rdx), %r12
movq %rsp, %r14
cmpq %r12, %r15
je 0x3912
cmpb $0x1, 0x20(%r15)
jne 0x38fa
andq $0x0, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3bb8
jmp 0x390c
movq (%r15), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3bb8
addq $0x28, %r15
jmp 0x38dc
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x3923
movq %rax, %r14
movq %rbx, %rdi
callq 0x4742
movq %r14, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O2/YiweiMao[P]tessDX/src/tessellator.cpp
// Function: CHWTessellator::Init(D3D11_TESSELLATOR_PARTITIONING, D3D11_TESSELLATOR_OUTPUT_PRIMITIVE)
void CHWTessellator::Init(  
    D3D11_TESSELLATOR_PARTITIONING       partitioning,
    D3D11_TESSELLATOR_OUTPUT_PRIMITIVE   outputPrimitive)
{
    if( 0 == m_Point )
    {
        m_Point = new DOMAIN_POINT[MAX_POINT_COUNT];
    }
    if( 0 == m_Index )
    {
        m_Index = new int[MAX_INDEX_COUNT];
    }
    m_partitioning = partitioning;
    m_originalPartitioning = partitioning;
    switch( partitioning )
    {
    case D3D11_TESSELLATOR_PARTITIONING_INTEGER:
    default:
        break;
    case D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD:
        m_parity = TESSELLATOR_PARITY_ODD;
        break;
    case D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN:
        m_parity = TESSELLATOR_PARITY_EVEN;
        break;
    }
    m_originalParity = m_parity;
    m_outputPrimitive = outputPrimitive;
    m_NumPoints = 0;
    m_NumIndices = 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
cmpq $0x0, 0x18(%rdi)
jne 0x402012
movl $0x8408, %edi           # imm = 0x8408
callq 0x405cd0
movq %rax, 0x18(%r14)
cmpq $0x0, 0x20(%r14)
jne 0x402027
movl $0x18000, %edi          # imm = 0x18000
callq 0x405cd0
movq %rax, 0x20(%r14)
movl %ebp, 0xc(%r14)
movl %ebp, 0x8(%r14)
cmpl $0x2, %ebp
je 0x402042
cmpl $0x3, %ebp
jne 0x40204f
andl $0x0, 0x4(%r14)
xorl %eax, %eax
jmp 0x402053
movl $0x1, 0x4(%r14)
pushq $0x1
popq %rax
jmp 0x402053
movl 0x4(%r14), %eax
movl %eax, (%r14)
movl %ebx, 0x10(%r14)
andq $0x0, 0x28(%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/YiweiMao[P]tessDX/src/tessellator.cpp
// Function: CHWTessellator::TessellateTriDomain(float, float, float, float)
void CHWTessellator::TessellateTriDomain( float tessFactor_Ueq0, float tessFactor_Veq0, float tessFactor_Weq0, 
                                        float insideTessFactor )
{
    PROCESSED_TESS_FACTORS_TRI processedTessFactors;
    TriProcessTessFactors(tessFactor_Ueq0,tessFactor_Veq0,tessFactor_Weq0,insideTessFactor,processedTessFactors);

    if( processedTessFactors.bPatchCulled )
    {
        m_NumPoints = 0;
        m_NumIndices = 0;
        return;
    }
    else if( processedTessFactors.bJustDoMinimumTessFactor )
    {
        DefinePoint(/*U*/0,/*V*/FXP_ONE,/*pointStorageOffset*/0); //V=1 (beginning of Ueq0 edge VW)
        DefinePoint(/*U*/0,/*V*/0,/*pointStorageOffset*/1); //W=1 (beginning of Veq0 edge WU)
        DefinePoint(/*U*/FXP_ONE,/*V*/0,/*pointStorageOffset*/2); //U=1 (beginning of Weq0 edge UV)
        m_NumPoints = 3;

        switch(m_outputPrimitive)
        {
        case D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CW:
        case D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CCW:
            // function orients them CCW if needed
            DefineClockwiseTriangle(0,1,2,/*indexStorageBaseOffset*/m_NumIndices);
            m_NumIndices = 3;
            break;
        case D3D11_TESSELLATOR_OUTPUT_POINT:
            DumpAllPoints();
            break;
        case D3D11_TESSELLATOR_OUTPUT_LINE:
            DumpAllPointsAsInOrderLineList();
            break;
        }
        return;
    }

    TriGeneratePoints(processedTessFactors);
    
    if( m_outputPrimitive == D3D11_TESSELLATOR_OUTPUT_POINT )
    {
        DumpAllPoints();
        return;
    }
    if( m_outputPrimitive == D3D11_TESSELLATOR_OUTPUT_LINE )
    {
        DumpAllPointsAsInOrderLineList();
        return;
    }

    TriGenerateConnectivity(processedTessFactors); // can be done in parallel to TriGeneratePoints()
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rsi
callq 0x40366e
cmpb $0x1, 0x71(%r14)
jne 0x4035c3
andq $0x0, 0x28(%rbx)
addq $0x88, %rsp
popq %rbx
popq %r14
retq
cmpb $0x1, 0x70(%rsp)
jne 0x403602
movq 0x18(%rbx), %rax
movsd 0xc1afa(%rip), %xmm0    # 0x4c50d0
movups %xmm0, (%rax)
movss 0xc1a63(%rip), %xmm0    # 0x4c5044
movlps %xmm0, 0x10(%rax)
movl $0x3, 0x28(%rbx)
movl 0x10(%rbx), %eax
leal -0x2(%rax), %ecx
cmpl $0x2, %ecx
jb 0x40363d
testl %eax, %eax
je 0x403619
cmpl $0x1, %eax
je 0x40362b
jmp 0x4035b8
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x4039c0
movl 0x10(%rbx), %eax
cmpl $0x1, %eax
je 0x40362b
testl %eax, %eax
jne 0x40365d
movq %rbx, %rdi
addq $0x88, %rsp
popq %rbx
popq %r14
jmp 0x4025e0
movq %rbx, %rdi
addq $0x88, %rsp
popq %rbx
popq %r14
jmp 0x40260c
movl 0x2c(%rbx), %r8d
pushq $0x1
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x402592
movl $0x3, 0x2c(%rbx)
jmp 0x4035b8
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x403c3a
jmp 0x4035b8
nop
// File: /workspace/github_cpp_makefile_star2_O2/YiweiMao[P]tessDX/src/tessellator.cpp
// Function: CHWTessellator::TessellateIsoLineDomain(float, float)
void CHWTessellator::TessellateIsoLineDomain( float TessFactor_V_LineDensity, float TessFactor_U_LineDetail )
{
    PROCESSED_TESS_FACTORS_ISOLINE processedTessFactors;
    IsoLineProcessTessFactors(TessFactor_V_LineDensity,TessFactor_U_LineDetail,processedTessFactors);
    if( processedTessFactors.bPatchCulled )
    {
        m_NumPoints = 0;
        m_NumIndices = 0;
        return;
    }
    IsoLineGeneratePoints(processedTessFactors);
    IsoLineGenerateConnectivity(processedTessFactors); // can be done in parallel to IsoLineGeneratePoints
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %r14
movq %r14, %rsi
callq 0x403ec6
cmpb $0x1, 0x30(%r14)
jne 0x403ea3
andq $0x0, 0x28(%rbx)
jmp 0x403ebe
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x40402c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4040ca
addq $0x48, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/YiweiMao[P]tessDX/src/tessellator.cpp
// Function: CHWTessellator::IsoLineGeneratePoints(CHWTessellator::PROCESSED_TESS_FACTORS_ISOLINE const&)
void CHWTessellator::IsoLineGeneratePoints( const PROCESSED_TESS_FACTORS_ISOLINE& processedTessFactors )
{
    int line, pointOffset;
    for(line = 0, pointOffset = 0; line < processedTessFactors.numLines; line++)
    {
        for(int point = 0; point < processedTessFactors.numPointsPerLine; point++)
        {
            FXP fxpU,fxpV;
            SetTessellationParity(processedTessFactors.lineDensityParity);
            PlacePointIn1D(processedTessFactors.lineDensityTessFactorCtx,line,fxpV);

            SetTessellationParity(processedTessFactors.lineDetailParity);
            PlacePointIn1D(processedTessFactors.lineDetailTessFactorCtx,point,fxpU);

            DefinePoint(fxpU,fxpV,pointOffset++);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsi), %rax
movq %rax, 0x10(%rsp)
leaq 0x1c(%rsi), %rax
movq %rax, 0x8(%rsp)
xorl %ebp, %ebp
xorl %r12d, %r12d
cmpl 0x38(%rbx), %ebp
jge 0x4040bb
xorl %r13d, %r13d
leal (%r12,%r13), %r15d
cmpl 0x34(%rbx), %r13d
jge 0x4040b4
movl (%rbx), %eax
movl %eax, 0x4(%r14)
movq %r14, %rdi
movq 0x10(%rsp), %rsi
movl %ebp, %edx
movq %rsp, %rcx
callq 0x402f08
movl 0x4(%rbx), %eax
movl %eax, 0x4(%r14)
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movl %r13d, %edx
leaq 0x4(%rsp), %rcx
callq 0x402f08
movl 0x4(%rsp), %esi
movl (%rsp), %edx
movq %r14, %rdi
movl %r15d, %ecx
callq 0x402558
incl %r13d
jmp 0x40405f
incl %ebp
movl %r15d, %r12d
jmp 0x404057
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/YiweiMao[P]tessDX/src/tessellator.cpp
// Function: CHWTessellator::IsoLineGenerateConnectivity(CHWTessellator::PROCESSED_TESS_FACTORS_ISOLINE const&)
void CHWTessellator::IsoLineGenerateConnectivity( const PROCESSED_TESS_FACTORS_ISOLINE& processedTessFactors )
{
    int line, pointOffset, indexOffset;
    if( m_outputPrimitive == D3D11_TESSELLATOR_OUTPUT_POINT )
    {
        for(line = 0, pointOffset = 0, indexOffset = 0; line < processedTessFactors.numLines; line++)
        {
            for(int point = 0; point < processedTessFactors.numPointsPerLine; point++)
            {
                DefineIndex(pointOffset++,indexOffset++);
            }
        }
    }
    else // line
    {
        for(line = 0, pointOffset = 0, indexOffset = 0; line < processedTessFactors.numLines; line++)
        {
            for(int point = 0; point < processedTessFactors.numPointsPerLine; point++)
            {
                if( point > 0 )
                {
                    DefineIndex(pointOffset-1,indexOffset++);
                    DefineIndex(pointOffset,indexOffset++);
                }
                pointOffset++;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x0, 0x10(%rdi)
je 0x404135
xorl %eax, %eax
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpl 0x38(%rbx), %eax
jge 0x40416a
movl %eax, 0x4(%rsp)
xorl %r13d, %r13d
cmpl 0x34(%rbx), %r13d
jge 0x40412d
testl %r13d, %r13d
je 0x404125
leal -0x1(%r15), %esi
leal 0x1(%r12), %ebp
movq %r14, %rdi
movl %r12d, %edx
callq 0x40417a
addl $0x2, %r12d
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x40417a
incl %r15d
incl %r13d
jmp 0x4040f5
movl 0x4(%rsp), %eax
incl %eax
jmp 0x4040e9
xorl %ebp, %ebp
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpl 0x38(%rbx), %ebp
jge 0x40416a
xorl %r13d, %r13d
leal (%r15,%r13), %esi
leal (%r12,%r13), %edx
cmpl 0x34(%rbx), %r13d
jge 0x404160
movq %r14, %rdi
callq 0x40417a
incl %r13d
jmp 0x404145
incl %ebp
movl %esi, %r15d
movl %edx, %r12d
jmp 0x40413d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/YiweiMao[P]tessDX/src/tessellator.cpp
// Function: GetMSB(int)
int GetMSB(int val)
{
    int check;
    if( val <= 0x0000ffff ) { check = ( val <= 0x000000ff ) ? 0x00000080 : 0x00008000; }
    else                    { check = ( val <= 0x00ffffff ) ? 0x00800000 : 0x80000000; }
    for( int i = 0; i < 8; i++, check >>= 1 ) { if( val & check ) return check; }
    return 0;
}

// Assembly:
cmpl $0x100, %edi            # imm = 0x100
movl $0x80, %eax
movl $0x8000, %edx           # imm = 0x8000
cmovll %eax, %edx
cmpl $0x1000000, %edi        # imm = 0x1000000
movl $0x800000, %eax         # imm = 0x800000
movl $0x80000000, %ecx       # imm = 0x80000000
cmovbl %eax, %ecx
cmpl $0x10000, %edi          # imm = 0x10000
cmovll %edx, %ecx
xorl %edx, %edx
cmpl $0x7, %edx
ja 0x404281
movl %ecx, %eax
andl %edi, %eax
jne 0x404281
incl %edx
sarl %ecx
jmp 0x404270
xorl %eax, %eax
cmpl $0x8, %edx
cmovbl %ecx, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/YiweiMao[P]tessDX/src/tessellator.cpp
// Function: CHLSLTessellator::Init(D3D11_TESSELLATOR_PARTITIONING, D3D11_TESSELLATOR_REDUCTION, D3D11_TESSELLATOR_QUAD_REDUCTION_AXIS, D3D11_TESSELLATOR_OUTPUT_PRIMITIVE)
void CHLSLTessellator::Init(  
    D3D11_TESSELLATOR_PARTITIONING       partitioning,
    D3D11_TESSELLATOR_REDUCTION          insideTessFactorReduction,
    D3D11_TESSELLATOR_QUAD_REDUCTION_AXIS quadInsideTessFactorReductionAxis,
    D3D11_TESSELLATOR_OUTPUT_PRIMITIVE   outputPrimitive)
{
    CHWTessellator::Init(partitioning,outputPrimitive);
    m_LastComputedTessFactors[0] = m_LastComputedTessFactors[1] = m_LastComputedTessFactors[2] = 
    m_LastComputedTessFactors[3] = m_LastComputedTessFactors[4] = m_LastComputedTessFactors[5] = 0;
    m_partitioning = partitioning;
    m_originalPartitioning = partitioning;
    switch( partitioning )
    {
    case D3D11_TESSELLATOR_PARTITIONING_INTEGER:
    default:
        break;
    case D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD:
        m_parity = TESSELLATOR_PARITY_ODD;
        break;
    case D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN:
        m_parity = TESSELLATOR_PARITY_EVEN;
        break;
    }
    m_originalParity = m_parity;
    m_outputPrimitive = outputPrimitive;
    m_insideTessFactorReduction = insideTessFactorReduction;
    m_quadInsideTessFactorReductionAxis = quadInsideTessFactorReductionAxis;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebp
movl %ecx, %ebx
movl %edx, %r14d
movl %esi, %r12d
movq %rdi, %r15
movl %r8d, %edx
callq 0x401ff2
xorps %xmm0, %xmm0
andq $0x0, 0x8c(%r15)
movups %xmm0, 0x7c(%r15)
movl %r12d, 0x6c(%r15)
movl %r12d, 0x68(%r15)
cmpl $0x2, %r12d
je 0x4042ed
cmpl $0x3, %r12d
jne 0x4042fa
andl $0x0, 0x64(%r15)
xorl %eax, %eax
jmp 0x4042fe
movl $0x1, 0x64(%r15)
pushq $0x1
popq %rax
jmp 0x4042fe
movl 0x64(%r15), %eax
movl %eax, 0x60(%r15)
movl %ebp, 0x70(%r15)
movl %r14d, 0x74(%r15)
movl %ebx, 0x78(%r15)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/YiweiMao[P]tessDX/src/tessellator.cpp
// Function: CHLSLTessellator::RoundUpTessFactor(float&)
void CHLSLTessellator::RoundUpTessFactor(float& TessFactor)
{
    // Assume TessFactor is in [1.0f..+INF]
    if( Pow2Partitioning() )
    {
        int bits = *(int*)&TessFactor;
        if( bits & mantissaMask )
        {
            *(int*)&TessFactor = (bits & exponentMask) + exponentLSB;
        }
    }
    else if( IntegerPartitioning() )
    {
        TessFactor = ceil(TessFactor);
    }
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movl 0x6c(%rdi), %eax
testl %eax, %eax
je 0x404a29
cmpl $0x1, %eax
jne 0x404a36
movl (%rbx), %eax
testl $0x7fffff, %eax         # imm = 0x7FFFFF
je 0x404a36
andl $0x7f800000, %eax       # imm = 0x7F800000
addl $0x800000, %eax         # imm = 0x800000
movl %eax, (%rbx)
jmp 0x404a36
movss (%rbx), %xmm0
callq 0x4010c8
movss %xmm0, (%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/YiweiMao[P]tessDX/src/tessellator.cpp
// Function: CHLSLTessellator::ClampFloatTessFactorScale(float&)
void CHLSLTessellator::ClampFloatTessFactorScale(float& input)
{
    // If input is < 0.0f or NaN, clamp to 0.0f.  > 1 clamps to 1.
    // In other words, clamp input to [0.0f...1.0f]
    int bits = *(int*)&input;
    if( ( ( ( bits & exponentMask ) == exponentMask ) && ( bits & mantissaMask ) ) ||// nan?
        (input < 0.0f) )
    {
        input = 0;
    }
    else if( input > 1 )
    {
        input = 1;
    }
}

// Assembly:
movl (%rsi), %eax
movl %eax, %ecx
notl %ecx
testl $0x7f800000, %ecx       # imm = 0x7F800000
sete %cl
testl $0x7fffff, %eax         # imm = 0x7FFFFF
setne %dl
xorps %xmm0, %xmm0
testb %dl, %cl
jne 0x404abf
movd %eax, %xmm1
xorps %xmm2, %xmm2
ucomiss %xmm1, %xmm2
ja 0x404abf
movss 0xc058a(%rip), %xmm0    # 0x4c5044
ucomiss %xmm0, %xmm1
jbe 0x404ac3
movss %xmm0, (%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/mattn[P]minijson/./minijson.h
// Function: minijson::value::str[abi:cxx11](char const*) const
std::string str(const char* p) const {
    std::stringstream ss;
    ss << '"';
    while (*p) {
      if (*p == '\n') ss << "\\n";
      if (*p == '\r') ss << "\\r";
      if (*p == '\t') ss << "\\t";
      else if (strchr("\"", *p)) ss << "\\" << *p;
      else ss << *p;
      p++;
    }
    ss << '"';
    return ss.str();
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
callq 0x20f0
leaq 0x20(%rsp), %r15
pushq $0x22
popq %rsi
movq %r15, %rdi
callq 0x21c0
movq %rbx, 0x8(%rsp)
leaq 0x24dc(%rip), %r12      # 0x514b
leaq 0x24d8(%rip), %r13      # 0x514e
leaq 0x24d7(%rip), %rbp      # 0x5154
leaq 0x24cd(%rip), %rbx      # 0x5151
movzbl (%r14), %ecx
cmpl $0xa, %ecx
je 0x2c93
testl %ecx, %ecx
jne 0x2ca1
jmp 0x2cf3
movq %r15, %rdi
movq %r12, %rsi
callq 0x2170
movb (%r14), %cl
cmpb $0xd, %cl
jne 0x2cb4
movq %r15, %rdi
movq %r13, %rsi
callq 0x2170
movb (%r14), %cl
testb %cl, %cl
je 0x2cd5
movzbl %cl, %edx
cmpl $0x22, %edx
je 0x2cd5
movq %r15, %rax
cmpl $0x9, %edx
jne 0x2ce3
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2170
jmp 0x2cee
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2170
movb (%r14), %cl
movsbl %cl, %esi
movq %rax, %rdi
callq 0x21c0
incq %r14
jmp 0x2c84
pushq $0x22
popq %rsi
movq %r15, %rdi
callq 0x21c0
movq 0x8(%rsp), %rbx
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x2210
leaq 0x10(%rsp), %rdi
callq 0x2110
movq %rbx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d31
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2110
movq %rbx, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O2/mattn[P]minijson/./minijson.h
// Function: minijson::value::value(minijson::value const&)
value(const value& v) : t(v.t), u() {
    if (t == array_type) {
      u.a = new array();
      *u.a = *v.u.a;
    } else if (t == object_type) {
      u.o = new object();
      *u.o = *v.u.o;
    } else if (t == string_type) {
      u.s = new string();
      *u.s = *v.u.s;
    } else
      u.d = v.u.d;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %eax
movl %eax, (%rdi)
andq $0x0, 0x8(%rdi)
cmpl $0x4, %eax
je 0x2ef8
cmpl $0x6, %eax
je 0x2ebe
cmpl $0x5, %eax
jne 0x2f27
pushq $0x18
popq %rdi
callq 0x2180
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %rax, 0x8(%r14)
movq 0x8(%rbx), %rsi
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2f3a
pushq $0x30
popq %rdi
callq 0x2180
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
andq $0x0, 0x28(%rax)
movq %rax, 0x8(%r14)
movq 0x8(%rbx), %rsi
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x322a
pushq $0x20
popq %rdi
callq 0x2180
leaq 0x10(%rax), %rcx
movq %rcx, (%rax)
andq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rax, 0x8(%r14)
movq 0x8(%rbx), %rsi
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20c0
movsd 0x8(%rbx), %xmm0
movsd %xmm0, 0x8(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/mattn[P]minijson/./minijson.h
// Function: minijson::value::operator=(minijson::value const&)
const value& operator=(const value& v) {
    t = v.t;
    if (t == array_type) {
      u.a = new array(*v.u.a);
    } else if (t == object_type) {
      u.o = new object(*v.u.o);
    } else if (t == string_type) {
      u.s = new string(*v.u.s);
    } else u.d = v.u.d;
    return *this;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %eax
movl %eax, (%rdi)
cmpl $0x4, %eax
je 0x312a
cmpl $0x6, %eax
je 0x3111
cmpl $0x5, %eax
jne 0x3147
pushq $0x18
popq %rdi
callq 0x2180
movq %rax, %r15
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x2d46
jmp 0x3141
pushq $0x30
popq %rdi
callq 0x2180
movq %rax, %r15
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x35bc
jmp 0x3141
pushq $0x20
popq %rdi
callq 0x2180
movq %rax, %r15
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x21e0
movq %r15, 0x8(%rbx)
jmp 0x3152
movsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
pushq $0x18
jmp 0x316e
movq %rax, %rbx
pushq $0x20
jmp 0x316e
movq %rax, %rbx
pushq $0x30
popq %rsi
movq %r15, %rdi
callq 0x2190
movq %rbx, %rdi
callq 0x2260
nop
// File: /workspace/github_cpp_makefile_star2_O2/mattn[P]minijson/./minijson.h
// Function: minijson::error minijson::parse_any<char const*>(char const*&, minijson::value&)
inline error
parse_any(Iter& i, value& v) {
  _MINIJSON_SKIP(i);
  if (*i == '\x7b') return parse_object(i, v);
  if (*i == '[') return parse_array(i, v);
  if (*i == 't' || *i == 'f') return parse_boolean(i, v);
  if (*i == 'n') return parse_null(i, v);
  if ('0' <= *i && *i <= '9') return parse_number(i, v);
  if (*i == '"') return parse_string(i, v);
  return invalid_token_error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rbp
incq %rbp
leaq 0x18ce(%rip), %r12      # 0x50c1
pushq $0x5
popq %r13
movsbl -0x1(%rbp), %r15d
testl %r15d, %r15d
je 0x38e6
movq %r12, %rdi
movl %r15d, %esi
movq %r13, %rdx
callq 0x21b0
testq %rax, %rax
je 0x3820
movq %rbp, (%r14)
incq %rbp
jmp 0x37f7
cmpb $0x5b, %r15b
je 0x38ae
movzbl %r15b, %eax
cmpl $0x66, %eax
je 0x385b
cmpl $0x6e, %eax
je 0x3874
cmpl $0x74, %eax
je 0x385b
cmpl $0x7b, %eax
jne 0x388d
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x38f8
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3cf2
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3d83
leal -0x30(%r15), %eax
cmpb $0x9, %al
ja 0x38c7
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3de9
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3b54
cmpb $0x22, %r15b
jne 0x38e6
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3f11
pushq $0x2
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mattn[P]minijson/./minijson.h
// Function: minijson::error minijson::parse_array<char const*>(char const*&, minijson::value&)
inline error
parse_array(Iter& i, value& v) {
  array a;
  i++;
  _MINIJSON_SKIP(i);
  if (*i != ']') {
    while (*i) {
      value va;
      error e = parse_any(i, va);
      if (e != no_error) return e;
      a.push_back(va);
      _MINIJSON_SKIP(i);
      if (*i == ']') break;
      if (*i != ',') return invalid_token_error;
      i++;
      _MINIJSON_SKIP(i);
#ifdef __MINIJSON_LIBERAL
      if (*i == '\x7d') break;
#endif
    }
  }
  v = value(a);
  i++;
  return no_error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, 0x30(%rsp)
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movq (%rdi), %r13
incq %r13
leaq 0x153c(%rip), %r14      # 0x50c1
pushq $0x5
popq %r15
movq %r13, (%rbx)
movsbl (%r13), %r12d
testl %r12d, %r12d
je 0x3bde
movq %r14, %rdi
movl %r12d, %esi
movq %r15, %rdx
callq 0x21b0
incq %r13
testq %rax, %rax
jne 0x3b89
cmpb $0x5d, %r12b
jne 0x3bde
movq %rsp, %rdi
leaq 0x10(%rsp), %rsi
callq 0x44c8
movq %rsp, %rsi
movq 0x30(%rsp), %rdi
callq 0x30da
movq %rsp, %rdi
callq 0x27e8
incq (%rbx)
xorl %ebp, %ebp
jmp 0x3c96
movq %rsp, %r15
leaq 0x10(%rsp), %rbp
leaq 0x14d4(%rip), %r13      # 0x50c1
pushq $0x5
popq %r14
testb %r12b, %r12b
je 0x3bb2
andl $0x0, (%rsp)
andq $0x0, 0x8(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x37d5
testl %eax, %eax
jne 0x3cb1
movq %rbp, %rdi
movq %r15, %rsi
callq 0x449c
movq (%rbx), %r15
leaq 0x1(%r15), %rbp
movsbl (%r15), %r12d
testl %r12d, %r12d
je 0x3c8b
movq %r13, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x21b0
testq %rax, %rax
je 0x3c4c
incq %r15
movq %r15, (%rbx)
incq %rbp
jmp 0x3c25
cmpb $0x2c, %r12b
jne 0x3cb5
movq %rbp, (%rbx)
movsbl (%rbp), %esi
testl %esi, %esi
je 0x3c70
movq %r13, %rdi
movq %r14, %rdx
callq 0x21b0
incq %rbp
testq %rax, %rax
jne 0x3c52
movq %rsp, %r15
movq %r15, %rdi
callq 0x27e8
movq (%rbx), %rax
movb (%rax), %r12b
leaq 0x10(%rsp), %rbp
jmp 0x3bf1
pushq $0x2
popq %rbp
movq %rsp, %rdi
callq 0x27e8
leaq 0x10(%rsp), %rdi
callq 0x2b32
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %ebp
jmp 0x3c8e
movzbl %r12b, %eax
cmpl $0x5d, %eax
pushq $0x2
popq %rbp
jne 0x3c8e
movq %rsp, %rdi
callq 0x27e8
jmp 0x3bb2
jmp 0x3cd5
movq %rax, %rbx
jmp 0x3ce0
movq %rax, %rbx
movq %rsp, %rdi
callq 0x27e8
leaq 0x10(%rsp), %rdi
callq 0x2b32
movq %rbx, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O2/mattn[P]minijson/./minijson.h
// Function: minijson::error minijson::parse_boolean<char const*>(char const*&, minijson::value&)
inline error
parse_boolean(Iter& i, value& v) {
  Iter p = i;
  if (*i == 't' && *(i+1) == 'r' && *(i+2) == 'u' && *(i+3) == 'e') {
    i += 4;
    v = (boolean) true;
  } else if (*i == 'f' && *(i+1) == 'a' && *(i+2) == 'l' && *(i+3) == 's' && *(i+4) == 'e') {
    i += 5;
    v = (boolean) false;
  }
  if (*i && nullptr == strchr(":,\x7d]\r\n ", *i)) {
    i = p;
    return undefined_error;
  }
  return no_error;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
movzbl (%r14), %eax
cmpl $0x66, %eax
je 0x3d26
cmpl $0x74, %eax
jne 0x3d56
cmpb $0x72, 0x1(%r14)
jne 0x3d56
cmpb $0x75, 0x2(%r14)
jne 0x3d56
cmpb $0x65, 0x3(%r14)
jne 0x3d56
movb $0x1, %al
pushq $0x4
popq %rcx
jmp 0x3d47
cmpb $0x61, 0x1(%r14)
jne 0x3d56
cmpb $0x6c, 0x2(%r14)
jne 0x3d56
cmpb $0x73, 0x3(%r14)
jne 0x3d56
cmpb $0x65, 0x4(%r14)
jne 0x3d56
pushq $0x5
popq %rcx
xorl %eax, %eax
addq %r14, %rcx
movq %rcx, (%rbx)
movl $0x2, (%rsi)
movb %al, 0x8(%rsi)
movq (%rbx), %rax
movsbl (%rax), %esi
xorl %ebp, %ebp
testl %esi, %esi
je 0x3d7c
leaq 0x1431(%rip), %rdi      # 0x519a
pushq $0x8
popq %rdx
callq 0x21b0
testq %rax, %rax
jne 0x3d7c
movq %r14, (%rbx)
pushq $0x1
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mattn[P]minijson/./minijson.h
// Function: minijson::error minijson::parse_null<char const*>(char const*&, minijson::value&)
inline error
parse_null(Iter& i, value& v) {
  Iter p = i;
  if (*i == 'n' && *(i+1) == 'u' && *(i+2) == 'l' && *(i+3) == 'l') {
    i += 4;
    v = null;
  }
  if (*i && nullptr == strchr(":,\x7d]\r\n ", *i)) {
    i = p;
    return undefined_error;
  }
  return no_error;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
movb (%r14), %al
cmpb $0x6e, %al
jne 0x3dbc
movb $0x6e, %al
cmpb $0x75, 0x1(%r14)
jne 0x3dc0
cmpb $0x6c, 0x2(%r14)
jne 0x3dc0
cmpb $0x6c, 0x3(%r14)
jne 0x3dc0
leaq 0x4(%r14), %rax
movq %rax, (%rbx)
movl $0x1, (%rsi)
movb 0x4(%r14), %al
testb %al, %al
je 0x3dd7
movsbl %al, %esi
leaq 0x13d0(%rip), %rdi      # 0x519a
pushq $0x8
popq %rdx
callq 0x21b0
testq %rax, %rax
je 0x3ddb
xorl %eax, %eax
jmp 0x3de1
movq %r14, (%rbx)
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq