LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/md5-1.2/src/md5lib.c
// Function: decrypt
static int decrypt (lua_State *L) {
  size_t lcyphertext;
  const char *cyphertext = luaL_checklstring(L, 1, &lcyphertext);
  size_t lseed = cyphertext[0];
  const char *seed = cyphertext+1;
  int lblock;
  char block[BLOCKSIZE+MAXKEY];
  luaL_argcheck(L, lcyphertext >= lseed+1 && lseed <= BLOCKSIZE, 1,
                 "invalid cyphered string");
  cyphertext += lseed+1;
  lcyphertext -= lseed+1;
  lblock = initblock(L, seed, lseed, block);
  decodestream(L, cyphertext, lcyphertext, block, lblock);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2148, %rsp           # imm = 0x2148
movq %rdi, %r12
pushq $0x1
popq %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x1de9c6
movq %rax, %rbx
movsbq (%rax), %r15
cmpq $0x11, %r15
setb %cl
movq (%r14), %rax
movq %r15, %r14
incq %r14
cmpq %r14, %rax
setae %dl
testb %dl, %cl
jne 0x1ef747
leaq 0x179d25(%rip), %rdx    # 0x36945c
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x1de6f4
movq 0x8(%rsp), %rax
leaq 0x1(%rbx), %rsi
addq %r14, %rbx
subq %r14, %rax
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %r14
movq %r12, %rdi
movl %r15d, %edx
movq %r14, %rcx
callq 0x1ef818
movl %eax, %ebp
movq 0x8(%rsp), %r15
leaq 0x130(%rsp), %rsi
movq %r12, %rdi
callq 0x1defee
movslq %ebp, %r12
testq %r15, %r15
je 0x1ef7f6
movq %r14, %r13
movq %r14, %rdi
movq %r12, %rsi
leaq 0x10(%rsp), %rdx
callq 0x1eef58
cmpq $0x10, %r15
pushq $0x10
popq %rbp
cmovbq %r15, %rbp
movq %rbp, %rax
negq %rax
xorl %r14d, %r14d
movq %rax, %rcx
addq %r14, %rcx
je 0x1ef7c5
movb (%rbx,%r14), %cl
xorb %cl, 0x10(%rsp,%r14)
incq %r14
jmp 0x1ef7af
subq %rbp, %r15
leaq 0x130(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq 0x1deffe
addq %r14, %rbx
movq %rbx, %rsi
subq %rbp, %rsi
movq %r13, %r14
movq %r13, %rdi
movq %rbp, %rdx
callq 0x17630
jmp 0x1ef783
leaq 0x130(%rsp), %rdi
callq 0x1df075
pushq $0x1
popq %rax
addq $0x2148, %rsp           # imm = 0x2148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/md5-1.2/src/md5lib.c
// Function: initblock
static int initblock (lua_State *L, const char *seed, int lseed, char *block) {
  size_t lkey;
  const char *key = luaL_checklstring(L, 2, &lkey);
  if (lkey > MAXKEY)
    luaL_error(L, "key too long (> %d)", MAXKEY);
  memset(block, 0, BLOCKSIZE);
  memcpy(block, seed, lseed);
  memcpy(block+BLOCKSIZE, key, lkey);
  return (int)lkey+BLOCKSIZE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r13
pushq $0x2
popq %rsi
movq %rsp, %r12
movq %r12, %rdx
callq 0x1de9c6
movq %rax, %r15
movq (%r12), %r12
cmpq $0x101, %r12            # imm = 0x101
jb 0x1ef866
leaq 0x179bf5(%rip), %rsi    # 0x369448
movq %r13, %rdi
movl $0x100, %edx            # imm = 0x100
xorl %eax, %eax
callq 0x1de79c
movq (%rsp), %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movslq %ebp, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x17630
addq $0x10, %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x17630
addl $0x10, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/md5-1.2/src/ldes56.c
// Function: luaopen_des56
int luaopen_des56 (lua_State *L) {
  lua_newtable(L);
  luaL_setfuncs(L, des56lib, 0);
  set_info (L);
  return 1;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x1dc7bd
leaq 0x244eb6(%rip), %rsi    # 0x434770
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1efc24
leaq 0x179ba9(%rip), %rsi    # 0x369474
pushq $0xa
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
leaq 0x179c92(%rip), %rsi    # 0x36956f
pushq $0x1f
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
pushq $-0x3
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
leaq 0x179ba3(%rip), %rsi    # 0x36949f
pushq $0xc
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
leaq 0x179c81(%rip), %rsi    # 0x36958f
pushq $0x27
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
leaq 0x178f10(%rip), %rsi    # 0x36883a
pushq $0x8
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
leaq 0x179c7b(%rip), %rsi    # 0x3695b7
pushq $0x9
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/md5-1.2/src/ldes56.c
// Function: des56_decrypt
static int des56_decrypt( lua_State *L )
{
  char* decypheredText;
  keysched KS;
  int rel_index, abs_index;
  size_t cypherlen;
  const char *cypheredText = 
    luaL_checklstring( L, 1, &cypherlen );
  const char *key = luaL_optstring( L, 2, NULL );
  int padinfo;

  padinfo = cypheredText[cypherlen-1];
  cypherlen--;

  /* Aloca array */
  decypheredText = 
    (char *) malloc( (cypherlen+1) * sizeof(char));
  if(decypheredText == NULL) {
    lua_pushstring(L, "Error decrypting file. Not enough memory.");
    lua_error(L);
  }

  /* Inicia decifragem */
  if (key && strlen(key) >= 8)
  {
    char k[8];
    int i;

    for (i=0; i<8; i++)
      k[i] = (unsigned char)key[i];
    fsetkey(k, &KS);
  } else {
    lua_pushstring(L, "Error decrypting file. Invalid key.");
    lua_error(L);
  }

  rel_index = 0;
  abs_index = 0;

  while (abs_index < (int) cypherlen)
  {
    decypheredText[abs_index] = cypheredText[abs_index];
    abs_index++;
    rel_index++;
    if( rel_index == 8 )
    {
      rel_index = 0;
      fencrypt(&(decypheredText[abs_index - 8]), 1, &KS);
    }
  }
  decypheredText[abs_index] = 0;

  lua_pushlstring(L, decypheredText, (abs_index-padinfo));
  free( decypheredText );
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
pushq $0x1
popq %rsi
leaq 0x18(%rsp), %r12
movq %r12, %rdx
callq 0x1de9c6
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1de96d
movq %rax, %r13
movq (%r12), %rdi
movsbq -0x1(%r14,%rdi), %r15
leaq -0x1(%rdi), %rax
movq %rax, (%r12)
callq 0x17f50
movq %rax, %r12
testq %rax, %rax
jne 0x1efb37
leaq 0x1799fa(%rip), %rsi    # 0x369521
movq %rbx, %rdi
callq 0x1dc009
movq %rbx, %rdi
callq 0x1dd306
testq %r13, %r13
movq %rbx, 0x10(%rsp)
je 0x1efb65
movq %r13, %rdi
callq 0x172d0
cmpq $0x8, %rax
jb 0x1efb65
xorl %eax, %eax
cmpq $0x8, %rax
je 0x1efb7e
movb (%r13,%rax), %cl
movb %cl, 0x20(%rsp,%rax)
incq %rax
jmp 0x1efb51
leaq 0x1799df(%rip), %rsi    # 0x36954b
movq %rbx, %rdi
callq 0x1dc009
movq %rbx, %rdi
callq 0x1dd306
jmp 0x1efb8d
leaq 0x20(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2d5584
shlq $0x20, %r15
negq %r15
movq %r12, 0x8(%rsp)
movq %r12, %r13
addq $-0x7, %r13
xorl %ebx, %ebx
leaq 0x28(%rsp), %r12
movabsq $0x100000000, %rbp      # imm = 0x100000000
xorl %eax, %eax
movslq 0x18(%rsp), %rcx
cmpq %rcx, %rbx
jge 0x1efbe7
movb (%r14,%rbx), %cl
movb %cl, 0x7(%r13)
incl %eax
cmpl $0x8, %eax
jne 0x1efbdc
movq %r13, %rdi
pushq $0x1
popq %rsi
movq %r12, %rdx
callq 0x2d5b2f
xorl %eax, %eax
addq %rbp, %r15
incq %r13
incq %rbx
jmp 0x1efbb3
movb $0x0, 0x7(%r13)
sarq $0x20, %r15
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1dbe62
movq %rbx, %rdi
callq 0x17f48
pushq $0x1
popq %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/md5-1.2/src/compat-5.2.c
// Function: luaL_setfuncs
void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) {
  luaL_checkstack(L, nup+1, "too many upvalues");
  for (; l->name != NULL; l++) {  /* fill the table with given functions */
    int i;
    lua_pushstring(L, l->name);
    for (i = 0; i < nup; i++)  /* copy upvalues to the top */
      lua_pushvalue(L, -(nup + 1));
    lua_pushcclosure(L, l->func, nup);  /* closure with those upvalues */
    lua_settable(L, -(nup + 3)); /* table must be below the upvalues, the name and the closure */
  }
  lua_pop(L, nup);  /* remove upvalues */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %r14
leal 0x1(%r13), %esi
leaq 0x17997e(%rip), %rdx    # 0x3695c1
callq 0x1deabb
movl %r13d, %ebp
notl %ebp
pushq $-0x3
popq %r12
subl %r13d, %r12d
xorl %ebx, %ebx
testl %r13d, %r13d
movq %r13, (%rsp)
cmovgl %r13d, %ebx
movq (%r15), %rsi
testq %rsi, %rsi
je 0x1efca7
movq %r14, %rdi
callq 0x1dc009
movl %ebx, %r13d
subl $0x1, %r13d
jb 0x1efc86
movq %r14, %rdi
movl %ebp, %esi
callq 0x1db711
jmp 0x1efc74
movq 0x8(%r15), %rsi
movq %r14, %rdi
movq (%rsp), %rdx
callq 0x1dc3ec
movq %r14, %rdi
movl %r12d, %esi
callq 0x1dc936
addq $0x10, %r15
jmp 0x1efc61
movq %r14, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1db3d2
nop
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: luaopen_lfs
int luaopen_lfs (lua_State *L) {
	dir_create_meta (L);
	lock_create_meta (L);
	luaL_register (L, "lfs", fslib);
	set_info (L);
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x17981a(%rip), %rsi    # 0x36962d
callq 0x1de9ee
leaq 0x143fb8(%rip), %r14    # 0x333dd7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1dc009
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1dc7bd
leaq 0x13da0d(%rip), %rsi    # 0x32d84a
movq %rbx, %rdi
callq 0x1dc009
leaq 0x199(%rip), %rsi       # 0x1effe5
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1dc3ec
pushq $-0x3
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
leaq 0x178e72(%rip), %rsi    # 0x368cdc
movq %rbx, %rdi
callq 0x1dc009
leaq 0x1d8(%rip), %r12       # 0x1f0051
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1dc3ec
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
leaq 0x14d9b7(%rip), %r15    # 0x33d858
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1dc009
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1dc3ec
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
leaq 0x179788(%rip), %rsi    # 0x369652
movq %rbx, %rdi
callq 0x1de9ee
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1dc7bd
leaq 0x195(%rip), %r12       # 0x1f007a
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1dc3ec
leaq 0x120cf9(%rip), %rdx    # 0x310bf2
pushq $-0x2
popq %r13
movq %rbx, %rdi
movl %r13d, %esi
callq 0x1dcb19
movq %rbx, %rdi
movl %r13d, %esi
movq %r14, %rdx
callq 0x1dcb19
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1dc3ec
movq %rbx, %rdi
movl %r13d, %esi
movq %r15, %rdx
callq 0x1dcb19
leaq 0x179842(%rip), %rsi    # 0x36977a
leaq 0x244861(%rip), %rdx    # 0x4347a0
movq %rbx, %rdi
callq 0x1decf3
leaq 0x179526(%rip), %rsi    # 0x369474
pushq $0xa
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
leaq 0x17981e(%rip), %rsi    # 0x36977e
pushq $0x26
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
leaq 0x179523(%rip), %rsi    # 0x36949f
pushq $0xc
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
leaq 0x179817(%rip), %rsi    # 0x3697a5
movl $0x8c, %edx
movq %rbx, %rdi
callq 0x1dbe62
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
leaq 0x17888e(%rip), %rsi    # 0x36883a
pushq $0x8
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
leaq 0x179874(%rip), %rsi    # 0x369832
pushq $0x13
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc936
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: dir_close
static int dir_close (lua_State *L) {
	dir_data *d = (dir_data *)lua_touserdata (L, 1);
#ifdef _WIN32
	if (!d->closed && d->hFile) {
		_findclose (d->hFile);
		d->closed = 1;
	}
#else
	if (!d->closed && d->dir) {
		closedir (d->dir);
		d->closed = 1;
	}
#endif
	return 0;
}

// Assembly:
pushq %rbx
pushq $0x1
popq %rsi
callq 0x1dbd9e
cmpl $0x0, (%rax)
jne 0x1f0076
movq %rax, %rbx
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0x1f0076
callq 0x17c00
movl $0x1, (%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: lfs_unlock_dir
static int lfs_unlock_dir(lua_State *L) {
  lfs_Lock *lock = luaL_checkudata(L, 1, LOCK_METATABLE);
  if(lock->ln) {
    unlink(lock->ln);
    free(lock->ln);
    lock->ln = NULL;
  }
  return 0;
}

// Assembly:
pushq %rbx
leaq 0x1795d0(%rip), %rdx    # 0x369652
pushq $0x1
popq %rsi
callq 0x1dea4f
movq (%rax), %rdi
testq %rdi, %rdi
je 0x1f00a6
movq %rax, %rbx
callq 0x17300
movq (%rbx), %rdi
callq 0x17f48
andq $0x0, (%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: change_dir
static int change_dir (lua_State *L) {
	const char *path = luaL_checkstring(L, 1);
	if (chdir(path)) {
		lua_pushnil (L);
		lua_pushfstring (L,"Unable to change working directory to '%s'\n%s\n",
				path, chdir_error);
		return 2;
	} else {
		lua_pushboolean (L, 1);
		return 1;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x1de9c6
movq %rax, %r14
movq %rax, %rdi
callq 0x17ab0
testl %eax, %eax
je 0x1f0108
movq %rbx, %rdi
callq 0x1dbe22
callq 0x17060
movl (%rax), %edi
callq 0x17220
leaq 0x1795e4(%rip), %rsi    # 0x3696d7
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1dc33c
pushq $0x2
popq %rbp
jmp 0x1f0112
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc4d2
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: get_dir
static int get_dir (lua_State *L) {
  char *path;
  if ((path = getcwd(NULL, 0)) == NULL) {
    lua_pushnil(L);
    lua_pushstring(L, getcwd_error);
    return 2;
  }
  else {
    lua_pushstring(L, path);
    free(path);
    return 1;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %edi, %edi
xorl %esi, %esi
callq 0x17340
testq %rax, %rax
je 0x1f0148
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1dc009
movq %r14, %rdi
callq 0x17f48
pushq $0x1
jmp 0x1f0169
movq %rbx, %rdi
callq 0x1dbe22
callq 0x17060
movl (%rax), %edi
callq 0x17220
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1dc009
pushq $0x2
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: dir_iter_factory
static int dir_iter_factory (lua_State *L) {
	const char *path = luaL_checkstring (L, 1);
	dir_data *d;
	lua_pushcfunction (L, dir_iter);
	d = (dir_data *) lua_newuserdata (L, sizeof(dir_data));
	d->closed = 0;
#ifdef _WIN32
	d->hFile = 0L;
	luaL_getmetatable (L, DIR_METATABLE);
	lua_setmetatable (L, -2);
	if (strlen(path) > MAX_DIR_LENGTH)
		luaL_error (L, "path too long: %s", path);
	else
		sprintf (d->pattern, "%s/*", path);
#else
	luaL_getmetatable (L, DIR_METATABLE);
	lua_setmetatable (L, -2);
	d->dir = opendir (path);
	if (d->dir == NULL)
		luaL_error (L, "cannot open %s: %s", path, strerror (errno));
#endif
	return 2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x1de9c6
movq %rax, %r14
leaq -0x1a9(%rip), %rsi      # 0x1effe5
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1dc3ec
pushq $0x10
popq %rsi
movq %rbx, %rdi
callq 0x1dd7d9
movq %rax, %r15
andl $0x0, (%rax)
leaq 0x17947d(%rip), %rdx    # 0x36962d
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x1dc63b
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x1dcd27
movq %r14, %rdi
callq 0x17af0
movq %rax, 0x8(%r15)
testq %rax, %rax
jne 0x1f01fc
callq 0x17060
movl (%rax), %edi
callq 0x17220
leaq 0x17951a(%rip), %rsi    # 0x369706
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1de79c
pushq $0x2
popq %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: file_lock
static int file_lock (lua_State *L) {
	FILE *fh = check_file (L, 1, "lock");
	const char *mode = luaL_checkstring (L, 2);
	const long start = luaL_optlong (L, 3, 0);
	long len = luaL_optlong (L, 4, 0);
	if (_file_lock (L, fh, mode, start, len, "lock")) {
		lua_pushboolean (L, 1);
		return 1;
	} else {
		lua_pushnil (L);
		lua_pushfstring (L, "%s", strerror(errno));
		return 2;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x185e37(%rip), %r15    # 0x376051
movq %r15, %rsi
callq 0x1f0782
movq %rax, %r12
pushq $0x2
popq %rbx
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
callq 0x1de9c6
movq %rax, %r13
pushq $0x3
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x1dec14
movq %rax, %rbp
pushq $0x4
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x1dec14
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rax, %r8
movq %r15, %r9
callq 0x1f07d2
testl %eax, %eax
je 0x1f027e
pushq $0x1
popq %rbx
movq %r14, %rdi
movl %ebx, %esi
callq 0x1dc4d2
jmp 0x1f02a6
movq %r14, %rdi
callq 0x1dbe22
callq 0x17060
movl (%rax), %edi
callq 0x17220
leaq 0x178c10(%rip), %rsi    # 0x368ea9
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1dc33c
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: make_dir
static int make_dir (lua_State *L) {
	const char *path = luaL_checkstring (L, 1);
	int fail;
#ifdef _WIN32
	int oldmask = umask (0);
	fail = _mkdir (path);
#else
	mode_t oldmask = umask( (mode_t)0 );
	fail =  mkdir (path, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP |
	                     S_IWGRP | S_IXGRP | S_IROTH | S_IXOTH );
#endif
	if (fail) {
		lua_pushnil (L);
        lua_pushfstring (L, "%s", strerror(errno));
		return 2;
	}
	umask (oldmask);
	lua_pushboolean (L, 1);
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x1de9c6
movq %rax, %r15
xorl %edi, %edi
callq 0x17d70
movl %eax, %r14d
movq %r15, %rdi
movl $0x1fd, %esi            # imm = 0x1FD
callq 0x172f0
testl %eax, %eax
je 0x1f0318
movq %rbx, %rdi
callq 0x1dbe22
callq 0x17060
movl (%rax), %edi
callq 0x17220
leaq 0x178ba3(%rip), %rsi    # 0x368ea9
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1dc33c
pushq $0x2
popq %rbp
jmp 0x1f032a
movl %r14d, %edi
callq 0x17d70
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc4d2
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: remove_dir
static int remove_dir (lua_State *L) {
	const char *path = luaL_checkstring (L, 1);
	int fail;

	fail = rmdir (path);

	if (fail) {
		lua_pushnil (L);
		lua_pushfstring (L, "%s", strerror(errno));
		return 2;
	}
	lua_pushboolean (L, 1);
	return 1;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x1de9c6
movq %rax, %rdi
callq 0x172b0
testl %eax, %eax
je 0x1f0382
movq %rbx, %rdi
callq 0x1dbe22
callq 0x17060
movl (%rax), %edi
callq 0x17220
leaq 0x178b39(%rip), %rsi    # 0x368ea9
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1dc33c
pushq $0x2
popq %rbp
jmp 0x1f038c
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dc4d2
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: file_utime
static int file_utime (lua_State *L) {
	const char *file = luaL_checkstring (L, 1);
	struct utimbuf utb, *buf;

	if (lua_gettop (L) == 1) /* set to current date/time */
		buf = NULL;
	else {
		utb.actime = (time_t)luaL_optnumber (L, 2, 0);
		utb.modtime = (time_t)luaL_optnumber (L, 3, utb.actime);
		buf = &utb;
	}
	if (utime (file, buf)) {
		lua_pushnil (L);
		lua_pushfstring (L, "%s", strerror (errno));
		return 2;
	}
	lua_pushboolean (L, 1);
	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
xorl %r12d, %r12d
pushq $0x1
popq %rbx
movl %ebx, %esi
xorl %edx, %edx
callq 0x1de9c6
movq %rax, %r15
movq %r14, %rdi
callq 0x1db3c5
cmpl $0x1, %eax
je 0x1f0436
pushq $0x2
popq %rsi
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x1deba4
cvttsd2si %xmm0, %rax
leaq 0x8(%rsp), %r12
movq %rax, (%r12)
cvtsi2sd %rax, %xmm0
pushq $0x3
popq %rsi
movq %r14, %rdi
callq 0x1deba4
cvttsd2si %xmm0, %rax
movq %rax, 0x8(%r12)
movq %r15, %rdi
movq %r12, %rsi
callq 0x17360
testl %eax, %eax
je 0x1f0472
pushq $0x2
popq %rbx
movq %r14, %rdi
callq 0x1dbe22
callq 0x17060
movl (%rax), %edi
callq 0x17220
leaq 0x178a46(%rip), %rsi    # 0x368ea9
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1dc33c
jmp 0x1f047c
movq %r14, %rdi
movl %ebx, %esi
callq 0x1dc4d2
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: file_unlock
static int file_unlock (lua_State *L) {
	FILE *fh = check_file (L, 1, "unlock");
	const long start = luaL_optlong (L, 2, 0);
	long len = luaL_optlong (L, 3, 0);
	if (_file_lock (L, fh, "u", start, len, "unlock")) {
		lua_pushboolean (L, 1);
		return 1;
	} else {
		lua_pushnil (L);
		lua_pushfstring (L, "%s", strerror(errno));
		return 2;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
leaq 0x179201(%rip), %r15    # 0x36969e
movq %r15, %rsi
callq 0x1f0782
movq %rax, %r12
pushq $0x2
popq %rbx
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
callq 0x1dec14
movq %rax, %r13
pushq $0x3
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x1dec14
leaq 0x13f350(%rip), %rdx    # 0x32f81e
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rcx
movq %rax, %r8
movq %r15, %r9
callq 0x1f07d2
testl %eax, %eax
je 0x1f04f5
pushq $0x1
popq %rbx
movq %r14, %rdi
movl %ebx, %esi
callq 0x1dc4d2
jmp 0x1f051d
movq %r14, %rdi
callq 0x1dbe22
callq 0x17060
movl (%rax), %edi
callq 0x17220
leaq 0x178999(%rip), %rsi    # 0x368ea9
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1dc33c
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: lfs_lock_dir
static int lfs_lock_dir(lua_State *L) {
  lfs_Lock *lock;
  size_t pathl;
  char *ln;
  const char *lockfile = "/lockfile.lfs";
  const char *path = luaL_checklstring(L, 1, &pathl);
  lock = (lfs_Lock*)lua_newuserdata(L, sizeof(lfs_Lock));
  ln = (char*)malloc(pathl + strlen(lockfile) + 1);
  if(!ln) { 
    lua_pushnil(L); lua_pushstring(L, strerror(errno)); return 2;
  }
  strcpy(ln, path); strcat(ln, lockfile);
  if(symlink("lock", ln) == -1) {
    free(ln); lua_pushnil(L); 
    lua_pushstring(L, strerror(errno)); return 2;
  }
  lock->ln = ln;
  luaL_getmetatable (L, LOCK_METATABLE);
  lua_setmetatable (L, -2);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %r15
movl %ebp, %esi
movq %r15, %rdx
callq 0x1de9c6
movq %rax, %r12
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x1dd7d9
movq %rax, %r14
movq (%r15), %rdi
addq $0xe, %rdi
callq 0x17f50
testq %rax, %rax
je 0x1f05df
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x17730
movq %r15, %rdi
callq 0x172d0
movabsq $0x6c69666b636f6c2f, %rcx # imm = 0x6C69666B636F6C2F
movq %rcx, (%r15,%rax)
movabsq $0x73666c2e656c69, %rcx # imm = 0x73666C2E656C69
movq %rcx, 0x6(%r15,%rax)
leaq 0x185aab(%rip), %rdi    # 0x376051
movq %r15, %rsi
callq 0x17080
cmpl $-0x1, %eax
je 0x1f05d7
movq %r15, (%r14)
leaq 0x179095(%rip), %rdx    # 0x369652
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x1dc63b
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x1dcd27
jmp 0x1f0601
movq %r15, %rdi
callq 0x17f48
movq %rbx, %rdi
callq 0x1dbe22
callq 0x17060
movl (%rax), %edi
callq 0x17220
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1dc009
pushq $0x2
popq %rbp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: file_info_
static int _file_info_ (lua_State *L, int (*st)(const char*, STAT_STRUCT*)) {
	int i;
	STAT_STRUCT info;
	const char *file = luaL_checkstring (L, 1);

	if (st(file, &info)) {
		lua_pushnil (L);
		lua_pushfstring (L, "cannot obtain information from file `%s'", file);
		return 2;
	}
	if (lua_isstring (L, 2)) {
		int v;
		const char *member = lua_tostring (L, 2);
		if (strcmp (member, "mode") == 0) v = 0;
#ifndef _WIN32
		else if (strcmp (member, "blocks")  == 0) v = 11;
		else if (strcmp (member, "blksize") == 0) v = 12;
#endif
		else /* look for member */
			for (v = 1; members[v].name; v++)
				if (*members[v].name == *member)
					break;
		/* push member value and return */
		members[v].push (L, &info);
		return 1;
	} else if (!lua_istable (L, 2))
		/* creates a table if none is given */
		lua_newtable (L);
	/* stores all members in table on top of the stack */
	for (i = 0; members[i].name; i++) {
		lua_pushstring (L, members[i].name);
		members[i].push (L, &info);
		lua_rawset (L, -3);
	}
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rsi, %r15
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x1de9c6
movq %rax, %r14
movq %rsp, %rsi
movq %rax, %rdi
callq *%r15
testl %eax, %eax
je 0x1f0665
movq %rbx, %rdi
callq 0x1dbe22
leaq 0x17905e(%rip), %rsi    # 0x3696ae
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1dc33c
pushq $0x2
popq %rbp
jmp 0x1f0770
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x1db803
testl %eax, %eax
je 0x1f06f2
xorl %r15d, %r15d
pushq $0x2
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1dbb73
movq %rax, %r14
leaq 0x1197c6(%rip), %rsi    # 0x309e54
movq %rax, %rdi
callq 0x179e0
testl %eax, %eax
je 0x1f075a
leaq 0xf5997(%rip), %rsi     # 0x2e603c
movq %r14, %rdi
callq 0x179e0
testl %eax, %eax
je 0x1f0752
leaq 0x178f27(%rip), %rsi    # 0x3695e3
movq %r14, %rdi
callq 0x179e0
testl %eax, %eax
je 0x1f0756
leaq 0x24968d(%rip), %rax    # 0x439d60
addq $0x10, %rax
pushq $0x1
popq %rcx
movq (%rax), %rdx
testq %rdx, %rdx
je 0x1f074d
movb (%rdx), %dl
cmpb (%r14), %dl
je 0x1f074d
incq %rcx
addq $0x10, %rax
jmp 0x1f06da
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x1db731
cmpl $0x5, %eax
je 0x1f070e
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1dc7bd
leaq 0x24964b(%rip), %r12    # 0x439d60
addq $0x8, %r12
movq %rsp, %r14
pushq $-0x3
popq %r15
movq -0x8(%r12), %rsi
testq %rsi, %rsi
je 0x1f0770
movq %rbx, %rdi
callq 0x1dc009
movq %rbx, %rdi
movq %r14, %rsi
callq *(%r12)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1dcb75
addq $0x10, %r12
jmp 0x1f0720
movl %ecx, %r15d
jmp 0x1f075a
pushq $0xb
jmp 0x1f0758
pushq $0xc
popq %r15
shlq $0x4, %r15
leaq 0x2495fb(%rip), %rax    # 0x439d60
movq %rsp, %rsi
movq %rbx, %rdi
callq *0x8(%rax,%r15)
movl %ebp, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/luafilesystem-1.5.0/src/lfs.c
// Function: check_file
static FILE *check_file (lua_State *L, int idx, const char *funcname) {
	FILE **fh = (FILE **)luaL_checkudata (L, idx, "FILE*");
	if (fh == NULL) {
		luaL_error (L, "%s: not a file", funcname);
		return 0;
	} else if (*fh == NULL) {
		luaL_error (L, "%s: closed file", funcname);
		return 0;
	} else
		return *fh;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x178516(%rip), %rdx    # 0x368caa
pushq $0x1
popq %rsi
callq 0x1dea4f
testq %rax, %rax
je 0x1f07b2
movq (%rax), %r15
testq %r15, %r15
jne 0x1f07c9
leaq 0x178f78(%rip), %rsi    # 0x369728
jmp 0x1f07b9
leaq 0x178f60(%rip), %rsi    # 0x369719
xorl %r15d, %r15d
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1de79c
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: luaopen_lpeg
int luaopen_lpeg (lua_State *L) {
  lua_pushcfunction(L, (lua_CFunction)&l_newpf);  /* new-pattern function */
  lua_setfield(L, LUA_REGISTRYINDEX, KEYNEWPATT);  /* register it */
  luaL_newmetatable(L, PATTERN_T);
  lua_pushnumber(L, MAXBACK);
  lua_setfield(L, LUA_REGISTRYINDEX, MAXSTACKIDX);
  luaL_register(L, NULL, metapattreg);
  luaL_register(L, "lpeg", pattreg);
  lua_pushliteral(L, "__index");
  lua_pushvalue(L, -2);
  lua_settable(L, -4);
  return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xa2(%rip), %rsi        # 0x1f08f9
xorl %edx, %edx
callq 0x1dc3ec
leaq 0x179223(%rip), %rdx    # 0x369a88
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x1dcb19
leaq 0x17921a(%rip), %rsi    # 0x369a93
movq %rbx, %rdi
callq 0x1de9ee
movsd 0xf8f57(%rip), %xmm0    # 0x2e97e0
movq %rbx, %rdi
callq 0x1dbe33
leaq 0x179208(%rip), %rdx    # 0x369aa0
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x1dcb19
leaq 0x249594(%rip), %rdx    # 0x439e40
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1decf3
leaq 0xf48f7(%rip), %rsi     # 0x2e51b4
leaq 0x2495fc(%rip), %rdx    # 0x439ec0
movq %rbx, %rdi
callq 0x1decf3
leaq 0x143504(%rip), %rsi    # 0x333dd7
pushq $0x7
popq %rdx
movq %rbx, %rdi
callq 0x1dbe62
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x1db711
pushq $-0x4
popq %rsi
movq %rbx, %rdi
callq 0x1dc936
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: l_newpf
static void l_newpf (lua_State *L, PattFunc f, const void *ud, size_t l) {
  int n = instsize(l) + 1;
  Instruction *p = newpatt(L, n);
  if (n > MAXAUX) luaL_error(L, "pattern data too long");
  p[0].i.code = IFunc;
  p[0].i.aux = n - 2;
  p[0].i.offset = 0;
  p[1].f = f;
  memcpy(p[2].buff, ud, l);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, (%rsp)
movq %rsi, %r15
movq %rdi, %r12
leaq 0x7(%rcx), %r14
shrq $0x3, %r14
leal 0x2(%r14), %eax
movslq %eax, %rbp
movq %rbp, %rsi
callq 0x1f0978
movq %rax, %r13
cmpl $0x100, %ebp            # imm = 0x100
jl 0x1f0944
leaq 0x179174(%rip), %rsi    # 0x369aae
movq %r12, %rdi
xorl %eax, %eax
callq 0x1de79c
movb $0x11, (%r13)
movb %r14b, 0x1(%r13)
andw $0x0, 0x2(%r13)
movq %r15, 0x8(%r13)
addq $0x10, %r13
movq %r13, %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17630
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: newpatt
static Instruction *newpatt (lua_State *L, size_t n) {
  Instruction *p;
  if (n >= MAXPATTSIZE - 1)
    luaL_error(L, "pattern too big");
  p = (Instruction *)lua_newuserdata(L, (n + 1) * sizeof(Instruction));
  luaL_getmetatable(L, PATTERN_T);
  lua_setmetatable(L, -2);
  setinst(p + n, IEnd, 0);
  return p;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x7ff4, %rsi           # imm = 0x7FF4
jb 0x1f099d
leaq 0x179131(%rip), %rsi    # 0x369ac4
movq %r14, %rdi
xorl %eax, %eax
callq 0x1de79c
leaq 0x8(,%rbx,8), %rsi
movq %r14, %rdi
callq 0x1dd7d9
movq %rax, %r15
leaq 0x1790dc(%rip), %rdx    # 0x369a93
movq %r14, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x1dc63b
pushq $-0x2
popq %rsi
movq %r14, %rdi
callq 0x1dcd27
movl $0x6, (%r15,%rbx,8)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: setinstaux
static void setinstaux (Instruction *i, Opcode op, int offset, int aux) {
  assert(aux <= MAXAUX);
  i->i.code = op;
  i->i.offset = offset;
  i->i.aux = aux;
}

// Assembly:
cmpl $0x100, %ecx            # imm = 0x100
jge 0x1f09f3
movb %sil, (%rdi)
movw %dx, 0x2(%rdi)
movb %cl, 0x1(%rdi)
retq
pushq %rax
leaq 0x1790d9(%rip), %rdi    # 0x369ad4
leaq 0x1790e0(%rip), %rsi    # 0x369ae2
leaq 0x1790f9(%rip), %rcx    # 0x369b02
movl $0x3fb, %edx            # imm = 0x3FB
callq 0x174b0
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: union_l
static int union_l (lua_State *L) {
  int l1, l2;
  int size = 0;
  Instruction *p1 = getpatt(L, 1, &l1);
  Instruction *p2 = getpatt(L, 2, &l2);
  CharsetTag st2;
  if (isfail(p1))  /* check for simple identities */
    lua_pushvalue(L, 2);  /* fail / a == a */
  else if (isfail(p2) || issucc(p1))
    lua_pushvalue(L, 1);  /* a / fail == a; true / a == true */
  else {
    tocharset(p2, &st2);
    separateparts(L, p1, l1, l2, &size, &st2);
  }
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
andl $0x0, (%rsp)
pushq $0x1
popq %rsi
leaq 0x8(%rsp), %rdx
callq 0x1f10c5
movq %rax, %r14
pushq $0x2
popq %rsi
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0x1f10c5
movb (%r14), %cl
cmpb $0xf, %cl
jne 0x1f0a4f
pushq $0x2
jmp 0x1f0a86
cmpb $0x6, %cl
je 0x1f0a84
cmpb $0xf, (%rax)
je 0x1f0a84
leaq 0xc(%rsp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x1f1790
movl 0x8(%rsp), %edx
movl 0x4(%rsp), %ecx
movq %rsp, %r8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %r9
callq 0x1f1835
jmp 0x1f0a8f
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x1db711
pushq $0x1
popq %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: diff_l
static int diff_l (lua_State *L) {
  int l1, l2;
  Instruction *p1 = getpatt(L, 1, &l1);
  Instruction *p2 = getpatt(L, 2, &l2);
  CharsetTag st1, st2;
  if (tocharset(p1, &st1) == ISCHARSET && tocharset(p2, &st2) == ISCHARSET) {
    Instruction *p = newcharset(L);
    loopset(i, p[1].buff[i] = st1.cs[i] & ~st2.cs[i]);
  }
  else if (isheadfail(p2)) {
    Instruction *p = newpatt(L, l2 + 1 + l1);
    p += addpatt(L, p, 2);
    check2test(p - l2, l2 + 1);
    setinst(p++, IFail, 0);
    addpatt(L, p, 1);
  }
  else {  /* !e2 . e1 */
    /* !e -> choice L1; e; failtwice; L1: ... */
    Instruction *p = newpatt(L, 1 + l2 + 1 + l1);
    Instruction *pi = p;
    setinst(p++, IChoice, 1 + l2 + 1);
    p += addpatt(L, p, 2);
    setinst(p++, IFailTwice, 0);
    addpatt(L, p, 1);
    optimizechoice(pi);
  }
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
leaq 0x4(%rsp), %rdx
callq 0x1f10c5
movq %rax, %r15
pushq $0x2
popq %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x1f10c5
movq %rax, %r14
leaq 0x2c(%rsp), %rsi
movq %r15, %rdi
callq 0x1f1790
cmpl $0x1, %eax
jne 0x1f0db9
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x1f1790
cmpl $0x1, %eax
jne 0x1f0db9
movq %rbx, %rdi
callq 0x1f2997
xorl %ecx, %ecx
cmpq $0x20, %rcx
je 0x1f0e7b
movb 0xc(%rsp,%rcx), %dl
notb %dl
andb 0x30(%rsp,%rcx), %dl
movb %dl, 0x8(%rax,%rcx)
incq %rcx
jmp 0x1f0d9c
movq %r14, %rdi
callq 0x1f259e
movl (%rsp), %ecx
movl 0x4(%rsp), %edx
testl %eax, %eax
je 0x1f0e23
leal (%rcx,%rdx), %eax
incl %eax
movslq %eax, %rsi
movq %rbx, %rdi
callq 0x1f0978
movq %rax, %r14
pushq $0x2
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f1e11
movslq %eax, %r15
leaq (%r14,%r15,8), %rdi
movslq (%rsp), %rax
leal 0x1(%rax), %esi
shlq $0x3, %rax
subq %rax, %rdi
callq 0x1f25f7
leaq (%r14,%r15,8), %rsi
addq $0x8, %rsi
movl $0xf, -0x8(%rsi)
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x1f1e11
jmp 0x1f0e7b
leal (%rcx,%rdx), %eax
addl $0x2, %eax
movslq %eax, %rsi
movq %rbx, %rdi
callq 0x1f0978
movq %rax, %r14
leaq 0x8(%rax), %rsi
movl (%rsp), %eax
movw $0x7, (%r14)
addl $0x2, %eax
movw %ax, 0x2(%r14)
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x1f1e11
cltq
leaq (%r14,%rax,8), %rsi
addq $0x10, %rsi
movl $0xe, -0x8(%rsi)
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x1f1e11
movq %r14, %rdi
callq 0x1f2634
pushq $0x1
popq %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: concat_l
static int concat_l (lua_State *L) {
  /* p1; p2; */
  int l1, l2;
  Instruction *p1 = getpatt(L, 1, &l1);
  Instruction *p2 = getpatt(L, 2, &l2);
  if (isfail(p1) || issucc(p2))
    lua_pushvalue(L, 1);  /* fail * x == fail; x * true == x */
  else if (isfail(p2) || issucc(p1))
    lua_pushvalue(L, 2);  /* x * fail == fail; true * x == x */
  else if (isany(p1) && isany(p2))
    any(L, p1->i.aux + p2->i.aux, 0, NULL);
  else {
    Instruction *op = newpatt(L, l1 + l2);
    Instruction *p = op + addpatt(L, op, 1);
    addpatt(L, p, 2);
    optimizecaptures(op);
  }
  return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
leaq 0x4(%rsp), %rdx
callq 0x1f10c5
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x1f10c5
movzbl (%r14), %ecx
cmpl $0xf, %ecx
je 0x1f0ec3
movzbl (%rax), %edx
cmpl $0xf, %edx
je 0x1f0ed0
cmpl $0x6, %edx
jne 0x1f0ec7
pushq $0x1
jmp 0x1f0ed2
testl %ecx, %ecx
je 0x1f0ee6
cmpl $0x6, %ecx
jne 0x1f0f10
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x1db711
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
testb %dl, %dl
jne 0x1f0f10
cmpb $0x6, 0x8(%r14)
jne 0x1f0f10
cmpb $0x6, 0x8(%rax)
jne 0x1f0f10
movzbl 0x1(%r14), %ecx
movzbl 0x1(%rax), %esi
addl %ecx, %esi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1f1ca1
jmp 0x1f0edb
movslq 0x4(%rsp), %rax
movslq (%rsp), %rsi
addq %rax, %rsi
movq %rbx, %rdi
callq 0x1f0978
movq %rax, %r14
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f1e11
cltq
leaq (%r14,%rax,8), %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x1f1e11
movq %r14, %rdi
callq 0x1f2762
jmp 0x1f0edb
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: unm_l
static int unm_l (lua_State *L) {
  Instruction *p = getpatt(L, 1, NULL);
  if (isfail(p)) {  /* -false? */
    newpatt(L, 0);  /* true */
    return 1;
  }
  else if (issucc(p)) {  /* -true? */
    Instruction *p1 = newpatt(L, 1);  /* false */
    setinst(p1, IFail, 0);
    return 1;
  }
  else {  /* -A == '' - A */
    lua_pushliteral(L, "");
    lua_insert(L, 1);
    return diff_l(L);
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x1f10c5
movzbl (%rax), %eax
cmpl $0x6, %eax
je 0x1f0fc0
cmpl $0xf, %eax
jne 0x1f0fd3
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1f0978
jmp 0x1f0ff7
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x1f0978
movl $0xf, (%rax)
jmp 0x1f0ff7
leaq 0x178a0a(%rip), %rsi    # 0x3699e4
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1dbe62
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x1db4fe
movq %rbx, %rdi
callq 0x1f0d41
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: pattand_l
static int pattand_l (lua_State *L) {
  int l1;
  CharsetTag st1;
  Instruction *p1 = getpatt(L, 1, &l1);
  if (isfail(p1) || issucc(p1))
    lua_pushvalue(L, 1);  /* &fail == fail; &true == true */
  else if (tocharset(p1, &st1) == ISCHARSET) {
    Instruction *p = newpatt(L, l1 + 1);
    copypatt(p, p1, l1); p += l1;
    setinstaux(p, IBack, 0, 1);
  }
  else {  /* Choice L1; p1; BackCommit L2; L1: Fail; L2: */
    Instruction *p = newpatt(L, 1 + l1 + 2);
    setinst(p++, IChoice, 1 + l1 + 1);
    p += addpatt(L, p, 1);
    setinst(p++, IBackCommit, 2);
    setinst(p, IFail, 0);
  }
  return 1;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
movq %rsp, %rdx
callq 0x1f10c5
movq %rax, %r14
movzbl (%rax), %eax
cmpl $0xf, %eax
je 0x1f1021
cmpl $0x6, %eax
jne 0x1f1037
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x1db711
pushq $0x1
popq %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
leaq 0x4(%rsp), %rsi
movq %r14, %rdi
callq 0x1f1790
movslq (%rsp), %rsi
cmpl $0x1, %eax
jne 0x1f107b
incq %rsi
movq %rbx, %rdi
callq 0x1f0978
movq %rax, %rbx
movslq (%rsp), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
movq %r14, %rsi
callq 0x17630
movslq (%rsp), %rax
movl $0x104, (%rbx,%rax,8)   # imm = 0x104
jmp 0x1f102c
addl $0x3, %esi
movslq %esi, %rsi
movq %rbx, %rdi
callq 0x1f0978
movq %rax, %r14
leaq 0x8(%rax), %rsi
movl (%rsp), %eax
movw $0x7, (%r14)
addl $0x2, %eax
movw %ax, 0x2(%r14)
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x1f1e11
cltq
movl $0x2000d, 0x8(%r14,%rax,8) # imm = 0x2000D
movl $0xf, 0x10(%r14,%rax,8)
jmp 0x1f102c
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: tocharset
static enum charsetanswer tocharset (Instruction *p, CharsetTag *c) {
  if (isfixcheck(p)) {
    fillcharset(p, c->cs);
    if ((p + sizei(p))->i.code == IEnd && op_step(p) == 1)
      c->tag = ISCHARSET;
    else
      c->tag = VALIDSTARTS;
  }
  else
    c->tag = NOINFO;
  return c->tag;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movzbl (%rdi), %ecx
leaq -0x3(%rcx), %rdx
xorl %eax, %eax
cmpq $0x15, %rdx
jb 0x1f182b
movq %rdi, %r14
cmpw $0x0, 0x2(%rdi)
jne 0x1f182b
xorl %eax, %eax
cmpl $0x2, %ecx
je 0x1f1801
cmpl $0x1, %ecx
je 0x1f17d8
cmpq $0x20, %rax
je 0x1f1807
movb $-0x1, 0x4(%rbx,%rax)
incq %rax
jmp 0x1f17c0
movb $0x0, 0x4(%rbx,%rax)
incq %rax
cmpq $0x20, %rax
jne 0x1f17d0
movzbl 0x1(%r14), %eax
movl %eax, %ecx
andb $0x7, %cl
movb $0x1, %dl
shlb %cl, %dl
shrl $0x3, %eax
orb %dl, 0x4(%rbx,%rax)
jmp 0x1f1807
movb 0x8(%r14,%rax), %cl
movb %cl, 0x4(%rbx,%rax)
incq %rax
cmpq $0x20, %rax
jne 0x1f17f5
movq %r14, %rdi
callq 0x1f1f5f
movl %eax, %eax
cmpb $0x6, (%r14,%rax,8)
jne 0x1f1828
pushq $0x1
popq %rax
cmpb $0x0, (%r14)
jne 0x1f182b
cmpb $0x1, 0x1(%r14)
je 0x1f182b
pushq $0x2
popq %rax
movl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: any
static Instruction *any (lua_State *L, int n, int extra, int *offsetp) {
  int offset = offsetp ? *offsetp : 0;
  Instruction *p = newpatt(L, (n - 1)/UCHAR_MAX + extra + 1);
  Instruction *p1 = p + offset;
  for (; n > UCHAR_MAX; n -= UCHAR_MAX)
    setinstaux(p1++, IAny, 0, UCHAR_MAX);
  setinstaux(p1++, IAny, 0, n);
  if (offsetp) *offsetp = p1 - p;
  return p;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ecx
movl %esi, %r14d
testq %rbx, %rbx
je 0x1f1cbb
movslq (%rbx), %r12
jmp 0x1f1cbe
xorl %r12d, %r12d
leal -0x1(%r14), %eax
movl $0xff, %esi
cltd
idivl %esi
leal (%rcx,%rax), %esi
incl %esi
callq 0x1f0978
movq %rax, %r15
shlq $0x3, %r12
cmpl $0x100, %r14d           # imm = 0x100
jl 0x1f1cf9
movl $0xff00, (%r15,%r12)    # imm = 0xFF00
addl $0xffffff01, %r14d      # imm = 0xFFFFFF01
addq $0x8, %r12
jmp 0x1f1cdb
movq %r15, %rdi
addq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl %r14d, %ecx
callq 0x1f09e0
testq %rbx, %rbx
je 0x1f1d1b
addq $0x8, %r12
shrq $0x3, %r12
movl %r12d, (%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: value2fenv
static int value2fenv (lua_State *L, int vidx) {
  lua_createtable(L, 1, 0);
  lua_pushvalue(L, vidx);
  lua_rawseti(L, -2, 1);
  lua_setfenv(L, -2);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x1dc7bd
movq %r14, %rdi
movl %ebx, %esi
callq 0x1db711
pushq $-0x2
popq %rbx
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x1dcc5f
movq %r14, %rdi
movl %ebx, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x1dcdc1
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: testpattern
static int testpattern (lua_State *L, int idx) {
  if (lua_touserdata(L, idx)) {  /* value is a userdata? */
    if (lua_getmetatable(L, idx)) {  /* does it have a metatable? */
      luaL_getmetatable(L, PATTERN_T);
      if (lua_rawequal(L, -1, -2)) {  /* does it have the correct mt? */
        lua_pop(L, 2);  /* remove both metatables */
        return 1;
      }
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
callq 0x1dbd9e
xorl %ebp, %ebp
testq %rax, %rax
je 0x1f1dbf
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1dc88f
testl %eax, %eax
je 0x1f1dbf
leaq 0x177d01(%rip), %rdx    # 0x369a93
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x1dc63b
pushq $-0x1
popq %rsi
pushq $-0x2
popq %rdx
movq %rbx, %rdi
callq 0x1db834
testl %eax, %eax
je 0x1f1dbf
pushq $-0x3
popq %rsi
movq %rbx, %rdi
callq 0x1db3d2
pushq $0x1
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: val2str
static const char *val2str (lua_State *L, int idx) {
  const char *k = lua_tostring(L, idx);
  if (k != NULL)
    return lua_pushfstring(L, "rule '%s'", k);
  else
    return lua_pushfstring(L, "rule <a %s>", luaL_typename(L, idx));
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
xorl %edx, %edx
callq 0x1dbb73
testq %rax, %rax
je 0x1f1de3
leaq 0x177dcb(%rip), %rsi    # 0x369bac
jmp 0x1f1dfe
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1db731
movq %rbx, %rdi
movl %eax, %esi
callq 0x1db74a
leaq 0x177db8(%rip), %rsi    # 0x369bb6
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1dc33c
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: addpatt
static int addpatt (lua_State *L, Instruction *p, int p1idx) {
  Instruction *p1 = (Instruction *)lua_touserdata(L, p1idx);
  int sz = pattsize(L, p1idx);
  int corr = jointable(L, p1idx);
  copypatt(p, p1, sz + 1);
  if (corr != 0) {
    Instruction *px;
    for (px = p; px < p + sz; px += sizei(px)) {
      if (isfenvoff(px) && px->i.offset != 0)
        px->i.offset += corr;
    }
  }
  return sz;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
movl %edx, %esi
callq 0x1dbd9e
movq %rax, %r12
movq %r15, %rdi
movl %r14d, %esi
callq 0x1dbc3d
movq %rax, %r13
shrq $0x3, %r13
leal -0x1(%r13), %ebp
movq %r15, %rdi
movl %r14d, %esi
callq 0x1f1fd8
movl %eax, %r14d
movslq %r13d, %rdx
shlq $0x3, %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x17630
testl %r14d, %r14d
je 0x1f1ea4
movslq %ebp, %rax
leaq (%rbx,%rax,8), %r15
movl $0xbfbff, %r12d         # imm = 0xBFBFF
cmpq %r15, %rbx
jae 0x1f1ea4
movl (%rbx), %eax
btq %rax, %r12
jb 0x1f1e94
movzwl 0x2(%rbx), %eax
testw %ax, %ax
je 0x1f1e94
addl %r14d, %eax
movw %ax, 0x2(%rbx)
movq %rbx, %rdi
callq 0x1f1f5f
movl %eax, %eax
leaq (%rbx,%rax,8), %rbx
jmp 0x1f1e77
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq