LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: resume
static void resume (lua_State *L, void *ud) {
  int n = *(cast(int*, ud));  /* number of arguments */
  StkId firstArg = L->top - n;  /* first argument */
  CallInfo *ci = L->ci;
  if (L->status == LUA_OK) {  /* starting a coroutine? */
    if (!luaD_precall(L, firstArg - 1, LUA_MULTRET))  /* Lua function? */
      luaV_execute(L);  /* call it */
  }
  else {  /* resuming from previous yield */
    lua_assert(L->status == LUA_YIELD);
    L->status = LUA_OK;  /* mark that it is running (again) */
    ci->func = restorestack(L, ci->extra);
    if (isLua(ci))  /* yielded inside a hook? */
      luaV_execute(L);  /* just continue running Lua code */
    else {  /* 'common' yield */
      if (ci->u.c.k != NULL) {  /* does it have a continuation function? */
        lua_unlock(L);
        n = (*ci->u.c.k)(L, LUA_YIELD, ci->u.c.ctx); /* call continuation */
        lua_lock(L);
        api_checknelems(L, n);
        firstArg = L->top - n;  /* yield results come from continuation */
      }
      luaD_poscall(L, ci, firstArg, n);  /* finish 'luaD_precall' */
    }
    unroll(L, NULL);  /* run continuation */
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq (%rsi), %rcx
movq %rcx, %rax
shlq $0x4, %rax
movq 0x10(%rdi), %rdx
subq %rax, %rdx
cmpb $0x0, 0xc(%rdi)
je 0x120e7
movq 0x20(%rbx), %r14
movb $0x0, 0xc(%rbx)
movq 0x38(%rbx), %rax
addq 0x38(%r14), %rax
movq %rax, (%r14)
testb $0x2, 0x42(%r14)
jne 0x12107
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x120da
movq 0x30(%r14), %rdx
movq %rbx, %rdi
movl $0x1, %esi
callq *%rax
movl %eax, %ecx
movq 0x10(%rbx), %rdx
cltq
shlq $0x4, %rax
subq %rax, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xfc8b
jmp 0x1210f
addq $-0x10, %rdx
movq %rbx, %rdi
movq %rdx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xfdc8
testl %eax, %eax
je 0x1211d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x10182
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1212c
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x10182
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: separatetobefnz
static void separatetobefnz (global_State *g, int all) {
  GCObject *curr;
  GCObject **p = &g->finobj;
  GCObject **lastnext = findlast(&g->tobefnz);
  while ((curr = *p) != NULL) {  /* traverse all finalizable objects */
    lua_assert(tofinalize(curr));
    if (!(iswhite(curr) || all))  /* not being collected? */
      p = &curr->next;  /* don't bother with it */
    else {
      *p = curr->next;  /* remove 'curr' from 'finobj' list */
      curr->next = *lastnext;  /* link at the end of 'tobefnz' list */
      *lastnext = curr;
      lastnext = &curr->next;
    }
  }
}

// Assembly:
leaq 0x98(%rdi), %rcx
movq %rcx, %rax
movq (%rcx), %rcx
testq %rcx, %rcx
jne 0x12c62
movq 0x68(%rdi), %rcx
testq %rcx, %rcx
je 0x12ca5
addq $0x68, %rdi
testl %esi, %esi
jne 0x12c8b
movb 0x9(%rcx), %dl
andb $0x3, %dl
jne 0x12c8b
movq %rcx, %rdi
jmp 0x12c9d
movq (%rcx), %rdx
movq %rdx, (%rdi)
movq (%rax), %rdx
movq %rdx, (%rcx)
movq %rcx, (%rax)
movq %rcx, %rax
movq (%rdi), %rcx
testq %rcx, %rcx
jne 0x12c7a
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: setpath
static void setpath (lua_State *L, const char *fieldname,
                                   const char *envname,
                                   const char *dft) {
  const char *nver = lua_pushfstring(L, "%s%s", envname, LUA_VERSUFFIX);
  const char *path = getenv(nver);  /* use versioned name */
  if (path == NULL)  /* no environment variable? */
    path = getenv(envname);  /* try unversioned name */
  if (path == NULL || noenv(L))  /* no environment variable? */
    lua_pushstring(L, dft);  /* use default */
  else {
    /* replace ";;" by ";AUXMARK;" and then AUXMARK by default path */
    path = luaL_gsub(L, path, LUA_PATH_SEP LUA_PATH_SEP,
                              LUA_PATH_SEP AUXMARK LUA_PATH_SEP);
    luaL_gsub(L, path, AUXMARK, dft);
    lua_remove(L, -2); /* remove result from 1st 'gsub' */
  }
  setprogdir(L);
  lua_setfield(L, -3, fieldname);  /* package[fieldname] = path value */
  lua_pop(L, 1);  /* pop versioned variable name */
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1cc1b(%rip), %rsi     # 0x31130
leaq 0x1cc19(%rip), %rcx     # 0x31135
xorl %eax, %eax
callq 0x8dcc
movq %rax, %rdi
callq 0x65b0
movq %rax, %r12
testq %rax, %rax
jne 0x1453e
movq %r13, %rdi
callq 0x65b0
movq %rax, %r12
testq %r12, %r12
je 0x145cd
movq 0x18(%rbx), %rsi
addq $0x40, %rsi
leaq 0x1cbed(%rip), %rdx     # 0x31143
movq %rbx, %rdi
callq 0x8ff7
movq 0x10(%rbx), %rcx
movl -0x8(%rcx), %edx
leaq -0x10(%rcx), %rax
testl %edx, %edx
je 0x1457e
cmpl $0x1, %edx
jne 0x145c9
cmpl $0x0, -0x10(%rcx)
movq %rax, 0x10(%rbx)
jne 0x145cd
jmp 0x14582
movq %rax, 0x10(%rbx)
leaq 0x1cbb1(%rip), %rdx     # 0x3113a
leaq 0x1cbad(%rip), %rcx     # 0x3113d
movq %rbx, %rdi
movq %r12, %rsi
callq 0xd4dd
leaq 0x1cb9f(%rip), %rdx     # 0x31141
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rcx
callq 0xd4dd
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x72c6
addq $-0x10, 0x10(%rbx)
jmp 0x145d8
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8927
movq 0x10(%rbx), %rsi
addq $-0x30, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x9843
addq $-0x10, 0x10(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: internshrstr
static TString *internshrstr (lua_State *L, const char *str, size_t l) {
  TString *ts;
  global_State *g = G(L);
  unsigned int h = luaS_hash(str, l, g->seed);
  TString **list = &g->strt.hash[lmod(h, g->strt.size)];
  lua_assert(str != NULL);  /* otherwise 'memcmp'/'memcpy' are undefined */
  for (ts = *list; ts != NULL; ts = ts->u.hnext) {
    if (l == ts->shrlen &&
        (memcmp(str, getstr(ts), l * sizeof(char)) == 0)) {
      /* found! */
      if (isdead(g, ts))  /* dead (but not collected yet)? */
        changewhite(ts);  /* resurrect it */
      return ts;
    }
  }
  if (g->strt.nuse >= g->strt.size && g->strt.size <= MAX_INT/2) {
    luaS_resize(L, g->strt.size * 2);
    list = &g->strt.hash[lmod(h, g->strt.size)];  /* recompute with new size */
  }
  ts = createstrobj(L, l, LUA_TSHRSTR, h);
  memcpy(getstr(ts), str, l * sizeof(char));
  ts->shrlen = cast_byte(l);
  ts->u.hnext = *list;
  *list = ts;
  g->strt.nuse++;
  return ts;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
movq 0x18(%rdi), %r8
movl 0x50(%r8), %r15d
xorl %ebx, %r15d
testq %rdx, %rdx
je 0x152b3
movq %rbx, %rax
shrq $0x5, %rax
movq %rax, %rcx
notq %rcx
movq %rbx, %rdx
movl %r15d, %esi
shll $0x5, %esi
movl %r15d, %edi
shrl $0x2, %edi
addl %esi, %edi
movzbl -0x1(%r14,%rdx), %esi
addl %edi, %esi
xorl %esi, %r15d
addq %rcx, %rdx
cmpq %rax, %rdx
ja 0x15292
movq 0x30(%r8), %rcx
movq %r8, (%rsp)
movl 0x3c(%r8), %r13d
leal -0x1(%r13), %eax
andl %r15d, %eax
movslq %eax, %rbp
movq %rcx, 0x10(%rsp)
movq (%rcx,%rbp,8), %r12
testq %r12, %r12
je 0x15301
movzbl 0xb(%r12), %eax
cmpq %rbx, %rax
jne 0x152fa
leaq 0x18(%r12), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x64e0
testl %eax, %eax
je 0x153ca
movq 0x10(%r12), %r12
jmp 0x152d2
movq 0x10(%rsp), %rax
leaq (%rax,%rbp,8), %rbp
cmpl $0x3fffffff, %r13d      # imm = 0x3FFFFFFF
jg 0x15345
movq (%rsp), %r12
cmpl %r13d, 0x38(%r12)
jl 0x15345
addl %r13d, %r13d
movq 0x8(%rsp), %rdi
movl %r13d, %esi
callq 0x15031
movslq 0x3c(%r12), %rax
decq %rax
movslq %r15d, %rbp
andq %rax, %rbp
shlq $0x3, %rbp
addq 0x30(%r12), %rbp
leaq 0x19(%rbx), %rcx
movq 0x8(%rsp), %rdi
movq 0x18(%rdi), %r13
movl $0x4, %edx
xorl %esi, %esi
callq 0xfa30
movq %rax, %r12
movb 0x54(%r13), %al
andb $0x3, %al
movb %al, 0x9(%r12)
movb $0x4, 0x8(%r12)
movq 0x58(%r13), %rax
movq %rax, (%r12)
movq %r12, 0x58(%r13)
movl %r15d, 0xc(%r12)
xorl %eax, %eax
movb %al, 0xa(%r12)
leaq 0x18(%r12), %rdi
movb %al, 0x18(%r12,%rbx)
movq %r14, %rsi
movq %rbx, %rdx
callq 0x6400
movb %bl, 0xb(%r12)
movq (%rbp), %rax
movq %rax, 0x10(%r12)
movq %r12, (%rbp)
movq (%rsp), %rax
incl 0x38(%rax)
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb 0x9(%r12), %al
xorb $0x3, %al
movq (%rsp), %rcx
movb 0x54(%rcx), %cl
xorb $0x3, %cl
testb %al, %cl
jne 0x153b8
movb %al, 0x9(%r12)
jmp 0x153b8
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: luaH_free
void luaH_free (lua_State *L, Table *t) {
  if (!isdummy(t))
    luaM_freearray(L, t->node, cast(size_t, sizenode(t)));
  luaM_freearray(L, t->array, t->sizearray);
  luaM_free(L, t);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, 0x20(%rsi)
je 0x154fc
movq 0x18(%rbx), %r15
movb 0xb(%rbx), %cl
movl $0x1, %eax
shll %cl, %eax
movslq %eax, %r12
shlq $0x5, %r12
movq 0x18(%r14), %r13
movq 0x8(%r13), %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq *(%r13)
testq %r15, %r15
cmoveq %r15, %r12
subq %r12, 0x18(%r13)
movq 0x10(%rbx), %r15
movl 0xc(%rbx), %r12d
shlq $0x4, %r12
movq 0x18(%r14), %r13
movq 0x8(%r13), %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq *(%r13)
testq %r15, %r15
cmoveq %r15, %r12
subq %r12, 0x18(%r13)
movq 0x18(%r14), %r14
movq 0x8(%r14), %rdi
movl $0x38, %edx
movq %rbx, %rsi
xorl %ecx, %ecx
callq *(%r14)
testq %rbx, %rbx
movq $-0x38, %rax
cmoveq %rbx, %rax
addq %rax, 0x18(%r14)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: db_getregistry
LUA_API void lua_pushvalue (lua_State *L, int idx) {
  lua_lock(L);
  setobj2s(L, L->top, index2addr(L, idx));
  api_incr_top(L);
  lua_unlock(L);
}

// Assembly:
movq 0x10(%rdi), %rax
movq 0x18(%rdi), %rcx
movups 0x40(%rcx), %xmm0
movups %xmm0, (%rax)
addq $0x10, 0x10(%rdi)
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: newprefile
static LStream *newprefile (lua_State *L) {
  LStream *p = (LStream *)lua_newuserdata(L, sizeof(LStream));
  p->closef = NULL;  /* mark file handle as 'closed' */
  luaL_setmetatable(L, LUA_FILEHANDLE);
  return p;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10, %esi
callq 0xb07d
movq %rax, %r14
movq $0x0, 0x8(%rax)
movq 0x18(%rbx), %rsi
addq $0x40, %rsi
leaq 0x16400(%rip), %rdx     # 0x30cda
movq %rbx, %rdi
callq 0x8ff7
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x9e9c
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: g_write
static int g_write (lua_State *L, FILE *f, int arg) {
  int nargs = lua_gettop(L) - arg;
  int status = 1;
  for (; nargs--; arg++) {
    if (lua_type(L, arg) == LUA_TNUMBER) {
      /* optimization: could be done exactly as for strings */
      int len = lua_isinteger(L, arg)
                ? fprintf(f, LUA_INTEGER_FMT,
                             (LUAI_UACINT)lua_tointeger(L, arg))
                : fprintf(f, LUA_NUMBER_FMT,
                             (LUAI_UACNUMBER)lua_tonumber(L, arg));
      status = status && (len > 0);
    }
    else {
      size_t l;
      const char *s = luaL_checklstring(L, arg, &l);
      status = status && (fwrite(s, sizeof(char), l, f) == l);
    }
  }
  if (status) return 1;  /* file handle already on stack top */
  else return luaL_fileresult(L, status, NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r12
movq 0x20(%rdi), %rax
subq (%rax), %r12
addq $-0x10, %r12
shrq $0x4, %r12
movl $0x1, %eax
cmpl %edx, %r12d
je 0x1b344
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x1, %r15d
leaq 0x146e5(%rip), %r13     # 0x2f960
movq %rbx, %rdi
movl %ebp, %esi
callq 0x736a
cmpq %r13, %rax
je 0x1b2bd
movl 0x8(%rax), %ecx
andl $0xf, %ecx
cmpl $0x3, %ecx
jne 0x1b2bd
cmpl $0x13, 0x8(%rax)
jne 0x1b2f5
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x8126
movq %r14, %rdi
leaq 0x1504b(%rip), %rsi     # 0x302fc
movq %rax, %rdx
xorl %eax, %eax
callq 0x66b0
jmp 0x1b312
movq %rbx, %rdi
movl %ebp, %esi
movq %rsp, %rdx
callq 0xc445
testl %r15d, %r15d
je 0x1b2f0
movq (%rsp), %rdx
movl $0x1, %esi
movq %rax, %rdi
movq %r14, %rcx
callq 0x6880
xorl %r15d, %r15d
cmpq (%rsp), %rax
sete %r15b
jmp 0x1b323
xorl %r15d, %r15d
jmp 0x1b323
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x80d5
movq %r14, %rdi
leaq 0x14ff6(%rip), %rsi     # 0x30301
movb $0x1, %al
callq 0x66b0
testl %r15d, %r15d
setne %cl
testl %eax, %eax
setg %al
andb %cl, %al
movzbl %al, %r15d
incl %ebp
cmpl %ebp, %r12d
jne 0x1b27b
movl $0x1, %eax
testl %r15d, %r15d
jne 0x1b344
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xc027
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: math_log
static int math_log (lua_State *L) {
  lua_Number x = luaL_checknumber(L, 1);
  lua_Number res;
  if (lua_isnoneornil(L, 2))
    res = l_mathop(log)(x);
  else {
    lua_Number base = luaL_checknumber(L, 2);
#if !defined(LUA_USE_C89)
    if (base == l_mathop(2.0))
      res = l_mathop(log2)(x); else
#endif
    if (base == l_mathop(10.0))
      res = l_mathop(log10)(x);
    else
      res = l_mathop(log)(x)/l_mathop(log)(base);
  }
  lua_pushnumber(L, res);
  return 1;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0xc4ef
movq 0x20(%rbx), %rax
movq (%rax), %rax
leaq 0x20(%rax), %rcx
cmpq 0x10(%rbx), %rcx
setae %dl
leaq 0x13962(%rip), %rsi     # 0x2f960
cmpq %rsi, %rcx
sete %cl
orb %dl, %cl
jne 0x1c038
testb $0xf, 0x28(%rax)
je 0x1c038
movsd %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0xc4ef
ucomisd 0x13d08(%rip), %xmm0    # 0x2fd30
jne 0x1c05c
jp 0x1c05c
movsd (%rsp), %xmm0
callq 0x67d0
jmp 0x1c03d
callq 0x63e0
movq 0x10(%rbx), %rax
movsd %xmm0, (%rax)
movl $0x3, 0x8(%rax)
addq $0x10, 0x10(%rbx)
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
retq
movapd %xmm0, %xmm1
ucomisd 0x13cd0(%rip), %xmm0    # 0x2fd38
movsd (%rsp), %xmm0
jne 0x1c078
jp 0x1c078
callq 0x62a0
jmp 0x1c03d
movsd %xmm1, 0x8(%rsp)
callq 0x63e0
movsd %xmm0, (%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x63e0
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
jmp 0x1c03d
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: searcher_preload
static int searcher_preload (lua_State *L) {
  const char *name = luaL_checkstring(L, 1);
  lua_getfield(L, LUA_REGISTRYINDEX, LUA_PRELOAD_TABLE);
  if (lua_getfield(L, -1, name) == LUA_TNIL)  /* not found? */
    lua_pushfstring(L, "\n\tno field package.preload['%s']", name);
  return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
xorl %edx, %edx
callq 0xc445
movq %rax, %r14
movq 0x18(%rbx), %rsi
addq $0x40, %rsi
leaq 0x139aa(%rip), %rdx     # 0x302eb
movq %rbx, %rdi
callq 0x8ff7
movq 0x10(%rbx), %rsi
addq $-0x10, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8ff7
testl %eax, %eax
jne 0x1c974
leaq 0x14731(%rip), %rsi     # 0x31098
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x8dcc
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lua53.c
// Function: countint
static unsigned int arrayindex (const TValue *key) {
  if (ttisinteger(key)) {
    lua_Integer k = ivalue(key);
    if (0 < k && (lua_Unsigned)k <= MAXASIZE)
      return cast(unsigned int, k);  /* 'key' is an appropriate array index */
  }
  return 0;  /* 'key' did not match some condition */
}

// Assembly:
cmpl $0x13, 0x8(%rdi)
jne 0x234ba
movq (%rdi), %rax
movabsq $-0x80000001, %rcx      # imm = 0xFFFFFFFF7FFFFFFF
leaq (%rax,%rcx), %rdx
cmpq %rcx, %rdx
ja 0x234bc
xorl %eax, %eax
testl %eax, %eax
je 0x234e0
decl %eax
xorl %ecx, %ecx
cmpl $0x100, %eax            # imm = 0x100
jb 0x234e3
xorl %ecx, %ecx
movl %eax, %edx
addl $0x8, %ecx
shrl $0x8, %edx
cmpl $0xffff, %eax           # imm = 0xFFFF
movl %edx, %eax
ja 0x234cf
jmp 0x234e5
xorl %eax, %eax
retq
movl %eax, %edx
movl %edx, %eax
leaq 0xc5b2(%rip), %rdx      # 0x2faa0
movzbl (%rax,%rdx), %eax
movslq %ecx, %rcx
addq %rax, %rcx
incl (%rsi,%rcx,4)
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lz4.c
// Function: LZ4_compress_destSize
int LZ4_compress_destSize(const char* src, char* dst, int* srcSizePtr, int targetDstSize)
{
#if (LZ4_HEAPMODE)
    LZ4_stream_t* ctx = (LZ4_stream_t*)ALLOCATOR(1, sizeof(LZ4_stream_t));   /* malloc-calloc always properly aligned */
#else
    LZ4_stream_t ctxBody;
    LZ4_stream_t* ctx = &ctxBody;
#endif

    int result = LZ4_compress_destSize_extState(ctx, src, dst, srcSizePtr, targetDstSize);

#if (LZ4_HEAPMODE)
    FREEMEM(ctx);
#endif
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x4020, %rsp           # imm = 0x4020
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
movq %rsp, %rdi
xorl %ebp, %ebp
movl $0x4020, %edx           # imm = 0x4020
xorl %esi, %esi
callq 0x62e0
movl (%r15), %ecx
cmpl $0x7e000000, %ecx       # imm = 0x7E000000
ja 0x26979
movl %ecx, %eax
movl $0x80808081, %edx       # imm = 0x80808081
imulq %rax, %rdx
shrq $0x27, %rdx
leal (%rcx,%rdx), %ebp
addl $0x10, %ebp
movq %rsp, %rdi
movq %r12, %rsi
movq %r14, %rdx
cmpl %ebx, %ebp
jle 0x2699c
cmpl $0x1000a, %ecx          # imm = 0x1000A
jg 0x269ac
movq %r15, %rcx
movl %ebx, %r8d
movl $0x2, %r9d
jmp 0x269b8
movl %ebx, %r8d
movl $0x1, %r9d
callq 0x24b50
jmp 0x269bd
movq %r15, %rcx
movl %ebx, %r8d
movl $0x1, %r9d
callq 0x2c254
addq $0x4020, %rsp           # imm = 0x4020
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lz4.c
// Function: LZ4_renormDictT
static void LZ4_renormDictT(LZ4_stream_t_internal* LZ4_dict, const BYTE* src)
{
    if ((LZ4_dict->currentOffset > 0x80000000) ||
        ((uptrval)LZ4_dict->currentOffset > (uptrval)src)) {   /* address space overflow */
        /* rescale hash table */
        U32 const delta = LZ4_dict->currentOffset - 64 KB;
        const BYTE* dictEnd = LZ4_dict->dictionary + LZ4_dict->dictSize;
        int i;
        for (i=0; i<LZ4_HASH_SIZE_U32; i++) {
            if (LZ4_dict->hashTable[i] < delta) LZ4_dict->hashTable[i]=0;
            else LZ4_dict->hashTable[i] -= delta;
        }
        LZ4_dict->currentOffset = 64 KB;
        if (LZ4_dict->dictSize > 64 KB) LZ4_dict->dictSize = 64 KB;
        LZ4_dict->dictionary = dictEnd - LZ4_dict->dictSize;
    }
}

// Assembly:
movl 0x4000(%rdi), %ecx
movl $0x80000001, %eax       # imm = 0x80000001
cmpq %rax, %rcx
setb %al
cmpq %rsi, %rcx
setbe %dl
testb %dl, %al
jne 0x2849d
addl $0xffff0000, %ecx       # imm = 0xFFFF0000
movq 0x4008(%rdi), %rax
movl 0x4018(%rdi), %edx
xorl %esi, %esi
xorl %r8d, %r8d
movl (%rdi,%r8,4), %r9d
subl %ecx, %r9d
cmovbl %esi, %r9d
movl %r9d, (%rdi,%r8,4)
incq %r8
cmpq $0x1000, %r8            # imm = 0x1000
jne 0x2844f
addq %rdx, %rax
movl $0x10000, 0x4000(%rdi)  # imm = 0x10000
cmpl $0x10001, 0x4018(%rdi)  # imm = 0x10001
jb 0x2848d
movl $0x10000, 0x4018(%rdi)  # imm = 0x10000
movl 0x4018(%rdi), %ecx
subq %rcx, %rax
movq %rax, 0x4008(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lz4.c
// Function: LZ4_saveDict
int LZ4_saveDict (LZ4_stream_t* LZ4_dict, char* safeBuffer, int dictSize)
{
    LZ4_stream_t_internal* const dict = &LZ4_dict->internal_donotuse;
    const BYTE* const previousDictEnd = dict->dictionary + dict->dictSize;

    if ((U32)dictSize > 64 KB) dictSize = 64 KB;   /* useless to define a dictionary > 64 KB */
    if ((U32)dictSize > dict->dictSize) dictSize = dict->dictSize;

    memmove(safeBuffer, previousDictEnd - dictSize, dictSize);

    dict->dictionary = (const BYTE*)safeBuffer;
    dict->dictSize = (U32)dictSize;

    return dictSize;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x4018(%rdi), %eax
cmpl %eax, %edx
cmovael %eax, %edx
movl $0x10000, %r14d         # imm = 0x10000
cmpl %r14d, %edx
cmovbl %edx, %r14d
movq %rsi, %r15
addq 0x4008(%rdi), %rax
subq %r14, %rax
movq %rsi, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x6730
movq %r15, 0x4008(%rbx)
movl %r14d, 0x4018(%rbx)
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/lz4.c
// Function: LZ4_count
static unsigned LZ4_count(const BYTE* pIn, const BYTE* pMatch, const BYTE* pInLimit)
{
    const BYTE* const pStart = pIn;

    while (likely(pIn<pInLimit-(STEPSIZE-1))) {
        reg_t const diff = LZ4_read_ARCH(pMatch) ^ LZ4_read_ARCH(pIn);
        if (!diff) { pIn+=STEPSIZE; pMatch+=STEPSIZE; continue; }
        pIn += LZ4_NbCommonBytes(diff);
        return (unsigned)(pIn - pStart);
    }

    if ((STEPSIZE==8) && (pIn<(pInLimit-3)) && (LZ4_read32(pMatch) == LZ4_read32(pIn))) { pIn+=4; pMatch+=4; }
    if ((pIn<(pInLimit-1)) && (LZ4_read16(pMatch) == LZ4_read16(pIn))) { pIn+=2; pMatch+=2; }
    if ((pIn<pInLimit) && (*pMatch == *pIn)) pIn++;
    return (unsigned)(pIn - pStart);
}

// Assembly:
pushq %rbx
leaq -0x7(%rdx), %r8
movq %rdi, %rcx
cmpq %r8, %rcx
jae 0x2c20d
movq (%rsi), %r9
movq (%rcx), %r10
movq %r10, %r11
xorq %r9, %r11
bsfq %r11, %r11
shrl $0x3, %r11d
addq %rcx, %r11
movl %r11d, %ebx
subl %edi, %ebx
addq $0x8, %rcx
addq $0x8, %rsi
cmpq %r10, %r9
cmovneq %r11, %rcx
cmovnel %ebx, %eax
je 0x2c1d6
popq %rbx
retq
leaq -0x3(%rdx), %rax
cmpq %rax, %rcx
jae 0x2c224
movl (%rsi), %eax
cmpl (%rcx), %eax
jne 0x2c224
addq $0x4, %rcx
addq $0x4, %rsi
leaq -0x1(%rdx), %rax
cmpq %rax, %rcx
jae 0x2c23d
movzwl (%rsi), %eax
cmpw (%rcx), %ax
jne 0x2c23d
addq $0x2, %rcx
addq $0x2, %rsi
cmpq %rdx, %rcx
jae 0x2c24e
movb (%rsi), %al
xorl %edx, %edx
cmpb (%rcx), %al
sete %dl
addq %rdx, %rcx
subl %edi, %ecx
movl %ecx, %eax
jmp 0x2c20b
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: main
int main(int argc, char **argv) {
  lua_State *L = luaL_newstate();
  margc = argc; margv = argv;
  px_register_args(L, argc, argv);
  luaL_openlibs(L);
  luaL_requiref(L, "pixl", px_lua_open, 1);
  lua_getglobal(L, "debug"); lua_getfield(L, -1, "traceback"); lua_remove(L, -2);
  lua_pushcfunction(L, px_lua_init);
  if (lua_pcall(L, 0, 0, -2) != LUA_OK) {
    const char *message = luaL_gsub(L, lua_tostring(L, -1), "\t", "  ");
    if (audio_device) SDL_PauseAudioDevice(audio_device, SDL_TRUE);
    #ifndef _WIN32
    fprintf(stderr, "=[ PiXL Panic ]=\n%s\n", message);
    #endif // _WIN32
    SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "PiXL Panic", message, window);
  }
  lua_close(L);
  px_shutdown();
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movl %edi, %ebp
callq 0xd5c8
movq %rax, %rbx
movl %ebp, 0x12b9d(%rip)     # 0x3f4ec
movq %r14, 0x12b9a(%rip)     # 0x3f4f0
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x946f
testl %ebp, %ebp
jle 0x2c990
movl %ebp, %r12d
xorl %r15d, %r15d
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
callq 0x8927
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0x9d57
incq %r15
cmpq %r15, %r12
jne 0x2c96c
leaq 0x41cc(%rip), %rsi      # 0x30b63
movq %rbx, %rdi
callq 0x9815
movq %rbx, %rdi
callq 0x13328
leaq 0x5b9a(%rip), %rsi      # 0x32548
leaq 0xef(%rip), %rdx        # 0x2caa4
movq %rbx, %rdi
movl $0x1, %ecx
callq 0xd3a5
leaq 0x4073(%rip), %rsi      # 0x30a3c
movq %rbx, %rdi
callq 0x8fc9
leaq 0x40e6(%rip), %rdx      # 0x30abe
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x9310
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x72c6
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x7275
leaq 0x11a(%rip), %rsi       # 0x2cb25
movq %rbx, %rdi
xorl %edx, %edx
callq 0x8e75
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xa177
testl %eax, %eax
jne 0x2ca9a
movq %rbx, %rdi
callq 0x14f61
movl 0x12aaa(%rip), %edi     # 0x3f4e8
testl %edi, %edi
je 0x2ca47
callq 0x6240
movq 0x12a92(%rip), %rdi     # 0x3f4e0
testq %rdi, %rdi
je 0x2ca58
callq 0x6380
movq 0x12a79(%rip), %rdi     # 0x3f4d8
testq %rdi, %rdi
je 0x2ca69
callq 0x6230
movq 0x12a60(%rip), %rdi     # 0x3f4d0
testq %rdi, %rdi
je 0x2ca7a
callq 0x6030
callq 0x60b0
movl 0x1130c7(%rip), %edi    # 0x13fb4c
cmpl $-0x1, %edi
je 0x2ca8f
callq 0x6890
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x6f74
jmp 0x2ca30
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: px_lua_open
static int px_lua_open(lua_State *L) {
  luaL_newlib(L, px_functions);
  lua_pushstring(L, PX_AUTHOR); lua_setfield(L, -2, "_author");
  lua_pushinteger(L, PX_VERSION); lua_setfield(L, -2, "_version");
  return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movsd 0x3258(%rip), %xmm0     # 0x2fd08
movl $0x88, %esi
callq 0xd80b
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1d, %edx
callq 0x946f
leaq 0x12110(%rip), %rsi     # 0x3ebe0
movq %rbx, %rdi
xorl %edx, %edx
callq 0xd213
leaq 0x5a91(%rip), %rsi      # 0x32572
movq %rbx, %rdi
callq 0x8927
leaq 0x5aaf(%rip), %rdx      # 0x3259f
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x9bb2
movl $0x212, %esi            # imm = 0x212
movq %rbx, %rdi
callq 0x876d
leaq 0x5a96(%rip), %rdx      # 0x325a7
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x9bb2
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_point
static int f_point(lua_State *L) {
  Uint8 color = (Uint8)luaL_checkinteger(L, 1);
  int x0 = (int)luaL_checknumber(L, 2);
  int y0 = (int)luaL_checknumber(L, 3);
  _pixel(color, x0, y0);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x1, %esi
callq 0xc56e
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xc4ef
cvttsd2si %xmm0, %ebp
movq %r14, %rdi
movl $0x3, %esi
callq 0xc4ef
addl 0x11208b(%rip), %ebp    # 0x13f500
js 0x2d4a8
cmpl 0x11208b(%rip), %ebp    # 0x13f508
jge 0x2d4a8
cvttsd2si %xmm0, %eax
addl 0x11207b(%rip), %eax    # 0x13f504
js 0x2d4a8
cmpl 0x11207b(%rip), %eax    # 0x13f50c
jge 0x2d4a8
movl %ebp, %ecx
movl %eax, %eax
shlq $0xa, %rcx
leaq 0x1205e(%rip), %rdx     # 0x3f500
addq %rcx, %rdx
movb %bl, (%rax,%rdx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_fill
static int f_fill(lua_State *L) {
  Uint8 color = (Uint8)luaL_checkinteger(L, 1);
  int x0 = (int)luaL_checknumber(L, 2);
  int y0 = (int)luaL_checknumber(L, 3);
  int x1 = (int)luaL_checknumber(L, 4);
  int y1 = (int)luaL_checknumber(L, 5);
  int x, y;
  if (x0 > x1) swap(int, x0, x1);
  if (y0 > y1) swap(int, y0, y1);
  for (y = y0; y <= y1; ++y) {
    for (x = x0; x <= x1; ++x) {
      _pixel(color, x, y);
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movl $0x1, %esi
callq 0xc56e
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xc4ef
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x3, %esi
callq 0xc4ef
cvttsd2si %xmm0, %r12d
movq %r14, %rdi
movl $0x4, %esi
callq 0xc4ef
cvttsd2si %xmm0, %ebp
movq %r14, %rdi
movl $0x5, %esi
callq 0xc4ef
cvttsd2si %xmm0, %eax
cmpl %ebp, %r15d
movslq %ebp, %r8
cmovll %r15d, %ebp
cmpl %eax, %r12d
movl %eax, %ecx
cmovgl %r12d, %ecx
cmovll %r12d, %eax
movl 0x111fda(%rip), %edx    # 0x13f504
movl 0x111fd8(%rip), %esi    # 0x13f508
movl 0x111fd6(%rip), %edi    # 0x13f50c
movslq %r15d, %r9
subq %r8, %r9
movq %r9, %r8
negq %r8
cmovsq %r9, %r8
incl %r8d
addl 0x111fb1(%rip), %ebp    # 0x13f500
leaq 0x11faa(%rip), %r9      # 0x3f500
leal (%rdx,%rax), %r10d
movl %ebp, %r11d
movl %r8d, %r14d
testl %r11d, %r11d
js 0x2d582
cmpl %esi, %r11d
jge 0x2d582
testl %r10d, %r10d
js 0x2d582
cmpl %edi, %r10d
jge 0x2d582
movl %r11d, %r15d
shlq $0xa, %r15
addq %r9, %r15
movb %bl, (%r10,%r15)
incl %r11d
decl %r14d
jne 0x2d560
leal 0x1(%rax), %r10d
cmpl %ecx, %eax
movl %r10d, %eax
jne 0x2d556
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_rect
static int f_rect(lua_State *L) {
  Uint8 color = (Uint8)luaL_checkinteger(L, 1);
  int x0 = (int)luaL_checknumber(L, 2);
  int y0 = (int)luaL_checknumber(L, 3);
  int x1 = (int)luaL_checknumber(L, 4);
  int y1 = (int)luaL_checknumber(L, 5);
  int x, y;
  if (x0 > x1) swap(int, x0, x1);
  if (y0 > y1) swap(int, y0, y1);
  for (x = x0; x <= x1; ++x) {
    _pixel(color, x, y0);
    _pixel(color, x, y1);
  }
  for (y = y0; y <= y1; ++y) {
    _pixel(color, x0, y);
    _pixel(color, x1, y);
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movl $0x1, %esi
callq 0xc56e
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xc4ef
cvttsd2si %xmm0, %ebp
movq %r14, %rdi
movl $0x3, %esi
callq 0xc4ef
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x4, %esi
callq 0xc4ef
cvttsd2si %xmm0, %r12d
movq %r14, %rdi
movl $0x5, %esi
callq 0xc4ef
cvttsd2si %xmm0, %eax
cmpl %r12d, %ebp
movl %r12d, %ecx
cmovgl %ebp, %ecx
movl %r12d, %edx
cmovll %ebp, %edx
cmpl %eax, %r15d
movl %eax, %esi
cmovgl %r15d, %esi
cmovll %r15d, %eax
movl 0x111ee3(%rip), %r8d    # 0x13f504
leal (%r8,%rax), %r9d
addl %esi, %r8d
movl 0x111ed9(%rip), %r10d   # 0x13f508
movl 0x111ed6(%rip), %r11d   # 0x13f50c
movslq %ebp, %rdi
movslq %r12d, %r14
subq %r14, %rdi
movq %rdi, %r14
negq %r14
cmovsq %rdi, %r14
incl %r14d
movl 0x111eae(%rip), %ebp    # 0x13f500
addl %edx, %ebp
leaq 0x11ea5(%rip), %rdi     # 0x3f500
testl %ebp, %ebp
js 0x2d69d
cmpl %r10d, %ebp
jge 0x2d67c
testl %r9d, %r9d
js 0x2d67c
cmpl %r11d, %r9d
jge 0x2d67c
movl %ebp, %r15d
shlq $0xa, %r15
addq %rdi, %r15
movb %bl, (%r9,%r15)
testl %ebp, %ebp
js 0x2d69d
cmpl %r10d, %ebp
jge 0x2d69d
testl %r8d, %r8d
js 0x2d69d
cmpl %r11d, %r8d
jge 0x2d69d
movl %ebp, %r15d
shlq $0xa, %r15
addq %rdi, %r15
movb %bl, (%r8,%r15)
incl %ebp
decl %r14d
jne 0x2d65b
movl 0x111e55(%rip), %r8d    # 0x13f500
addl %r8d, %edx
addl %r8d, %ecx
movl 0x111e50(%rip), %r8d    # 0x13f508
movl 0x111e4d(%rip), %r9d    # 0x13f50c
subl %eax, %esi
incl %esi
addl 0x111e3b(%rip), %eax    # 0x13f504
movq %rdx, %r10
shlq $0xa, %r10
addq %rdi, %r10
movq %rcx, %r11
shlq $0xa, %r11
addq %rdi, %r11
testl %edx, %edx
js 0x2d6f5
cmpl %r8d, %edx
jge 0x2d6f5
testl %eax, %eax
js 0x2d6f5
cmpl %r9d, %eax
jge 0x2d6f5
movl %eax, %edi
movb %bl, (%rdi,%r10)
testl %ecx, %ecx
js 0x2d70d
cmpl %r8d, %ecx
jge 0x2d70d
testl %eax, %eax
js 0x2d70d
cmpl %r9d, %eax
jge 0x2d70d
movl %eax, %edi
movb %bl, (%rdi,%r11)
incl %eax
decl %esi
jne 0x2d6dd
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_line
static int f_line(lua_State *L) {
  Uint8 color = (Uint8)luaL_checkinteger(L, 1);
  int x0 = (int)luaL_checknumber(L, 2);
  int y0 = (int)luaL_checknumber(L, 3);
  int x1 = (int)luaL_checknumber(L, 4);
  int y1 = (int)luaL_checknumber(L, 5);
  int dx = SDL_abs(x1 - x0), sx = x0 < x1 ? 1 : -1;
  int dy = SDL_abs(y1 - y0), sy = y0 < y1 ? 1 : -1;
  int err = (dx > dy ? dx : -dy) / 2, e2;
  for (;;) {
    _pixel(color, x0, y0);
    if (x0 == x1 && y0 == y1) break;
    e2 = err;
    if (e2 > -dx) { err -= dy; x0 += sx; }
    if (e2 < dy) { err += dx; y0 += sy; }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x1, %esi
callq 0xc56e
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movl $0x2, %esi
callq 0xc4ef
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x3, %esi
callq 0xc4ef
cvttsd2si %xmm0, %r12d
movq %r14, %rdi
movl $0x4, %esi
callq 0xc4ef
cvttsd2si %xmm0, %r13d
movq %r14, %rdi
movl $0x5, %esi
callq 0xc4ef
cvttsd2si %xmm0, %eax
movl %eax, 0x8(%rsp)
xorl %ebx, %ebx
movl %r13d, %edi
subl %r15d, %edi
setg %bl
callq 0x60a0
movl %eax, %ebp
leal -0x1(,%rbx,2), %ebx
xorl %r14d, %r14d
movl 0x8(%rsp), %edi
subl %r12d, %edi
setg %r14b
callq 0x60a0
movl %eax, %esi
negl %esi
cmpl %eax, %ebp
cmovgl %ebp, %esi
leal -0x1(,%r14,2), %ecx
movl %esi, %r9d
shrl $0x1f, %r9d
addl %esi, %r9d
sarl %r9d
movl 0x111d26(%rip), %r11d   # 0x13f500
movl 0x111d23(%rip), %r14d   # 0x13f504
movl 0x111d20(%rip), %r8d    # 0x13f508
movl 0x111d1e(%rip), %edx    # 0x13f50c
movl %edx, 0xc(%rsp)
movl %ebp, %r10d
negl %r10d
movl %r11d, %esi
addl %r15d, %esi
js 0x2d82d
cmpl %r8d, %esi
jge 0x2d82d
movl %r14d, %edi
addl %r12d, %edi
js 0x2d82d
cmpl 0xc(%rsp), %edi
jge 0x2d82d
movl %esi, %esi
movl %edi, %edi
shlq $0xa, %rsi
leaq 0x11cde(%rip), %rdx     # 0x3f500
addq %rdx, %rsi
movq 0x10(%rsp), %rdx
movb %dl, (%rdi,%rsi)
cmpl %r13d, %r15d
jne 0x2d839
cmpl 0x8(%rsp), %r12d
je 0x2d871
cmpl %r10d, %r9d
movl $0x0, %esi
cmovgl %eax, %esi
movl $0x0, %edi
cmovgl %ebx, %edi
movl %r9d, %edx
subl %esi, %edx
addl %edi, %r15d
cmpl %eax, %r9d
movl $0x0, %esi
cmovll %ecx, %esi
movl $0x0, %r9d
cmovll %ebp, %r9d
addl %esi, %r12d
addl %edx, %r9d
jmp 0x2d7f8
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_circle
static int f_circle(lua_State *L) {
  Uint8 color = (Uint8)luaL_checkinteger(L, 1);
  int x0 = (int)luaL_checknumber(L, 2);
  int y0 = (int)luaL_checknumber(L, 3);
  int radius = (int)luaL_checknumber(L, 4);
  int fill = lua_toboolean(L, 5);
  int r0sq = fill ? 0 : (radius - 1) * (radius - 1);
  int r1sq = radius * radius;
  int x, y, dx, dy, dist;
  for (y = y0 - radius; y <= y0 + radius; ++y) {
    dy = y0 - y; dy *= dy;
    for (x = x0 - radius; x <= x0 + radius; ++x) {
      dx = x0 - x; dx *= dx;
      dist = dx + dy;
      if ((dist >= r0sq) && (dist < r1sq)) _pixel(color, x, y);
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
movl $0x1, %esi
callq 0xc56e
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xc4ef
movsd %xmm0, (%rsp)
movq %r14, %rdi
movl $0x3, %esi
callq 0xc4ef
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x4, %esi
callq 0xc4ef
cvttsd2si %xmm0, %r12d
movq %r14, %rdi
movl $0x5, %esi
callq 0x8270
movl %r15d, %ecx
subl %r12d, %ecx
movq %r15, 0x30(%rsp)
movq %r12, 0x18(%rsp)
leal (%r12,%r15), %edx
movl %edx, 0x14(%rsp)
cmpl %edx, %ecx
jg 0x2d9fd
cvttsd2si (%rsp), %esi
movq 0x18(%rsp), %rdx
leal -0x1(%rdx), %edi
imull %edi, %edi
movl %edx, %r8d
imull %edx, %r8d
movl %esi, %r9d
subl %edx, %r9d
movl %r9d, (%rsp)
leal (%rdx,%rsi), %r9d
movl %r9d, 0x10(%rsp)
movl 0x111bd0(%rip), %r9d    # 0x13f504
movq %r9, 0x20(%rsp)
movl 0x111bc9(%rip), %ebp    # 0x13f508
movl 0x111bc6(%rip), %r14d   # 0x13f50c
leal 0x1(,%rdx,2), %r9d
movl %r9d, 0xc(%rsp)
addl 0x111ba7(%rip), %esi    # 0x13f500
subl %edx, %esi
movq %rsi, 0x28(%rsp)
movl 0x10(%rsp), %edx
cmpl %edx, (%rsp)
jg 0x2d9ee
movq 0x30(%rsp), %rdx
movl %edx, %r15d
subl %ecx, %r15d
imull %r15d, %r15d
movq 0x20(%rsp), %rdx
leal (%rdx,%rcx), %r13d
movq 0x28(%rsp), %rdx
movl %edx, %esi
movq 0x18(%rsp), %rdx
movl %edx, %r10d
movl 0xc(%rsp), %edx
testl %eax, %eax
setne %r9b
movl %r10d, %r12d
imull %r10d, %r12d
addl %r15d, %r12d
cmpl %r12d, %edi
setbe %r11b
orb %r9b, %r11b
cmpb $0x1, %r11b
jne 0x2d9e5
cmpl %r8d, %r12d
jae 0x2d9e5
testl %esi, %esi
js 0x2d9e5
cmpl %ebp, %esi
jge 0x2d9e5
testl %r13d, %r13d
js 0x2d9e5
cmpl %r14d, %r13d
jge 0x2d9e5
movl %esi, %r9d
shlq $0xa, %r9
leaq 0x11b23(%rip), %r11     # 0x3f500
addq %r11, %r9
movb %bl, (%r13,%r9)
decl %r10d
incl %esi
decl %edx
jne 0x2d998
leal 0x1(%rcx), %edx
cmpl 0x14(%rsp), %ecx
movl %edx, %ecx
jne 0x2d960
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_translate
static int f_translate(lua_State *L) {
  if (lua_gettop(L) == 2) {
    int x = (int)luaL_checknumber(L, 1);
    int y = (int)luaL_checknumber(L, 2);
    translation.x = x;
    translation.y = y;
  }
  lua_pushinteger(L, translation.x);
  lua_pushinteger(L, translation.y);
  return 2;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x7261
cmpl $0x2, %eax
jne 0x2da4c
movq %rbx, %rdi
movl $0x1, %esi
callq 0xc4ef
cvttsd2si %xmm0, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0xc4ef
cvttsd2si %xmm0, %eax
movl %ebp, 0x111aba(%rip)    # 0x13f500
movl %eax, 0x111ab8(%rip)    # 0x13f504
movslq 0x111aad(%rip), %rsi    # 0x13f500
movq %rbx, %rdi
callq 0x876d
movslq 0x111aa2(%rip), %rsi    # 0x13f504
movq %rbx, %rdi
callq 0x876d
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_sprite
static int f_sprite(lua_State *L) {
  size_t length;
  Uint8 color;
  int x, y, w, h;
  int x0 = (int)luaL_checknumber(L, 1);
  int y0 = (int)luaL_checknumber(L, 2);
  const char *data = luaL_checklstring(L, 3, &length);
  int transparent = (int)luaL_optinteger(L, 4, -1);
  switch (length) {
  case 64: w = h = 8; break;
  case 256: w = h = 16; break;
  case 1024: w = h = 32; break;
  case 384: w = 16; h = 24; break;
  default: return luaL_argerror(L, 3, "invalid sprite data length");
  }
  for (y = y0; y < y0 + h; ++y) {
    for (x = x0; x < x0 + w; ++x) {
      color = sprite_color_map[(*data++) & 127];
      if (color != transparent) _pixel(color, x, y);
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x1, %esi
callq 0xc4ef
movsd %xmm0, (%rsp)
movq %r14, %rdi
movl $0x2, %esi
callq 0xc4ef
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movl $0x3, %esi
movq %r15, %rdx
callq 0xc445
movq %rax, %rbx
movq %r14, %rdi
movl $0x4, %esi
movq $-0x1, %rdx
callq 0xc5c9
movq (%r15), %rcx
cmpq $0x17f, %rcx            # imm = 0x17F
jg 0x2dafc
cmpq $0x40, %rcx
je 0x2db33
cmpq $0x100, %rcx            # imm = 0x100
jne 0x2db1a
movl $0x10, %ecx
movl $0x10, %esi
jmp 0x2db49
cmpq $0x180, %rcx            # imm = 0x180
je 0x2db3f
cmpq $0x400, %rcx            # imm = 0x400
jne 0x2db1a
movl $0x20, %ecx
movl $0x20, %esi
jmp 0x2db49
leaq 0x4b0f(%rip), %rdx      # 0x32630
movq %r14, %rdi
movl $0x3, %esi
callq 0xbccb
jmp 0x2dbd3
movl $0x8, %ecx
movl $0x8, %esi
jmp 0x2db49
movl $0x18, %esi
movl $0x10, %ecx
cvttsd2si (%rsp), %edx
cvttsd2si 0x8(%rsp), %edi
addl %edi, %esi
movl %edx, (%rsp)
addl %edx, %ecx
movl 0x11199f(%rip), %edx    # 0x13f500
movl 0x11199c(%rip), %r9d    # 0x13f504
movl 0x111999(%rip), %r10d   # 0x13f508
movl 0x111996(%rip), %r11d   # 0x13f50c
leaq 0x4493(%rip), %r14      # 0x32010
leaq 0x1197c(%rip), %r15     # 0x3f500
leal (%r9,%rdi), %r12d
movl (%rsp), %ebp
movzbl (%rbx), %r8d
andl $0x7f, %r8d
movzbl (%r8,%r14), %r13d
cmpl %eax, %r13d
je 0x2dbc2
movl %edx, %r8d
addl %ebp, %r8d
js 0x2dbc2
cmpl %r10d, %r8d
jge 0x2dbc2
testl %r12d, %r12d
js 0x2dbc2
cmpl %r11d, %r12d
jge 0x2dbc2
movl %r8d, %r8d
shlq $0xa, %r8
addq %r15, %r8
movb %r13b, (%r12,%r8)
incq %rbx
incl %ebp
cmpl %ecx, %ebp
jl 0x2db8b
incl %edi
cmpl %esi, %edi
jl 0x2db84
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_print
static int f_print(lua_State *L) {
  int x, y;
  Uint8 glyph;
  Uint8 color = (Uint8)luaL_checkinteger(L, 1);
  int x0 = (int)luaL_checknumber(L, 2);
  int y0 = (int)luaL_checknumber(L, 3);
  const char *str = luaL_checkstring(L, 4);
  for (; *str; ++str, x0 += 8) {
    for (y = 0; y < 8; ++y) {
      glyph = font8x8[*str & 127][y];
      for (x = 0; x < 8; ++x) {
        if (glyph & (1 << x)) _pixel(color, x0 + x, y0 + y);
      }
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x1, %esi
callq 0xc56e
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xc4ef
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movl $0x3, %esi
callq 0xc4ef
movsd %xmm0, 0x10(%rsp)
movq %r14, %rdi
movl $0x4, %esi
xorl %edx, %edx
callq 0xc445
cmpb $0x0, (%rax)
je 0x2dd0b
cvttsd2si 0x10(%rsp), %edi
cvttsd2si 0x8(%rsp), %r8d
movslq 0x1118ae(%rip), %r10    # 0x13f500
movslq 0x1118ab(%rip), %rcx    # 0x13f504
movslq 0x1118a8(%rip), %rdx    # 0x13f508
movslq 0x1118a5(%rip), %rsi    # 0x13f50c
movslq %edi, %rdi
movslq %r8d, %r9
addq %r10, %r9
movq %r9, %r8
shlq $0xa, %r8
leaq 0x11882(%rip), %r11     # 0x3f500
addq %rdi, %r11
addq %rcx, %r11
addq %r8, %r11
leaq 0x4402(%rip), %r10      # 0x32090
movq %r11, 0x8(%rsp)
xorl %r14d, %r14d
movzbl (%rax), %r8d
andl $0x7f, %r8d
leaq (%r10,%r8,8), %r8
movzbl (%r14,%r8), %ebp
leaq (%r14,%rdi), %r15
addq %rcx, %r15
movq %r11, %r12
xorl %r13d, %r13d
btl %r13d, %ebp
jae 0x2dcd5
movq %r9, %r8
addq %r13, %r8
js 0x2dcd5
cmpq %rdx, %r8
jge 0x2dcd5
testq %r15, %r15
js 0x2dcd5
cmpq %rsi, %r15
jge 0x2dcd5
movb %bl, (%r12)
incq %r13
addq $0x400, %r12            # imm = 0x400
cmpq $0x8, %r13
jne 0x2dcb4
incq %r14
incq %r11
cmpq $0x8, %r14
jne 0x2dc96
movq 0x8(%rsp), %r11
addq $0x2000, %r11           # imm = 0x2000
addq $0x8, %r9
cmpb $0x0, 0x1(%rax)
leaq 0x1(%rax), %rax
jne 0x2dc8e
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_play
static int f_play(lua_State *L) {
  AudioChannel *channel;
  int i = (int)luaL_checkinteger(L, 1);
  const char *str = luaL_checkstring(L, 2);
  luaL_argcheck(L, i >= 0 && i < PX_AUDIO_CHANNELS, 1, "invalid channel");
  if (audio_device) {
    SDL_LockAudioDevice(audio_device);
    channel = &channels[i];
    mml_reset_channel(channel);
    channel->source = channel->in = SDL_strdup(str);
    channel->looping = lua_toboolean(L, 3);
    SDL_UnlockAudioDevice(audio_device);
  }
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0xc56e
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0xc445
movq %rax, %r15
testl $0xfffffff8, %r14d      # imm = 0xFFFFFFF8
je 0x2dd63
leaq 0x48f5(%rip), %rdx      # 0x3264b
movq %rbx, %rdi
movl $0x1, %esi
callq 0xbccb
movl 0x1177f(%rip), %edi     # 0x3f4e8
testl %edi, %edi
je 0x2ddb7
callq 0x64c0
movslq %r14d, %rax
imulq $0x38, %rax, %r14
leaq 0x111790(%rip), %r12    # 0x13f510
leaq (%r12,%r14), %rdi
callq 0x2e6c3
movq %r15, %rdi
callq 0x61b0
movq %rax, 0x8(%r14,%r12)
movq %rax, (%r14,%r12)
movq %rbx, %rdi
movl $0x3, %esi
callq 0x8270
movl %eax, 0x10(%r14,%r12)
movl 0x11736(%rip), %edi     # 0x3f4e8
callq 0x6780
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_stop
static int f_stop(lua_State *L) {
  int i = (int)luaL_checkinteger(L, 1);
  luaL_argcheck(L, i >= 0 && i < PX_AUDIO_CHANNELS, 1, "invalid channel");
  if (audio_device) {
    SDL_LockAudioDevice(audio_device);
    mml_reset_channel(&channels[i]);
    SDL_UnlockAudioDevice(audio_device);
  }
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x1, %esi
callq 0xc56e
movq %rax, %rbx
testl $0xfffffff8, %ebx       # imm = 0xFFFFFFF8
je 0x2ddf5
leaq 0x4863(%rip), %rdx      # 0x3264b
movq %r14, %rdi
movl $0x1, %esi
callq 0xbccb
movl 0x116ed(%rip), %edi     # 0x3f4e8
testl %edi, %edi
je 0x2de25
callq 0x64c0
movslq %ebx, %rax
imulq $0x38, %rax, %rax
leaq 0x1116fe(%rip), %rdi    # 0x13f510
addq %rax, %rdi
callq 0x2e6c3
movl 0x116c8(%rip), %edi     # 0x3f4e8
callq 0x6780
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_mouse
static int f_mouse(lua_State *L) {
  Input *input = &inputs[_check_controller(L)];
  lua_pushinteger(L, input->mouse.x + translation.x);
  lua_pushinteger(L, input->mouse.y + translation.y);
  return 2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x2e701
cltq
leaq (%rax,%rax,2), %r14
leaq 0x111bce(%rip), %r15    # 0x13fae0
movslq 0x4(%r15,%r14,4), %rax
movslq 0x1115e2(%rip), %rsi    # 0x13f500
addq %rax, %rsi
movq %rbx, %rdi
callq 0x876d
movslq 0x8(%r15,%r14,4), %rax
movslq 0x1115cf(%rip), %rsi    # 0x13f504
addq %rax, %rsi
movq %rbx, %rdi
callq 0x876d
movl $0x2, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_clipboard
static int f_clipboard(lua_State *L) {
  if (lua_gettop(L) > 0) {
    const char *text = luaL_checkstring(L, 1);
    if (SDL_SetClipboardText(text)) luaL_error(L, "SDL_SetClipboardText() failed: %s", SDL_GetError());
    lua_pushstring(L, text);
    return 1;
  }
  else {
    lua_pushstring(L, SDL_GetClipboardText());
    return 1;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x7261
testl %eax, %eax
jle 0x2df94
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0xc445
movq %rax, %r14
movq %rax, %rdi
callq 0x67e0
testl %eax, %eax
je 0x2df9c
callq 0x6390
leaq 0x4703(%rip), %rsi      # 0x32688
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xbda0
jmp 0x2df9c
callq 0x6220
movq %rax, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8927
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/kieselsteini[P]PiXL-old/pixl.c
// Function: f_randomseed
static int f_randomseed(lua_State *L) {
  if (lua_gettop(L) > 0) {
    Uint32 x = (Uint32)luaL_checkinteger(L, 1);
    px_randomseed(x);
  }
  lua_pushinteger(L, (lua_Integer)seed);
  return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x7261
testl %eax, %eax
jle 0x2e002
movq %rbx, %rdi
movl $0x1, %esi
callq 0xc56e
testl %eax, %eax
movl $0x2f, %ecx
cmovnel %eax, %ecx
movl %ecx, 0x111b6a(%rip)    # 0x13fb48
movl $0x400, %eax            # imm = 0x400
movl %ecx, %edx
shll $0xd, %edx
xorl %ecx, %edx
movl %edx, %esi
shrl $0x11, %esi
xorl %edx, %esi
movl %esi, %ecx
shll $0x5, %ecx
xorl %esi, %ecx
decl %eax
jne 0x2dfe3
movl %ecx, 0x111b46(%rip)    # 0x13fb48
movl 0x111b40(%rip), %esi    # 0x13fb48
movq %rbx, %rdi
callq 0x876d
movl $0x1, %eax
popq %rbx
retq