LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/atomlang[P]atomlang/cli/modules.c
// Function: pathBaseName
static void _pathBaseName(PKVM* vm) {
  const char* path;
  if (!pkGetArgString(vm, 1, &path, NULL)) return;

  const char* base_name;
  size_t length;
  cwk_path_get_basename(path, &base_name, &length);
  pkReturnString(vm, base_name);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsp, %rdx
movl $0x1, %esi
xorl %ecx, %ecx
callq 0x136ed
testb %al, %al
je 0x1a2fa
movq (%rsp), %rdi
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x1b7b4
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x13a93
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/atomlang[P]atomlang/cli/modules.c
// Function: pathDirName
static void _pathDirName(PKVM* vm) {
  const char* path;
  if (!pkGetArgString(vm, 1, &path, NULL)) return;

  size_t length;
  cwk_path_get_dirname(path, &length);
  pkReturnStringLength(vm, path, length);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdx
movl $0x1, %esi
xorl %ecx, %ecx
callq 0x136ed
testb %al, %al
je 0x1a343
movq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %r14
movq %r14, %rsi
callq 0x1bb6a
movq 0x8(%rsp), %rsi
movq (%r14), %rdx
movq %rbx, %rdi
callq 0x13adf
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/atomlang[P]atomlang/cli/modules.c
// Function: pathGetExtension
static void _pathGetExtension(PKVM* vm) {
  const char* path;
  if (!pkGetArgString(vm, 1, &path, NULL)) return;

  const char* ext;
  size_t length;
  if (cwk_path_get_extension(path, &ext, &length)) {
    pkReturnStringLength(vm, ext, length);
  } else {
    pkReturnStringLength(vm, NULL, 0);
  }
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rdx
movl $0x1, %esi
xorl %ecx, %ecx
callq 0x136ed
testb %al, %al
je 0x1a3d3
movq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x1bba2
testb %al, %al
je 0x1a3c7
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
jmp 0x1a3ce
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x13adf
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/atomlang[P]atomlang/cli/modules.c
// Function: registerModuleFile
void registerModuleFile(PKVM* vm) {
  PkHandle* file = pkNewModule(vm, "File");

  pkModuleAddFunction(vm, file, "open",  _fileOpen, -1);
  pkModuleAddFunction(vm, file, "read",  _fileRead,  1);
  pkModuleAddFunction(vm, file, "write", _fileWrite, 2);
  pkModuleAddFunction(vm, file, "close", _fileClose, 1);

  pkReleaseHandle(vm, file);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x4223(%rip), %rsi      # 0x1e712
callq 0x131a0
movq %rax, %r14
leaq 0x6207(%rip), %rdx      # 0x20705
leaq 0x80(%rip), %rcx        # 0x1a585
movq %rbx, %rdi
movq %rax, %rsi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x13309
leaq 0x61ed(%rip), %rdx      # 0x2070a
leaq 0x1ee(%rip), %rcx       # 0x1a712
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %r8d
callq 0x13309
leaq 0x4688(%rip), %rdx      # 0x1ebc4
leaq 0x25d(%rip), %rcx       # 0x1a7a0
movq %rbx, %rdi
movq %r14, %rsi
movl $0x2, %r8d
callq 0x13309
leaq 0x61b4(%rip), %rdx      # 0x2070f
leaq 0x2ce(%rip), %rcx       # 0x1a830
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %r8d
callq 0x13309
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xb734
// File: /workspace/github_c_makefile_star2_O1/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
leaq 0x8(%rsp), %rcx
movl $0x1, %esi
movl $0x1, %edx
callq 0x13808
testb %al, %al
je 0x1a795
movq 0x8(%rsp), %rax
cmpb $0x1, 0x14(%rax)
jne 0x1a74b
leaq 0x6008(%rip), %rsi      # 0x20751
jmp 0x1a765
movl 0x10(%rax), %ecx
cmpl $0x1, %ecx
sete %dl
andl $0x8, %ecx
shrl $0x3, %ecx
orb %dl, %cl
jne 0x1a76f
leaq 0x600c(%rip), %rsi      # 0x20771
movq %rbx, %rdi
callq 0xe3b6
jmp 0x1a795
movq 0x8(%rax), %rcx
leaq 0x10(%rsp), %r14
movl $0x1, %esi
movl $0x800, %edx            # imm = 0x800
movq %r14, %rdi
callq 0x20c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13a93
addq $0x818, %rsp            # imm = 0x818
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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
leaq 0x18(%rsp), %rcx
movl $0x1, %esi
movl $0x1, %edx
callq 0x13808
testb %al, %al
je 0x1a82a
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %rcx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x136ed
testb %al, %al
je 0x1a82a
movq 0x18(%rsp), %rax
cmpb $0x1, 0x14(%rax)
jne 0x1a7ef
leaq 0x5f9a(%rip), %rsi      # 0x20787
jmp 0x1a809
movl 0x10(%rax), %ecx
cmpl $0x2, %ecx
sete %dl
andl $0x8, %ecx
shrl $0x3, %ecx
orb %dl, %cl
jne 0x1a813
leaq 0x5f9d(%rip), %rsi      # 0x207a6
movq %rbx, %rdi
callq 0xe3b6
jmp 0x1a82a
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %edx
movq 0x8(%rax), %rcx
movl $0x1, %esi
callq 0x2380
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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
leaq 0x8(%rsp), %rcx
movl $0x1, %esi
movl $0x1, %edx
callq 0x13808
testb %al, %al
je 0x1a891
movq 0x8(%rsp), %rax
cmpb $0x1, 0x14(%rax)
jne 0x1a86c
leaq 0x5f5a(%rip), %rsi      # 0x207bc
movq %rbx, %rdi
callq 0xe3b6
jmp 0x1a891
movq 0x8(%rax), %rdi
callq 0x2120
testl %eax, %eax
je 0x1a888
leaq 0x5f51(%rip), %rsi      # 0x207d1
movq %rbx, %rdi
callq 0xe3b6
movq 0x8(%rsp), %rax
movb $0x1, 0x14(%rax)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xf711(%rip), %rax      # 0x29fd8
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 0x1a8ef
decq %rax
movl %eax, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1ac23
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
movl $0x7, %r14d
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_O1/atomlang[P]atomlang/cli/thirdparty/cwalk/cwalk.c
// Function: cwk_path_is_absolute
bool cwk_path_is_absolute(const char* path)
{
  size_t length;

  // We grab the root of the path. This root does not include the first
  // separator of a path.
  cwk_path_get_root(path, &length);

  // Now we can determine whether the root is absolute or not.
  return cwk_path_is_root_absolute(path, length);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rsi
callq 0x1b30a
movq (%r14), %rdx
testq %rdx, %rdx
je 0x1adb9
movl 0xfb73(%rip), %eax      # 0x2a8f0
leaq 0xf03c(%rip), %rcx      # 0x29dc0
movq (%rcx,%rax,8), %rcx
movb (%rcx), %sil
testb %sil, %sil
setne %al
je 0x1adbb
movb -0x1(%rbx,%rdx), %dl
movb $0x1, %al
cmpb %dl, %sil
je 0x1adbb
incq %rcx
movb (%rcx), %sil
testb %sil, %sil
setne %al
cmpb %dl, %sil
je 0x1adbb
incq %rcx
testb %sil, %sil
jne 0x1ada1
jmp 0x1adbb
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/atomlang[P]atomlang/cli/thirdparty/argparse/argparse.c
// Function: argparse_init
int
argparse_init(struct argparse *self, struct argparse_option *options,
              const char *const *usages, int flags)
{
    memset(self, 0, sizeof(*self));
    self->options     = options;
    self->usages      = usages;
    self->flags       = flags;
    self->description = NULL;
    self->epilog      = NULL;
    return 0;
}

// Assembly:
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x30(%rdi)
movq %rsi, (%rdi)
movq %rdx, 0x8(%rdi)
movl %ecx, 0x10(%rdi)
movups %xmm0, 0x18(%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1c65d
movq 0x48(%rdi), %rax
movb (%rax), %cl
cmpb %cl, 0x4(%rsi)
je 0x1c663
cmpl $0x0, 0x38(%rsi)
leaq 0x38(%rsi), %rsi
jne 0x1c64e
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
retq
leaq 0x1(%rax), %rcx
xorl %edx, %edx
cmpb $0x0, 0x1(%rax)
cmovneq %rcx, %rdx
movq %rdx, 0x48(%rdi)
xorl %edx, %edx
jmp 0x1ca98
// File: /workspace/github_c_makefile_star2_O1/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 0xd335(%rip), %rsi      # 0x29ff8
movq (%rsi), %rdi
testb $0x2, %dl
jne 0x1ccdf
movsbl 0x4(%rax), %edx
leaq 0x3e06(%rip), %rsi      # 0x20adc
xorl %eax, %eax
callq 0x2250
jmp 0x1ccf1
movq 0x8(%rax), %rdx
leaq 0x3dd9(%rip), %rsi      # 0x20ac3
xorl %eax, %eax
callq 0x2250
movl $0x1, %edi
callq 0x2370
// File: /workspace/github_c_makefile_star2_O1/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, %r11
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq %r9, %rcx
jb 0x1209
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), %rax
movq %r8, %rdx
movq %r9, %rcx
movq %r10, %r8
movq %r11, %r9
pushq %rax
pushq %rbx
pushq %r14
callq 0x10b0
addq $0x20, %rsp
xorl %eax, %eax
movb (%rsp,%rax), %cl
movq (%rbx), %rdx
addq %r14, %rdx
movb %cl, (%rax,%rdx)
incq %rax
cmpq $0x10, %rax
jne 0x11e7
addq $0x10, (%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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:
subq $0x18, %rsp
movq %r9, %rdx
movq %r8, %r9
movq %rcx, %r8
movq %rsi, %r10
movq 0x20(%rsp), %rcx
movq %r9, %rsi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq %rcx, %rsi
jb 0x1262
addq $-0x10, %r9
testb $0x1f, %r9b
jne 0x1262
movq %rdi, %r11
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
vmovups (%r8,%r9), %xmm0
movq %rsp, %rax
vmovaps %xmm0, (%rax)
subq $0x8, %rsp
pushq %r10
pushq %r11
pushq %rax
callq 0x10a0
addq $0x20, %rsp
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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 $0x78, %rsp
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpq $0x20, %r9
jb 0x1775
movq %r9, %r12
movq %r8, %r15
movq 0xb8(%rsp), %r13
movq 0xb0(%rsp), %rbx
leaq 0x40(%rsp), %rax
movq %rax, (%rsp)
movq %rdi, 0x10(%rsp)
movq %rsi, %r14
callq 0x1450
kxorw %k0, %k0, %k0
xorl %eax, %eax
vmovq (%rbx,%rax), %xmm0
vmovq 0x40(%rsp,%rax), %xmm1
vpcmpneqb %xmm1, %xmm0, %k1
korb %k1, %k0, %k0
addq $0x8, %rax
cmpq $0x10, %rax
jne 0x174f
kortestb %k0, %k0
je 0x1786
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, 0x18(%rsp)
cmpq $0x40, %r12
jb 0x1800
shrq $0x5, %r12
movl $0x1, %r13d
xorl %ebx, %ebx
movq 0xb8(%rsp), %rbp
vmovups (%r15,%rbx), %ymm0
vmovups %ymm0, 0x50(%rsp)
movq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
leaq 0x50(%rsp), %rcx
leaq 0x20(%rsp), %r8
vzeroupper
callq 0x1c3e
movq 0x10(%rsp), %rdi
vmovdqu 0x20(%rsp), %ymm0
vmovdqu %ymm0, (%rbp,%rbx)
addq $0x2, %r13
decq %r12
addq $0x20, %rbx
cmpq $0x1, %r12
ja 0x17a5
movq %r14, %rsi
addq %rbx, %rbp
movq %rbp, 0x18(%rsp)
addq %rbx, %r15
jmp 0x1810
movl $0x1, %r13d
xorl %ebx, %ebx
movq %r14, %rsi
movq 0x10(%rsp), %rdi
xorl %eax, %eax
movb (%r15,%rax), %cl
movb %cl, 0x50(%rsp,%rax)
incq %rax
cmpq $0x20, %rax
jne 0x1812
leaq 0x50(%rsp), %rcx
leaq 0x20(%rsp), %r8
movq %r13, %rdx
vzeroupper
callq 0x1c3e
movl $0x1f, %eax
movq 0xc0(%rsp), %rsi
movq 0x18(%rsp), %rdi
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movzbl 0x20(%rsp,%rax), %ecx
testl %ecx, %ecx
jne 0x1863
addq $-0x1, %rax
jb 0x184f
jmp 0x1775
cmpl $0x80, %ecx
jne 0x1775
testq %rax, %rax
jle 0x1885
xorl %ecx, %ecx
movb 0x20(%rsp,%rcx), %dl
movb %dl, (%rdi,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x1876
addq %rax, %rbx
movq %rbx, (%rsi)
xorl %ebp, %ebp
jmp 0x1775
// File: /workspace/github_c_makefile_star2_O1/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 $0x58, %rsp
movq %r9, %r12
movq %r8, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq %rdx, %r13
movl %esi, 0x4(%rsp)
movq %rdi, %r14
movq 0x90(%rsp), %rbx
vmovups (%rdi), %xmm0
leaq 0x30(%rsp), %r15
vmovaps %xmm0, (%r15)
movb %sil, 0x10(%r15)
movw $0x0, 0x11(%r15)
movq (%rdx), %rax
movq 0x5(%rdx), %rcx
movq %rax, 0x13(%r15)
movq %rcx, 0x18(%r15)
xorl %ebp, %ebp
movq %r15, %rdi
xorl %esi, %esi
callq 0x1d68
vmovaps (%r15), %xmm0
vxorps (%r14), %xmm0, %xmm0
vmovaps %xmm0, (%r15)
movl 0x4(%rsp), %eax
xorb %al, 0x10(%r15)
movw $0x1fff, %ax            # imm = 0x1FFF
kmovd %eax, %k1
vmovdqu8 (%r13), %xmm0 {%k1} {z}
vmovdqu8 0x13(%r15), %xmm1 {%k1} {z}
vpxor %xmm0, %xmm1, %xmm0
vmovdqu8 %xmm0, 0x13(%r15) {%k1}
movb (%r12,%rbp), %al
movb %al, (%rbx,%rbp)
incq %rbp
cmpq $0x20, %rbp
jne 0x1afb
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x286e
vmovups (%r14), %ymm0
vmovups %ymm0, 0x10(%rsp)
vxorps (%rbx), %ymm0, %ymm0
vmovups %ymm0, (%rbx)
movq %rbx, %rdi
xorl %esi, %esi
vzeroupper
callq 0x1d68
vmovups 0x10(%rsp), %ymm0
vxorps (%rbx), %ymm0, %ymm0
vmovups %ymm0, (%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movq %rcx, %r14
leaq 0x18(%rsp), %r15
movq $0x0, (%r15)
movq %rsp, %rcx
movq %r15, %r8
callq 0x1030
movq (%r15), %rax
cmpq %rbx, %rax
setne %cl
testq %rax, %rax
je 0x1c2c
leaq 0x7(%rax), %rcx
andq $-0x8, %rcx
leaq -0x1(%rax), %rdx
kxorw %k0, %k0, %k1
vpbroadcastq %rdx, %ymm0
xorl %edx, %edx
vpmovsxbq 0x14a5(%rip), %ymm1 # 0x3060
vpmovsxbq 0x14a0(%rip), %ymm2 # 0x3064
kmovq %k1, %k0
vpbroadcastq %rdx, %ymm3
vpor %ymm1, %ymm3, %ymm4
vpor %ymm2, %ymm3, %ymm3
vpcmpleuq %ymm0, %ymm3, %k1
vpcmpleuq %ymm0, %ymm4, %k2
kshiftlb $0x4, %k2, %k2
korb %k2, %k1, %k2
kmovb %k2, %k1
vmovdqu8 (%rsp,%rdx), %xmm3 {%k1} {z}
vmovdqu8 (%r14,%rdx), %xmm4 {%k1} {z}
vpcmpneqb %xmm4, %xmm3, %k1
korb %k1, %k0, %k1
addq $0x8, %rdx
cmpq %rdx, %rcx
jne 0x1bc4
cmpq %rbx, %rax
setne %al
kandnb %k0, %k2, %k0
kandb %k2, %k1, %k1
kortestb %k0, %k1
setne %cl
orb %al, %cl
movzbl %cl, %eax
negl %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O1/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 $0x48, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, 0x20(%rsp)
vmovups (%rdi), %xmm0
movq %rsp, %rbp
vmovaps %xmm0, (%rbp)
movw $0x40, 0x10(%rbp)
movb $0x0, 0x12(%rbp)
movq (%rsi), %rax
movq 0x5(%rsi), %rcx
movq %rax, 0x13(%rbp)
movq %rcx, 0x18(%rbp)
xorl %r13d, %r13d
movq %rbp, %rdi
xorl %esi, %esi
callq 0x1d68
vmovaps (%rbp), %xmm0
movq 0x20(%rsp), %rax
vxorps (%rax), %xmm0, %xmm0
vmovaps %xmm0, (%rbp)
xorb $0x40, 0x10(%rbp)
movw $0x1fff, %ax            # imm = 0x1FFF
kmovd %eax, %k1
vmovdqu8 (%r12), %xmm0 {%k1} {z}
vmovdqu8 0x13(%rbp), %xmm1 {%k1} {z}
vpxor %xmm0, %xmm1, %xmm0
vmovdqu8 %xmm0, 0x13(%rbp) {%k1}
movb (%r15,%r13), %al
movb %al, (%rbx,%r13)
incq %r13
cmpq $0x20, %r13
jne 0x1ccd
testq %r14, %r14
je 0x1d25
leaq 0x1(%rsp), %r15
movq %rsp, %r12
movb (%rsp), %r13b
movl $0x1f, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x1090
leal (,%r13,2), %eax
movb %al, 0x1f(%rsp)
xorb %r13b, 0x1c(%rsp)
xorb %r13b, 0x1d(%rsp)
testb %r13b, %r13b
jns 0x1d20
xorb $-0x5d, %al
movb %al, 0x1f(%rsp)
decq %r14
jne 0x1ceb
vmovups (%rsp), %ymm0
vmovups %ymm0, 0x20(%rsp)
vxorps (%rbx), %ymm0, %ymm0
vmovups %ymm0, (%rbx)
movq %rbx, %rdi
movl $0x1, %esi
vzeroupper
callq 0x1d68
vmovups 0x20(%rsp), %ymm0
vxorps (%rbx), %ymm0, %ymm0
vmovups %ymm0, (%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x28e0
movq %rdx, %r15
leaq 0x1(%r14), %r12
vmovups (%r14), %ymm0
vmovups %ymm0, (%rsp)
movb (%r14), %r13b
movl $0x1f, %edx
movq %r14, %rdi
movq %r12, %rsi
vzeroupper
callq 0x1090
leal (,%r13,2), %eax
movb %al, 0x1f(%r14)
xorb %r13b, 0x1c(%r14)
xorb %r13b, 0x1d(%r14)
testb %r13b, %r13b
jns 0x28cc
xorb $-0x5d, %al
movb %al, 0x1f(%r14)
vmovups (%rsp), %ymm0
vxorps (%r14), %ymm0, %ymm0
vmovups %ymm0, (%r14)
decq %r15
jne 0x288d
testq %rbx, %rbx
je 0x291f
leaq 0x1(%r14), %r15
movb (%r14), %r12b
movl $0x1f, %edx
movq %r14, %rdi
movq %r15, %rsi
vzeroupper
callq 0x1090
leal (%r12,%r12), %eax
movb %al, 0x1f(%r14)
xorb %r12b, 0x1c(%r14)
xorb %r12b, 0x1d(%r14)
testb %r12b, %r12b
jns 0x291a
xorb $-0x5d, %al
movb %al, 0x1f(%r14)
decq %rbx
jne 0x28e9
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O1/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:
vpmovsxbq 0x5eb(%rip), %xmm0 # 0x3094
xorl %eax, %eax
vpbroadcastw 0x5e2(%rip), %xmm1 # 0x3096
vpbroadcastw 0x5db(%rip), %xmm2 # 0x3098
vpbroadcastw 0x5d4(%rip), %xmm3 # 0x309a
vpbroadcastw 0x5cd(%rip), %xmm4 # 0x309c
vpbroadcastw 0x5c6(%rip), %xmm5 # 0x309e
vpbroadcastw 0x5bf(%rip), %xmm6 # 0x30a0
vpbroadcastw 0x5b8(%rip), %xmm7 # 0x30a2
vpbroadcastq 0x68d(%rip), %xmm8 # 0x3180
vpbroadcastq 0x68c(%rip), %xmm9 # 0x3188
vpbroadcastq 0x68b(%rip), %xmm10 # 0x3190
vpbroadcastq 0x68a(%rip), %xmm11 # 0x3198
vpbroadcastq 0x689(%rip), %xmm12 # 0x31a0
vmovdqu (%rdi,%rax,8), %xmm13
vpmovqb %xmm13, %xmm14
vpshufb %xmm1, %xmm13, %xmm15
vpshufb %xmm2, %xmm13, %xmm16
vpshufb %xmm3, %xmm13, %xmm17
vpshufb %xmm4, %xmm13, %xmm18
vpxorq %xmm14, %xmm18, %xmm14
vpshufb %xmm5, %xmm13, %xmm18
vpxorq %xmm15, %xmm18, %xmm15
vporq %xmm8, %xmm0, %xmm18
vmovq %xmm18, %rcx
vpextrq $0x1, %xmm18, %rdx
vpshufb %xmm6, %xmm13, %xmm18
vpextrb $0x0, %xmm14, (%rdi,%rcx)
vpextrb $0x1, %xmm14, (%rdi,%rdx)
vpxorq %xmm16, %xmm18, %xmm14
vpshufb %xmm7, %xmm13, %xmm13
vporq %xmm9, %xmm0, %xmm16
vmovq %xmm16, %rcx
vpextrq $0x1, %xmm16, %rdx
vpextrb $0x0, %xmm15, (%rdi,%rcx)
vpextrb $0x1, %xmm15, (%rdi,%rdx)
vpxorq %xmm17, %xmm13, %xmm13
vpor %xmm0, %xmm10, %xmm15
vmovq %xmm15, %rcx
vpextrb $0x0, %xmm14, (%rdi,%rcx)
vpextrq $0x1, %xmm15, %rcx
vpextrb $0x1, %xmm14, (%rdi,%rcx)
vpor %xmm0, %xmm11, %xmm14
vmovq %xmm14, %rcx
vpextrq $0x1, %xmm14, %rdx
vpextrb $0x0, %xmm13, (%rdi,%rcx)
vpextrb $0x1, %xmm13, (%rdi,%rdx)
addq $0x2, %rax
vpaddq %xmm0, %xmm12, %xmm0
cmpq $0x4, %rax
jne 0x2b17
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rdx
movq 0x18(%rdi), %rsi
movq %rdx, %r8
xorq %rcx, %r8
xorq %rax, %rcx
movq %rcx, %r9
xorq %rsi, %r9
vmovq %r9, %xmm0
xorq %rsi, %r8
vmovq %r8, %xmm1
xorq %rdx, %rax
xorq %rsi, %rax
vmovq %rax, %xmm2
vinserti128 $0x1, %xmm2, %ymm1, %ymm1
xorq %rdx, %rcx
vmovq %rcx, %xmm2
vinserti128 $0x1, %xmm2, %ymm0, %ymm0
vpmovsxbq 0x429(%rip), %ymm2 # 0x306c
vpermi2q %ymm1, %ymm0, %ymm2
vmovdqu %ymm2, (%rdi)
vzeroupper
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 0x197d
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
callq 0x1369
xorl %ebx, %ebx
jmp 0x199a
leaq 0x16f8(%rip), %rdi      # 0x307c
callq 0x1080
leaq 0x16fa(%rip), %rdi      # 0x308a
callq 0x1080
movl $0x1, %ebx
callq 0x11b0
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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)
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r12, %rcx
movl $0xff, %r8d
movl $0xff, %r9d
callq 0x10e0
cmpq $0x30, %r13
jb 0x165d
movb 0xe(%rsp), %al
movb %al, -0x30(%r14,%r13)
incq %r13
cmpq $0x40, %r13
jne 0x1632
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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, 0xf400(%rip)      # 0x1ce00
jne 0xda36
movq 0xf2ff(%rip), %rdi      # 0x1cd08
movq 0xf308(%rip), %rsi      # 0x1cd18
movq 0xf3d9(%rip), %rdx      # 0x1cdf0
callq 0x5750
movl $0x1, 0xf3da(%rip)      # 0x1ce00
testb $-0x80, 0xf41c(%rip)    # 0x1ce49
jne 0xda36
xorl %edi, %edi
callq 0xbe8a
movzwl 0xf40b(%rip), %eax      # 0x1ce48
testl $0xc018, %eax           # imm = 0xC018
je 0xda53
testb $0x1, 0x50(%rbx)
jne 0xda53
movq %rbx, %rdi
popq %rbx
jmp 0xe0f6
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0xe347
// File: /workspace/github_c_makefile_star2_O1/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
cmpq $0x0, 0x8(%rsi)
jne 0x119f
callq 0x11f5
jmp 0x11df
movq %rsi, %rbx
addq $0x8, %rbx
movq 0x2e33(%rip), %r15      # 0x3fe0
leaq 0xe50(%rip), %r14       # 0x2004
movq (%rbx), %rdi
movq (%r15), %rdx
movq %r14, %rsi
callq 0x1050
movq (%rbx), %rdi
testq %rax, %rax
je 0x11e6
callq 0x1040
callq 0x11f5
cmpq $0x0, 0x8(%rbx)
leaq 0x8(%rbx), %rbx
jne 0x11b4
xorl %edi, %edi
callq 0x1080
callq 0x1070
movl $0x1, %edi
callq 0x1080
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
callq 0x1060
cmpl $-0x1, %eax
je 0x1261
movabsq $-0x7ffffff7fffff7fd, %rbx # imm = 0x8000000800000803
cmpl $0x40, %eax
jne 0x1257
callq 0x1060
cmpl $0x28, %eax
jne 0x120a
callq 0x1060
cmpl $0x23, %eax
jne 0x120a
callq 0x1060
cmpl $0x29, %eax
jne 0x120a
movl $0x9, %eax
movl %eax, %edi
callq 0x1030
callq 0x1060
movl %eax, %ecx
incl %ecx
cmpl $0x3f, %ecx
ja 0x1232
btq %rcx, %rbx
jae 0x1232
movl $0xa, %edi
callq 0x1030
callq 0x1060
cmpl $-0x1, %eax
jne 0x120a
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x15b8
movq %rcx, %r9
movq %rdx, %rcx
movq %rsi, %rax
setne %r8b
testq %rsi, %rsi
setne %r11b
leaq 0xbd1(%rip), %r10       # 0x213f
movq %r10, %rsi
movq %r10, %rdx
testb %r11b, %r8b
cmovneq %rax, %rsi
je 0x1592
cmpb $0x0, (%rax)
leaq 0xbb8(%rip), %rax       # 0x213f
leaq 0xbb2(%rip), %rdx       # 0x2140
cmoveq %rax, %rdx
testl %edi, %edi
cmoveq %r10, %rcx
leaq 0xba3(%rip), %r8        # 0x2142
cmoveq %r10, %r8
testq %r9, %r9
cmoveq %r10, %r9
leaq 0xb83(%rip), %rdi       # 0x2134
xorl %eax, %eax
jmp 0x1060
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x1f6b
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
movl $0x706f7374, %esi       # imm = 0x706F7374
movq %r14, %rdx
callq 0x32fd
movl (%r14), %esi
testq %rax, %rax
je 0x1f4c
movq %rax, %rbx
movl (%rax), %edx
bswapl %edx
movzbl 0x4(%rax), %eax
shll $0x18, %eax
movzbl 0x5(%rbx), %ecx
shll $0x10, %ecx
orl %eax, %ecx
sarl $0x10, %ecx
movzwl 0x6(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %r8d
movzbl 0x8(%rbx), %eax
shll $0x8, %eax
movzbl 0x9(%rbx), %edi
movswl %ax, %r9d
orl %edi, %r9d
movzbl 0xa(%rbx), %eax
shll $0x8, %eax
movzbl 0xb(%rbx), %edi
movswl %ax, %r10d
orl %edi, %r10d
movl 0xc(%rbx), %r11d
bswapl %r11d
movl 0x10(%rbx), %r14d
bswapl %r14d
movl 0x14(%rbx), %r15d
bswapl %r15d
movl 0x18(%rbx), %r12d
bswapl %r12d
movl 0x26(%rbx), %r13d
bswapl %r13d
leaq 0x710f(%rip), %rdi      # 0x903a
xorl %eax, %eax
pushq %r13
pushq %r12
pushq %r15
pushq %r14
pushq %r11
pushq %r10
callq 0x1040
addq $0x30, %rsp
movq %rbx, %rdi
callq 0x1190
jmp 0x1f5d
cmpl $-0x1, %esi
jne 0x1f8a
leaq 0x751f(%rip), %rdi      # 0x9477
callq 0x11f0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x7092(%rip), %rdi      # 0x9004
leaq 0x708f(%rip), %rsi      # 0x9008
leaq 0x7097(%rip), %rcx      # 0x9017
movl $0x19, %edx
callq 0x10e0
leaq 0x70a1(%rip), %rdi      # 0x9032
leaq 0x7070(%rip), %rsi      # 0x9008
leaq 0x7078(%rip), %rcx      # 0x9017
movl $0x1f, %edx
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O1/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 0x260f
movl %esi, %ebp
movq %rdi, %rbx
cmpq $0x0, 0x80(%rdi)
je 0x253e
cmpq $0x0, 0x50(%rbx)
jne 0x254e
movq %rbx, %rdi
callq 0x33ed
testl %eax, %eax
jne 0x264d
cmpq $0x0, 0x80(%rbx)
je 0x262e
cmpw $0x0, 0x4c(%rbx)
je 0x25d3
leaq 0x6d91(%rip), %r15      # 0x92fb
xorl %r13d, %r13d
xorl %r12d, %r12d
xorl %r14d, %r14d
movzwl %r13w, %esi
movq %rbx, %rdi
callq 0x3bb6
testl %eax, %eax
je 0x259c
movq 0x80(%rbx), %rcx
movb (%rcx), %dl
andb 0x1(%rcx), %dl
xorl %ecx, %ecx
cmpb $-0x1, %dl
sete %cl
addl %ecx, %r14d
jmp 0x259f
incl %r12d
testl %ebp, %ebp
je 0x25c5
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 0x1040
incl %r13d
movzwl 0x4c(%rbx), %eax
cmpl %eax, %r13d
jb 0x2573
jmp 0x25d9
xorl %r14d, %r14d
xorl %r12d, %r12d
testl %ebp, %ebp
je 0x25e7
movl $0xa, %edi
callq 0x11c0
movzwl 0x4c(%rbx), %esi
movl %esi, %edx
subl %r12d, %edx
leaq 0x6d0c(%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 0x1040
leaq 0x69ee(%rip), %rdi      # 0x9004
leaq 0x69eb(%rip), %rsi      # 0x9008
leaq 0x6cae(%rip), %rcx      # 0x92d2
movl $0xa8, %edx
callq 0x10e0
leaq 0x6cbd(%rip), %rdi      # 0x92f2
leaq 0x69cc(%rip), %rsi      # 0x9008
leaq 0x6c8f(%rip), %rcx      # 0x92d2
movl $0xb6, %edx
callq 0x10e0
leaq 0x6ea7(%rip), %rdi      # 0x94fb
leaq 0x69ad(%rip), %rsi      # 0x9008
leaq 0x6c70(%rip), %rcx      # 0x92d2
movl $0xad, %edx
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O1/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 0x2717
movq %rdi, %rbx
xorl %esi, %esi
callq 0x39b0
cmpq $0x0, 0x60(%rbx)
je 0x2706
movzwl 0x58(%rbx), %esi
leaq 0x6cb2(%rip), %rdi      # 0x9348
xorl %eax, %eax
callq 0x1040
movzwl 0x58(%rbx), %eax
testw %ax, %ax
je 0x26ea
leaq 0x6ca7(%rip), %r14      # 0x9354
xorl %r15d, %r15d
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 0x1040
incq %r15
movzwl 0x58(%rbx), %eax
cmpq %rax, %r15
jb 0x26b0
movzwl %ax, %eax
movzwl 0x4c(%rbx), %esi
subl %eax, %esi
leaq 0x6c63(%rip), %rdi      # 0x935d
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x1040
leaq 0x6da3(%rip), %rdi      # 0x94b0
popq %rbx
popq %r14
popq %r15
jmp 0x11f0
leaq 0x68e6(%rip), %rdi      # 0x9004
leaq 0x68e3(%rip), %rsi      # 0x9008
leaq 0x6c01(%rip), %rcx      # 0x932d
movl $0xcc, %edx
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movl %edi, %r14d
movb $0x1, %r15b
cmpl $0x2, %edi
jl 0x4b2f
leaq 0x8(%rbx), %rsi
leaq -0xb0(%rbp), %r15
movq %r15, %rdi
movl $0x2, %edx
callq 0x4f12
movq %r15, %rdi
callq 0x20b0
movl $0xff, %ecx
andq %rcx, %rax
sete %dl
cmpq %rcx, %rax
sete %r15b
orb %dl, %r15b
cmpl $0x2, %r14d
jl 0x4b41
leaq -0xb0(%rbp), %rdi
callq 0x4f9a
testb %r15b, %r15b
jne 0x4c81
addq $0x8, %rbx
leaq -0x88(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x2, %edx
callq 0x4f12
movq %r14, %rdi
callq 0x20b0
cmpb $0x2, %al
jne 0x4bc0
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
leaq 0x367(%rip), %rax       # 0x4ee6
movq %rax, -0x38(%rbp)
leaq 0x36a(%rip), %rax       # 0x4ef4
movq %rax, -0x40(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x88(%rbp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x2110
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
testq %rcx, %rcx
je 0x4bd5
movq 0x1641a(%rip), %rdx     # 0x1afd0
cmpb $0x0, (%rdx)
je 0x4bd1
incl 0x8(%rcx)
jmp 0x4bd5
leaq -0x88(%rbp), %rdi
callq 0x4d00
jmp 0x4c65
lock
incl 0x8(%rcx)
movq %rax, -0x60(%rbp)
movq %rcx, -0x58(%rbp)
movq -0x20(%rbp), %rdi
testq %rdi, %rdi
je 0x4c00
movq 0x163e3(%rip), %rax     # 0x1afd0
cmpb $0x0, (%rax)
je 0x4bf7
incl 0x8(%rdi)
jmp 0x4bfb
lock
incl 0x8(%rdi)
callq 0x4ff0
leaq -0x60(%rbp), %rbx
leaq -0x50(%rbp), %r14
cmpq $0x0, -0x58(%rbp)
je 0x4c40
movq %rbx, %rdi
callq 0x22a0
movq %rax, %r15
movq %rax, %rdi
callq 0x20b0
cmpb $0x2, %al
je 0x4c36
cmpq $0x0, -0x40(%rbp)
je 0x4c8d
movq %r14, %rdi
movq %r15, %rsi
callq *-0x38(%rbp)
movq %rbx, %rdi
callq 0x2080
jmp 0x4c08
movq -0x20(%rbp), %rdi
testq %rdi, %rdi
je 0x4c4e
callq 0x4ff0
movq -0x40(%rbp), %rax
testq %rax, %rax
je 0x4c65
leaq -0x50(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq -0x88(%rbp), %rdi
callq 0x4f9a
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x22e0
movl $0x1, %eax
jmp 0x4c73
callq 0x20a0
jmp 0x4cf8
movq %rax, %rbx
jmp 0x4ccd
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
jmp 0x4ceb
movq %rax, %rbx
jmp 0x4ce4
jmp 0x4cae
jmp 0x4cae
movq %rax, %rbx
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x4cbf
callq 0x4ff0
movq -0x20(%rbp), %rdi
testq %rdi, %rdi
je 0x4ccd
callq 0x4ff0
movq -0x40(%rbp), %rax
testq %rax, %rax
je 0x4ce4
leaq -0x50(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq -0x88(%rbp), %rdi
callq 0x4f9a
movq %rbx, %rdi
callq 0x2280
movq %rax, %rdi
callq 0x4fe1
// File: /workspace/github_c_makefile_star2_O1/shuffle2[P]nx2elf/nx2elf.cpp
// Function: NsoToElf(std::filesystem::__cxx11::path const&, bool)
static bool NsoToElf(const fs::path& path, bool verbose = false) {
  NsoFile nso;
  if (!nso.Load(path)) {
    return false;
  }
  printf("%s:\n", path.string().c_str());
  nso.Dump(verbose);
  if (verbose) {
    nso.DumpElfInfo();
  }
  fs::path elf_path(path);
  elf_path.replace_extension(".elf");
  bool rv = nso.WriteElf(elf_path);
  puts("");
  return rv;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rdi, %rbx
leaq -0x138(%rbp), %r14
movl $0xa8, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20f0
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%r14)
movups %xmm0, 0xc8(%r14)
leaq -0x240(%rbp), %r14
movl $0x104, %edx            # imm = 0x104
movq %r14, %rdi
xorl %esi, %esi
callq 0x20f0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x505c
testb %al, %al
je 0x4e0d
movq (%rbx), %rsi
leaq -0x28(%rbp), %r14
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, -0x10(%r14)
leaq -0x38(%rbp), %rdi
callq 0x9322
movq -0x38(%rbp), %rsi
leaq 0x123a1(%rip), %rdi     # 0x1712a
xorl %eax, %eax
callq 0x2030
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x4da5
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x21b0
leaq -0x240(%rbp), %rdi
xorl %esi, %esi
callq 0x59f2
leaq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0x5d04
leaq 0x12369(%rip), %rsi     # 0x1712f
leaq -0x60(%rbp), %rdi
movl $0x2, %edx
callq 0x5d64
leaq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x2170
leaq -0x60(%rbp), %rdi
callq 0x4f9a
leaq -0x240(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5dec
movl $0xa, %edi
callq 0x2220
leaq -0x38(%rbp), %rdi
callq 0x4f9a
movq -0x138(%rbp), %rdi
testq %rdi, %rdi
je 0x4e28
movq -0x128(%rbp), %rsi
subq %rdi, %rsi
callq 0x21b0
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x4e44
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x4f9a
jmp 0x4e47
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x4f9a
jmp 0x4e59
jmp 0x4e56
jmp 0x4e56
movq %rax, %rbx
movq -0x138(%rbp), %rdi
testq %rdi, %rdi
je 0x4e74
movq -0x128(%rbp), %rsi
subq %rdi, %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O1/shuffle2[P]nx2elf/nx2elf.cpp
// Function: NsoFile::Decompress(unsigned char*, unsigned int, unsigned char const*, unsigned int)
bool Decompress(u8* dst, u32 dst_len, const u8* src, u32 src_len) {
    int len =
        LZ4_decompress_safe(reinterpret_cast<const char*>(src),
                            reinterpret_cast<char*>(dst), src_len, dst_len);
    if (len != dst_len)
      printf("LZ4_decompress_safe: %d (expected %8x)\n", len, dst_len);
    return len > 0;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rcx, %rdi
movl %r8d, %edx
movl %ebx, %ecx
callq 0x2594
movl %eax, %r14d
cmpl %ebx, %eax
je 0x8b52
leaq 0xe6e7(%rip), %rdi      # 0x1722d
movl %r14d, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x2030
testl %r14d, %r14d
setg %al
popq %rbx
popq %r14
popq %rbp
retq
nop