LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/ndsol[P]git-mine/blake2b-ref.c
// Function: blake2b_update
int blake2b_update( blake2b_state *S, const void *pin, size_t inlen )
{
  const unsigned char * in = (const unsigned char *)pin;
  if( inlen > 0 )
  {
    size_t left = S->buflen;
    size_t fill = BLAKE2B_BLOCKBYTES - left;
    if( inlen > fill )
    {
      S->buflen = 0;
      memcpy( S->buf + left, in, fill ); /* Fill buffer */
      blake2b_increment_counter( S, BLAKE2B_BLOCKBYTES );
      blake2b_compress( S, S->buf ); /* Compress */
      in += fill; inlen -= fill;
      while(inlen > BLAKE2B_BLOCKBYTES) {
        blake2b_increment_counter(S, BLAKE2B_BLOCKBYTES);
        blake2b_compress( S, in );
        in += BLAKE2B_BLOCKBYTES;
        inlen -= BLAKE2B_BLOCKBYTES;
      }
    }
    memcpy( S->buf + S->buflen, in, inlen );
    S->buflen += inlen;
  }
  return 0;
}

// Assembly:
testq %rdx, %rdx
je 0x838c
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0xe0(%rdi), %rax
movl $0x80, %r12d
subq %rax, %r12
movq %rdx, %r15
subq %r12, %r15
jbe 0x835f
movq $0x0, 0xe0(%rbx)
leaq 0x60(%rbx), %r13
leaq (%rbx,%rax), %rdi
addq $0x60, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x31e0
movq 0x40(%rbx), %rax
subq $-0x80, %rax
movq %rax, 0x40(%rbx)
sbbq $-0x1, 0x48(%rbx)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x838f
addq %r12, %r14
cmpq $0x81, %r15
jb 0x8362
movl $0x80, %r12d
movq 0x40(%rbx), %rax
leaq (%rax,%r12), %rcx
movq %rcx, 0x40(%rbx)
cmpq $-0x80, %rax
sbbq $-0x1, 0x48(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x838f
addq %r12, %r14
addq $-0x80, %r15
cmpq %r12, %r15
ja 0x8331
jmp 0x8362
movq %rdx, %r15
movq 0xe0(%rbx), %rax
leaq (%rbx,%rax), %rdi
addq $0x60, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x31e0
addq %r15, 0xe0(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/ndsol[P]git-mine/blake2b-ref.c
// Function: blake2b_final
int blake2b_final( blake2b_state *S, void *out, size_t outlen )
{
  uint8_t buffer[BLAKE2B_OUTBYTES] = {0};
  size_t i;

  if( out == NULL || outlen < S->outlen )
    return -1;

  if( blake2b_is_lastblock( S ) )
    return -1;

  blake2b_increment_counter( S, S->buflen );
  blake2b_set_lastblock( S );
  memset( S->buf + S->buflen, 0, BLAKE2B_BLOCKBYTES - S->buflen ); /* Padding */
  blake2b_compress( S, S->buf );

  for( i = 0; i < 8; ++i ) /* Output full hash to temp buffer */
    store64( buffer + sizeof( S->h[i] ) * i, S->h[i] );

  memcpy( out, buffer, S->outlen );
  secure_zero_memory(buffer, sizeof(buffer));
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rsi, %rsi
je 0xae28
movq %rdi, %r14
cmpq %rdx, 0xe8(%rdi)
ja 0xae28
cmpq $0x0, 0x50(%r14)
jne 0xae28
movq %rsi, %rbx
movq 0xe0(%r14), %rax
addq %rax, 0x40(%r14)
adcq $0x0, 0x48(%r14)
cmpb $0x0, 0xf0(%r14)
je 0xadbc
movq $-0x1, 0x58(%r14)
movq $-0x1, 0x50(%r14)
leaq 0x60(%r14), %r15
leaq (%r14,%rax), %rdi
addq $0x60, %rdi
movl $0x80, %edx
subq %rax, %rdx
xorl %r12d, %r12d
xorl %esi, %esi
callq 0x3170
movq %r14, %rdi
movq %r15, %rsi
callq 0x838f
movq (%r14,%r12,8), %rax
movq %rax, (%rsp,%r12,8)
incq %r12
cmpq $0x8, %r12
jne 0xaded
movq 0xe8(%r14), %rdx
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x31e0
movq 0x4f5e(%rip), %rax      # 0xfd78
xorl %ebp, %ebp
movl $0x40, %edx
movq %r14, %rdi
xorl %esi, %esi
callq *%rax
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ndsol[P]git-mine/blake2b-ref.c
// Function: blake2b
int blake2b( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen )
{
  blake2b_state S[1];

  /* Verify parameters */
  if ( NULL == in && inlen > 0 ) return -1;

  if ( NULL == out ) return -1;

  if( NULL == key && keylen > 0 ) return -1;

  if( !outlen || outlen > BLAKE2B_OUTBYTES ) return -1;

  if( keylen > BLAKE2B_KEYBYTES ) return -1;

  if( keylen > 0 )
  {
    if( blake2b_init_key( S, outlen, key, keylen ) < 0 ) return -1;
  }
  else
  {
    if( blake2b_init( S, outlen ) < 0 ) return -1;
  }

  blake2b_update( S, ( const uint8_t * )in, inlen );
  blake2b_final( S, out, outlen );
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rcx, %r15
testq %rdx, %rdx
sete %al
testq %rcx, %rcx
setne %cl
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0xaf07
andb %cl, %al
jne 0xaf07
testq %r8, %r8
sete %al
testq %r9, %r9
setne %cl
cmpq $0x40, %r9
ja 0xaf07
movq %rdx, %r12
movq %rsi, %rbx
leaq -0x41(%rsi), %rdx
cmpq $-0x40, %rdx
jb 0xaf07
andb %cl, %al
jne 0xaf07
movq %rdi, %r14
testq %r9, %r9
je 0xaeb8
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
movq %r8, %rdx
movq %r9, %rcx
callq 0x81c6
testl %eax, %eax
jns 0xaee4
jmp 0xaf07
movq %rsp, %rsi
movb %bl, (%rsi)
movw $0x100, 0x1(%rsi)       # imm = 0x100
movb $0x1, 0x3(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rsi)
movups %xmm0, 0x14(%rsi)
movups %xmm0, 0x24(%rsi)
movups %xmm0, 0x30(%rsi)
leaq 0x40(%rsp), %rdi
callq 0x8114
leaq 0x40(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x82b1
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xad4c
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ndsol[P]git-mine/hashapi.cpp
// Function: hexdump(char*, unsigned long, unsigned char*, unsigned long)
int hexdump(char* buf, size_t buflen, uint8_t* bytes, size_t byteslen) {
  char* p = buf;
  size_t len = buflen;
  for (size_t i = 0; len > 0 && i < byteslen; i++) {
    size_t r = snprintf(p, len, "%02x", bytes[i]);
    if (r < len) {
      p += r;
      len -= r;
    } else {
      fprintf(stderr, "overflow on byte %zu\n", i);
      return 1;
    }
  }
  if (len) {
    *p = 0;
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, %r12
movq %rdi, %rbx
testq %rsi, %rsi
sete %al
movq %rcx, 0x8(%rsp)
testq %rcx, %rcx
sete %r13b
orb %al, %r13b
je 0xaf77
movq %r12, %r15
movl $0x1, %eax
testb $0x1, %r13b
je 0xaf68
xorl %eax, %eax
testq %r15, %r15
je 0xaf68
movb $0x0, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
movq %r12, %r15
movq 0x10(%rsp), %rax
movzbl (%rax,%rbp), %ecx
movq %rbx, %rdi
movq %r12, %rsi
leaq 0x181e(%rip), %rdx      # 0xc7b0
xorl %eax, %eax
callq 0x33e0
movslq %eax, %r14
subq %r14, %r15
jbe 0xafc5
addq %r14, %rbx
cmpq %r14, %r12
jbe 0xaf53
incq %rbp
testq %r15, %r15
sete %al
cmpq 0x8(%rsp), %rbp
setae %r13b
orb %al, %r13b
movq %r15, %r12
je 0xaf7c
jmp 0xaf53
movq 0x5004(%rip), %rax      # 0xffd0
movq (%rax), %rdi
leaq 0x17df(%rip), %rsi      # 0xc7b5
movq %rbp, %rdx
xorl %eax, %eax
callq 0x3340
movq %r12, %r15
jmp 0xafa4
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/demo1.cpp
// Function: main
int main()
{
    redisContext *conn = redisConnect("127.0.0.1", 6379);
    if (conn != NULL && conn->err) {
        printf("connection error: %s\n", conn->errstr);
        return 0;
    }

    redisReply *reply;
    reply = (redisReply*)redisCommand(conn, "SET %s %s", "foo", "bar");
    freeReplyObject(reply);

    reply =(redisReply*) redisCommand(conn, "GET %s", "foo");
    std::cout<< reply->str<<std::endl;
    reply = (redisReply*) redisCommand(conn, "lrange list1 0 %s","-1");
    cout<<reply->str<<endl;
    freeReplyObject(reply);
    redisFree(conn);
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x10869(%rip), %rdi     # 0x14004
movl $0x18eb, %esi           # imm = 0x18EB
callq 0xcf60
movq %rax, %rbx
testq %rax, %rax
je 0x37cc
cmpl $0x0, (%rbx)
je 0x37cc
addq $0x4, %rbx
leaq 0x10851(%rip), %rdi     # 0x1400e
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3060
jmp 0x390a
leaq 0x10851(%rip), %rsi     # 0x14024
leaq 0x10854(%rip), %r14     # 0x1402e
leaq 0x10851(%rip), %rcx     # 0x14032
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xda60
movq %rax, %rdi
callq 0xb3b0
leaq 0x10839(%rip), %rsi     # 0x14036
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xda60
movq 0x18(%rax), %r14
testq %r14, %r14
je 0x382f
movq %r14, %rdi
callq 0x3180
movq 0x167b6(%rip), %rdi     # 0x19fd8
movq %r14, %rsi
movq %rax, %rdx
callq 0x33c0
jmp 0x384d
movq 0x167a2(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x3540
movq 0x16784(%rip), %r14     # 0x19fd8
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3350
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3270
leaq 0x107bb(%rip), %rsi     # 0x1403d
leaq 0x107c6(%rip), %rdx     # 0x1404f
movq %rbx, %rdi
xorl %eax, %eax
callq 0xda60
movq %rax, %r15
movq 0x18(%rax), %r12
testq %r12, %r12
je 0x38bb
movq %r12, %rdi
callq 0x3180
movq 0x1672a(%rip), %rdi     # 0x19fd8
movq %r12, %rsi
movq %rax, %rdx
callq 0x33c0
jmp 0x38d3
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x3540
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3350
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3270
movq %r15, %rdi
callq 0xb3b0
movq %rbx, %rdi
callq 0xcca0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Diggie-Bro[P]StreamCode/test/../misc/../src/builtin/io.h
// Function: getIOModule()
struct Module getIOModule() {
    struct Module ioModule;
    ioModule.module_names_ = "io";
    ioModule.configure_file_ = "io/config.strmcode";

    vector<string> module_vector;
    module_vector.push_back("io/cio.h");
    ioModule.module_files_ = module_vector;
    
    return ioModule;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb %al, 0x10(%rdi)
leaq 0x30(%rdi), %rcx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb %al, 0x30(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movq %rax, 0x50(%rdi)
leaq 0x2c47(%rip), %rcx      # 0x5024
movl $0x2, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21b0
leaq 0x20(%rbx), %rdi
movq 0x28(%rbx), %rdx
leaq 0x2c2c(%rip), %rcx      # 0x5027
movl $0x12, %r8d
xorl %esi, %esi
callq 0x21b0
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
leaq -0x40(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x2c14(%rip), %rsi      # 0x503a
leaq 0x2c15(%rip), %rdx      # 0x5042
leaq -0x50(%rbp), %rdi
callq 0x3fb6
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x3d6a
leaq 0x40(%rbx), %r14
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x2455
callq 0x20f0
leaq -0x30(%rbp), %rsi
movq %r14, %rdi
callq 0x2b00
leaq -0x30(%rbp), %rdi
callq 0x2c68
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x248d
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x2490
callq 0x20f0
jmp 0x2490
movq %rax, %r14
leaq -0x30(%rbp), %rdi
callq 0x2c68
jmp 0x249e
movq %rax, %r14
movq %rbx, %rdi
callq 0x2cb6
movq %r14, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/Diggie-Bro[P]StreamCode/test/../misc/../src/builtin/io.h
// Function: executor(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<Variables, std::allocator<Variables>>)
struct Variables executor(string function, vector<struct Variables> param) {
    if (function == "print") {
        cio_std_out(param.at(0));
        struct Variables return_variable;
        return_variable.type = VOID;
        return_variable.value = "";
        return return_variable;
    } else {
        struct Variables return_variable;
        return_variable.type = VOID;
        return_variable.value = "";
        return return_variable;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x2b78(%rip), %rsi      # 0x5043
movq %rax, %rdi
callq 0x2050
testl %eax, %eax
je 0x2510
leaq 0x8(%rbx), %r14
leaq 0x18(%rbx), %r15
movq %r15, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movb $0x0, 0x18(%rbx)
movl $0x4, (%rbx)
leaq 0x2c17(%rip), %rcx      # 0x5113
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x21b0
jmp 0x259e
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
je 0x25ac
movl (%rax), %ecx
leaq -0x38(%rbp), %rdi
movl %ecx, -0x8(%rdi)
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
callq 0x344e
cmpl $0x2, -0x18(%r14)
jne 0x255c
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq 0x4a81(%rip), %rdi      # 0x6fd8
callq 0x2120
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x256a
callq 0x20f0
leaq 0x8(%rbx), %r14
leaq 0x18(%rbx), %r15
movq %r15, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movb $0x0, 0x18(%rbx)
movl $0x4, (%rbx)
leaq 0x2b84(%rip), %rcx      # 0x5113
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x21b0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
sarq $0x3, %rcx
movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rdx
leaq 0x2b05(%rip), %rdi      # 0x50ca
xorl %esi, %esi
xorl %eax, %eax
callq 0x2190
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
jne 0x25e9
jmp 0x25ee
jmp 0x25de
movq %rax, %rbx
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x25ee
callq 0x20f0
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/Diggie-Bro[P]StreamCode/test/../misc/../src/runtime/memory.h
// Function: VariableManager::editVariable(VariableMem*, Variables&)
void editVariable(struct VariableMem* mem, struct Variables& variable) {
            if (variable.type != mem->type) return;
            if (mem->type == INT) {
                int nvariable = mem->integerMem;
                nvariable = atoi(variable.value.c_str());
            } else if (mem->type == DOUBLE) {
                double nvariable = mem->doubleMem;
                nvariable = atof(variable.value.c_str());
            } else if (mem->type == STRING) {
                string nvariable = mem->stringMem;
            } else if (mem->type == BOOL) {
                bool nvariable = mem->booleanMem;
                nvariable = variable.value == "false" ? false : true;
            }
        }

// Assembly:
movl (%rsi), %eax
cmpl %eax, (%rdx)
jne 0x353a
cmpl $0x3, %eax
je 0x353b
cmpl $0x2, %eax
jne 0x353a
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rsi), %rax
movq 0x40(%rsi), %rdx
addq %rax, %rdx
leaq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x344e
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x3532
callq 0x20f0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
addq $0x8, %rdx
leaq 0x1b52(%rip), %rsi      # 0x5098
movq %rdx, %rdi
jmp 0x2050
// File: /workspace/github_cpp_makefile_star2_O1/Diggie-Bro[P]StreamCode/test/../misc/../src/runtime/memory.h
// Function: VariableManager::declareVariable(Variables&, Variables&)
struct VariableMem declareVariable(struct Variables& varname, struct Variables& variable) {
            // if (varname.type != VARIABLE) break
            struct VariableMem mem {variable.type, varname.value, 0, 0.0, "", true};

            if (variable.type == INT) {
                mem.integerMem = stoi(variable.value);
            } else if (variable.type == DOUBLE) {
                mem.doubleMem = stof(variable.value);
            } else if (variable.type == STRING) {
                mem.stringMem = variable.value;
            } else if (variable.type == BOOL) {
                mem.booleanMem = variable.value == "false" ? false : true;
            } else {
                // :TODO hmmmm..... 
            }

            return mem;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdi, %rbx
movl (%rcx), %eax
movl %eax, (%rdi)
leaq 0x8(%rdi), %r12
leaq 0x18(%rdi), %r13
movq %r13, 0x8(%rdi)
movq 0x8(%rdx), %rsi
movq 0x10(%rdx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x344e
movl $0x0, 0x28(%rbx)
movq $0x0, 0x30(%rbx)
leaq 0x38(%rbx), %r15
leaq 0x48(%rbx), %rax
movq %rax, 0x38(%rbx)
leaq 0x1b6c(%rip), %rdx      # 0x5113
movq %r15, %rdi
movq %rdx, %rsi
callq 0x3fb6
movb $0x1, 0x58(%rbx)
movl (%r14), %eax
cmpq $0x3, %rax
ja 0x36a4
leaq 0x1a3a(%rip), %rcx      # 0x5004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %r15
callq 0x2030
movq %rax, %r14
movl (%rax), %r13d
movl $0x0, (%rax)
leaq -0x30(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x2160
cmpq %r15, (%r12)
je 0x36b6
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x36ce
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x36ce
testl %ecx, %ecx
jne 0x3625
movl %r13d, (%r14)
movl %eax, 0x28(%rbx)
jmp 0x36a4
addq $0x8, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x2090
jmp 0x36a4
addq $0x8, %r14
leaq 0x1a52(%rip), %rsi      # 0x5098
movq %r14, %rdi
callq 0x2050
testl %eax, %eax
setne 0x58(%rbx)
jmp 0x36a4
movq 0x8(%r14), %r15
callq 0x2030
movq %rax, %r14
movl (%rax), %r13d
movl $0x0, (%rax)
leaq -0x30(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x2150
cmpq %r15, (%r12)
je 0x36c2
movl (%r14), %eax
testl %eax, %eax
je 0x3698
cmpl $0x22, %eax
jne 0x369b
leaq 0x1a10(%rip), %rdi      # 0x50a3
callq 0x2170
movl %r13d, (%r14)
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x30(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x19e1(%rip), %rdi      # 0x509e
callq 0x20a0
leaq 0x19da(%rip), %rdi      # 0x50a3
callq 0x20a0
leaq 0x19c9(%rip), %rdi      # 0x509e
callq 0x2170
movq %rax, %r15
jmp 0x36ed
jmp 0x36e1
movq %rax, %r15
cmpl $0x0, (%r14)
jne 0x36ed
movl %r13d, (%r14)
movq %rbx, %rdi
callq 0x3710
jmp 0x3708
movq %rax, %r15
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x3708
callq 0x20f0
movq %r15, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/Diggie-Bro[P]StreamCode/test/../misc/../src/runtime/memory.h
// Function: VariableManager::getVariable(VariableMem*)
struct Variables getVariable(struct VariableMem* mem) {
            struct Variables variable {mem->type, ""};
            if (mem->type == INT) variable.value = to_string(mem->integerMem);
            else if (mem->type == DOUBLE) variable.value = to_string(mem->doubleMem);
            else if (mem->type == STRING) variable.value = mem->stringMem;
            else if (mem->type == BOOL) variable.value = (mem->booleanMem == true ? "true" : "false");
            return variable;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rdi, %rbx
movl (%rdx), %eax
movl %eax, (%rdi)
leaq 0x8(%rdi), %r14
leaq 0x18(%rdi), %r12
movq %r12, 0x8(%rdi)
leaq 0x199f(%rip), %rdx      # 0x5113
movq %r14, %rdi
movq %rdx, %rsi
callq 0x3fb6
movl (%r15), %eax
cmpq $0x3, %rax
ja 0x38e7
leaq 0x1881(%rip), %rcx      # 0x5014
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r12, -0x30(%rbp)
movl 0x28(%r15), %r15d
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %r13d
cmpl $0xa, %r12d
jb 0x3894
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x388b
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3891
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3894
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x37cc
addl $-0x3, %r13d
jmp 0x3894
addq $0x38, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2090
jmp 0x38e7
movzbl 0x58(%r15), %r8d
leaq 0x1894(%rip), %rax      # 0x50c2
leaq 0x1863(%rip), %rcx      # 0x5098
testq %r8, %r8
cmovneq %rax, %rcx
movq 0x10(%rbx), %rdx
xorq $0x5, %r8
movq %r14, %rdi
xorl %esi, %esi
callq 0x21b0
jmp 0x38e7
movsd 0x30(%r15), %xmm0
movq 0x3768(%rip), %rsi      # 0x6fc8
leaq 0x1860(%rip), %rcx      # 0x50c7
leaq -0x50(%rbp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x3cb8
leaq -0x50(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2140
movq (%r15), %rdi
jmp 0x38d9
addl $-0x2, %r13d
jmp 0x3894
decl %r13d
shrl $0x1f, %r15d
leal (%r15,%r13), %esi
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x50(%rbp), %rdi
movl $0x2d, %edx
callq 0x2130
leaq -0x50(%rbp), %rax
addq (%rax), %r15
movq %r15, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x3c46
movq %r14, %rdi
leaq -0x50(%rbp), %r14
movq %r14, %rsi
callq 0x2140
movq (%r14), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x38e7
callq 0x20f0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3901
jmp 0x38fd
movq %r12, -0x30(%rbp)
movq %rax, %r14
movq 0x8(%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x3913
callq 0x20f0
movq %r14, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/onlyuser[P]Sandbox/test_c/pre_0x/main3.cpp
// Function: main
int main(int argc, char** argv)
{
    int x = 0;

    // function declaration!! -- because "int(x)" is interpreted as "int x"
    // NOTE: "int(x)" is not a typecast
    int y(int(x));
    std::cout << typeid(y).name() << std::endl; // int (int)

    // variable initialization -- because "g" is not a type
    int f(g(x));
    std::cout << typeid(f).name() << std::endl; // int

    // function declaration!! -- because "g2" is a type
    // NOTE: "g2()" is not a default constructor call
    g2 f2(g2());
    std::cout << typeid(f2).name() << std::endl; // g2 (g2 (*)())

    // function declaration!! -- because "g3" is a type
    int f3(g3(x));
    std::cout << typeid(f3).name() << std::endl; // int (int (*)(int))

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x2dfe(%rip), %rbx      # 0x3fd8
leaq 0xe23(%rip), %rsi       # 0x2004
movl $0x4, %edx
movq %rbx, %rdi
callq 0x1080
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movq 0x2da4(%rip), %rax      # 0x3fc0
movq 0x8(%rax), %rax
xorl %r14d, %r14d
cmpb $0x2a, (%rax)
sete %r14b
addq %rax, %r14
movq %r14, %rdi
callq 0x1040
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1080
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
leaq 0xd98(%rip), %rsi       # 0x2009
movl $0xb, %edx
movq %rbx, %rdi
callq 0x1080
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
leaq 0xd69(%rip), %rsi       # 0x2015
movl $0x8, %edx
movq %rbx, %rdi
callq 0x1080
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void print_array<unsigned int, unsigned long>(unsigned int*, unsigned long)
void print_array(T *a, I n) {
    if (n < 50) {
        for (I i = 0; i < n-1; i++) {
            std::cout << a[i] << ",";
        }
        std::cout << a[n-1] << std::endl;
    }
}

// Assembly:
cmpq $0x31, %rsi
ja 0x23dd
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %r13
decq %r13
je 0x2394
xorl %ebp, %ebp
movq 0x3c67(%rip), %r15      # 0x5fd0
leaq 0x1f5e(%rip), %r12      # 0x42ce
movl (%r14,%rbp,4), %esi
movq %r15, %rdi
callq 0x10a0
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x1110
incq %rbp
cmpq %rbp, %r13
jne 0x2370
movl -0x4(%r14,%rbx,4), %esi
movq 0x3c30(%rip), %rdi      # 0x5fd0
callq 0x10a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10b0
retq
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void jain_inshuffle<unsigned int, unsigned long>(unsigned int*, unsigned long)
void jain_inshuffle(Data *a, Index n) {
	while (n > 1) {
		// Compute appropriate value of m
		Index m = 1;
		while (3*m-1 <= n) m *= 3;
		m -= 1;

		// Move correct m elements to front of the array
		std::rotate(a+m/2, a+n/2, a+n/2+m/2);

		// Now use Jain's trick to shuffle a[0,...,m-1];
		for (Index g = 1; g < m; g *= 3) {
			Index cur = g-1;
			Data t = a[cur];
			do {
				Index nxt = inshuffle_perm3(cur, m);
				Data t2 = a[nxt];
				a[nxt] = t;
				t = t2;
				cur = nxt;
			} while (cur != g-1);
		}

		// Recurse on a[m,...n-1]
		a += m;
		n -= m;
	}
}

// Assembly:
cmpq $0x2, %rsi
jb 0x2498
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movl $0x1, %eax
movq %rax, %r12
leaq (%rax,%rax,2), %rax
leaq -0x1(%r12,%r12,2), %rcx
cmpq %rbx, %rcx
jbe 0x2401
leaq -0x1(%r12), %r13
movq %r13, %rbp
shrq %rbp
leaq (%r14,%rbp,4), %rdi
movq %rbx, %rax
shrq %rax
leaq (%r14,%rax,4), %rsi
leaq (%rsi,%rbp,4), %rdx
callq 0x2c27
cmpq $0x2, %r13
jb 0x2479
movl $0x1, %eax
leaq -0x1(%rax), %rcx
movl -0x4(%r14,%rax,4), %edx
movq %rcx, %rsi
cmpq %rsi, %rbp
leaq 0x1(%rsi,%rsi), %rdi
movq %r12, %rsi
cmovaq %r15, %rsi
subq %rsi, %rdi
movl (%r14,%rdi,4), %r8d
movl %edx, (%r14,%rdi,4)
movq %rdi, %rsi
movl %r8d, %edx
cmpq %rcx, %rdi
jne 0x244b
leaq (%rax,%rax,2), %rax
cmpq %r13, %rax
jb 0x243f
leaq (%r14,%r13,4), %r14
subq %r13, %rbx
cmpq $0x1, %rbx
ja 0x23fc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void check_inshuffle_output<unsigned int, unsigned long>(unsigned int*, unsigned long)
void check_inshuffle_output(Data *a, Index n) {
	for (Index i = 0; i < n; i++) {
		if (a[i] != outshuffle_perm3(i, n)) {
			std::cerr << "Mistake in output!!!" << std::endl;
			exit(-1);
		}
	}
}

// Assembly:
testq %rsi, %rsi
je 0x24cc
movq %rsi, %rax
shrq %rax
xorl %ecx, %ecx
movl (%rdi,%rcx,4), %edx
movq %rcx, %r8
shrq %r8
testb $0x1, %cl
movl $0x0, %r9d
cmoveq %rax, %r9
addq %r8, %r9
cmpq %rdx, %r9
jne 0x24cd
incq %rcx
cmpq %rcx, %rsi
jne 0x24a6
retq
pushq %rax
movq 0x3b1b(%rip), %rdi      # 0x5ff0
leaq 0x1df4(%rip), %rsi      # 0x42d0
callq 0x10f0
movq %rax, %rdi
callq 0x1080
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1120
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void prime_inshuffle<unsigned int, unsigned long>(unsigned int*, unsigned long)
void prime_inshuffle(Data *a, Index n) {
	while (n > 1) {
		// Compute appropriate value of m
		int i = 0;
		while (sprimes[i+1] <= n) i++;
		Index m = sprimes[i];

		// Move correct m elements to front of the array
		std::rotate(a+m/2, a+n/2, a+n/2+m/2);

		// Now use Jain's trick to shuffle a[0,...,m-1];
		Index cur = 0;
		Data t = a[cur];
		do {
			Index nxt = inshuffle_perm3(cur, m);
			Data t2 = a[nxt];
			a[nxt] = t;
			t = t2;
			cur = nxt;
		} while (cur != 0);

		// Recurse on a[m,...n-1]
		a += m;
		n -= m;
	}
}

// Assembly:
cmpq $0x2, %rsi
jb 0x259d
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x3bcb(%rip), %r15      # 0x60e0
xorl %r12d, %r12d
movq $-0x1, %rax
movq %rax, %rcx
incq %rax
cmpq %rbx, 0x10(%r15,%rcx,8)
jbe 0x251f
movl %eax, %eax
movq (%r15,%rax,8), %r13
movq %r13, %rbp
shrq %rbp
leaq (%r14,%rbp,4), %rdi
movq %rbx, %rax
shrq %rax
leaq (%r14,%rax,4), %rsi
leaq (%rsi,%rbp,4), %rdx
callq 0x2c27
movl (%r14), %ecx
movq %r13, %rax
notq %rax
xorl %edx, %edx
cmpq %rdx, %rbp
movq %rax, %rsi
cmovaq %r12, %rsi
leaq (%rsi,%rdx,2), %rdi
leaq 0x1(%rsi,%rdx,2), %rsi
movl 0x4(%r14,%rdi,4), %r8d
movl %ecx, 0x4(%r14,%rdi,4)
movq %rsi, %rdx
movl %r8d, %ecx
testq %rsi, %rsi
jne 0x255a
leaq (%r14,%r13,4), %r14
subq %r13, %rbx
cmpq $0x1, %rbx
ja 0x2518
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void jain_inshuffle_pf<unsigned int, unsigned long>(unsigned int*, unsigned long)
void jain_inshuffle_pf(Data *a, Index n) {
	while (n > 1) {
		// Compute appropriate value of m
		Index m = 1;
		while (3*m-1 <= n) m *= 3;
		m -= 1;

		// Move correct m elements to front of the array
		std::rotate(a+m/2, a+n/2, a+n/2+m/2);

		// Now use Jain's trick to shuffle a[0,...,m-1];
		for (Index g = 1; g < m; g *= 3) {
			Index cur = g-1;
			Data t = a[cur];

			const Index readahead = 35;
			Index buf[readahead];
			buf[0] = cur;
			for (Index i = 1; i < readahead; i++) {
				buf[i] = inshuffle_perm3(buf[i-1], m);
				__builtin_prefetch(a+buf[i]);
			}

			Index bicur = 0;
			do {
				Index biprv = bicur == 0 ? readahead-1 : bicur-1;
				Index binxt = bicur+1 == readahead ? 0 : bicur+1;

				buf[bicur] = inshuffle_perm3(buf[biprv], m);
				__builtin_prefetch(a+buf[bicur], 1);

				Data t2 = a[buf[binxt]];
				a[buf[binxt]] = t;
				t = t2;
				bicur = binxt;
			} while (buf[bicur] != g-1);
		}

		// Recurse on a[m,...n-1]
		a += m;
		n -= m;
	}
}

// Assembly:
cmpq $0x2, %rsi
jb 0x26d2
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movl $0x22, %r12d
movl $0x1, %eax
movq %rax, %r13
leaq (%rax,%rax,2), %rax
leaq -0x1(%r13,%r13,2), %rcx
cmpq %rbx, %rcx
jbe 0x25cd
leaq -0x1(%r13), %rbp
movq %rbp, 0x8(%rsp)
shrq %rbp
leaq (%r14,%rbp,4), %rdi
movq %rbx, %rax
shrq %rax
leaq (%r14,%rax,4), %rsi
leaq (%rsi,%rbp,4), %rdx
callq 0x2c27
movq 0x8(%rsp), %r10
cmpq $0x2, %r10
jb 0x26b0
movl $0x1, %eax
leaq -0x1(%rax), %rcx
movl -0x4(%r14,%rax,4), %edx
movq %rcx, 0x10(%rsp)
movl $0x1, %esi
movq 0x8(%rsp,%rsi,8), %rdi
leaq 0x1(%rdi,%rdi), %r8
cmpq %rdi, %rbp
movq %r13, %rdi
cmovaq %r15, %rdi
subq %rdi, %r8
movq %r8, 0x10(%rsp,%rsi,8)
prefetcht0 (%r14,%r8,4)
incq %rsi
cmpq $0x23, %rsi
jne 0x2628
xorl %esi, %esi
movq %rsi, %rdi
subq $0x1, %rdi
cmovbq %r12, %rdi
leaq 0x1(%rsi), %r8
cmpq $0x23, %r8
cmoveq %r15, %r8
movq 0x10(%rsp,%rdi,8), %rdi
leaq 0x1(%rdi,%rdi), %r9
cmpq %rdi, %rbp
movq %r13, %rdi
cmovaq %r15, %rdi
subq %rdi, %r9
movq %r9, 0x10(%rsp,%rsi,8)
prefetchw (%r14,%r9,4)
movq 0x10(%rsp,%r8,8), %rdi
movl (%r14,%rdi,4), %esi
movl %edx, (%r14,%rdi,4)
movl %esi, %edx
movq %r8, %rsi
cmpq %rcx, %rdi
jne 0x2654
leaq (%rax,%rax,2), %rax
cmpq %r10, %rax
jb 0x2615
leaq (%r14,%r10,4), %r14
subq %r10, %rbx
cmpq $0x1, %rbx
ja 0x25c8
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void prime_inshuffle_pf<unsigned int, unsigned long>(unsigned int*, unsigned long)
void prime_inshuffle_pf(Data *a, Index n) {
	while (n > 1) {
		// Compute appropriate value of m
 		int i = 0;
 		while (sprimes[i+1] <= n) i++;
 		Index m = sprimes[i];

		// Move correct m elements to front of the array
		std::rotate(a+m/2, a+n/2, a+n/2+m/2);

		// Now use Jain's trick to shuffle a[0,...,m-1];
		Index cur = 1;
		Data t = a[cur];

		const Index readahead = 35;
		Index buf[readahead];
		buf[0] = cur;
		for (Index i = 1; i < readahead; i++) {
			buf[i] = inshuffle_perm3(buf[i-1], m);
			__builtin_prefetch(a+buf[i]);
		}

		Index bicur = 0;
		do {
			Index biprv = bicur == 0 ? readahead-1 : bicur-1;
			Index binxt = bicur+1 == readahead ? 0 : bicur+1;

			buf[bicur] = inshuffle_perm3(buf[biprv], m);
			__builtin_prefetch(a+buf[bicur], 1);

			Data t2 = a[buf[binxt]];
			a[buf[binxt]] = t;
			t = t2;
			bicur = binxt;
		} while (buf[bicur] != 1);

		// Recurse on a[m,...n-1]
		a += m;
		n -= m;
	}
}

// Assembly:
cmpq $0x2, %rsi
jb 0x27fc
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x39e5(%rip), %r15      # 0x60e0
xorl %r12d, %r12d
movl $0x22, %r13d
movq $-0x1, %rax
movq %rax, %rcx
incq %rax
cmpq %rbx, 0x10(%r15,%rcx,8)
jbe 0x270b
movl %eax, %eax
movq (%r15,%rax,8), %rbp
movq %rbp, 0x8(%rsp)
shrq %rbp
leaq (%r14,%rbp,4), %rdi
movq %rbx, %rax
shrq %rax
leaq (%r14,%rax,4), %rsi
leaq (%rsi,%rbp,4), %rdx
callq 0x2c27
movq 0x8(%rsp), %r10
movl 0x4(%r14), %ecx
movq $0x1, 0x10(%rsp)
movq %r10, %rax
notq %rax
movl $0x1, %edx
movq 0x8(%rsp,%rdx,8), %rsi
cmpq %rsi, %rbp
movq %rax, %rdi
cmovaq %r12, %rdi
leaq (%rdi,%rsi,2), %r8
leaq 0x1(%rdi,%rsi,2), %rsi
movq %rsi, 0x10(%rsp,%rdx,8)
prefetcht0 0x4(%r14,%r8,4)
incq %rdx
cmpq $0x23, %rdx
jne 0x275a
xorl %edx, %edx
movq %rdx, %rsi
subq $0x1, %rsi
cmovbq %r13, %rsi
leaq 0x1(%rdx), %rdi
cmpq $0x23, %rdi
cmoveq %r12, %rdi
movq 0x10(%rsp,%rsi,8), %rsi
cmpq %rsi, %rbp
movq %rax, %r8
cmovaq %r12, %r8
leaq (%r8,%rsi,2), %r9
leaq 0x1(%r8,%rsi,2), %rsi
movq %rsi, 0x10(%rsp,%rdx,8)
prefetchw 0x4(%r14,%r9,4)
movq 0x10(%rsp,%rdi,8), %rsi
movl (%r14,%rsi,4), %edx
movl %ecx, (%r14,%rsi,4)
movl %edx, %ecx
movq %rdi, %rdx
cmpq $0x1, %rsi
jne 0x2788
leaq (%r14,%r10,4), %r14
subq %r10, %rbx
cmpq $0x1, %rbx
ja 0x2704
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void prime_outshuffle<unsigned int, unsigned long>(unsigned int*, unsigned long)
void prime_outshuffle(Data *a, Index n) {
	if (n <= 1) return;

	// Compute appropriate value of m
	int i = 0;
	while (sprimes[i+1] <= n) i++;
	Index m = sprimes[i];

	// Follow the cycle through a[0,...,m-1];
	Index cur = 0;
	Data t[2];
	int flipflop = 0;
	t[flipflop] = a[cur];
	do {
		Index nxt = outshuffle_perm3(cur, m);
		t[!flipflop] = a[nxt];
		a[nxt] = t[flipflop];
		flipflop = !flipflop;
		cur = nxt;
	} while (cur != 0);

	// Recurse on a[m,...n-1]
	prime_outshuffle(a+m, n-m);

	// Regroup odds and evens
	std::rotate(a+m/2, a+m, a+m+(n-m)/2);
}

// Assembly:
cmpq $0x2, %rsi
jb 0x289e
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq $-0x1, %rcx
leaq 0x38bd(%rip), %rax      # 0x60e0
movq %rcx, %rdx
incq %rcx
cmpq %rbx, 0x10(%rax,%rdx,8)
jbe 0x2823
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl (%r14), %ecx
movl %ecx, (%rsp)
movq %rax, %r12
shrq %r12
xorl %ecx, %ecx
xorl %edx, %edx
movq %r12, %rsi
testb $0x1, %cl
je 0x2850
xorl %esi, %esi
shrq %rcx
addq %rsi, %rcx
movl (%r14,%rcx,4), %esi
movl %edx, %edi
xorl $0x1, %edx
movl %esi, (%rsp,%rdx,4)
movl (%rsp,%rdi,4), %esi
movl %esi, (%r14,%rcx,4)
testq %rcx, %rcx
jne 0x2846
leaq (%r14,%rax,4), %r15
subq %rax, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x27fd
leaq (%r14,%r12,4), %rdi
shrq %rbx
leaq (%r15,%rbx,4), %rdx
movq %r15, %rsi
callq 0x2c27
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void check_outshuffle_output<unsigned int, unsigned long>(unsigned int*, unsigned long)
void check_outshuffle_output(Data *a, Index n) {
	for (Index i = 0; i < n; i++) {
		if (a[i] != inshuffle_perm3(i, n)) {
			std::cerr << "Mistake in output!!!" << std::endl;
			exit(-1);
		}
	}
}

// Assembly:
testq %rsi, %rsi
je 0x28dd
movq %rsi, %rax
shrq %rax
movq %rsi, %rcx
notq %rcx
movl $0x1, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
movl (%rdi,%r9,4), %r10d
cmpq %r9, %rax
movq %rcx, %r11
cmovaq %r8, %r11
addq %rdx, %r11
cmpq %r10, %r11
jne 0x28de
incq %r9
addq $0x2, %rdx
cmpq %r9, %rsi
jne 0x28bb
retq
pushq %rax
movq 0x370a(%rip), %rdi      # 0x5ff0
leaq 0x19e3(%rip), %rsi      # 0x42d0
callq 0x10f0
movq %rax, %rdi
callq 0x1080
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1120
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void blocked_outshuffle<96u, false, unsigned int, unsigned long>(unsigned int*, unsigned long)
void blocked_outshuffle(Data *a, Index n) {
	Index r = n % (2*B);
	Index m = n - r;

	prime_outshuffle(a+m, r);

	for(Index i = 0; i < m/(2*B); i++) {
		static_assert(B==96, "Assuming B==96");
		//rev_outshuffle128(a+(2*B)*i);
		rev_outshuffle192(a+(2*B)*i);
		//rev_outshuffle<2*B>(a+(2*B)*i);
	}
	struct block { Data dummy[B];	};
	if (prefetch) {
		prime_outshuffle_pf<4>((block*)a, m/B);
	} else {
		prime_outshuffle((block*)a, m/B);
	}

	// Regroup odds and evens
	std::rotate(a+m/2, a+m, a+m+r/2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r13
movq %rdi, %rbx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
movq %rsi, %rdx
mulxq %rax, %rbp, %rbp
shrq $0x7, %rbp
movq %rbp, %rax
shlq $0x6, %rax
leaq (%rax,%rax,2), %r12
movq %rsi, %r14
subq %r12, %r14
leaq (%rdi,%r12,4), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x27fd
cmpq $0xc0, %r13
jb 0x29b6
xorl %eax, %eax
leaq 0x1993(%rip), %rcx      # 0x42f0
leaq (%rax,%rax,2), %rdx
shlq $0x8, %rdx
addq %rbx, %rdx
movq %rcx, %rsi
xorl %edi, %edi
imulq $0x17c, %rdi, %r8       # imm = 0x17C
movl 0x178(%r8,%rcx), %r8d
movl (%rdx,%r8,4), %r9d
xorl %r8d, %r8d
movl (%rsi,%r8,4), %r10d
movl (%rdx,%r10,4), %r11d
movl %r9d, (%rdx,%r10,4)
incq %r8
movl %r11d, %r9d
cmpq $0x5f, %r8
jne 0x2983
leaq 0x1(%rdi), %r8
addq $0x17c, %rsi            # imm = 0x17C
testq %rdi, %rdi
movq %r8, %rdi
je 0x296d
incq %rax
cmpq %rbp, %rax
jne 0x295d
movq %r12, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
mulxq %rax, %rsi, %rsi
shrq $0x6, %rsi
movq %rbx, %rdi
callq 0x2d9f
shrq %r12
leaq (%rbx,%r12,4), %rdi
shrq %r14
leaq (%r15,%r14,4), %rdx
movq %r15, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2c27
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void jain_outshuffle<unsigned int, unsigned long>(unsigned int*, unsigned long)
void jain_outshuffle(Data *a, Index n) {
	if (n <= 1) return;
	// Compute appropriate value of m
	Index m = 1;
	while (3*m-1 <= n) m *= 3;
	m -= 1;

	// Use Jain's trick to shuffle a[0,...,m-1];
	for (Index g = 1; g < m; g *= 3) {
		Index cur = g-1;
		Data t[2];
		int flipflop = 0;
		t[flipflop] = a[cur];
		do {
			Index nxt = outshuffle_perm3(cur, m);
			t[!flipflop] = a[nxt];
			a[nxt] = t[flipflop];
			flipflop = !flipflop;
			cur = nxt;
		} while (cur != g-1);
	}

	// Recurse on a[m,...n-1]
	jain_outshuffle(a+m, n-m);

	// Regroup odds and evens
	std::rotate(a+m/2, a+m, a+m+(n-m)/2);
}

// Assembly:
cmpq $0x2, %rsi
jae 0x2af3
retq
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %eax
movq %rax, %r12
leaq (%rax,%rax,2), %rax
leaq -0x1(%r12,%r12,2), %rcx
cmpq %rbx, %rcx
jbe 0x2b06
decq %r12
cmpq $0x2, %r12
jb 0x2b72
movq %r12, %rax
shrq %rax
movl $0x1, %ecx
leaq -0x1(%rcx), %rdx
movl -0x4(%r14,%rcx,4), %esi
movl %esi, (%rsp)
movq %rdx, %rsi
xorl %edi, %edi
movq %rax, %r8
testb $0x1, %sil
je 0x2b48
xorl %r8d, %r8d
shrq %rsi
addq %r8, %rsi
movl (%r14,%rsi,4), %r8d
movl %edi, %r9d
xorl $0x1, %edi
movl %r8d, (%rsp,%rdi,4)
movl (%rsp,%r9,4), %r8d
movl %r8d, (%r14,%rsi,4)
cmpq %rdx, %rsi
jne 0x2b3c
leaq (%rcx,%rcx,2), %rcx
cmpq %r12, %rcx
jb 0x2b2b
leaq (%r14,%r12,4), %r15
subq %r12, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2aec
shrq %r12
leaq (%r14,%r12,4), %rdi
shrq %rbx
leaq (%r15,%rbx,4), %rdx
movq %r15, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2c27
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void blocked_eytzinger<96u, true, unsigned int, unsigned long>(unsigned int*, unsigned long)
void blocked_eytzinger(Data *a, Index n) {
	Index h = 0;
	Index m = 0;
	while (m + (1<<h) < n) {
		m += 1<<h;
		h++;
	}
	Index r = n - m;
	blocked_outshuffle<B,prefetch>(a, 2*r);
	std::rotate(a+r, a+2*r, a+n);
	Index one = 1;
	while (h > 0) {
		blocked_outshuffle<B,prefetch>(a, (one<<h)-1);
		h--;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq $-0x1, %r15
xorl %edx, %edx
movl $0x1, %eax
movq %rdx, %rcx
incq %r15
shlxl %r15d, %eax, %edx
movslq %edx, %rdx
addq %rcx, %rdx
cmpq %r14, %rdx
jb 0x2bc1
movq %r14, %r12
subq %rcx, %r12
leaq (%r12,%r12), %rsi
movq %rbx, %rdi
callq 0x29f8
leaq (%rbx,%r12,4), %rdi
leaq (%rbx,%r12,8), %rsi
leaq (%rbx,%r14,4), %rdx
callq 0x2c27
testq %r15, %r15
je 0x2c1b
movq $-0x1, %r14
shlxq %r15, %r14, %rsi
notq %rsi
movq %rbx, %rdi
callq 0x29f8
decq %r15
jne 0x2c06
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/patmorin[P]rotate/jain.cpp
// Function: void prime_outshuffle_pf<4u, void blocked_outshuffle<96u, true, unsigned int, unsigned long>(unsigned int*, unsigned long)::block, unsigned long>(void blocked_outshuffle<96u, true, unsigned int, unsigned long>(unsigned int*, unsigned long)::block*, unsigned int)
void prime_outshuffle_pf(Data *a, Index n) {
	if (n <= 1) return;

	// Compute appropriate value of m
	int i = 0;
	while (sprimes[i+1] <= n) i++;
	Index m = sprimes[i];

	Index cur = 0;
	Index pf = cur;
	for (unsigned i = 0; i < R; i++)
		__builtin_prefetch(a+(pf = outshuffle_perm3(pf, m)), 1);
	Data t[2];
	int flipflop = 0;
	t[flipflop] = a[cur];
	do {
		__builtin_prefetch(a+(pf = outshuffle_perm3(pf, m)), 1);
		Index nxt = outshuffle_perm3(cur, m);
		t[!flipflop] = a[nxt];
		a[nxt] = t[flipflop];
		flipflop = !flipflop;
		cur = nxt;
	} while (cur != 0);

	// Recurse on a[m,...n-1]
	prime_outshuffle(a+m, n-m);

	// Regroup odds and evens
	std::rotate(a+m/2, a+m, a+m+(n-m)/2);
}

// Assembly:
cmpq $0x2, %rsi
jb 0x335d
movq %rdi, %r8
movq $-0x1, %rcx
leaq 0x2ee7(%rip), %rax      # 0x60e0
movq %rcx, %rdx
incq %rcx
cmpq %rsi, 0x10(%rax,%rdx,8)
jbe 0x31f9
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x328, %rsp            # imm = 0x328
movq %rsi, 0x18(%rsp)
movl %ecx, %ecx
movq (%rax,%rcx,8), %rbx
movq %rbx, %rax
shrq %rax
movl $0x4, %ecx
xorl %r13d, %r13d
movq %rax, %rdx
testb $0x1, %r13b
je 0x323b
xorl %edx, %edx
shrq %r13
addq %rdx, %r13
leaq (%r13,%r13,2), %rdx
shlq $0x7, %rdx
prefetchw (%r8,%rdx)
decl %ecx
jne 0x3230
leaq 0x20(%rsp), %rdi
movl $0x180, %edx            # imm = 0x180
movq %r8, 0x8(%rsp)
movq %r8, %rsi
callq 0x10c0
movq %rbx, 0x10(%rsp)
movq %rbx, %rbp
shrq %rbp
xorl %r12d, %r12d
xorl %ebx, %ebx
movq %rbp, %rax
testb $0x1, %r13b
je 0x3285
xorl %eax, %eax
shrq %r13
addq %rax, %r13
leaq (%r13,%r13,2), %rax
shlq $0x7, %rax
movq 0x8(%rsp), %rcx
prefetchw (%rcx,%rax)
movq %rbp, %rax
testb $0x1, %r12b
je 0x32a8
xorl %eax, %eax
shrq %r12
addq %rax, %r12
leaq (%r12,%r12,2), %r15
shlq $0x7, %r15
addq %rcx, %r15
movl %ebx, %r14d
xorl $0x1, %r14d
leaq (%r14,%r14,2), %rax
shlq $0x7, %rax
leaq 0x20(%rsp,%rax), %rdi
movl $0x180, %edx            # imm = 0x180
movq %r15, %rsi
callq 0x10c0
movl %ebx, %eax
leaq (%rax,%rax,2), %rax
shlq $0x7, %rax
leaq 0x20(%rsp,%rax), %rsi
movl $0x180, %edx            # imm = 0x180
movq %r15, %rdi
callq 0x10c0
movl %r14d, %ebx
testq %r12, %r12
jne 0x327a
movq 0x10(%rsp), %rax
leaq (%rax,%rax,2), %r15
shlq $0x7, %r15
movq 0x8(%rsp), %r14
addq %r14, %r15
movq 0x18(%rsp), %rbx
subq %rax, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x335e
leaq (%rbp,%rbp,2), %rdi
shlq $0x7, %rdi
addq %r14, %rdi
shrq %rbx
leaq (%rbx,%rbx,2), %rdx
shlq $0x7, %rdx
addq %r15, %rdx
movq %r15, %rsi
callq 0x347b
addq $0x328, %rsp            # imm = 0x328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/OpenFirework[P]MyJPEG_Decoder/./jpeg/jpeg_decoder.cpp
// Function: init_c()
void init_c() {
    for(int i=0;i<8;i++) {
        if(i==0) {
            cu[i] = sqrt(1.0/8.0);
            cv[i] = sqrt(1.0/8.0);
        } else {
            cu[i] = sqrt(2.0/8.0);
            cv[i] = sqrt(2.0/8.0);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movabsq $0x3fd6a09e667f3bcd, %rcx # imm = 0x3FD6A09E667F3BCD
leaq 0x5bc5(%rip), %rdx      # 0x8170
movabsq $0x3fe0000000000000, %rsi # imm = 0x3FE0000000000000
leaq 0x5bf4(%rip), %rdi      # 0x81b0
testq %rax, %rax
je 0x25cb
movq %rsi, (%rax,%rdx)
movq %rsi, (%rax,%rdi)
jmp 0x25d9
movq %rcx, 0x5b9e(%rip)      # 0x8170
movq %rcx, 0x5bd7(%rip)      # 0x81b0
addq $0x8, %rax
cmpq $0x40, %rax
jne 0x25bc
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/OpenFirework[P]MyJPEG_Decoder/./jpeg/jpeg_decoder.cpp
// Function: MyJPEG::jpegDecoder::imgread(char const*, int&, int&, unsigned char*&)
int MyJPEG::jpegDecoder::imgread(const char *filename, int &width, int &height, byte *&bgrdata) {
    //读文件
    std::ifstream infile;
    infile.open(filename, std::ios::in|std::ios::binary);

    infile.seekg(0, infile.end);
    int jpgdatalength = infile.tellg();
    infile.seekg(0, infile.beg);
    std::cout << "encoded jpeg data length is " << jpgdatalength<<"\n";

    byte *decoded = new byte[jpgdatalength]; //decode会不断变换，拷贝一份到copyptr，然后删除
    byte *copyptr = decoded;
    infile.read((char*)decoded,jpgdatalength);  //读取编码的jpeg文件数据到内存中
    infile.close();

    int ret = readinfo(decoded, bgrdata, width, height);
    width = bmpwidth;
    height = bmpheight;
    if(copyptr != nullptr) {
        delete[] copyptr;
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x210, %rsp            # imm = 0x210
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
leaq -0x230(%rbp), %r12
movq %r12, %rdi
callq 0x2120
movq %r12, %rdi
movq %r15, %rsi
movl $0xc, %edx
callq 0x20c0
leaq -0x230(%rbp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x2170
leaq -0x230(%rbp), %rdi
callq 0x2220
movq %rax, %r15
leaq -0x230(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2170
movq 0x54cb(%rip), %rdi      # 0x7fd0
leaq 0x2664(%rip), %rsi      # 0x5170
movl $0x1c, %edx
callq 0x2130
movq 0x54b3(%rip), %rdi      # 0x7fd0
movl %r15d, %esi
callq 0x2210
leaq 0x2ad2(%rip), %rsi      # 0x55fe
movl $0x1, %edx
movq %rax, %rdi
callq 0x2130
movslq %r15d, %r12
movq %r12, %rdi
callq 0x2030
movq %rax, %r15
movq %rax, -0x28(%rbp)
leaq -0x230(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x2140
leaq -0x230(%rbp), %rdi
callq 0x2060
leaq -0x28(%rbp), %rsi
callq 0x262c
movl 0x64c8(%rip), %eax      # 0x9040
movl %eax, (%r14)
movl 0x64c3(%rip), %eax      # 0x9044
movl %eax, (%rbx)
movq %r15, %rdi
callq 0x2150
leaq -0x230(%rbp), %rdi
callq 0x2070
xorl %eax, %eax
addq $0x210, %rsp            # imm = 0x210
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2bb3
jmp 0x2bb3
jmp 0x2bb3
jmp 0x2bb3
jmp 0x2bb3
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2230