LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/src/LuaProfiler.cpp
// Function: t2::PushInvocation(t2::FunctionMeta*, unsigned int)
static Invocation* PushInvocation(FunctionMeta* f, uint32_t hash)
{
  Invocation* parent = s_Profiler.m_CurrentInvocation;
  if (parent)
    hash ^= parent->m_Hash;

  uint32_t index = hash & (s_Profiler.m_InvocationTableSize - 1);

  Invocation* chain = s_Profiler.m_InvocationTable[index];
  while (chain)
  {
    if (chain->m_Hash == hash && chain->m_Function == f && MatchInvocation(chain->m_Parent, s_Profiler.m_CurrentInvocation))
    {
      return chain;
    }

    chain = chain->m_Next;
  }

  // Create a new invocation.

  // See if we need to rehash.
  if (double(s_Profiler.m_InvocationCount + 1) / double(s_Profiler.m_InvocationTableSize) > 0.75)
  {
    RehashInvocationTable(s_Profiler.m_InvocationTableSize * 2);
  }

  // Recompute insertion index.
  index = hash & (s_Profiler.m_InvocationTableSize - 1);

  // Allocate and populate invocation record.
  Invocation* i = LinearAllocate<Invocation>(s_Profiler.m_Allocator);
  i->m_Hash      = hash;
  i->m_Function  = f;
  i->m_Parent    = parent;
  i->m_CallCount = 0;
  i->m_Ticks     = 0;
  i->m_StartTick = 0;
  i->m_Next      = s_Profiler.m_InvocationTable[index];

  // Insert
  s_Profiler.m_InvocationTable[index] = i;

  return i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x390bc(%rip), %r14     # 0x429f8
testq %r14, %r14
je 0x9944
xorl (%r14), %ebp
movl 0x390a2(%rip), %edi     # 0x429ec
leal -0x1(%rdi), %r15d
andl %ebp, %r15d
movq 0x39098(%rip), %rax     # 0x429f0
movq (%rax,%r15,8), %rax
testq %rax, %rax
je 0x99aa
cmpl %ebp, (%rax)
jne 0x99a4
cmpq %rbx, 0x8(%rax)
jne 0x99a4
movq 0x10(%rax), %rcx
testq %rcx, %rcx
sete %sil
cmpq %r14, %rcx
sete %dl
setne %r8b
orb %sil, %r8b
jne 0x99a0
movq %r14, %rsi
movq 0x10(%rcx), %rcx
movq 0x10(%rsi), %rsi
cmpq %rsi, %rcx
sete %dl
testq %rcx, %rcx
je 0x99a0
cmpq %rsi, %rcx
je 0x9988
testb %dl, %dl
jne 0x9a23
movq 0x30(%rax), %rax
jmp 0x995c
movl 0x39038(%rip), %eax     # 0x429e8
incl %eax
cvtsi2sd %rax, %xmm0
movl %edi, %eax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
ucomisd 0x26c2e(%rip), %xmm0    # 0x305f8
jbe 0x99e0
addl %edi, %edi
callq 0x9884
movl 0x39012(%rip), %r15d    # 0x429ec
decl %r15d
andl %ebp, %r15d
movq 0x38fc9(%rip), %rdi     # 0x429b0
movl $0x38, %esi
movl $0x8, %edx
callq 0xad20
movl %ebp, (%rax)
movq %rbx, 0x8(%rax)
movq %r14, 0x10(%rax)
movl $0x0, 0x18(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x20(%rax)
movq 0x38fd9(%rip), %rcx     # 0x429f0
movq (%rcx,%r15,8), %rdx
movq %rdx, 0x30(%rax)
movq %rax, (%rcx,%r15,8)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/src/LuaProfiler.cpp
// Function: t2::ProfilerLuaEvent(lua_State*, lua_Debug*)
static void ProfilerLuaEvent(lua_State* L, lua_Debug* ar)
{
  Invocation* i = s_Profiler.m_CurrentInvocation;

  // Update the time for this leaf, which will now go away.
  const uint64_t now = TimerGet();
  i->m_Ticks += now - i->m_StartTick;

  if (LUA_HOOKCALL == ar->event)
  {
    // We're calling a new function.
    // Figure out what function it is.

    uint32_t hash;
    FunctionMeta* f = FindFunction(L, ar, &hash);

    s_Profiler.m_CurrentInvocation = PushInvocation(f, hash);
    s_Profiler.m_CurrentInvocation->m_CallCount += 1;
  }
  else
  {
    // We're returning to our parent.
    s_Profiler.m_CurrentInvocation = i->m_Parent;
  }

  // Start counting from here on out. This is the last thing we do, so time
  // spent inside this hook will not be counted.
  s_Profiler.m_CurrentInvocation->m_StartTick = TimerGet();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x410, %rsp            # imm = 0x410
movq %rsi, %rbx
movq %rdi, %r14
movq 0x38fad(%rip), %r15     # 0x429f8
callq 0xa4e2
subq 0x28(%r15), %rax
addq %rax, 0x20(%r15)
cmpl $0x0, (%rbx)
je 0x9a6d
movq 0x10(%r15), %rax
movq %rax, 0x38f90(%rip)     # 0x429f8
jmp 0x9b8e
leaq 0x26bc8(%rip), %rsi     # 0x3063c
movq %r14, %rdi
movq %rbx, %rdx
callq 0x1c57e
testl %eax, %eax
je 0x9baf
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %r8
testq %rcx, %rcx
leaq 0x29079(%rip), %rax     # 0x32b12
cmoveq %rax, %rcx
testq %r8, %r8
cmoveq %rax, %r8
movq 0x20(%rbx), %r9
movl 0x30(%rbx), %eax
movl %eax, (%rsp)
leaq 0x26bb4(%rip), %rdx     # 0x30669
leaq 0x10(%rsp), %r14
movl $0x400, %esi            # imm = 0x400
movq %r14, %rdi
xorl %eax, %eax
callq 0x6780
movb $0x0, 0x3ff(%r14)
movq %r14, %rdi
callq 0xa234
movl %eax, %ebx
leaq 0x38ed6(%rip), %rdi     # 0x429b8
movl %eax, %esi
movq %r14, %rdx
callq 0x9dce
cmpl $-0x1, %eax
je 0x9b05
movq 0x38ee8(%rip), %rcx     # 0x429e0
testq %rcx, %rcx
je 0x9b05
cltq
movq (%rcx,%rax,8), %r14
jmp 0x9b7a
movq 0x38ea4(%rip), %rdi     # 0x429b0
movl $0x1, %esi
movl $0x1, %edx
callq 0xad20
movq %rax, %r14
movq 0x38e8b(%rip), %r15     # 0x429b0
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x6240
movq %rax, %r13
leaq 0x1(%rax), %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0xad20
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x63d0
movb $0x0, (%r15,%r13)
leaq 0x38e55(%rip), %rdi     # 0x429b8
movl %ebx, %esi
movq %r15, %rdx
callq 0x9e44
movq 0x38e6c(%rip), %rcx     # 0x429e0
cltq
movq %r14, (%rcx,%rax,8)
movq %r14, %rdi
movl %ebx, %esi
callq 0x9929
movq %rax, 0x38e6d(%rip)     # 0x429f8
incl 0x18(%rax)
callq 0xa4e2
movq 0x38e5e(%rip), %rcx     # 0x429f8
movq %rax, 0x28(%rcx)
addq $0x410, %rsp            # imm = 0x410
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x26a89(%rip), %rdi     # 0x3063f
xorl %eax, %eax
callq 0xa019
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/src/LuaProfiler.cpp
// Function: t2::LuaProfilerDestroy()
void LuaProfilerDestroy()
{
  LuaProfilerState* self = &s_Profiler;

  lua_sethook(self->m_LuaState, nullptr, 0, 0);

  MemAllocHeap* heap = self->m_Heap;

  HeapFree(heap, self->m_InvocationTable);

  HashTableDestroy(&self->m_Functions);
}

// Assembly:
pushq %rax
movq 0x38ddb(%rip), %rdi     # 0x429a0
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1c3d0
movq 0x38dd1(%rip), %rdi     # 0x429a8
movq 0x38e12(%rip), %rsi     # 0x429f0
callq 0xac5a
leaq 0x38dce(%rip), %rdi     # 0x429b8
popq %rax
jmp 0x9d90
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/src/LuaProfiler.cpp
// Function: t2::LuaProfilerReport()
void LuaProfilerReport()
{
  printf("Generating profiling report..\n");

  if (FILE* f = fopen("tundra.prof", "w"))
  {
    DumpReport(f);

    fclose(f);
  }
  else
  {
    fprintf(stderr, "Failed to write tundra.prof\n");
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x26ab0(%rip), %rdi     # 0x306b5
callq 0x6740
leaq 0x26a02(%rip), %rdi     # 0x30613
leaq 0x2657c(%rip), %rsi     # 0x30194
callq 0x6580
testq %rax, %rax
je 0x9d7c
movq %rax, %rbx
leaq 0x26a45(%rip), %rdi     # 0x30675
movl $0xb, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x68e0
leaq 0x26a38(%rip), %rsi     # 0x30681
leaq 0x38db0(%rip), %rdx     # 0x42a00
leaq 0x269a9(%rip), %rcx     # 0x30600
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6670
movl 0x38d60(%rip), %r15d    # 0x429c8
testq %r15, %r15
je 0x9caf
movq 0x38d44(%rip), %r12     # 0x429b8
movq 0x38d45(%rip), %r13     # 0x429c0
movq 0x38d5e(%rip), %rbp     # 0x429e0
xorl %r14d, %r14d
cmpl $0x0, (%r12,%r14,4)
je 0x9ca7
movq (%r13,%r14,8), %rcx
movq (%rbp,%r14,8), %rdx
movq %rbx, %rdi
leaq 0x269e1(%rip), %rsi     # 0x30681
xorl %eax, %eax
callq 0x6670
incq %r14
cmpq %r14, %r15
jne 0x9c85
leaq 0x269d3(%rip), %rdi     # 0x30689
movl $0xd, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x68e0
movl 0x38d1e(%rip), %eax     # 0x429ec
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x9d66
leaq 0x28e2f(%rip), %r13     # 0x32b12
leaq 0x269b2(%rip), %r12     # 0x3069c
leaq 0x269a6(%rip), %r14     # 0x30697
xorl %ecx, %ecx
movq 0x38cf6(%rip), %rax     # 0x429f0
movq %rcx, 0x10(%rsp)
movq (%rax,%rcx,8), %r15
testq %r15, %r15
je 0x9d57
movq %r15, %rbp
cmpq $0x0, 0x10(%rbp)
movq 0x8(%rbp), %rdx
movq %r12, %rcx
cmoveq %r13, %rcx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x6670
movq 0x10(%rbp), %rbp
testq %rbp, %rbp
jne 0x9d0b
movl 0x18(%r15), %ebp
movq 0x20(%r15), %rdi
callq 0xa517
movq %rbx, %rdi
leaq 0x26957(%rip), %rsi     # 0x3069f
movl %ebp, %edx
movb $0x1, %al
callq 0x6670
movq 0x30(%r15), %r15
jmp 0x9d03
movq 0x10(%rsp), %rcx
incq %rcx
cmpq 0x8(%rsp), %rcx
jne 0x9cf3
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x64c0
callq 0x699e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/lua/src/liolib.c
// Function: io_open
static int io_open (lua_State *L) {
  const char *filename = luaL_checkstring(L, 1);
  const char *mode = luaL_optstring(L, 2, "r");
  FILE **pf = newfile(L);
  *pf = fopen(filename, mode);

  /* Tundra: Track opened files. */
  if (*pf && (0 == strcmp(mode, "r") || 0 == strcmp(mode, "rb")))
    lua_on_file_opened(L, filename);

  return (*pf == NULL) ? pushresult(L, 0, filename) : 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
xorl %edx, %edx
callq 0x1b664
movq %rax, %r14
leaq 0x12bfe(%rip), %rdx     # 0x33484
movq %rbx, %rdi
movl $0x2, %esi
xorl %ecx, %ecx
callq 0x1b60b
movq %rax, %r12
movq %rbx, %rdi
callq 0x20bfb
movq %rax, %r15
movq %r14, %rdi
movq %r12, %rsi
callq 0x6580
movq %rax, (%r15)
testq %rax, %rax
je 0x208f7
cmpb $0x72, (%r12)
jne 0x208e6
cmpb $0x0, 0x1(%r12)
je 0x208d5
cmpb $0x62, 0x1(%r12)
jne 0x208e6
cmpb $0x0, 0x2(%r12)
jne 0x208e6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20fc8
cmpq $0x0, (%r15)
je 0x208f7
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2021a
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/lua/src/liolib.c
// Function: g_iofile
static int g_iofile (lua_State *L, int f, const char *mode) {
  if (!lua_isnoneornil(L, 1)) {
    const char *filename = lua_tostring(L, 1);
    if (filename) {
      FILE **pf = newfile(L);
      *pf = fopen(filename, mode);
      if (*pf == NULL)
        fileerror(L, 1, filename);
      if (0 == strcmp("r", mode) || 0 == strcmp("rb", mode))
        lua_on_file_opened(L, filename);
    }
    else {
      tofile(L);  /* check that it's a valid file handle */
      lua_pushvalue(L, 1);
    }
    lua_rawseti(L, LUA_ENVIRONINDEX, f);
  }
  /* return current value */
  lua_rawgeti(L, LUA_ENVIRONINDEX, f);
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r12
movl %esi, %ebx
movq %rdi, %r14
movl $0x1, %esi
callq 0x1a39a
testl %eax, %eax
jle 0x20be3
movq %r14, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x1a5d4
testq %rax, %rax
je 0x20ba7
movq %rax, %r15
movq %r14, %rdi
callq 0x20bfb
movq %rax, %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x6580
movq %rax, (%r13)
testq %rax, %rax
jne 0x20b80
movq %r14, %rdi
movq %r15, %rsi
callq 0x20c42
movzbl (%r12), %ecx
cmpl $0x72, %ecx
jne 0x20bbe
cmpb $0x0, 0x1(%r12)
je 0x20bc9
movzbl 0x1(%r12), %eax
subl $0x62, %eax
jne 0x20ba3
movzbl 0x2(%r12), %eax
negl %eax
jmp 0x20bc5
movq %r14, %rdi
callq 0x201a6
movq %r14, %rdi
movl $0x1, %esi
callq 0x1a37a
jmp 0x20bd4
movl $0x72, %eax
subl %ecx, %eax
testl %eax, %eax
jne 0x20bd4
movq %r14, %rdi
movq %r15, %rsi
callq 0x20fc8
movq %r14, %rdi
movl $0xffffd8ef, %esi       # imm = 0xFFFFD8EF
movl %ebx, %edx
callq 0x1acd4
movq %r14, %rdi
movl $0xffffd8ef, %esi       # imm = 0xFFFFD8EF
movl %ebx, %edx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1aab8
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/lua/src/lmathlib.c
// Function: luaopen_math
LUALIB_API int luaopen_math (lua_State *L) {
  luaL_register(L, LUA_MATHLIBNAME, mathlib);
#ifdef LLONG_MAX
  lua_pushnumber(L, LLONG_MAX);
#else
  lua_pushnumber(L, _I64_MAX);
#endif
  lua_setfield(L, -2, "huge");
  return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x11a6f(%rip), %rsi     # 0x32712
leaq 0x206d6(%rip), %rdx     # 0x41380
callq 0x1b9e5
movabsq $0x7fffffffffffffff, %rsi # imm = 0x7FFFFFFFFFFFFFFF
movq %rbx, %rdi
callq 0x1a777
leaq 0x11b8c(%rip), %rdx     # 0x32854
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x1ac10
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/lua/src/loadlib.c
// Function: lua_on_file_opened
void lua_on_file_opened(lua_State *L, const char* fn) {
	lua_pushlightuserdata(L, &lf_callback_key); // +1
	lua_gettable(L, LUA_REGISTRYINDEX); // -1, +1
	if (!lua_istable(L, -1))
	{
    lua_pop(L, 1); // -1
    lua_newtable(L); // +1
    lua_pushlightuserdata(L, &lf_callback_key); // +1
    lua_pushvalue(L, -2); // +1
    lua_settable(L, LUA_REGISTRYINDEX); // -2
	}
  lua_pushstring(L, fn); //+1
  lua_pushboolean(L, 1); //+1
  lua_settable(L, -3); //-2
  lua_pop(L, 1); // -1
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xa27e7(%rip), %rsi     # 0xc37c0
callq 0x1a9dc
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x1aa14
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x1a39a
cmpl $0x5, %eax
je 0x2103f
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x1a039
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1aaed
leaq 0xa27a3(%rip), %rsi     # 0xc37c0
movq %rbx, %rdi
callq 0x1a9dc
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x1a37a
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x1abe9
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1a7f6
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1a9c2
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x1abe9
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1a039
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/lua/src/loadlib.c
// Function: ll_get_accessed_files
static int ll_get_accessed_files(lua_State *L) {
	lua_pushlightuserdata(L, &lf_callback_key);
	lua_gettable(L, LUA_REGISTRYINDEX);
  if (lua_isnil(L, -1))
  {
    lua_pop(L, 1);
    lua_newtable(L);
  }
	return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xa1a8e(%rip), %rsi     # 0xc37c0
callq 0x1a9dc
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x1aa14
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x1a39a
testl %eax, %eax
jne 0x21d6e
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x1a039
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1aaed
movl $0x1, %eax
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/lua/src/ltable.c
// Function: luaH_free
void luaH_free (lua_State *L, Table *t) {
  if (t->node != dummynode)
    luaM_freearray(L, t->node, (lua_Number)sizenode(t), Node);
  luaM_freearray(L, t->array, t->sizearray, TValue);
  luaM_free(L, t);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rsi), %rsi
leaq 0xbe6c(%rip), %rax      # 0x33510
cmpq %rax, %rsi
je 0x276c7
movb 0xb(%rbx), %cl
movl $0x1, %eax
shll %cl, %eax
cltq
shlq $0x3, %rax
leaq (%rax,%rax,4), %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x20f66
movq 0x18(%rbx), %rsi
movslq 0x38(%rbx), %rdx
shlq $0x4, %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x20f66
movl $0x40, %edx
movq %r14, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20f66
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/lua/src/lvm.c
// Function: luaV_settable
void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val) {
  int loop;
  for (loop = 0; loop < MAXTAGLOOP; loop++) {
    const TValue *tm;
    if (ttistable(t)) {  /* `t' is a table? */
      Table *h = hvalue(t);
      TValue *oldval = luaH_set(L, h, key); /* do a primitive set */
      if (!ttisnil(oldval) ||  /* result is no nil? */
          (tm = fasttm(L, h->metatable, TM_NEWINDEX)) == NULL) { /* or no TM? */
        setobj2t(L, oldval, val);
        luaC_barriert(L, h, val);
        return;
      }
      /* else will try the tag method */
    }
    else if (ttisnil(tm = luaT_gettmbyobj(L, t, TM_NEWINDEX)))
      luaG_typeerror(L, t, "index");
    if (ttisfunction(tm)) {
      callTM(L, tm, t, key, val);
      return;
    }
    t = tm;  /* else repeat with `tm' */ 
  }
  luaG_runerror(L, "loop in settable");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, %r13
movq %rdi, %rbx
movl 0x8(%rsi), %eax
movl $0x64, %r15d
cmpl $0x5, %eax
jne 0x2937f
movq (%r13), %rbp
movq %rbx, %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %rdx
callq 0x278d5
movq %rax, %r14
cmpl $0x0, 0x8(%rax)
jne 0x293df
movq 0x10(%rbp), %rdi
testq %rdi, %rdi
je 0x293df
testb $0x2, 0xa(%rdi)
jne 0x293df
movq 0x20(%rbx), %rax
movq 0x130(%rax), %rdx
movl $0x1, %esi
callq 0x28804
movq %rax, %r12
testq %rax, %rax
jne 0x293aa
jmp 0x293df
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x2882f
movq %rax, %r12
cmpl $0x0, 0x8(%rax)
jne 0x293aa
movq %rbx, %rdi
movq %r13, %rsi
leaq 0xa050(%rip), %rdx      # 0x333f5
callq 0x1d004
movl 0x8(%r12), %eax
cmpl $0x6, %eax
je 0x29418
movq %r12, %r13
decl %r15d
jne 0x29327
leaq 0xa46a(%rip), %rsi      # 0x33831
movq %rbx, %rdi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1d226
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq %rax, (%r14)
movl 0x8(%rcx), %eax
movl %eax, 0x8(%r14)
cmpl $0x4, %eax
jl 0x29409
movq (%rcx), %rax
testb $0x3, 0x9(%rax)
je 0x29409
testb $0x4, 0x9(%rbp)
jne 0x294ac
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rbx), %rax
movq (%r12), %rcx
movq %rcx, (%rax)
movl 0x8(%r12), %ecx
movl %ecx, 0x8(%rax)
movq 0x10(%rbx), %rax
movq (%r13), %rcx
movq %rcx, 0x10(%rax)
movl 0x8(%r13), %ecx
movl %ecx, 0x18(%rax)
movq 0x10(%rbx), %rax
movq 0x10(%rsp), %rdx
movq (%rdx), %rcx
movq %rcx, 0x20(%rax)
movl 0x8(%rdx), %ecx
movl %ecx, 0x28(%rax)
movq 0x10(%rbx), %rax
movq 0x8(%rsp), %rdx
movq (%rdx), %rcx
movq %rcx, 0x30(%rax)
movl 0x8(%rdx), %ecx
movl %ecx, 0x38(%rax)
movq 0x10(%rbx), %rsi
movq 0x38(%rbx), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jg 0x2948c
movq %rbx, %rdi
movl $0x4, %esi
callq 0x1d7c5
movq 0x10(%rbx), %rsi
leaq 0x40(%rsi), %rax
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
xorl %edx, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1df16
movq %rbx, %rdi
movq %rbp, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1f5e5
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: check_getw
int check_getw( result )
    dword   *result;
{
    int             ch;

    ch = buff_getc();
    if ( ch == EOF ) {
        return( TRUE );
    }
    *result = ch;
    ch = buff_getc();
    if ( ch == EOF ) {
        return( TRUE );
    }
    *result += ch << 8;
    return( FALSE );
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xf47e
movl $0x1, %ebp
cmpl $-0x1, %eax
je 0x9713
cltq
movq %rax, (%rbx)
callq 0xf47e
cmpl $-0x1, %eax
je 0x9713
shll $0x8, %eax
cltq
addq %rax, (%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: check_getl
int check_getl( result )
    dword   *result;
{
    int             ch;

    ch = buff_getc();
    if ( ch == EOF ) {
        return( TRUE );
    }
    *result = (dword)((uchar)ch);

    ch = buff_getc();
    if ( ch == EOF ) {
        return( TRUE );
    }
    *result += (dword)((uchar)ch) << 8;

    ch = buff_getc();
    if ( ch == EOF ) {
        return( TRUE );
    }
    *result += (dword)((uchar)ch) << 16;
    ch = buff_getc();
    if ( ch == EOF ) {
        return( TRUE );
    }
    *result += (dword)((uchar)ch) << 24;

    return( FALSE );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0xf47e
movl $0x1, %ebx
cmpl $-0x1, %eax
je 0x9770
movzbl %al, %eax
movq %rax, (%r14)
callq 0xf47e
cmpl $-0x1, %eax
je 0x9770
shll $0x8, %eax
movzwl %ax, %eax
addq %rax, (%r14)
callq 0xf47e
cmpl $-0x1, %eax
je 0x9770
movzbl %al, %eax
shll $0x10, %eax
addq %rax, (%r14)
callq 0xf47e
cmpl $-0x1, %eax
je 0x9770
shll $0x18, %eax
addq %rax, (%r14)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: get_checkc
int get_checkc( offset )
    dword   *offset;
{
    int     dcheck;

    dcheck = data_check( 1 );

    if ( dcheck != NORMAL && dcheck != BAD ) {
        return( TRUE );                 /* Must be no labels or fixups */
    }
    return( check_getc( offset ) );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x1, %ebx
movl $0x1, %edi
callq 0xcd14
cmpl $0x3, %eax
je 0x97a6
testl %eax, %eax
jne 0x97b7
callq 0xf47e
cmpl $-0x1, %eax
je 0x97b7
cltq
movq %rax, (%r14)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: two_a
int two_a( byte, text, class )
    uchar   byte;
    char            *text;
    int             class;
{
    int             size;
    dword   offset;
    char            line[50];

    size = (byte & 0x01);

    if ( check_getc( &offset ) ) {
        return( 0 );
    }

    if ( size == 0 ) {
        sprintf( line, "0%02lXh,al", offset );
    } else {
        sprintf( line, "0%02lXh,ax", offset );
    }
    instr_opcode( text );
    instr_operand(line);

    byte = byte;               /* Prevent unused variable warnings */
    class = class;              /* Prevent unused variable warnings */

    return(2);
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movl %edi, %ebp
callq 0xf47e
cmpl $-0x1, %eax
je 0x9e68
movslq %eax, %rdx
testb $0x1, %bpl
leaq 0x9461(%rip), %rax      # 0x13291
leaq 0x9465(%rip), %rsi      # 0x1329c
cmoveq %rax, %rsi
movq %rsp, %rdi
xorl %eax, %eax
callq 0x91b0
movq %rbx, %rdi
callq 0x97c1
leaq 0x13114(%rip), %rax     # 0x1cf68
movl $0x2, %ebx
cmpl $0x3, (%rax)
jne 0x9e6a
movq %rsp, %rdi
callq 0xca45
jmp 0x9e6a
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: enter
int enter( byte, text, class )
    uchar   byte;
    char            *text;
    int             class;
{
    dword   num_bytes;
    dword   nest_level;
    char            line[50];

    switch( data_check(1) ) {
        case BAD:
        case LABEL:
        case FIXUP:
            return( 0 );
        case NORMAL:
            if ( check_getw(&num_bytes) ) {
                return( 0 );
            }
            if ( check_getc(&nest_level) ) {
                return( 0 );
            }
            sprintf( line, "0%04lXh,0%02lXh", num_bytes, nest_level );
            break;
    }
    instr_opcode( text );
    instr_operand( line );

    byte = byte;               /* Prevent unused variable warnings */
    class = class;              /* Prevent unused variable warnings */

    return(4);
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movl $0x1, %edi
callq 0xcd14
xorl %ebp, %ebp
leal -0x1(%rax), %ecx
cmpl $0x3, %ecx
jae 0xa14f
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
testl %eax, %eax
jne 0xa186
leaq 0x8(%rsp), %rdi
callq 0x96e5
testl %eax, %eax
jne 0xa146
callq 0xf47e
cmpl $-0x1, %eax
je 0xa146
movslq %eax, %rcx
movq 0x8(%rsp), %rdx
leaq 0x9143(%rip), %rsi      # 0x132bd
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x91b0
movq %rbx, %rdi
callq 0x97c1
leaq 0x12dd3(%rip), %rax     # 0x1cf68
movl $0x4, %ebp
cmpl $0x3, (%rax)
jne 0xa146
leaq 0x10(%rsp), %rdi
callq 0xca45
jmp 0xa146
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: prefix
int prefix( byte, text, class )
    uchar   byte;
    char            *text;
    int             class;
{
    int             valid;

    valid = check_forward( instr, 0 );

    byte = byte;               /* Prevent unused variable warnings */
    class = class;              /* Prevent unused variable warnings */

    if ( valid ) {
        instr_opcode( text );
        tab_offset = 1;
        hex_finish = FALSE;
        return( 1 );
    } else {
        return( 0 );
    }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0xf7b9(%rip), %rdi      # 0x19b60
xorl %ebp, %ebp
xorl %esi, %esi
callq 0xa1ab
testl %eax, %eax
je 0xa3db
movq %rbx, %rdi
callq 0x97c1
leaq 0x12b31(%rip), %rax     # 0x1cef4
movl $0x1, (%rax)
leaq 0x12de0(%rip), %rax     # 0x1d1b0
movl $0x0, (%rax)
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: mod1
int mod1( ref_mode, sib_offset, sib_text, text, r_m )
    int             ref_mode;
    int             sib_offset;
    char            *sib_text;
    char            *text;
    uchar   r_m;
{
    char            temp[50];
    dword   offset;
    int             result;
    uchar   zero_rm;

    if ( check_getc( &offset ) ) {
        result = -1;
    } else {
        if ( addr_large ) {
            /*
            ** Assembler should have optimized
            */
            zero_rm = 5;
            strcpy( text, addr_386m[r_m] );
        } else {
            /*
            ** Assembler should have optimized
            */
            zero_rm = 6;
            strcpy( text, addr_mode[r_m] );
        }
        if ( strlen(sib_text) ) {
            strcat( text, "+" );
            strcat( text, sib_text );
        }
        if ( offset >= 0x80 ) {
            sprintf( temp, "-0%02lXh", 0x0100L-offset );
        } else {
            if ( offset == 0L ) {
                if ( r_m == zero_rm ) {
                    temp[0] = '\0';
                } else {
                    return( -1 );
                }
            } else {
                sprintf( temp, "+0%02lXh", offset );
            }
        }
        if ( compatibility == 2 ) {
            strcat( text, "]" );
            strcat( text, temp );
        } else {
            strcat( text, temp );
            strcat( text, "]" );
        }
        result = 1 + sib_offset;
    }
    return( result );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r8d, %r13d
movq %rcx, %r14
movq %rdx, %r12
movl %esi, %ebx
callq 0xf47e
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $-0x1, %eax
je 0xabc7
movl %eax, %r15d
cmpl $0x0, 0x12390(%rip)     # 0x1ce88
sete 0xf(%rsp)
leaq 0xe82c(%rip), %rax      # 0x19330
leaq 0xe865(%rip), %rcx      # 0x19370
cmoveq %rax, %rcx
movzbl %r13b, %r13d
movq (%rcx,%r13,8), %rsi
movq %r14, %rdi
callq 0x9070
cmpb $0x0, (%r12)
je 0xab40
movq %r14, %rdi
callq 0x90b0
movw $0x2b, (%r14,%rax)
movq %r14, %rdi
movq %r12, %rsi
callq 0x91a0
movslq %r15d, %rdx
cmpl $0x80, %r15d
jb 0xab65
movl $0x100, %eax            # imm = 0x100
subq %rdx, %rax
leaq 0x8702(%rip), %rsi      # 0x1325d
leaq 0x10(%rsp), %rdi
movq %rax, %rdx
jmp 0xab76
testl %r15d, %r15d
je 0xabd8
leaq 0x86e1(%rip), %rsi      # 0x13252
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x91b0
leaq 0x12374(%rip), %rax     # 0x1cef8
cmpl $0x2, (%rax)
jne 0xaba7
movq %r14, %rdi
callq 0x90b0
movw $0x5d, (%r14,%rax)
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x91a0
jmp 0xabc3
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x91a0
movq %r14, %rdi
callq 0x90b0
movw $0x5d, (%r14,%rax)
incl %ebx
movl %ebx, %ebp
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
movb 0xf(%rsp), %cl
movb %cl, %al
addl $0x5, %eax
cmpl %r13d, %eax
jne 0xabc7
movb $0x0, 0x10(%rsp)
jmp 0xab7d
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: do_sib
int do_sib( text, base )
    char            *text;
    uchar   *base;
{
    dword   sib_byte;
    int             ss;
    int             idx;

    switch( data_check(2) ) {
        case LABEL:
            return( -1 );
        case FIXUP:
            return( -1 );
        case BAD:
        case NORMAL:
            if ( check_getc( &sib_byte ) ) {
                return( -1 );
            }
            ss    = (int)(sib_byte & 0xC0L) >> 6;
            idx   = (int)(sib_byte & 0x38L) >> 3;
            *base = (uchar)(sib_byte & 0x07L);
            if ( idx == 0x04 ) {            /* For special [ESP] */
                if ( ss != 0 ) {
                    return( -1 );
                } else {
                    strcpy( text, "" );
                }
            } else {
                strcat( text, regs[2][idx] );
                strcat( text, sib_scale[ss] );
            }
            return( 1 );
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x2, %edi
callq 0xcd14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $0x3, %eax
je 0xaeec
testl %eax, %eax
jne 0xaf51
callq 0xf47e
cmpl $-0x1, %eax
je 0xaf51
movl %eax, %r15d
shrl $0x6, %r15d
andl $0x3, %r15d
movl %eax, %ecx
shrl $0x3, %ecx
andl $0x7, %ecx
andb $0x7, %al
movb %al, (%r14)
cmpl $0x4, %ecx
jne 0xaf1d
testl %r15d, %r15d
jne 0xaf51
movb $0x0, (%rbx)
jmp 0xaf4c
movl %ecx, %eax
leaq 0xe1ea(%rip), %rcx      # 0x19110
movq 0x80(%rcx,%rax,8), %rsi
movq %rbx, %rdi
callq 0x91a0
movl %r15d, %eax
leaq 0xe470(%rip), %rcx      # 0x193b0
movq (%rcx,%rax,8), %rsi
movq %rbx, %rdi
callq 0x91a0
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: byte_immed
int byte_immed( text, additional, sign )
    char            *text;
    int             additional;
    int             sign;
{
    int             dcheck;
    dword   offset;

    dcheck = data_check( additional+2 );

    switch( dcheck ) {
        case LABEL:     return( 1 );
        case FIXUP:     return( 1 );
        case BAD:
        case NORMAL:
            if ( check_getc( &offset ) ) {
                return( 1 );
            }
            if ( sign ) {
                if ( offset <= 0x7F ) {
                    sprintf( text, "+0%02lXh", offset );
                } else {
                    sprintf( text, "-0%02lXh", 0x0100L-offset );
                }
            } else {
                out_hexize( offset, text, 1 );
            }
            break;
    }
    return( 0 );
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
leal 0x2(%rsi), %edi
callq 0xcd14
movl $0x1, %r14d
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0xb1c0
cmpl $0x3, %eax
je 0xb16d
testl %eax, %eax
jne 0xb1bd
callq 0xf47e
cmpl $-0x1, %eax
je 0xb1c0
movslq %eax, %rcx
testl %ebp, %ebp
je 0xb192
cmpl $0x7f, %eax
ja 0xb1a4
leaq 0x80c8(%rip), %rsi      # 0x13252
movq %rbx, %rdi
movq %rcx, %rdx
jmp 0xb1b6
movq %rcx, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0xcb74
jmp 0xb1bd
movl $0x100, %edx            # imm = 0x100
subq %rcx, %rdx
leaq 0x80aa(%rip), %rsi      # 0x1325d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x91b0
xorl %r14d, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/odisasm.c
// Function: word_immed
int word_immed( text, additional )
    char            *text;
    int             additional;
{
    int             dcheck;
    int             dummy;
    dword   offset;

    dcheck = data_check( additional+2 );

    switch( dcheck ) {
        case LABEL:
            return( 1 );
        case FIXUP:
            if ( fix_rec->word_sized && fix_rec->extended == addr_large ) {
                get_fix( text, 2, TRUE, size_bytes, NEAR, FALSE, &dummy, DS );
            } else {
                return( 1 );
            }
            break;
        case BAD:
            return( 1 );
        case NORMAL:
            if ( check_getv( &offset, size_large ) ) {
                return( 1 );
            }
            if ( size_large ) {
                out_hexize( offset, text, 4 );
            } else {
                out_hexize( offset, text, 2 );
            }
            break;
    }
    return( 0 );
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leal 0x2(%rsi), %edi
callq 0xcd14
cmpl $0x3, %eax
ja 0xb288
movl $0x1, %ebp
movl %eax, %eax
leaq 0x7e54(%rip), %rcx      # 0x13044
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x0, 0x11c84(%rip)     # 0x1ce84
je 0xb258
leaq 0x8(%rsp), %rdi
callq 0x971c
jmp 0xb262
leaq 0x11f03(%rip), %rax     # 0x1d118
movq (%rax), %rax
cmpl $0x0, 0x3c(%rax)
je 0xb28a
movl 0x38(%rax), %eax
cmpl 0x11c61(%rip), %eax     # 0x1ce88
jne 0xb28a
movl 0xe85d(%rip), %ecx      # 0x19a8c
leaq 0x14(%rsp), %rax
movq %rbx, %rdi
movl $0x2, %esi
movl $0x1, %edx
movl $0x1, %r8d
xorl %r9d, %r9d
pushq $0x14
pushq %rax
callq 0x1027f
addq $0x10, %rsp
jmp 0xb288
leaq 0x8(%rsp), %rdi
callq 0x96e5
testl %eax, %eax
jne 0xb28a
cmpl $0x0, 0x11c17(%rip)     # 0x1ce84
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
je 0xb27e
movl $0x4, %edx
jmp 0xb283
movl $0x2, %edx
callq 0xcb74
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/oextra.c
// Function: hint_insert
void hint_insert( int seg_idx, dword offset, int hint_type, dword length )
{
    HINT_T          *hint_rec;

    hint_rec = (HINT_T *)o_malloc( sizeof(HINT_T) );
    hint_rec->seg_idx   = seg_idx;
    hint_rec->offset    = offset;
    hint_rec->hint_type = hint_type;
    hint_rec->length    = length;
    insert( (char *)hint_rec, hint_tree, TC hint_compare );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movl %edi, %r15d
movl $0x18, %edi
callq 0x128e2
movl %r15d, (%rax)
movq %r14, 0x8(%rax)
movl %ebp, 0x4(%rax)
movq %rbx, 0x10(%rax)
leaq 0x11484(%rip), %rcx     # 0x1cfd8
movq (%rcx), %rsi
leaq -0x62(%rip), %rdx       # 0xbafc
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x125e8
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/ooutput.c
// Function: tab_count
void tab_count( text )
    char    *text;
{
    int     count;

    count = strlen( text );
    while ( count  ) {
        if ( *text == '\t' ) {
            col_cnt = (col_cnt | 0x07) + 1;
        } else {
            col_cnt++;
        }
        text++;
        --count;
    }
    tab_at = (col_cnt >> 3) + 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x90b0
movl 0x1088d(%rip), %ecx     # 0x1d1b8
testl %eax, %eax
je 0xc94c
xorl %edx, %edx
movl %ecx, %esi
orl $0x7, %esi
cmpb $0x9, (%rbx,%rdx)
cmovel %esi, %ecx
incl %ecx
incq %rdx
cmpl %edx, %eax
jne 0xc931
movl %ecx, 0x1086c(%rip)     # 0x1d1b8
sarl $0x3, %ecx
incl %ecx
movl %ecx, 0x1085d(%rip)     # 0x1d1b4
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/ooutput.c
// Function: tab_seek
void tab_seek( tab_count )
    int     tab_count;
{
    if ( tab_count <= tab_at ) {
        putc( '\n', stdout );
        tab_count -= tab_offset;
        tab_offset = 0;
        tab_at = 0;
        col_cnt = 0;
    }
    if ( tab_at == 0 ) {
        tab_at = 1;
    }

    while( tab_at < tab_count ) {
        putc( '\t', stdout );
        tab_at++;
        col_cnt = (tab_at - 1) << 3;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movl 0x1084f(%rip), %eax     # 0x1d1b4
cmpl %edi, %eax
jge 0xc96f
testl %eax, %eax
jne 0xc9a5
jmp 0xc996
movq 0xc65a(%rip), %rax      # 0x18fd0
movq (%rax), %rsi
movl $0xa, %edi
callq 0x9130
leaq 0x1056a(%rip), %rax     # 0x1cef4
subl (%rax), %ebx
xorl %ecx, %ecx
movl %ecx, (%rax)
movl %ecx, 0x10822(%rip)     # 0x1d1b8
movl $0x1, 0x10814(%rip)     # 0x1d1b4
movl $0x1, %eax
cmpl %ebx, %eax
jge 0xc9d9
movq 0xc620(%rip), %r14      # 0x18fd0
movq (%r14), %rsi
movl $0x9, %edi
callq 0x9130
movl 0x107f1(%rip), %eax     # 0x1d1b4
leal 0x1(%rax), %ecx
movl %ecx, 0x107e8(%rip)     # 0x1d1b4
shll $0x3, %eax
movl %eax, 0x107e3(%rip)     # 0x1d1b8
cmpl %ebx, %ecx
jl 0xc9b0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/ooutput.c
// Function: out_operand
void out_operand( operand )
    char    *operand;
{
    if ( strcmp(operand,"") ) {
        tab_next();                 /* Indent to next tab stop */
        printf( "%s", operand );
        tab_count( operand );
    }
}

// Assembly:
cmpb $0x0, (%rdi)
je 0xca75
pushq %rbx
movq %rdi, %rbx
movl 0x10760(%rip), %edi     # 0x1d1b4
incl %edi
callq 0xc959
leaq 0x67e0(%rip), %rdi      # 0x13242
movq %rbx, %rsi
xorl %eax, %eax
callq 0x90d0
movq %rbx, %rdi
popq %rbx
jmp 0xc91c
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/ooutput.c
// Function: out_comment
void out_comment( comment )
    char    *comment;
{
    if ( strcmp(comment,"") ) {
        tab_seek( 7 );          /* Indent to next tab stop */
        printf( "; %s", comment );
        col_cnt += 2;
        tab_count( comment );
    }
}

// Assembly:
cmpb $0x0, (%rdi)
je 0xcaaa
pushq %rbx
movq %rdi, %rbx
movl $0x7, %edi
callq 0xc959
leaq 0x717d(%rip), %rdi      # 0x13c0d
movq %rbx, %rsi
xorl %eax, %eax
callq 0x90d0
addl $0x2, 0x10717(%rip)     # 0x1d1b8
movq %rbx, %rdi
popq %rbx
jmp 0xc91c
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/ooutput.c
// Function: out_endline
void out_endline()
{
    putc( '\n', stdout );
    tab_offset = 0;
    tab_at = 0;
    col_cnt = 0;
}

// Assembly:
pushq %rax
movq 0xc51d(%rip), %rax      # 0x18fd0
movq (%rax), %rsi
movl $0xa, %edi
callq 0x9130
leaq 0x1042d(%rip), %rax     # 0x1cef4
xorl %ecx, %ecx
movl %ecx, (%rax)
movl %ecx, 0x106e3(%rip)     # 0x1d1b4
movl %ecx, 0x106e1(%rip)     # 0x1d1b8
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/ooutput.c
// Function: out_newline
void out_newline()
{
// /*    if ( tab_at != 0 ) {          /* Finish off previous line if needed */
//        out_endline();
//    } */
    out_endline();
}

// Assembly:
pushq %rax
movq 0xc4ef(%rip), %rax      # 0x18fd0
movq (%rax), %rsi
movl $0xa, %edi
callq 0x9130
leaq 0x103ff(%rip), %rax     # 0x1cef4
xorl %ecx, %ecx
movl %ecx, (%rax)
movl %ecx, 0x106b5(%rip)     # 0x1d1b4
movl %ecx, 0x106b3(%rip)     # 0x1d1b8
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/ooutput.c
// Function: out_directive
void out_directive( direct )
    char    *direct;
{
    tab_next();
    if ( tab_at < 2 ) {
        tab_next();
    }
    printf( "%s", direct );
    tab_count( direct );
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x106a3(%rip), %edi     # 0x1d1b4
incl %edi
callq 0xc959
movl 0x10696(%rip), %edi     # 0x1d1b4
cmpl $0x1, %edi
jg 0xcb2a
incl %edi
callq 0xc959
leaq 0x6711(%rip), %rdi      # 0x13242
movq %rbx, %rsi
xorl %eax, %eax
callq 0x90d0
movq %rbx, %rdi
popq %rbx
jmp 0xc91c
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/ooutput.c
// Function: out_line
void out_line( label, opcode, operand, comment )
    char    *label;
    char    *opcode;
    char    *operand;
    char    *comment;
{
    out_label( label );
    out_directive( opcode );
    out_operand( operand );
    out_comment( comment );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
callq 0xc9ee
movq %r15, %rdi
callq 0xcb07
movq %r14, %rdi
callq 0xca45
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xca76
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/oprocess.c
// Function: lone_public
void lone_public()
{
    char    operand[80];
    long    relative;

    if ( pass == 3 ) {
        out_label( pub_rec->name );
        out_directive( "=" );
        if ( segment == 0 ) {
            sprintf( operand, "0%04Xh", pub_rec->offset );
        } else {
            relative = (long)pub_rec->offset - inst_offset;
            if ( relative < 0L ) {
                sprintf( operand, "$ - 0%04lXh", -relative );
            } else {
                sprintf( operand, "$ + 0%04lXh", relative );
            }
        }
        out_operand( operand );
        out_endline();
    }
}

// Assembly:
leaq 0x102d5(%rip), %rax     # 0x1cf68
cmpl $0x3, (%rax)
jne 0xcd13
pushq %rbx
subq $0x50, %rsp
leaq 0x103e4(%rip), %rbx     # 0x1d088
movq (%rbx), %rdi
addq $0x10, %rdi
callq 0xc9ee
leaq 0x6943(%rip), %rdi      # 0x135fa
callq 0xcb07
leaq 0x104cd(%rip), %rax     # 0x1d190
cmpl $0x0, (%rax)
movq (%rbx), %rax
movq 0x8(%rax), %rdx
je 0xcce4
leaq 0x104c2(%rip), %rax     # 0x1d198
subq (%rax), %rdx
js 0xcced
leaq 0x6f96(%rip), %rsi      # 0x13c78
jmp 0xccf7
leaq 0x6fcc(%rip), %rsi      # 0x13cb7
jmp 0xccf7
negq %rdx
leaq 0x6f75(%rip), %rsi      # 0x13c6c
movq %rsp, %rdi
xorl %eax, %eax
callq 0x91b0
movq %rsp, %rdi
callq 0xca45
callq 0xcaab
addq $0x50, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/oprocess.c
// Function: data_byte
void data_byte( size )
    int     size;
{
    char    *opcode;
    int     out_count;
    int     times;
    char    operand[50];
    char    rev_buff[10];
    char    temp[4];

    if ( last_pub_rec && pass == 3 ) {
        if ( last_pub_rec->type == FAR ) {
            out_directive("=");
            out_operand("$");
        }
        if ( last_pub_rec->type == NEAR ) {
            out_endline();
        }
    }

    opcode = size_to_opcode( size, &times );

    while ( times ) {
        out_count = 0;
        strcpy( operand, "0" );
        while ( out_count < size ) {
            rev_buff[ out_count ] = (uchar)buff_regetc();
            out_count++;
        }
        out_count = size;
        while ( out_count ) {
            --out_count;
            sprintf( temp, "%02X", (uchar)rev_buff[out_count] );
            strcat( operand, temp );
        }
        strcat( operand, "h" );
        if ( pass == 3 ) {
            out_directive( opcode );
            out_operand( operand );
            out_endline();
        }
        --times;
    }
    last_pub_rec = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %edi, %ebx
leaq 0x10193(%rip), %r14     # 0x1d090
movq (%r14), %rax
testq %rax, %rax
je 0xcf41
leaq 0x1005c(%rip), %rcx     # 0x1cf68
cmpl $0x3, (%rcx)
jne 0xcf41
movl 0x38(%rax), %eax
cmpl $0x2, %eax
jne 0xcf37
leaq 0x66da(%rip), %rdi      # 0x135fa
callq 0xcb07
leaq 0x6d58(%rip), %rdi      # 0x13c84
callq 0xca45
movq (%r14), %rax
movl 0x38(%rax), %eax
cmpl $0x1, %eax
jne 0xcf41
callq 0xcaab
leaq 0xc(%rsp), %r15
movl %ebx, %edi
movq %r15, %rsi
callq 0xf69e
movq %rax, 0x10(%rsp)
cmpl $0x0, (%r15)
je 0xd000
movslq %ebx, %rax
movq %rax, 0x18(%rsp)
movl %ebx, %r14d
leaq 0x30(%rsp), %r15
leaq 0x7925(%rip), %r12      # 0x1489b
leaq 0x22(%rsp), %r13
movw $0x30, 0x30(%rsp)
testl %ebx, %ebx
jle 0xcf99
xorl %ebp, %ebp
callq 0xf3a7
movb %al, 0x26(%rsp,%rbp)
incq %rbp
cmpq %rbp, %r14
jne 0xcf88
movq 0x18(%rsp), %rbp
testl %ebx, %ebx
je 0xcfc4
movzbl 0x25(%rsp,%rbp), %edx
movq %r13, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x91b0
movq %r15, %rdi
movq %r13, %rsi
callq 0x91a0
decq %rbp
jne 0xcfa2
movq %r15, %rdi
callq 0x90b0
movw $0x68, 0x30(%rsp,%rax)
leaq 0xff8e(%rip), %rax      # 0x1cf68
cmpl $0x3, (%rax)
jne 0xcff6
movq 0x10(%rsp), %rdi
callq 0xcb07
movq %r15, %rdi
callq 0xca45
callq 0xcaab
decl 0xc(%rsp)
jne 0xcf7b
leaq 0x10089(%rip), %rax     # 0x1d090
movq $0x0, (%rax)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/oprocess.c
// Function: proc_fixup
int proc_fixup()
{
    int     fix_size;
    int     fix_form;
    int     fix_extended;
    char    operand[100];
    int     dummy;

    fix_form     = fix_rec->form;
    fix_extended = fix_rec->extended;

    if ( fix_form == POINTER ) {
        fix_size = get_fix( operand, 2, FALSE, segment_bytes,
                                                    FAR, FALSE, &dummy, DS );
    } else {
        fix_size = get_fix( operand, 2, FALSE, segment_bytes,
                                                    NEAR, FALSE, &dummy, DS );
    }

    if ( pass == 3 ) {
        if ( fix_form == OFFSET && fix_extended ) {
            out_directive( "dd" );
        } else {
            if ( fix_form == POINTER && fix_extended ) {
                out_directive( "df" );
            } else {
                out_directive( fix_type[fix_form].form );
            }
        }
    }
    inst_offset += fix_size;

    if ( pass == 3 ) {
        out_operand( operand );
        out_endline();
    }
    buff_empty();
    if ( last_pub_rec ) {
        last_pub_rec->type = size_to_type(fix_size);
        last_pub_rec = NULL;
    }
    return( fix_size );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
leaq 0xf915(%rip), %rax      # 0x1d118
movq (%rax), %rax
movslq 0x18(%rax), %r14
xorl %r8d, %r8d
cmpq $0x3, %r14
sete %r8b
movl 0x38(%rax), %ebp
leaq 0xf985(%rip), %rax      # 0x1d1a4
movl (%rax), %ecx
incl %r8d
leaq 0xc(%rsp), %rax
leaq 0x10(%rsp), %rdi
movl $0x2, %esi
xorl %edx, %edx
xorl %r9d, %r9d
pushq $0x14
pushq %rax
callq 0x1027f
addq $0x10, %rsp
movl %eax, %ebx
leaq 0xf71b(%rip), %r15      # 0x1cf68
cmpl $0x3, (%r15)
jne 0xd86f
cmpl $0x1, %r14d
sete %al
testl %ebp, %ebp
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xd87e
leaq 0x5cf1(%rip), %rdi      # 0x1355e
jmp 0xd8aa
movslq %ebx, %rax
leaq 0xf91f(%rip), %rcx      # 0x1d198
addq %rax, (%rcx)
jmp 0xd8d3
testl %ebp, %ebp
setne %al
cmpl $0x3, %r14d
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xd89a
leaq 0x642e(%rip), %rdi      # 0x13cc6
jmp 0xd8aa
leaq (%r14,%r14,2), %rax
leaq 0xf4bb(%rip), %rcx      # 0x1cd60
movq 0x8(%rcx,%rax,8), %rdi
callq 0xcb07
movl (%r15), %eax
movslq %ebx, %rcx
leaq 0xf8dc(%rip), %rdx      # 0x1d198
addq %rcx, (%rdx)
cmpl $0x3, %eax
jne 0xd8d3
leaq 0x10(%rsp), %rdi
callq 0xca45
callq 0xcaab
callq 0xf4a3
leaq 0xf7b1(%rip), %r14      # 0x1d090
cmpq $0x0, (%r14)
je 0xd8f9
movl %ebx, %edi
callq 0xf644
movq (%r14), %rcx
movl %eax, 0x38(%rcx)
movq $0x0, (%r14)
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq