LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/modules.c
// Function: fileOpen
static void _fileOpen(PKVM* vm) {

  int argc = pkGetArgc(vm);
  if (!pkCheckArgcRange(vm, argc, 1, 2)) return;

  const char* path;
  if (!pkGetArgString(vm, 1, &path, NULL)) return;

  const char* mode_str = "r";
  FileAccessMode mode = FMODE_READ;

  if (argc == 2) {
    if (!pkGetArgString(vm, 2, &mode_str, NULL)) return;

    // Check if the mode string is valid, and update the mode value.
    do {
      if (strcmp(mode_str, "r")  == 0) { mode = FMODE_READ;       break; }
      if (strcmp(mode_str, "w")  == 0) { mode = FMODE_WRITE;      break; }
      if (strcmp(mode_str, "a")  == 0) { mode = FMODE_APPEND;     break; }
      if (strcmp(mode_str, "r+") == 0) { mode = FMODE_READ_EXT;   break; }
      if (strcmp(mode_str, "w+") == 0) { mode = FMODE_WRITE_EXT;  break; }
      if (strcmp(mode_str, "a+") == 0) { mode = FMODE_APPEND_EXT; break; }

      // TODO: (fmt, ...) va_arg for runtime error public api.
      // If we reached here, that means it's an invalid mode string.
      pkSetRuntimeError(vm, "Invalid mode string.");
      return;
    } while (false);
  }

  FILE* fp = fopen(path, mode_str);

  if (fp != NULL) {
    File* file = NEW_OBJ(File);
    initObj(&file->_super, OBJ_FILE);
    file->fp = fp;
    file->mode = mode;
    file->closed = false;

    pkReturnInstNative(vm, (void*)file, OBJ_FILE);

  } else {
    pkReturnNull(vm);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0xeacb
movl %eax, %ebp
pushq $0x1
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
movl %eax, %esi
callq 0xeb1c
testb %al, %al
je 0x1537a
pushq $0x1
popq %r14
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %r14d, %esi
xorl %ecx, %ecx
callq 0xef53
testb %al, %al
je 0x1537a
leaq 0x4b39(%rip), %rsi      # 0x19dda
movq %rsi, (%rsp)
cmpl $0x2, %ebp
jne 0x152fb
pushq $0x2
popq %rbp
movq %rsp, %rdx
movq %rbx, %rdi
movl %ebp, %esi
xorl %ecx, %ecx
callq 0xef53
testb %al, %al
je 0x1537a
movq (%rsp), %rsi
movzbl (%rsi), %eax
cmpl $0x61, %eax
je 0x15359
cmpl $0x77, %eax
je 0x15343
cmpl $0x72, %eax
jne 0x1536b
cmpb $0x0, 0x1(%rsi)
je 0x152fb
cmpb $0x2b, 0x1(%rsi)
jne 0x1536b
cmpb $0x0, 0x2(%rsi)
jne 0x1536b
pushq $0x9
jmp 0x15389
movl %r14d, %ebp
movq 0x8(%rsp), %rdi
callq 0x2310
testq %rax, %rax
je 0x15339
movq %rax, %r14
pushq $0x18
popq %rdi
callq 0x22b0
movl $0x1, (%rax)
movq %r14, 0x8(%rax)
movl %ebp, 0x10(%rax)
movb $0x0, 0x14(%rax)
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf519
jmp 0x1537a
movq %rbx, %rdi
callq 0xf42e
jmp 0x1537a
cmpb $0x0, 0x1(%rsi)
je 0x152fe
cmpb $0x2b, 0x1(%rsi)
jne 0x1536b
cmpb $0x0, 0x2(%rsi)
jne 0x1536b
pushq $0xa
jmp 0x15389
cmpb $0x0, 0x1(%rsi)
je 0x15383
cmpb $0x2b, 0x1(%rsi)
jne 0x1536b
cmpb $0x0, 0x2(%rsi)
je 0x15387
leaq 0x63e1(%rip), %rsi      # 0x1b753
movq %rbx, %rdi
callq 0x9a03
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x4
jmp 0x15389
pushq $0xc
popq %rbp
jmp 0x152fe
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/modules.c
// Function: fileRead
static void _fileRead(PKVM* vm) {
  File* file;
  if (!pkGetArgInst(vm, 1, OBJ_FILE, (void**)&file)) return;

  if (file->closed) {
    pkSetRuntimeError(vm, "Cannot read from a closed file.");
    return;
  }

  if ((file->mode != FMODE_READ) && ((_FMODE_EXT & file->mode) == 0)) {
    pkSetRuntimeError(vm, "File is not readable.");
    return;
  }

  // TODO: this is temproary.
  char buff[2048];
  fread((void*)buff, sizeof(char), sizeof(buff), file->fp);
  pkReturnString(vm, (const char*)buff);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x818, %rsp            # imm = 0x818
movq %rdi, %rbx
pushq $0x1
popq %rdx
leaq 0x8(%rsp), %rcx
movl %edx, %esi
callq 0xf0f8
testb %al, %al
je 0x1540b
movq 0x8(%rsp), %rax
cmpb $0x1, 0x14(%rax)
jne 0x153c3
leaq 0x63a7(%rip), %rsi      # 0x1b768
jmp 0x153dd
movl 0x10(%rax), %ecx
cmpl $0x1, %ecx
sete %dl
andl $0x8, %ecx
shrl $0x3, %ecx
orb %dl, %cl
jne 0x153e7
leaq 0x63ab(%rip), %rsi      # 0x1b788
movq %rbx, %rdi
callq 0x9a03
jmp 0x1540b
movq 0x8(%rax), %rcx
leaq 0x10(%rsp), %r14
pushq $0x1
popq %rsi
movl $0x800, %edx            # imm = 0x800
movq %r14, %rdi
callq 0x20c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf483
addq $0x818, %rsp            # imm = 0x818
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/modules.c
// Function: fileWrite
static void _fileWrite(PKVM* vm) {
  File* file;
  const char* text; uint32_t length;
  if (!pkGetArgInst(vm, 1, OBJ_FILE, (void**)&file)) return;
  if (!pkGetArgString(vm, 2, &text, &length)) return;

  if (file->closed) {
    pkSetRuntimeError(vm, "Cannot write to a closed file.");
    return;
  }

  if ((file->mode != FMODE_WRITE) && ((_FMODE_EXT & file->mode) == 0)) {
    pkSetRuntimeError(vm, "File is not writable.");
    return;
  }

  fwrite(text, sizeof(char), (size_t)length, file->fp);
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rdx
leaq 0x18(%rsp), %rcx
movl %edx, %esi
callq 0xf0f8
testb %al, %al
je 0x15497
pushq $0x2
popq %rsi
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %rcx
movq %rbx, %rdi
callq 0xef53
testb %al, %al
je 0x15497
movq 0x18(%rsp), %rax
cmpb $0x1, 0x14(%rax)
jne 0x1545e
leaq 0x6342(%rip), %rsi      # 0x1b79e
jmp 0x15478
movl 0x10(%rax), %ecx
cmpl $0x2, %ecx
sete %dl
andl $0x8, %ecx
shrl $0x3, %ecx
orb %dl, %cl
jne 0x15482
leaq 0x6345(%rip), %rsi      # 0x1b7bd
movq %rbx, %rdi
callq 0x9a03
jmp 0x15497
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %edx
movq 0x8(%rax), %rcx
pushq $0x1
popq %rsi
callq 0x2380
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/modules.c
// Function: fileClose
static void _fileClose(PKVM* vm) {
  File* file;
  if (!pkGetArgInst(vm, 1, OBJ_FILE, (void**)&file)) return;

  if (file->closed) {
    pkSetRuntimeError(vm, "File already closed.");
    return;
  }

  if (fclose(file->fp) != 0) {
    pkSetRuntimeError(vm, "fclose() failed!\n"                     \
                      "  at " __FILE__ ":" STRINGIFY(__LINE__) ".");
  }
  file->closed = true;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rdx
leaq 0x8(%rsp), %rcx
movl %edx, %esi
callq 0xf0f8
testb %al, %al
je 0x154f9
movq 0x8(%rsp), %rax
cmpb $0x1, 0x14(%rax)
jne 0x154d4
leaq 0x6309(%rip), %rsi      # 0x1b7d3
movq %rbx, %rdi
callq 0x9a03
jmp 0x154f9
movq 0x8(%rax), %rdi
callq 0x2120
testl %eax, %eax
je 0x154f0
leaq 0x6300(%rip), %rsi      # 0x1b7e8
movq %rbx, %rdi
callq 0x9a03
movq 0x8(%rsp), %rax
movb $0x1, 0x14(%rax)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/modules.c
// Function: pathIsFileExists
static inline bool pathIsFileExists(const char* path) {
  FILE* file = fopen(path, "r");
  if (file != NULL) {
    fclose(file);
    return true;
  }
  return false;
}

// Assembly:
pushq %rbx
leaq 0x487f(%rip), %rsi      # 0x19dda
callq 0x2310
movq %rax, %rbx
testq %rax, %rax
je 0x15570
movq %rbx, %rdi
callq 0x2120
testq %rbx, %rbx
setne %al
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/modules.c
// Function: pathIsDirectoryExists
static inline bool pathIsDirectoryExists(const char* path) {
  DIR* dir = opendir(path);
  if (dir) { /* Directory exists. */
    closedir(dir);
    return true;
  } else if (errno == ENOENT) { /* Directory does not exist. */
  } else { /* opendir() failed for some other reason. */
  }

  return false;
}

// Assembly:
pushq %rbx
callq 0x2130
movq %rax, %rbx
testq %rax, %rax
je 0x1558e
movq %rbx, %rdi
callq 0x21e0
testq %rbx, %rbx
setne %al
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/repl.c
// Function: read_line
const char* read_line(uint32_t* length) {
  const int size = 1024;
  char* mem = (char*)malloc(size);
  if (fgets(mem, size, stdin) == NULL) {
    // TODO: handle error.
  }
  size_t len = strlen(mem);

  // FIXME: handle \r\n, this is temp.
  mem[len - 1] = '\0';
  if (length != NULL) *length = (uint32_t)(len - 1);

  return mem;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x400, %edi            # imm = 0x400
callq 0x22b0
movq %rax, %r14
movq 0xda25(%rip), %rax      # 0x22fd8
movq (%rax), %rdx
movq %r14, %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x2220
movq %r14, %rdi
callq 0x2140
movb $0x0, -0x1(%r14,%rax)
testq %rbx, %rbx
je 0x155db
decq %rax
movl %eax, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/utils.c
// Function: byteBufferReserve
void byteBufferReserve(ByteBuffer* buffer, size_t size) {
  if (buffer->capacity < size) {
    int capacity = powerOf2Ceil((int)size);
    if (capacity < MIN_CAPACITY) capacity = MIN_CAPACITY;
    buffer->data = (uint8_t*)realloc(buffer->data, capacity * sizeof(uint8_t));
    buffer->capacity = capacity;
  }
}

// Assembly:
movl 0xc(%rdi), %eax
cmpq %rsi, %rax
jae 0x158e9
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
decl %esi
movl %esi, %eax
sarl %eax
orl %esi, %eax
movl %eax, %ecx
sarl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
sarl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x10, %eax
orl %ecx, %eax
cmpl $0x8, %eax
pushq $0x7
popq %r14
cmovgel %eax, %r14d
incl %r14d
movq (%rdi), %rdi
movq %r14, %rsi
callq 0x22f0
movq %rax, (%rbx)
movl %r14d, 0xc(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/thirdparty/cwalk/cwalk.c
// Function: cwk_path_output
static size_t cwk_path_output(char* buffer, size_t buffer_size, size_t position,
  const char* str)
{
  size_t length;

  // This just does a sized output internally, but first measuring the
  // null-terminated string.
  length = strlen(str);
  return cwk_path_output_sized(buffer, buffer_size, position, str, length);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r12
movq %rcx, %rdi
callq 0x2140
movq %rax, %r14
addq %r15, %rax
xorl %edx, %edx
movq %r13, %rcx
subq %r15, %rcx
cmovaeq %rcx, %rdx
cmpq %r13, %rax
cmovbq %r14, %rdx
testq %rdx, %rdx
je 0x166c0
addq %r15, %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2300
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/thirdparty/argparse/argparse.c
// Function: argparse_short_opt
static int
argparse_short_opt(struct argparse *self, const struct argparse_option *options)
{
    for (; options->type != ARGPARSE_OPT_END; options++) {
        if (options->short_name == *self->optvalue) {
            self->optvalue = self->optvalue[1] ? self->optvalue + 1 : NULL;
            return argparse_getvalue(self, options, 0);
        }
    }
    return -2;
}

// Assembly:
cmpl $0x0, (%rsi)
je 0x16cfc
movb 0x4(%rsi), %cl
movq 0x48(%rdi), %rax
cmpb (%rax), %cl
je 0x16d00
addq $0x38, %rsi
jmp 0x16ce6
pushq $-0x2
popq %rax
retq
leaq 0x1(%rax), %rcx
xorl %edx, %edx
cmpb $0x0, 0x1(%rax)
cmovneq %rcx, %rdx
movq %rdx, 0x48(%rdi)
xorl %edx, %edx
jmp 0x170cd
// File: /workspace/github_c_makefile_star2_O2/atomlang[P]atomlang/cli/thirdparty/argparse/argparse.c
// Function: argparse_error
static void
argparse_error(struct argparse *self, const struct argparse_option *opt,
               const char *reason, int flags)
{
    (void)self;
    if (flags & OPT_LONG) {
        fprintf(stderr, "error: option `--%s` %s\n", opt->long_name, reason);
    } else {
        fprintf(stderr, "error: option `-%c` %s\n", opt->short_name, reason);
    }
    exit(EXIT_FAILURE);
}

// Assembly:
pushq %rax
movq %rsi, %rcx
movq %rdi, %rax
movq 0xbd14(%rip), %rsi      # 0x22ff8
movq (%rsi), %rdi
testb $0x2, %dl
jne 0x17300
movsbl 0x4(%rax), %edx
leaq 0x4819(%rip), %rsi      # 0x1bb10
xorl %eax, %eax
callq 0x2250
jmp 0x17312
movq 0x8(%rax), %rdx
leaq 0x47ec(%rip), %rsi      # 0x1baf7
xorl %eax, %eax
callq 0x2250
pushq $0x1
popq %rdi
callq 0x2370
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/encrypt.c
// Function: crypto_aead_encrypt
int crypto_aead_encrypt(
  unsigned char       *c,
  unsigned long long  *clen,
  const unsigned char *m,
  unsigned long long  mlen,
  const unsigned char *ad,
  unsigned long long  adlen,
  const unsigned char *nsec,
  const unsigned char *npub,
  const unsigned char *k
  )
{
  unsigned long long cr;
  unsigned char tag[TAGBYTES];

  cr = mlen + adlen;
  if( (cr<mlen) && (cr<adlen) ) return -1;

  AEAD_ENC( k, npub, ad, adlen, m, mlen, c, clen, tag );

  Copy( c+*clen, tag, TAGBYTES );
  *clen += TAGBYTES;

  return 0;
}

// Assembly:
movq %rcx, %rax
addq %r9, %rcx
jae 0x1188
pushq $-0x1
popq %rax
retq
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r10
movq %rsi, %rbx
movq %rdi, %r14
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
subq $0x8, %rsp
leaq 0x8(%rsp), %r11
movq %r8, %rdx
movq %r9, %rcx
movq %r10, %r8
movq %rax, %r9
pushq %r11
pushq %rbx
pushq %r14
callq 0x1090
addq $0x20, %rsp
xorl %eax, %eax
cmpq $0x10, %rax
je 0x11de
movb (%rsp,%rax), %cl
movq (%rbx), %rdx
addq %r14, %rdx
movb %cl, (%rax,%rdx)
incq %rax
jmp 0x11c7
addq $0x10, (%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/encrypt.c
// Function: crypto_aead_decrypt
int crypto_aead_decrypt(
  unsigned char       *m,
  unsigned long long  *mlen,
  unsigned char       *nsec,
  const unsigned char *c,
  unsigned long long  clen,
  const unsigned char *ad,
  unsigned long long  adlen,
  const unsigned char *npub,
  const unsigned char *k
  )
{
  unsigned long long cr;
  unsigned char tag[TAGBYTES];

  cr = clen + adlen;
  if( (cr<clen) && (cr<adlen) ) return -1;

  clen -= TAGBYTES;
  if( clen % BLOCK_SIZE ) return -1;
  Copy( tag, c+clen, TAGBYTES );

  return AEAD_DEC( k, npub, ad, adlen, c, clen, tag, m, mlen );
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movq %r9, %rdx
movq %r8, %r9
movq %rcx, %r8
movq %rsi, %r10
movq 0x30(%rsp), %rcx
movq %r9, %rsi
pushq $-0x1
popq %rax
addq %rcx, %rsi
jb 0x1255
addq $-0x10, %r9
testb $0x1f, %r9b
jne 0x1255
movq %rdi, %r11
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
leaq (%r8,%r9), %rax
xorl %ebx, %ebx
cmpq $0x10, %rbx
je 0x123e
movb (%rax,%rbx), %bpl
movb %bpl, (%rsp,%rbx)
incq %rbx
jmp 0x122b
subq $0x8, %rsp
leaq 0x8(%rsp), %rax
pushq %r10
pushq %r11
pushq %rax
callq 0x1080
addq $0x20, %rsp
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/minalpher.c
// Function: AEAD_DEC
int AEAD_DEC(
  const unsigned char     *_K,    /* I    Secret key              */
  const unsigned char     *_N,    /* I    Nonce                   */
  const unsigned char     *_AD,   /* I    Associate Data          */
  const unsigned long long _adlen,/* I    Length of Associate Data*/
  const unsigned char     *_C,    /* I    Ciphertext              */
  const unsigned long long _clen, /* I    Length of Ciphertext    */
  const unsigned char     *_tag,  /* I    Tag                     */

  unsigned char           *M_,    /* O    Message                 */
  unsigned long long      *mlen_  /* O    Length of Message       */
)
{
  int d, ret=0;
  unsigned char tagS[TAGBYTES];

  if( _clen < BLOCK_SIZE ) return -1;
  AEAD_TGEN( _K, _N, _AD, _adlen, _C, _clen, tagS );
  for( d=0; d<TAGBYTES; d++ ){
    if( _tag[d] != tagS[d] ) ret |= 1;
  }
  if( ret != 0 )  return -1;
  if(AEAD_MGEN( _K, _N, _C, _clen, M_, mlen_ ) < 0){
    return -1;
  }

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
pushq $-0x1
popq %rbp
cmpq $0x20, %r9
jb 0x16dc
movq %r9, %r13
movq %r8, %r12
movq 0xa8(%rsp), %rbx
movq 0xa0(%rsp), %r14
leaq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq %rdi, 0x8(%rsp)
movq %rsi, %r15
callq 0x13f9
xorl %eax, %eax
pushq $0x1
popq %rcx
xorl %edx, %edx
cmpq $0x10, %rax
je 0x16d8
movb (%r14,%rax), %sil
cmpb 0x30(%rsp,%rax), %sil
cmovnel %ecx, %edx
incq %rax
jmp 0x16c1
testl %edx, %edx
je 0x16ed
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
shrq $0x5, %r13
pushq $0x1
popq %rbp
xorl %r14d, %r14d
cmpq $0x2, %r13
movq %r15, %rsi
movq 0x8(%rsp), %rdi
jb 0x1755
xorl %eax, %eax
cmpq $0x20, %rax
je 0x171a
movb (%r12,%rax), %cl
movb %cl, 0x40(%rsp,%rax)
incq %rax
jmp 0x1707
movq %rbp, %rdx
leaq 0x40(%rsp), %rcx
leaq 0x10(%rsp), %r8
callq 0x1acb
xorl %eax, %eax
cmpq $0x20, %rax
je 0x1740
movb 0x10(%rsp,%rax), %cl
movb %cl, (%rbx,%rax)
incq %rax
jmp 0x172e
addq $0x2, %rbp
decq %r13
addq $0x20, %r12
addq $0x20, %rbx
addq $0x20, %r14
jmp 0x16f7
xorl %eax, %eax
cmpq $0x20, %rax
je 0x176a
movb (%r12,%rax), %cl
movb %cl, 0x40(%rsp,%rax)
incq %rax
jmp 0x1757
leaq 0x40(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %rbp, %rdx
callq 0x1acb
pushq $0x1f
popq %rcx
movq 0xb0(%rsp), %rsi
pushq $-0x1
popq %rbp
testl %ecx, %ecx
js 0x16dc
movl %ecx, %eax
movzbl 0x10(%rsp,%rax), %edx
testl %edx, %edx
jne 0x17a1
decl %ecx
jmp 0x178a
cmpl $0x80, %edx
jne 0x16dc
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x17c0
movb 0x10(%rsp,%rcx), %dl
movb %dl, (%rbx,%rcx)
incq %rcx
jmp 0x17af
addq %rax, %r14
movq %r14, (%rsi)
xorl %ebp, %ebp
jmp 0x16dc
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/minalpher.c
// Function: TEM_ENC
static void TEM_ENC(
  const unsigned char     *_K,    /* I    Secret key              */
  unsigned char           _flag,  /* I    Flag for the padding    */
  const unsigned char     *_N,    /* I    Nonce                   */
  unsigned long long      _i,     /* I    an integer              */
  unsigned long long      _j,     /* I    an integer              */
  unsigned char           *_M,    /* I    Message                 */

  unsigned char           *C_     /* O    Ciphertext              */
  )
{
  int d;
  unsigned char L[BLOCK_SIZE];

  /*-- L=(K||flag||N) + P(K||flag||N) --*/
  Copy( L, _K, KEYBYTES );
  L[KEYBYTES]   = _flag;
  L[KEYBYTES+1] = 0x00;
  L[KEYBYTES+2] = 0x00;
  for( d=0; d<NONCEBYTES; d++ ) L[d+KEYBYTES+3] = _N[d];

  minalpher_P( L, FORWARD );

  Xor( L, _K, KEYBYTES );
  L[KEYBYTES]   ^= _flag;
  L[KEYBYTES+1] ^= 0x00;
  L[KEYBYTES+2] ^= 0x00;
  for( d=0; d<NONCEBYTES; d++ ) L[d+KEYBYTES+3] ^= _N[d];

  /* C=y^{i}(y+1)^{j}L + P(M+y^{i}(y+1)^{j}L) --*/
  Copy( C_, _M, BLOCK_SIZE );
  TweakGen( L, _i, _j );
  Xor(  C_,  L, BLOCK_SIZE );
  minalpher_P( C_, FORWARD );
  Xor(  C_,  L, BLOCK_SIZE );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r12
movq %r8, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %rdx, %r13
movl %esi, %ebp
movq %rdi, %r14
movq 0x70(%rsp), %rbx
xorl %eax, %eax
cmpq $0x10, %rax
je 0x19af
movb (%r14,%rax), %cl
movb %cl, (%rsp,%rax)
incq %rax
jmp 0x199d
movb %bpl, 0x10(%rsp)
andw $0x0, 0x11(%rsp)
xorl %eax, %eax
cmpq $0xd, %rax
je 0x19d0
movb (%r13,%rax), %cl
movb %cl, 0x13(%rsp,%rax)
incq %rax
jmp 0x19bc
movq %rsp, %rdi
xorl %r15d, %r15d
xorl %esi, %esi
callq 0x1bbc
cmpq $0x10, %r15
je 0x19f0
movb (%r14,%r15), %al
xorb %al, (%rsp,%r15)
incq %r15
jmp 0x19dd
xorb %bpl, 0x10(%rsp)
pushq $0x13
popq %rax
cmpq $0x20, %rax
je 0x1a0b
movb -0x13(%r13,%rax), %cl
xorb %cl, (%rsp,%rax)
incq %rax
jmp 0x19f8
xorl %eax, %eax
cmpq $0x20, %rax
je 0x1a1f
movb (%r12,%rax), %cl
movb %cl, (%rbx,%rax)
incq %rax
jmp 0x1a0d
movq %rsp, %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x1c5e
xorl %eax, %eax
cmpq $0x20, %rax
je 0x1a44
movb (%rsp,%rax), %cl
xorb %cl, (%rbx,%rax)
incq %rax
jmp 0x1a33
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1bbc
cmpq $0x20, %r14
je 0x1a64
movb (%rsp,%r14), %al
xorb %al, (%rbx,%r14)
incq %r14
jmp 0x1a51
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/minalpher.c
// Function: MAC_VERIF
int MAC_VERIF(
  const unsigned char     *_K,    /* I    Secret key              */
  const unsigned char     *_M,    /* I    Message                 */
  unsigned long long      _mlen,  /* I    Length of Message       */

  const unsigned char     *_C,    /* I    Tag to be verified      */
  unsigned long long      _clen   /* I    Length of Tag           */
  )
{
  int result=0;
  unsigned long long d, len=0;
  unsigned char tag[TAGBYTES];

  result = MAC_GEN( _K, _M, _mlen, tag, &len );

  if( len != _clen ) result |= 1;
  for( d=0; d<len; d++ ){
    if( tag[d] != _C[d] ) result |= 1;
  }

  if( result != 0 ) return -1;
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %r8, %r14
movq %rcx, %rbx
leaq 0x18(%rsp), %r15
andq $0x0, (%r15)
movq %rsp, %rcx
movq %r15, %r8
callq 0x1030
movq (%r15), %rax
xorl %ecx, %ecx
cmpq %r14, %rax
setne %cl
xorl %edx, %edx
pushq $0x1
popq %rsi
cmpq %rdx, %rax
je 0x1abb
movb (%rsp,%rdx), %dil
cmpb (%rbx,%rdx), %dil
cmovnel %esi, %ecx
incq %rdx
jmp 0x1aa6
xorl %eax, %eax
negl %ecx
sbbl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/minalpher.c
// Function: TEM_DEC
static void TEM_DEC(
  const unsigned char     *_K,    /* I    Secret key              */
  unsigned char           _flag,  /* I    Flag for the padding    */
  const unsigned char     *_N,    /* I    Nonce                   */
  unsigned long long      _i,     /* I    an integer              */
  unsigned long long      _j,     /* I    an integer              */
  unsigned char           *_C,    /* I    Ciphertext              */

  unsigned char           *M_     /* O    Message                 */
  )
{
  int d;
  unsigned char L[BLOCK_SIZE];

  /*-- L=(K||flag||N) + P(K||flag||N) --*/
  Copy( L, _K, KEYBYTES );
  L[KEYBYTES]   = _flag;
  L[KEYBYTES+1] = 0x00;
  L[KEYBYTES+2] = 0x00;
  for( d=0; d<NONCEBYTES; d++ ) L[d+KEYBYTES+3] = _N[d];

  minalpher_P( L, FORWARD );

  Xor( L, _K, KEYBYTES );
  L[KEYBYTES]   ^= _flag;
  L[KEYBYTES+1] ^= 0x00;
  L[KEYBYTES+2] ^= 0x00;
  for( d=0; d<NONCEBYTES; d++ ) L[d+KEYBYTES+3] ^= _N[d];

  /* M=y^{i}(y+1)^{j}L + P^{-1}(C+y^{i}(y+1)^{j}L)    --*/
  Copy( M_, _C, BLOCK_SIZE );
  TweakGen( L, _i, _j );
  Xor(  M_,  L, BLOCK_SIZE );
  minalpher_P( M_, BACKWARD );
  Xor(  M_,  L, BLOCK_SIZE );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r13
xorl %eax, %eax
cmpq $0x10, %rax
je 0x1afd
movb (%r13,%rax), %cl
movb %cl, (%rsp,%rax)
incq %rax
jmp 0x1aea
movw $0x40, 0x10(%rsp)
movb $0x0, 0x12(%rsp)
xorl %eax, %eax
cmpq $0xd, %rax
je 0x1b1e
movb (%r12,%rax), %cl
movb %cl, 0x13(%rsp,%rax)
incq %rax
jmp 0x1b0b
movq %rsp, %rdi
xorl %ebp, %ebp
xorl %esi, %esi
callq 0x1bbc
cmpq $0x10, %rbp
je 0x1b3d
movb (%r13,%rbp), %al
xorb %al, (%rsp,%rbp)
incq %rbp
jmp 0x1b2a
xorb $0x40, 0x10(%rsp)
pushq $0x13
popq %rax
cmpq $0x20, %rax
je 0x1b58
movb -0x13(%r12,%rax), %cl
xorb %cl, (%rsp,%rax)
incq %rax
jmp 0x1b45
xorl %eax, %eax
cmpq $0x20, %rax
je 0x1b6c
movb (%r15,%rax), %cl
movb %cl, (%rbx,%rax)
incq %rax
jmp 0x1b5a
xorl %r15d, %r15d
movq %rsp, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x1c5e
cmpq $0x20, %r15
je 0x1b8f
movb (%rsp,%r15), %al
xorb %al, (%rbx,%r15)
incq %r15
jmp 0x1b7c
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x1bbc
xorl %eax, %eax
cmpq $0x20, %rax
je 0x1bad
movb (%rsp,%rax), %cl
xorb %cl, (%rbx,%rax)
incq %rax
jmp 0x1b9c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/minalpher.c
// Function: minalpher_P
static void minalpher_P(
  unsigned char   *_msg_,     /* I/O  Message                                 */
  unsigned char   _dir        /* I    Direction (0x00)Forward, (0x01)Backward */
)
{
  int r,rn;
  unsigned char dat[BLOCK_SIZE];

  Copy( dat, _msg_, BLOCK_SIZE );
  r = RNUM;

  while( r > 0 ){
    S( dat );
    T( dat );

    if( _dir == FORWARD ){
      rn = RNUM - r;
      M( dat );
      E( dat,rn );
    }else if( _dir == BACKWARD ){
      rn = r-1;
      E( dat,rn );
      M( dat );
    }
    r--;
  }

  S( dat );
  T( dat );

  Copy( _msg_, dat, BLOCK_SIZE );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %rbx
xorl %eax, %eax
cmpq $0x20, %rax
je 0x1be2
movb (%rbx,%rax), %cl
movb %cl, (%rsp,%rax)
incq %rax
jmp 0x1bd1
pushq $0x11
popq %r13
movq %rsp, %r14
movl %r13d, %r15d
movq %r14, %rdi
callq 0x1d23
movq %r14, %rdi
callq 0x1d54
testl %r15d, %r15d
je 0x1c3c
testb %bpl, %bpl
je 0x1c1e
decl %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x1f70
movq %r14, %rdi
callq 0x1f0e
jmp 0x1bec
movl %r13d, %r12d
subl %r15d, %r12d
movq %r14, %rdi
callq 0x1f0e
movq %r14, %rdi
movl %r12d, %esi
callq 0x1f70
decl %r15d
jmp 0x1bec
xorl %eax, %eax
cmpq $0x20, %rax
je 0x1c4f
movb (%rsp,%rax), %cl
movb %cl, (%rbx,%rax)
incq %rax
jmp 0x1c3e
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/minalpher.c
// Function: TweakGen
static void TweakGen(
  unsigned char       *_L_,   /* I/O  Tweak       */
  unsigned long long  _i,     /* I    an integer  */
  unsigned long long  _j      /* I    an integer  */
  )
{
  int d;
  unsigned char t,dat[BLOCK_SIZE];

  /*-- y^{i}(y+1)^{j}L --*/
  while( _j>0 ){

    Copy( dat, _L_, BLOCK_SIZE );
    t = _L_[0];

    for( d=0; d<(BLOCK_SIZE-1); d++ ) _L_[d] = _L_[d+1];
    _L_[31]  = t<<1;
    _L_[28] ^= t;
    _L_[29] ^= t; 

    if( (t&0x80) == 0x80 ) _L_[31] ^= R;
    Xor( _L_, dat, BLOCK_SIZE );

    _j--;
  }

  while( _i>0 ){

    Copy( dat, _L_, BLOCK_SIZE );
    t = _L_[0];

    for( d=0; d<(BLOCK_SIZE-1); d++ ) _L_[d] = _L_[d+1];
    _L_[31]  = t<<1;
    _L_[28] ^= t;
    _L_[29] ^= t; 

    if( (t&0x80) == 0x80 ) _L_[31] ^= R;

    _i--;
  }
}

// Assembly:
movabsq $0x1, %rax
subq $0x1, %rdx
jb 0x1ccd
xorl %ecx, %ecx
cmpq $0x20, %rcx
je 0x1c84
movb (%rdi,%rcx), %r8b
movb %r8b, -0x28(%rsp,%rcx)
incq %rcx
jmp 0x1c70
movb (%rdi), %cl
movq %rax, %r8
cmpq $0x20, %r8
je 0x1c9d
movb (%rdi,%r8), %r9b
movb %r9b, -0x1(%rdi,%r8)
incq %r8
jmp 0x1c89
leal (%rcx,%rcx), %r8d
movb %r8b, 0x1f(%rdi)
xorb %cl, 0x1c(%rdi)
xorb %cl, 0x1d(%rdi)
testb %cl, %cl
jns 0x1cb7
xorb $-0x5d, %r8b
movb %r8b, 0x1f(%rdi)
xorl %ecx, %ecx
cmpq $0x20, %rcx
je 0x1c68
movb -0x28(%rsp,%rcx), %r8b
xorb %r8b, (%rdi,%rcx)
incq %rcx
jmp 0x1cb9
movabsq $0x1, %rax
subq $0x1, %rsi
jb 0x1d22
xorl %ecx, %ecx
cmpq $0x20, %rcx
je 0x1cf1
movb (%rdi,%rcx), %dl
movb %dl, -0x28(%rsp,%rcx)
incq %rcx
jmp 0x1cdf
movb (%rdi), %cl
movq %rax, %rdx
cmpq $0x20, %rdx
je 0x1d0a
movb (%rdi,%rdx), %r8b
movb %r8b, -0x1(%rdi,%rdx)
incq %rdx
jmp 0x1cf6
leal (%rcx,%rcx), %edx
movb %dl, 0x1f(%rdi)
xorb %cl, 0x1c(%rdi)
xorb %cl, 0x1d(%rdi)
testb %cl, %cl
jns 0x1cd7
xorb $-0x5d, %dl
movb %dl, 0x1f(%rdi)
jmp 0x1cd7
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/minalpher.c
// Function: S
static void S( 
  unsigned char *_m_      /* I/O  Message     */
  )       
{
  int i;
  unsigned char t;

  /*--- SubNibbles ---*/
  for( i=0; i<BLOCK_SIZE; i++ ){
    t = _m_[i];
    _m_[i] = (s[t>>4]<<4) | s[t&0x0f];
  }
}

// Assembly:
xorl %eax, %eax
leaq 0x12f4(%rip), %rcx      # 0x3020
cmpq $0x20, %rax
je 0x1d53
movzbl (%rdi,%rax), %edx
movl %edx, %esi
shrl $0x4, %esi
movb (%rsi,%rcx), %sil
shlb $0x4, %sil
andl $0xf, %edx
orb (%rdx,%rcx), %sil
movb %sil, (%rdi,%rax)
incq %rax
jmp 0x1d2c
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/minalpher.c
// Function: M
static void M( 
  unsigned char *_m_      /* I/O  Message     */
  )
{
  int i;
  unsigned char t0,t1,t2,t3;

  /*--- XorMatrix ---*/
  for( i=0; i<BLOCK_SIZE; i+=8 ){
    _m_[i+4] ^= _m_[i];
    _m_[i+5] ^= _m_[i+1];
    _m_[i+6] ^= _m_[i+2];
    _m_[i+7] ^= _m_[i+3];
  }

  /*--- MixColumns ---*/
  for( i=0; i<8; i++ ){
    t0 = _m_[i];
    t1 = _m_[i+8];
    t2 = _m_[i+16];
    t3 = _m_[i+24];

    _m_[i]  = t0 ^ t1 ^ t3;
    _m_[i+ 8] = t1 ^ t2 ^ t0;
    _m_[i+16] = t2 ^ t3 ^ t1;
    _m_[i+24] = t3 ^ t0 ^ t2;
  }
}

// Assembly:
xorl %eax, %eax
cmpq $0x20, %rax
jae 0x1f23
movl (%rdi,%rax), %ecx
xorl %ecx, 0x4(%rdi,%rax)
addq $0x8, %rax
jmp 0x1f10
pushq $-0x8
popq %rax
testq %rax, %rax
je 0x1f6f
movb 0x8(%rdi,%rax), %cl
movb 0x10(%rdi,%rax), %dl
movb 0x18(%rdi,%rax), %sil
movb 0x20(%rdi,%rax), %r8b
movl %esi, %r9d
xorb %dl, %r9b
xorb %cl, %dl
movl %edx, %r10d
xorb %r8b, %r10b
movb %r10b, 0x8(%rdi,%rax)
xorb %sil, %dl
movb %dl, 0x10(%rdi,%rax)
xorb %r8b, %r9b
movb %r9b, 0x18(%rdi,%rax)
xorb %cl, %sil
xorb %r8b, %sil
movb %sil, 0x20(%rdi,%rax)
incq %rax
jmp 0x1f26
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/minalpherv11/ref/minalpher.c
// Function: E
static void E( 
    unsigned char   *_m_,   /* I/O  Message         */
    int             _r      /* I    Round number    */
    )
{
  int i,j;
  unsigned char t;

  j=0;
  for( i=0; i<4; i++ ){
    t = ( ( ((unsigned char)i) ^ (((unsigned char)_r)&0x0f) )<<4 ) | ( ((unsigned char)i) ^ (((unsigned char)_r)&0x0f) );
    _m_[j+4] ^= 0x01 ^ t;
    _m_[j+5] ^= 0x23 ^ t;
    j+=8;
  }   
}

// Assembly:
andl $0xf, %esi
xorl %eax, %eax
cmpl $0x4, %eax
je 0x1f9e
movl %eax, %ecx
xorl %esi, %ecx
imull $0x11, %ecx, %ecx
movb 0x4(%rdi,%rax,8), %dl
xorb %cl, %dl
xorb $0x1, %dl
movb %dl, 0x4(%rdi,%rax,8)
xorb 0x5(%rdi,%rax,8), %cl
xorb $0x23, %cl
movb %cl, 0x5(%rdi,%rax,8)
incq %rax
jmp 0x1f75
retq
nop
// File: /workspace/github_c_makefile_star2_O2/teodorst[P]app-huffman/huffman_codification_mpi.c
// Function: main
int main (int argc, char* argv[]) {

	MPI_Init (&argc, &argv);
    if (argc == 4) {
        huffman_compress(argv[INPUT_FILE], argv[OUTPUT_FILE], argv[CODIFICATION]);
    }
    else {
        printf("Bad arguments\n");
        printf("Usage huffman_serial_codification input_file ouput_file codification_file_name\n");
        MPI_Finalize();
	return 1;
    }

    MPI_Finalize();
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
leaq -0x14(%rbp), %rbx
movl %edi, (%rbx)
leaq -0x10(%rbp), %rax
movq %rsi, (%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10f0
cmpl $0x4, (%rbx)
jne 0x18e9
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
callq 0x1364
xorl %ebx, %ebx
jmp 0x1904
leaq 0x1770(%rip), %rdi      # 0x3060
callq 0x1080
leaq 0x1772(%rip), %rdi      # 0x306e
callq 0x1080
pushq $0x1
popq %rbx
callq 0x11b0
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/acorn128/ref/encrypt.c
// Function: acorn128_initialization
void acorn128_initialization(const unsigned char *key, const unsigned char *iv, unsigned char *state)
{
        int i,j;
        unsigned char m[1536], ks, tem;

        //initialize the state to 0
        for (j = 0; j <= 292; j++) state[j] = 0;

        //set the value of m
        for (j = 0; j <= 127; j++) m[j]     = ( key[j/8] >> (j & 7) ) & 1;
        for (j = 0; j <= 127; j++) m[j+128] = ( iv[j/8]  >> (j & 7) ) & 1;
        m[256] = 1;
        for (j = 257; j <= 1535; j++) m[j]  = 0;

        //run the cipher for 1536 steps
        for (i = 0; i < 1536; i++)
        {
             Encrypt_StateUpdate128(state, m[i], &tem, &ks, 1, 1);
        }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x610, %rsp            # imm = 0x610
movq %rdx, %rbx
xorl %eax, %eax
cmpq $0x125, %rax            # imm = 0x125
je 0x14ef
movb $0x0, (%rbx,%rax)
incq %rax
jmp 0x14de
xorl %eax, %eax
cmpq $0x80, %rax
je 0x1514
movl %eax, %ecx
shrl $0x3, %ecx
movzbl (%rdi,%rcx), %ecx
movl %eax, %edx
andl $0x7, %edx
btl %edx, %ecx
setb 0x10(%rsp,%rax)
incq %rax
jmp 0x14f1
xorl %eax, %eax
cmpq $0x80, %rax
je 0x153c
movl %eax, %ecx
shrl $0x3, %ecx
movzbl (%rsi,%rcx), %ecx
movl %eax, %edx
andl $0x7, %edx
btl %edx, %ecx
setb 0x90(%rsp,%rax)
incq %rax
jmp 0x1516
movb $0x1, 0x110(%rsp)
movl $0x101, %eax            # imm = 0x101
cmpq $0x600, %rax            # imm = 0x600
je 0x155b
movb $0x0, 0x10(%rsp,%rax)
incq %rax
jmp 0x1549
xorl %r12d, %r12d
leaq 0xe(%rsp), %r14
leaq 0xf(%rsp), %r15
pushq $0x1
popq %rbp
cmpq $0x600, %r12            # imm = 0x600
je 0x1593
movzbl 0x10(%rsp,%r12), %esi
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
movl %ebp, %r8d
movl %ebp, %r9d
callq 0x1030
incq %r12
jmp 0x156b
addq $0x610, %rsp            # imm = 0x610
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/acorn128/ref/encrypt.c
// Function: acorn128_tag_generation
void acorn128_tag_generation(unsigned long long msglen, unsigned long long adlen, unsigned char maclen, unsigned char *mac, unsigned char *state)
{
    int i;
    unsigned char plaintextbyte  = 0;
    unsigned char ciphertextbyte = 0;
    unsigned char ksbyte = 0;

    for (i = 0; i < 512/8; i++)
    {
        acorn128_enc_onebyte(state, plaintextbyte, &ciphertextbyte, &ksbyte, 0xff, 0xff);
        if ( i >= (512/8 - 16) ) {mac[i-(512/8-16)] = ksbyte; }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movq %rcx, %r14
xorl %r13d, %r13d
leaq 0xf(%rsp), %r15
movb %r13b, (%r15)
leaq 0xe(%rsp), %r12
movb %r13b, (%r12)
cmpq $0x40, %r13
je 0x1600
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r12, %rcx
movl $0xff, %r8d
movl $0xff, %r9d
callq 0x10d0
cmpq $0x30, %r13
jb 0x15fb
movb 0xe(%rsp), %al
movb %al, -0x30(%r14,%r13)
incq %r13
jmp 0x15ca
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/aimerneige[P]st/x.c
// Function: bmotion
void
bmotion(XEvent *e)
{
	if (!xw.pointerisvisible) {
		XDefineCursor(xw.dpy, xw.win, xw.vpointer);
		xw.pointerisvisible = 1;
		if (!IS_SET(MODE_MOUSEMANY))
			xsetpointermotion(0);
	}

	if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forcemousemod)) {
		mousereport(e);
		return;
	}

	mousesel(e, 0);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0xef1d(%rip)      # 0x1be00
jne 0xcf19
movq 0xee1c(%rip), %rdi      # 0x1bd08
movq 0xee25(%rip), %rsi      # 0x1bd18
movq 0xeef6(%rip), %rdx      # 0x1bdf0
callq 0x5740
movl $0x1, 0xeef7(%rip)      # 0x1be00
testb $-0x80, 0xef39(%rip)    # 0x1be49
jne 0xcf19
xorl %edi, %edi
callq 0xb3fe
movzwl 0xef28(%rip), %eax      # 0x1be48
testw $0xc018, %ax            # imm = 0xC018
je 0xcf35
testb $0x1, 0x50(%rbx)
jne 0xcf35
movq %rbx, %rdi
popq %rbx
jmp 0xd5cc
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0xd82b
// File: /workspace/github_c_makefile_star2_O2/darwin-on-arm[P]darwin-sdk/developer_cmds/what/what.c
// Function: main
int
main(argc, argv)
	int argc;
	char **argv;
{
	if (!*++argv) 
		search();
	else do {
		if (!freopen(*argv, "r", stdin)) {
			perror(*argv);
			exit(1);
		}
		printf("%s\n", *argv);
		search();
	} while(*++argv);
	exit(0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
jne 0x11a1
callq 0x11f4
jmp 0x11e0
movq %rsi, %rbx
addq $0x10, %rbx
movq 0x2e31(%rip), %r15      # 0x3fe0
leaq 0xe4e(%rip), %r14       # 0x2004
movq (%r15), %rdx
movq %r14, %rsi
callq 0x1050
movq -0x8(%rbx), %rdi
testq %rax, %rax
je 0x11e7
callq 0x1040
callq 0x11f4
movq (%rbx), %rdi
addq $0x8, %rbx
testq %rdi, %rdi
jne 0x11b6
xorl %edi, %edi
callq 0x1080
callq 0x1070
pushq $0x1
popq %rdi
callq 0x1080
// File: /workspace/github_c_makefile_star2_O2/darwin-on-arm[P]darwin-sdk/developer_cmds/what/what.c
// Function: search
void
search()
{
	int c;

	while ((c = getchar()) != EOF) {
loop:		if (c != '@')
			continue;
		if ((c = getchar()) != '(')
			goto loop;
		if ((c = getchar()) != '#')
			goto loop;
		if ((c = getchar()) != ')')
			goto loop;
		putchar('\t');
		while ((c = getchar()) != EOF && c && c != '"' &&
		    c != '>' && c != '\n')
			putchar(c);
		putchar('\n');
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
pushq $0x9
popq %rbp
movabsq $-0x7ffffff7fffff7fd, %r14 # imm = 0x8000000800000803
pushq $0xa
popq %rbx
callq 0x1060
cmpl $-0x1, %eax
je 0x125b
cmpl $0x40, %eax
jne 0x1208
callq 0x1060
cmpl $0x28, %eax
jne 0x1212
callq 0x1060
cmpl $0x23, %eax
jne 0x1212
callq 0x1060
cmpl $0x29, %eax
jne 0x1212
movl %ebp, %eax
movl %eax, %edi
callq 0x1030
callq 0x1060
movl %eax, %ecx
incl %ecx
cmpl $0x3f, %ecx
ja 0x1237
btq %rcx, %r14
jae 0x1237
movl %ebx, %edi
callq 0x1030
jmp 0x1208
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/DeforaOS[P]libSystem/tools/configctl.c
// Function: configctl_print
static void _configctl_print(int verbose, char const * section,
		char const * variable, char const * value)
{
	if(verbose < 0)
		return;
	printf("%s%s%s%s%s\n", (verbose > 0 && section != NULL) ? section : "",
			(verbose > 0 && section != NULL && section[0] != '\0')
			? "." : "",
			(verbose > 0) ? variable : "",
			(verbose > 0) ? "=" : "",
			(value != NULL) ? value : "");
}

// Assembly:
testl %edi, %edi
js 0x1553
movq %rcx, %r9
movq %rdx, %rcx
movq %rsi, %rax
setne %r8b
testq %rsi, %rsi
setne %r11b
leaq 0xc36(%rip), %r10       # 0x213f
movq %r10, %rsi
movq %r10, %rdx
testb %r11b, %r8b
cmovneq %rax, %rsi
je 0x152d
cmpb $0x0, (%rax)
leaq 0xc1d(%rip), %rax       # 0x213f
leaq 0xc17(%rip), %rdx       # 0x2140
cmoveq %rax, %rdx
testl %edi, %edi
cmoveq %r10, %rcx
leaq 0xc08(%rip), %r8        # 0x2142
cmoveq %r10, %r8
testq %r9, %r9
cmoveq %r10, %r9
leaq 0xbe8(%rip), %rdi       # 0x2134
xorl %eax, %eax
jmp 0x1060
retq
// File: /workspace/github_c_makefile_star2_O2/smilingthax[P]libfontembed/test_analyze.c
// Function: show_post
void show_post(OTF_FILE *otf) // {{{
{
  assert(otf);
  int len=0;
  char *buf;

  buf=otf_get_table(otf,OTF_TAG('p','o','s','t'),&len);
  if (!buf) {
    assert(len==-1);
    printf("No post table\n");
    return;
  }
  // TODO: check len
  printf("POST: (%d bytes)\n"
         "  version: %08x\n"
         "  italicAngle: %d.%d\n"
         "  underlinePosition: %d\n"
         "  underlineThickness: %d\n"
         "  isFixedPitch: %d\n"
         "  vmType42: %d %d\n"
         "  vmType1: %d %d\n",len,
         get_ULONG(buf),
         get_LONG(buf+4)>>16,get_ULONG(buf+4)&0xffff,
         get_SHORT(buf+8),
         get_SHORT(buf+10),
         get_ULONG(buf+12),
         get_ULONG(buf+16),get_ULONG(buf+20),
         get_ULONG(buf+24),get_ULONG(buf+38));
  free(buf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x24b3
leaq 0x24(%rsp), %r14
andl $0x0, (%r14)
movl $0x706f7374, %esi       # imm = 0x706F7374
movq %r14, %rdx
callq 0x39d0
movq %rax, %rbx
movl (%r14), %eax
testq %rbx, %rbx
je 0x2493
movq %rbx, %rdi
movl %eax, 0xc(%rsp)
callq 0x24e9
movl %eax, 0x8(%rsp)
leaq 0x4(%rbx), %rdi
movzbl 0x4(%rbx), %eax
shll $0x18, %eax
movzbl 0x5(%rbx), %r15d
shll $0x10, %r15d
orl %eax, %r15d
sarl $0x10, %r15d
callq 0x24e9
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
movzbl 0x8(%rbx), %eax
shll $0x8, %eax
movzbl 0x9(%rbx), %ecx
movswl %ax, %r13d
orl %ecx, %r13d
movzbl 0xa(%rbx), %eax
shll $0x8, %eax
movzbl 0xb(%rbx), %ecx
movswl %ax, %r12d
orl %ecx, %r12d
leaq 0xc(%rbx), %rdi
callq 0x24e9
movq %rax, 0x18(%rsp)
leaq 0x10(%rbx), %rdi
callq 0x24e9
movq %rax, 0x10(%rsp)
leaq 0x14(%rbx), %rdi
callq 0x24e9
movl %eax, %r14d
leaq 0x18(%rbx), %rdi
callq 0x24e9
movl %eax, %ebp
movq %rbx, %rdi
addq $0x26, %rdi
callq 0x24e9
movl %eax, %r10d
leaq 0x6bde(%rip), %rdi      # 0x903a
movl 0xc(%rsp), %esi
movl 0x8(%rsp), %edx
movl %r15d, %ecx
movl 0x4(%rsp), %r8d
movl %r13d, %r9d
xorl %eax, %eax
pushq %r10
pushq %rbp
pushq %r14
pushq 0x28(%rsp)
pushq 0x38(%rsp)
pushq %r12
callq 0x2040
addq $0x30, %rsp
movq %rbx, %rdi
callq 0x21a0
jmp 0x24a4
cmpl $-0x1, %eax
jne 0x24cc
leaq 0x6fd8(%rip), %rdi      # 0x9477
callq 0x2200
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6b4a(%rip), %rdi      # 0x9004
leaq 0x6b47(%rip), %rsi      # 0x9008
leaq 0x6b4f(%rip), %rcx      # 0x9017
pushq $0x19
jmp 0x24e3
leaq 0x6b5f(%rip), %rdi      # 0x9032
leaq 0x6b2e(%rip), %rsi      # 0x9008
leaq 0x6b36(%rip), %rcx      # 0x9017
pushq $0x1f
popq %rdx
callq 0x20f0
// File: /workspace/github_c_makefile_star2_O2/smilingthax[P]libfontembed/test_analyze.c
// Function: show_glyf
void show_glyf(OTF_FILE *otf,int full) // {{{
{
  assert(otf);

  // ensure >glyphOffsets and >gly is there
  if ( (!otf->gly)||(!otf->glyphOffsets) ) {
    if (otf_load_glyf(otf)!=0) {
      assert(0);
      return;
    }
  }

  int iA;
  int compGlyf=0,zeroGlyf=0;

  // {{{ glyf
  assert(otf->gly);
  for (iA=0;iA<otf->numGlyphs;iA++) {
    int len=otf_get_glyph(otf,iA);
    if (len==0) {
      zeroGlyf++;
    } else if (get_SHORT(otf->gly)==-1) {
      compGlyf++;
    }
    if (full) {
      printf("%d(%d) ",get_SHORT(otf->gly),len);
    }
  }
  if (full) {
    printf("\n");
  }
  printf("numGlyf(nonnull): %d(%d), composites: %d\n",otf->numGlyphs,otf->numGlyphs-zeroGlyf,compGlyf);
  // }}}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2b03
movl %esi, %ebp
movq %rdi, %rbx
cmpq $0x0, 0x80(%rdi)
je 0x2a41
cmpq $0x0, 0x50(%rbx)
jne 0x2a5f
movq %rbx, %rdi
callq 0x3b22
testl %eax, %eax
jne 0x2b22
cmpq $0x0, 0x80(%rbx)
je 0x2b41
leaq 0x6895(%rip), %r15      # 0x92fb
xorl %r14d, %r14d
xorl %r12d, %r12d
xorl %r13d, %r13d
movzwl 0x4c(%rbx), %esi
cmpl %esi, %r13d
jae 0x2acf
movzwl %r13w, %esi
movq %rbx, %rdi
callq 0x43eb
testl %eax, %eax
je 0x2aa1
movq 0x80(%rbx), %rcx
movb (%rcx), %dl
andb 0x1(%rcx), %dl
xorl %ecx, %ecx
cmpb $-0x1, %dl
sete %cl
addl %ecx, %r14d
jmp 0x2aa4
incl %r12d
testl %ebp, %ebp
je 0x2aca
movq 0x80(%rbx), %rcx
movzbl (%rcx), %edx
shll $0x8, %edx
movzbl 0x1(%rcx), %ecx
movswl %dx, %esi
orl %ecx, %esi
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x2040
incl %r13d
jmp 0x2a6f
testl %ebp, %ebp
je 0x2adf
pushq $0xa
popq %rdi
callq 0x21d0
movzwl 0x4c(%rbx), %esi
movl %esi, %edx
subl %r12d, %edx
leaq 0x6818(%rip), %rdi      # 0x9303
movl %r14d, %ecx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
leaq 0x64fa(%rip), %rdi      # 0x9004
leaq 0x64f7(%rip), %rsi      # 0x9008
leaq 0x67ba(%rip), %rcx      # 0x92d2
movl $0xa8, %edx
callq 0x20f0
leaq 0x69d2(%rip), %rdi      # 0x94fb
leaq 0x64d8(%rip), %rsi      # 0x9008
leaq 0x679b(%rip), %rcx      # 0x92d2
movl $0xad, %edx
callq 0x20f0
leaq 0x67aa(%rip), %rdi      # 0x92f2
leaq 0x64b9(%rip), %rsi      # 0x9008
leaq 0x677c(%rip), %rcx      # 0x92d2
movl $0xb6, %edx
callq 0x20f0
// File: /workspace/github_c_makefile_star2_O2/smilingthax[P]libfontembed/test_analyze.c
// Function: show_hmtx
void show_hmtx(OTF_FILE *otf) // {{{
{
  assert(otf);
  int iA;

  otf_get_width(otf,0); // load table.
  if (!otf->hmtx) {
    printf("NOTE: no hmtx table!\n");
    return;
  }
  printf("hmtx (%d):\n",otf->numberOfHMetrics);
  for (iA=0;iA<otf->numberOfHMetrics;iA++) {
    printf("(%d,%d) ",
           get_USHORT(otf->hmtx+iA*4),
           get_SHORT(otf->hmtx+iA*4+2));
  }
  printf(" (last is repeated for the remaining %d glyphs)\n",otf->numGlyphs-otf->numberOfHMetrics);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2c01
movq %rdi, %rbx
xorl %esi, %esi
callq 0x4201
cmpq $0x0, 0x60(%rbx)
je 0x2bf0
movzwl 0x58(%rbx), %esi
leaq 0x67be(%rip), %rdi      # 0x9348
xorl %eax, %eax
callq 0x2040
leaq 0x67bc(%rip), %r14      # 0x9354
xorl %r15d, %r15d
movzwl 0x58(%rbx), %eax
cmpq %rax, %r15
jae 0x2bd7
movq 0x60(%rbx), %rax
movzwl (%rax,%r15,4), %ecx
rolw $0x8, %cx
movzwl %cx, %esi
movzbl 0x2(%rax,%r15,4), %ecx
shll $0x8, %ecx
movzbl 0x3(%rax,%r15,4), %eax
movswl %cx, %edx
orl %eax, %edx
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
incq %r15
jmp 0x2b9b
movzwl 0x4c(%rbx), %esi
subl %eax, %esi
leaq 0x6779(%rip), %rdi      # 0x935d
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x2040
leaq 0x68b9(%rip), %rdi      # 0x94b0
popq %rbx
popq %r14
popq %r15
jmp 0x2200
leaq 0x63fc(%rip), %rdi      # 0x9004
leaq 0x63f9(%rip), %rsi      # 0x9008
leaq 0x6717(%rip), %rcx      # 0x932d
movl $0xcc, %edx
callq 0x20f0
// File: /workspace/github_c_makefile_star2_O2/shuffle2[P]nx2elf/nx2elf.cpp
// Function: main
int main(int argc, char** argv) {
  if (argc < 2 || !fs::exists(argv[1])) {
    fputs("file or directory", stderr);
    return 1;
  }

  fs::path path(argv[1]);
  if (fs::is_directory(path)) {
    File::iter_files(path, [](const fs::path& nx_path) { NsoToElf(nx_path); });
  } else {
    NsoToElf(path);
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
cmpl $0x2, %edi
jl 0x275d
movq %rsi, %rbx
addq $0x8, %rbx
leaq -0x60(%rbp), %r14
pushq $0x2
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2986
movq %r14, %rdi
callq 0x2967
movl %eax, %r14d
leaq -0x60(%rbp), %rdi
callq 0x29f4
testb %r14b, %r14b
je 0x275d
leaq -0x60(%rbp), %r14
pushq $0x2
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2986
movq %r14, %rdi
callq 0x2a14
testb %al, %al
je 0x2713
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
leaq 0x2ed(%rip), %rax       # 0x293c
movq %rax, -0x68(%rbp)
leaq 0x2f0(%rip), %rax       # 0x294a
movq %rax, -0x70(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x2a56
leaq -0xc0(%rbp), %rbx
leaq -0x38(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2a7a
movups (%rbx), %xmm0
leaq -0x88(%rbp), %rbx
movups %xmm0, -0x8(%rbx)
leaq -0xb8(%rbp), %rdi
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rdi)
callq 0x2ab8
leaq -0xb0(%rbp), %rdi
movq %r14, %rsi
callq 0x2a7a
leaq -0x98(%rbp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r14)
leaq -0xa8(%rbp), %rdi
callq 0x2ab8
leaq -0x90(%rbp), %r15
leaq -0x80(%rbp), %r12
movq -0x88(%rbp), %rax
cmpq -0x98(%rbp), %rax
je 0x271e
movq %r15, %rdi
callq 0x22d0
movq %rax, %r13
movq %rax, %rdi
callq 0x2a14
testb %al, %al
jne 0x2709
movq %r12, %rdi
movq %r13, %rsi
callq 0x2a64
movq %r15, %rdi
callq 0x2080
jmp 0x26d7
leaq -0x60(%rbp), %rdi
callq 0x27bc
jmp 0x2740
movq %r14, %rdi
callq 0x2ab8
movq %rbx, %rdi
callq 0x2ab8
leaq -0x30(%rbp), %rdi
callq 0x2ab8
leaq -0x80(%rbp), %rdi
callq 0x5430
leaq -0x60(%rbp), %rdi
callq 0x29f4
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x14874(%rip), %rax     # 0x16fd8
movq (%rax), %rsi
leaq 0xf9ba(%rip), %rdi      # 0x12128
callq 0x21e0
pushq $0x1
popq %rax
jmp 0x274b
movq %rax, %r15
jmp 0x27a2
jmp 0x277f
movq %rax, %r15
jmp 0x27ab
jmp 0x2786
movq %rax, %r15
movq %r14, %rdi
callq 0x2ab8
movq %rbx, %rdi
callq 0x2ab8
leaq -0x30(%rbp), %rdi
callq 0x2ab8
leaq -0x80(%rbp), %rdi
callq 0x5430
leaq -0x60(%rbp), %rdi
callq 0x29f4
movq %r15, %rdi
callq 0x22b0