LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/pocari[P]compilerbook-9cc/ynicc.c
// Function: main
int main(int argc, char **argv) {
  bool f_dump_ast = false;
  bool f_dump_ast_only = false;
  bool f_dump_tokens = false;

  if (argc < 2) {
    fprintf(stderr, "引数の個数が正しくありません\n");
    return 1;
  }

  if (argc > 2) {
    for (int i = 1; i < argc - 1; i++) {
      if (strcmp(argv[i], "--ast") == 0) {
        f_dump_ast = true;
      }
      if (strcmp(argv[i], "--ast-only") == 0) {
        f_dump_ast = true;
        f_dump_ast_only = true;
      }
      if (strcmp(argv[i], "--tokens") == 0) {
        f_dump_tokens = true;
      }
    }
  }

  // プログラム全体を保存
  filename = argv[argc - 1];
  user_input = read_file(filename);

  // head はfree用
  Token *head = token = tokenize(user_input);
  // fprintf(stderr, "-------------------------------- tokenized\n");
  if (f_dump_tokens) {
    printf("##-----------------------------\n");
    printf("## tokens\n");
    dump_tokens(head);
  }

  // パースする(結果は グローバル変数のfunctionsに入る)
  Program *pgm = program();


  if (f_dump_ast) {
    printf("##-----------------------------\n");
    printf("## ast\n");
    dump_globals(pgm->global_var);
    for (Function *f = pgm->functions; f; f = f->next) {
      if (f_dump_ast) {
        dump_function(f);
      }
    }
  }

  if (!f_dump_ast_only) {
    codegen(pgm);
  }

  free_tokens(head);

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x1, %edi
jle 0xa1f4
cmpl $0x2, %edi
movq %rdi, (%rsp)
jne 0xa0bb
xorl %r14d, %r14d
xorl %r12d, %r12d
xorl %r15d, %r15d
jmp 0xa132
leal -0x1(%rdi), %eax
movq %rax, 0x8(%rsp)
movl $0x1, %ebx
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %r14d, %r14d
movq %rsi, 0x10(%rsp)
movq (%rsi,%rbx,8), %rbp
movq %rbp, %rdi
leaq 0x30a3(%rip), %rsi      # 0xd187
callq 0x2110
testl %eax, %eax
sete %r13b
movq %rbp, %rdi
leaq 0x3094(%rip), %rsi      # 0xd18d
callq 0x2110
testl %eax, %eax
sete %al
orb %al, %r14b
orb %al, %r13b
orb %r13b, %r15b
movq %rbp, %rdi
leaq 0x3082(%rip), %rsi      # 0xd198
callq 0x2110
movq 0x10(%rsp), %rsi
testl %eax, %eax
sete %al
orb %al, %r12b
incq %rbx
cmpq %rbx, 0x8(%rsp)
jne 0xa0d6
movl (%rsp), %eax
movq -0x8(%rsi,%rax,8), %rdi
movq %rdi, 0x632f(%rip)      # 0x10470
callq 0x9cb1
movq %rax, 0x632b(%rip)      # 0x10478
movq %rax, %rdi
callq 0x9765
movq %rax, %rbx
movq %rax, 0x6321(%rip)      # 0x10480
testb $0x1, %r12b
je 0xa185
leaq 0x303f(%rip), %rdi      # 0xd1ab
callq 0x2070
leaq 0x3029(%rip), %rdi      # 0xd1a1
callq 0x2070
movq %rbx, %rdi
callq 0x485f
xorl %eax, %eax
callq 0x4be4
movq %rax, %r12
testb $0x1, %r15b
je 0xa1cd
leaq 0x300f(%rip), %rdi      # 0xd1ab
callq 0x2070
leaq 0x3023(%rip), %rdi      # 0xd1cb
callq 0x2070
movq (%r12), %rdi
callq 0x480a
movq 0x8(%r12), %r15
testq %r15, %r15
je 0xa1cd
movq %r15, %rdi
callq 0x47e7
movq (%r15), %r15
jmp 0xa1bb
testb $0x1, %r14b
jne 0xa1db
movq %r12, %rdi
callq 0x23dc
movq %rbx, %rdi
callq 0x9623
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x22c5
movl $0x1, %eax
jmp 0xa1e5
// File: /workspace/github_c_makefile_star2_O3/cirocosta[P]stress/src/context-switches.c
// Function: stick_self_to_core
int
stick_self_to_core(int cpu)
{
	cpu_set_t cpuset;

	CPU_ZERO(&cpuset);
	CPU_SET(cpu, &cpuset);
	return sched_setaffinity(0, sizeof(cpuset), &cpuset);
}

// Assembly:
subq $0x88, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
cmpl $0x3ff, %edi            # imm = 0x3FF
ja 0x1948
movl $0x1, %eax
movl %edi, %ecx
shlq %cl, %rax
shrl $0x6, %edi
orq %rax, (%rsp,%rdi,8)
movq %rsp, %rdx
movl $0x80, %esi
xorl %edi, %edi
callq 0x10b0
addq $0x88, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/cirocosta[P]stress/src/context-switches.c
// Function: thread_handler
void*
thread_handler(void* arg)
{
	(void)arg;
	int num_cores = sysconf(_SC_NPROCESSORS_ONLN);

	while (1) {
		int r = rand() % num_cores;
		int ndx = 0;

		while (++ndx < num_cores) {
			int n = 1000;
			_STRESS_MUST((stick_self_to_core(r) != -1),
			             "couldn't stick thread to cpu %d",
			             ndx);
			while (n-- > 0) {
				printf("Thread %lu is running on CPU %3d\n",
				       (unsigned long)pthread_self(),
				       sched_getcpu());
			}
		}
	}

	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $0x54, %edi
callq 0x1130
movq %rax, %r14
leaq 0x7c1(%rip), %r15       # 0x213f
callq 0x11b0
cltd
idivl %r14d
cmpl $0x2, %r14d
jl 0x197e
movl %edx, %ebp
movl $0x1, %ebx
movl %ebp, %edi
callq 0x18fe
cmpl $-0x1, %eax
je 0x19d4
movl $0x3e9, %r13d           # imm = 0x3E9
callq 0x1120
movq %rax, %r12
callq 0x1150
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
xorl %eax, %eax
callq 0x1090
decl %r13d
cmpl $0x1, %r13d
ja 0x19ae
incl %ebx
cmpl %r14d, %ebx
jne 0x1994
jmp 0x197e
movq 0x261d(%rip), %r14      # 0x3ff8
movq (%r14), %rcx
leaq 0x63b(%rip), %rdi       # 0x2020
movl $0x9, %esi
movl $0x1, %edx
callq 0x1180
movq (%r14), %rcx
leaq 0x628(%rip), %rdi       # 0x2026
movl $0x3, %esi
movl $0x1, %edx
callq 0x1180
movq (%r14), %rdi
leaq 0x6f1(%rip), %rsi       # 0x2108
movl %ebx, %edx
xorl %eax, %eax
callq 0x10f0
movq (%r14), %rcx
leaq 0x623(%rip), %rdi       # 0x204d
movl $0x2, %esi
movl $0x1, %edx
callq 0x1180
movq (%r14), %rdi
leaq 0x60d(%rip), %rsi       # 0x2050
leaq 0x6de(%rip), %rdx       # 0x2128
xorl %eax, %eax
callq 0x10f0
movq (%r14), %rdi
leaq 0x611(%rip), %rsi       # 0x206c
movl $0x27, %edx
xorl %eax, %eax
callq 0x10f0
movq (%r14), %rsi
movl $0xa, %edi
callq 0x10c0
movq (%r14), %rcx
leaq 0x5fb(%rip), %rdi       # 0x2079
movl $0xa, %esi
movl $0x1, %edx
callq 0x1180
movl $0x1, %edi
callq 0x1170
// File: /workspace/github_c_makefile_star2_O3/cirocosta[P]stress/src/context-switches.c
// Function: main
int
main()
{
	pthread_t threads[NTHREADS];

	srand(time(NULL));
	for (int i = 0; i < NTHREADS; i++) {
		_STRESS_MUST(
		  (!pthread_create(&threads[i], NULL, &thread_handler, NULL)),
		  "Unexpected error creating thread %d",
		  i);
	}

	for (int i = 0; i < NTHREADS; i++) {
		_STRESS_MUST((!pthread_join(threads[i], NULL)),
		             "Unexpected error waiting for thread %d",
		             i);
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x1100
movl %eax, %edi
callq 0x10e0
movq %rsp, %r14
leaq -0x15e(%rip), %r15      # 0x195f
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x1110
testl %eax, %eax
jne 0x1b06
incq %rbx
addq $0x8, %r14
cmpq $0x32, %rbx
jne 0x1abd
xorl %ebx, %ebx
movq (%rsp,%rbx,8), %rdi
xorl %esi, %esi
callq 0x1190
testl %eax, %eax
jne 0x1b0e
incq %rbx
cmpq $0x32, %rbx
jne 0x1adf
xorl %eax, %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movq %rbx, %rdi
callq 0x140c
movq %rbx, %rdi
callq 0x14c5
// File: /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/lua53.c
// Function: luaC_upvdeccount
void luaC_upvdeccount (lua_State *L, UpVal *uv) {
  lua_assert(uv->refcount > 0);
  uv->refcount--;
  if (uv->refcount == 0 && !upisopen(uv))
    luaM_free(L, uv);
}

// Assembly:
decq 0x8(%rsi)
je 0xd22b
retq
leaq 0x10(%rsi), %rax
cmpq %rax, (%rsi)
jne 0xd22a
pushq %rbx
movq 0x18(%rdi), %rbx
movq 0x8(%rbx), %rdi
movl $0x20, %edx
xorl %ecx, %ecx
callq *(%rbx)
addq $-0x20, 0x18(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/lua53.c
// Function: luaL_requiref
LUALIB_API void luaL_requiref (lua_State *L, const char *modname,
                               lua_CFunction openf, int glb) {
  luaL_getsubtable(L, LUA_REGISTRYINDEX, LUA_LOADED_TABLE);
  lua_getfield(L, -1, modname);  /* LOADED[modname] */
  if (!lua_toboolean(L, -1)) {  /* package not already loaded? */
    lua_pop(L, 1);  /* remove field */
    lua_pushcfunction(L, openf);
    lua_pushstring(L, modname);  /* argument to open function */
    lua_call(L, 1, 1);  /* call 'openf' to open module */
    lua_pushvalue(L, -1);  /* make copy of module (call result) */
    lua_setfield(L, -3, modname);  /* LOADED[modname] = module */
  }
  lua_remove(L, -2);  /* remove LOADED table */
  if (glb) {
    lua_pushvalue(L, -1);  /* copy of module */
    lua_setglobal(L, modname);  /* _G[modname] = module */
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x23ae9(%rip), %rdx     # 0x32fbe
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0xf422
movq 0x10(%r14), %rsi
addq $-0x10, %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0xad9e
movq 0x10(%r14), %rax
movl -0x8(%rax), %ecx
testl %ecx, %ecx
je 0xf510
cmpl $0x1, %ecx
jne 0xf591
cmpl $0x0, -0x10(%rax)
jne 0xf591
leaq -0x10(%rax), %rcx
movq %rcx, 0x10(%r14)
movq %r15, -0x10(%rax)
movl $0x16, -0x8(%rax)
addq $0x10, 0x10(%r14)
movq 0x18(%r14), %rax
cmpq $0x0, 0x18(%rax)
jle 0xf53b
movq %r14, %rdi
callq 0xa125
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa67f
movq 0x10(%r14), %rsi
addq $-0x20, %rsi
incw 0xc4(%r14)
movq %r14, %rdi
movl $0x1, %edx
callq 0xbf2f
decw 0xc4(%r14)
movq 0x10(%r14), %rax
movups -0x10(%rax), %xmm0
movups %xmm0, (%rax)
movq 0x10(%r14), %rsi
leaq 0x10(%rsi), %rax
movq %rax, 0x10(%r14)
addq $-0x20, %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0xb6bd
movq %r14, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x90c6
movq 0x10(%r14), %rax
leaq -0x10(%rax), %rcx
movq %rcx, 0x10(%r14)
testl %ebp, %ebp
je 0xf5e9
movups -0x20(%rax), %xmm0
movups %xmm0, (%rcx)
addq $0x10, 0x10(%r14)
movq 0x18(%r14), %rax
movq 0x40(%rax), %rdi
movl $0x2, %esi
callq 0xae27
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xb6bd
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/lua53.c
// Function: luaL_checkversion_
LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver, size_t sz) {
  const lua_Number *v = lua_version(L);
  if (sz != LUAL_NUMSIZES)  /* check numeric types */
    luaL_error(L, "core and library have incompatible numeric types");
  if (v != lua_version(NULL))
    luaL_error(L, "multiple Lua VMs detected");
  else if (*v != ver)
    luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f",
                  (LUAI_UACNUMBER)ver, (LUAI_UACNUMBER)*v);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0xf94c
cmpq $0x88, %rsi
jne 0xf963
movq 0x18(%rdi), %rax
leaq 0x230fe(%rip), %rcx     # 0x32a38
cmpq %rcx, 0xd0(%rax)
je 0xf955
leaq 0x236ad(%rip), %rsi     # 0x32ff7
jmp 0xf96a
cmpq $0x88, %rsi
jne 0xf963
ucomisd 0x2348b(%rip), %xmm0    # 0x32de8
jne 0xf971
jp 0xf971
popq %rax
retq
leaq 0x2365c(%rip), %rsi     # 0x32fc6
xorl %eax, %eax
callq 0xdb8f
leaq 0x23699(%rip), %rsi     # 0x33011
movsd 0x23468(%rip), %xmm1    # 0x32de8
movb $0x2, %al
callq 0xdb8f
// File: /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/lua53.c
// Function: luaK_prefix
void luaK_prefix (FuncState *fs, UnOpr op, expdesc *e, int line) {
  static const expdesc ef = {VKINT, {0}, NO_JUMP, NO_JUMP};
  switch (op) {
    case OPR_MINUS: case OPR_BNOT:  /* use 'ef' as fake 2nd operand */
      if (constfolding(fs, op + LUA_OPUNM, e, &ef))
        break;
      /* FALLTHROUGH */
    case OPR_LEN:
      codeunexpval(fs, cast(OpCode, op + OP_UNM), e, line);
      break;
    case OPR_NOT: codenot(fs, e); break;
    default: lua_assert(0);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
cmpl $0x2, %esi
jb 0x108a7
je 0x10920
cmpl $0x3, %r15d
je 0x108c1
jmp 0x10915
leal 0xc(%r15), %esi
leaq 0x2219e(%rip), %rcx     # 0x32a50
movq %rbx, %rdi
movq %r14, %rdx
callq 0x10a21
testl %eax, %eax
jne 0x10915
addl $0x19, %r15d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x103a8
cmpl $0x7, (%r14)
jne 0x108eb
movl 0x8(%r14), %ecx
btl $0x8, %ecx
jb 0x108eb
movzbl 0x3a(%rbx), %edx
cmpl %edx, %ecx
jl 0x108eb
decb 0x3c(%rbx)
shll $0x17, %eax
orl %r15d, %eax
movq %rbx, %rdi
movl %eax, %esi
callq 0xfced
movl %eax, 0x8(%r14)
movl $0xc, (%r14)
movq (%rbx), %rax
movq 0x48(%rax), %rax
movslq 0x20(%rbx), %rcx
movl %ebp, -0x4(%rax,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1019a
movl (%r14), %eax
decl %eax
cmpl $0xb, %eax
ja 0x109f3
leaq 0x21950(%rip), %rcx     # 0x32290
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x3, (%r14)
jmp 0x109f3
movl $0x2, (%r14)
jmp 0x109f3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1ae33
cmpl $0x7, (%r14)
jne 0x10987
movl 0x8(%r14), %eax
btl $0x8, %eax
jb 0x10987
movzbl 0x3a(%rbx), %ecx
cmpl %ecx, %eax
jl 0x10987
decb 0x3c(%rbx)
movl 0x8(%r14), %esi
shll $0x17, %esi
orl $0x1b, %esi
movq %rbx, %rdi
callq 0xfced
movl %eax, 0x8(%r14)
movl $0xc, (%r14)
jmp 0x109f3
movq (%rbx), %rcx
movslq 0x8(%r14), %rdx
leaq (,%rdx,4), %rax
addq 0x38(%rcx), %rax
testq %rdx, %rdx
jle 0x109d0
movl -0x4(%rax), %ecx
movl %ecx, %edx
andl $0x3f, %edx
addq $-0x24, %rdx
cmpq $-0x6, %rdx
ja 0x109d4
movl (%rax), %ecx
jmp 0x109d8
addq $-0x4, %rax
movl %ecx, %edx
andl $0xffffc03f, %edx       # imm = 0xFFFFC03F
xorl %esi, %esi
testl $0x3fc0, %ecx           # imm = 0x3FC0
sete %sil
shll $0x6, %esi
orl %edx, %esi
movl %esi, (%rax)
movl 0x10(%r14), %esi
movl 0x14(%r14), %eax
movl %esi, 0x14(%r14)
movl %eax, 0x10(%r14)
movq %rbx, %rdi
callq 0x1ae6e
movl 0x10(%r14), %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1ae6e
// File: /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/lua53.c
// Function: luaD_shrinkstack
void luaD_shrinkstack (lua_State *L) {
  int inuse = stackinuse(L);
  int goodsize = inuse + (inuse / 8) + 2*EXTRA_STACK;
  if (goodsize > LUAI_MAXSTACK)
    goodsize = LUAI_MAXSTACK;  /* respect stack limit */
  if (L->stacksize > LUAI_MAXSTACK)  /* had been handling stack overflow? */
    luaE_freeCI(L);  /* free all CIs (list grew because of an error) */
  else
    luaE_shrinkCI(L);  /* shrink list */
  /* if thread is currently not handling a stack overflow and its
     good size is smaller than current size, shrink its stack */
  if (inuse <= (LUAI_MAXSTACK - EXTRA_STACK) &&
      goodsize < L->stacksize)
    luaD_reallocstack(L, goodsize);
  else  /* don't change stack */
    condmovestack(L,{},{});  /* (change only for debugging) */
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %r14
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x11e1b
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
cmpq %rcx, %r14
cmovbq %rcx, %r14
jmp 0x11e05
subq 0x38(%rbx), %r14
shrq $0x4, %r14
leal 0x1(%r14), %eax
leal 0x8(%r14), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x3, %ecx
leal (%rcx,%r14), %eax
incl %eax
movl $0xf4236, %ebp          # imm = 0xF4236
cmpl %ebp, %eax
cmovll %eax, %ebp
cmpl $0xf4241, 0xb8(%rbx)    # imm = 0xF4241
jl 0x11e59
movq %rbx, %rdi
callq 0x11e88
jmp 0x11e61
movq %rbx, %rdi
callq 0x11ed2
cmpl $0xf423a, %r14d         # imm = 0xF423A
jg 0x11e83
addl $0xa, %ebp
cmpl 0xb8(%rbx), %ebp
jge 0x11e83
movq %rbx, %rdi
movl %ebp, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x11b29
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x146fb
movq 0x20(%rbx), %r14
movb $0x0, 0xc(%rbx)
movq 0x38(%rbx), %rax
addq 0x38(%r14), %rax
movq %rax, (%r14)
testb $0x2, 0x42(%r14)
jne 0x1471b
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x146ee
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 0x11f68
jmp 0x14723
addq $-0x10, %rdx
movq %rbx, %rdi
movq %rdx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x121bf
testl %eax, %eax
je 0x14731
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x12589
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x14740
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x12589
// File: /workspace/github_c_makefile_star2_O3/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 0x152ca
movq 0x68(%rdi), %rcx
testq %rcx, %rcx
je 0x1530d
addq $0x68, %rdi
testl %esi, %esi
jne 0x152f3
movb 0x9(%rcx), %dl
andb $0x3, %dl
jne 0x152f3
movq %rcx, %rdi
jmp 0x15305
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 0x152e2
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x1d5d4(%rip), %rsi     # 0x341c4
leaq 0x1d5d2(%rip), %rcx     # 0x341c9
xorl %eax, %eax
callq 0xab73
movq %rax, %rdi
callq 0x65a0
testq %rax, %rax
jne 0x16c1c
movq %r13, %rdi
callq 0x65a0
testq %rax, %rax
je 0x16cab
movq %rax, %r12
movq 0x18(%rbx), %rsi
addq $0x40, %rsi
leaq 0x1d5a9(%rip), %rdx     # 0x341d7
movq %rbx, %rdi
callq 0xad9e
movq 0x10(%rbx), %rax
movl -0x8(%rax), %ecx
addq $-0x10, %rax
cmpl $0x1, %ecx
je 0x16c50
testl %ecx, %ecx
jne 0x16ca7
movq %rax, 0x10(%rbx)
jmp 0x16c59
cmpl $0x0, (%rax)
movq %rax, 0x10(%rbx)
jne 0x16cab
leaq 0x1d56e(%rip), %rdx     # 0x341ce
leaq 0x1d56a(%rip), %rcx     # 0x341d1
movq %rbx, %rdi
movq %r12, %rsi
callq 0xf5f4
leaq 0x1d55c(%rip), %rdx     # 0x341d5
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rcx
callq 0xf5f4
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x90c6
movq 0x10(%rbx), %rsi
addq $-0x10, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x16cba
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa67f
movq 0x10(%rbx), %rsi
addq $-0x30, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0xb6bd
addq $-0x10, 0x10(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x179aa
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 0x17989
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 0x179f4
movzbl 0xb(%r12), %eax
cmpq %rbx, %rax
jne 0x179ed
leaq 0x18(%r12), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x64d0
testl %eax, %eax
je 0x17a44
movq 0x10(%r12), %r12
jmp 0x179c9
movq 0x10(%rsp), %rax
leaq (%rax,%rbp,8), %rcx
cmpl $0x3fffffff, %r13d      # imm = 0x3FFFFFFF
jg 0x17a60
movq (%rsp), %r12
movq %r12, %rbp
cmpl %r13d, 0x38(%r12)
jl 0x17a64
addl %r13d, %r13d
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
movl %r13d, %esi
callq 0x17717
movslq 0x3c(%r12), %rax
decq %rax
movslq %r15d, %rcx
andq %rax, %rcx
shlq $0x3, %rcx
addq 0x30(%r12), %rcx
movq 0x18(%rbp), %rbp
jmp 0x17a64
movb 0x9(%r12), %al
xorb $0x3, %al
movq (%rsp), %rcx
movb 0x54(%rcx), %cl
xorb $0x3, %cl
testb %al, %cl
jne 0x17ad5
movb %al, 0x9(%r12)
jmp 0x17ad5
movq (%rsp), %rbp
movq %rcx, %r13
leaq 0x19(%rbx), %rcx
movl $0x4, %edx
movq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x11d07
movq %rax, %r12
movb 0x54(%rbp), %al
andb $0x3, %al
movb %al, 0x9(%r12)
movb $0x4, 0x8(%r12)
movq 0x58(%rbp), %rax
movq %rax, (%r12)
movq %r12, 0x58(%rbp)
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 0x63f0
movb %bl, 0xb(%r12)
movq (%r13), %rax
movq %rax, 0x10(%r12)
movq %r12, (%r13)
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
// File: /workspace/github_c_makefile_star2_O3/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 0x17c19
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)
addq $-0x38, 0x18(%r14)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/lua53.c
// Function: luaopen_table
LUAMOD_API int luaopen_table (lua_State *L) {
  luaL_newlib(L, tab_funcs);
#if defined(LUA_COMPAT_UNPACK)
  /* _G.unpack = table.unpack */
  lua_getfield(L, -1, "unpack");
  lua_setglobal(L, "unpack");
#endif
  return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testq %rdi, %rdi
je 0x181f4
movq 0x18(%rbx), %rax
leaq 0x1a84d(%rip), %rcx     # 0x32a38
cmpq %rcx, 0xd0(%rax)
jne 0x1821b
movq %rbx, %rdi
xorl %esi, %esi
movl $0x7, %edx
callq 0xb205
leaq 0x29746(%rip), %rsi     # 0x41950
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf213
movl $0x1, %eax
popq %rbx
retq
leaq 0x1add5(%rip), %rsi     # 0x32ff7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdb8f
// File: /workspace/github_c_makefile_star2_O3/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 0xcec3
movq %rax, %r14
movq $0x0, 0x8(%rax)
movq 0x18(%rbx), %rsi
addq $0x40, %rsi
leaq 0x15ad0(%rip), %rdx     # 0x33d6e
movq %rbx, %rdi
callq 0xad9e
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0xbce1
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x1ef2d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x1, %r15d
leaq 0x13bd6(%rip), %r13     # 0x32a40
movq %rbx, %rdi
movl %ebp, %esi
callq 0x916a
cmpq %r13, %rax
je 0x1eead
movl 0x8(%rax), %eax
movl %eax, %ecx
andl $0xf, %ecx
cmpl $0x3, %ecx
jne 0x1eead
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
cmpl $0x13, %eax
jne 0x1eee5
callq 0x9e85
movq %r14, %rdi
leaq 0x144f3(%rip), %rsi     # 0x33394
movq %rax, %rdx
xorl %eax, %eax
callq 0x66a0
jmp 0x1eefb
movq %rbx, %rdi
movl %ebp, %esi
movq %rsp, %rdx
callq 0xe339
testl %r15d, %r15d
je 0x1eee0
movq (%rsp), %rdx
movl $0x1, %esi
movq %rax, %rdi
movq %r14, %rcx
callq 0x6870
xorl %r15d, %r15d
cmpq (%rsp), %rax
sete %r15b
jmp 0x1ef0c
xorl %r15d, %r15d
jmp 0x1ef0c
callq 0x9e2d
movq %r14, %rdi
leaq 0x144a5(%rip), %rsi     # 0x33399
movb $0x1, %al
callq 0x66a0
testl %r15d, %r15d
setne %cl
testl %eax, %eax
setg %al
andb %cl, %al
movzbl %al, %r15d
incl %ebp
cmpl %ebp, %r12d
jne 0x1ee6a
movl $0x1, %eax
testl %r15d, %r15d
jne 0x1ef2d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xdf1b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xe3e3
movq 0x20(%rbx), %rax
movq (%rax), %rax
leaq 0x20(%rax), %rcx
cmpq 0x10(%rbx), %rcx
setae %dl
leaq 0x12c42(%rip), %rsi     # 0x32a40
cmpq %rsi, %rcx
sete %cl
orb %dl, %cl
jne 0x1fe38
testb $0xf, 0x28(%rax)
je 0x1fe38
movsd %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0xe3e3
ucomisd 0x12fe8(%rip), %xmm0    # 0x32e10
jne 0x1fe5c
jp 0x1fe5c
movsd (%rsp), %xmm0
callq 0x67c0
jmp 0x1fe3d
callq 0x63d0
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 0x12fb0(%rip), %xmm0    # 0x32e18
movsd (%rsp), %xmm0
jne 0x1fe78
jp 0x1fe78
callq 0x6290
jmp 0x1fe3d
movsd %xmm1, 0x8(%rsp)
callq 0x63d0
movsd %xmm0, (%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x63d0
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
jmp 0x1fe3d
// File: /workspace/github_c_makefile_star2_O3/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 0xe339
movq %rax, %r14
movq 0x18(%rbx), %rsi
addq $0x40, %rsi
leaq 0x12b2d(%rip), %rdx     # 0x33383
movq %rbx, %rdi
callq 0xad9e
movq 0x10(%rbx), %rsi
addq $-0x10, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0xad9e
testl %eax, %eax
jne 0x20889
leaq 0x138b0(%rip), %rsi     # 0x3412c
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xab73
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x62d0
movl (%r15), %ecx
cmpl $0x7e000000, %ecx       # imm = 0x7E000000
ja 0x29427
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 0x2946b
cmpl $0x1000a, %ecx          # imm = 0x1000A
jg 0x2944a
movq %r15, %rcx
movl %ebx, %r8d
movl $0x2, %r9d
jmp 0x29456
movq %r15, %rcx
movl %ebx, %r8d
movl $0x1, %r9d
callq 0x2e41c
addq $0x4020, %rsp           # imm = 0x4020
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %ebx, %r8d
movl $0x1, %r9d
callq 0x6b7d
jmp 0x2945b
// File: /workspace/github_c_makefile_star2_O3/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), %edx
movl $0x80000001, %eax       # imm = 0x80000001
cmpq %rax, %rdx
setb %al
cmpq %rsi, %rdx
setbe %cl
testb %cl, %al
jne 0x2adbe
movq 0x4008(%rdi), %rax
movl 0x4018(%rdi), %ecx
addl $0xffff0000, %edx       # imm = 0xFFFF0000
movd %edx, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
xorl %edx, %edx
movdqa 0x72db(%rip), %xmm1     # 0x32030
movdqa %xmm0, %xmm2
pxor %xmm1, %xmm2
movdqu (%rdi,%rdx,4), %xmm3
movdqa %xmm3, %xmm4
pxor %xmm1, %xmm4
pcmpgtd %xmm2, %xmm4
psubd %xmm0, %xmm3
pand %xmm4, %xmm3
movdqu %xmm3, (%rdi,%rdx,4)
addq $0x4, %rdx
cmpq $0x1000, %rdx           # imm = 0x1000
jne 0x2ad5d
addq %rcx, %rax
movl $0x10000, 0x4000(%rdi)  # imm = 0x10000
movl 0x4018(%rdi), %ecx
cmpl $0x10001, %ecx          # imm = 0x10001
jb 0x2adb2
movl $0x10000, 0x4018(%rdi)  # imm = 0x10000
movl $0x10000, %ecx          # imm = 0x10000
movl %ecx, %ecx
subq %rcx, %rax
movq %rax, 0x4008(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/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:
leaq -0x7(%rdx), %rcx
movq %rdi, %rax
cmpq %rdi, %rcx
jbe 0x2e3c9
movq (%rsi), %r8
movq (%rax), %r9
cmpq %r9, %r8
jne 0x2e40c
addq $0x8, %rax
addq $0x8, %rsi
cmpq %rcx, %rax
jb 0x2e3b1
leaq -0x3(%rdx), %rcx
cmpq %rcx, %rax
jae 0x2e3e0
movl (%rsi), %ecx
cmpl (%rax), %ecx
jne 0x2e3e0
addq $0x4, %rax
addq $0x4, %rsi
leaq -0x1(%rdx), %rcx
cmpq %rcx, %rax
jae 0x2e3f9
movzwl (%rsi), %ecx
cmpw (%rax), %cx
jne 0x2e3f9
addq $0x2, %rax
addq $0x2, %rsi
cmpq %rdx, %rax
jae 0x2e419
movb (%rsi), %cl
xorl %edx, %edx
cmpb (%rax), %cl
sete %dl
addq %rdx, %rax
jmp 0x2e419
xorq %r8, %r9
bsfq %r9, %rcx
shrl $0x3, %ecx
addq %rcx, %rax
subl %edi, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xf6df
movq %rax, %rbx
movl %ebp, 0x13aa1(%rip)     # 0x424ec
movq %r14, 0x13a9e(%rip)     # 0x424f0
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb205
testl %ebp, %ebp
jle 0x2ea8c
movl %ebp, %r12d
xorl %r15d, %r15d
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
callq 0xa67f
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0xbb9c
incq %r15
cmpq %r15, %r12
jne 0x2ea68
leaq 0x5164(%rip), %rsi      # 0x33bf7
movq %rbx, %rdi
callq 0xb68f
movq %rbx, %rdi
callq 0x15994
leaq 0x6946(%rip), %rsi      # 0x353f0
leaq 0xef(%rip), %rdx        # 0x2eba0
movq %rbx, %rdi
movl $0x1, %ecx
callq 0xf4bc
leaq 0x500b(%rip), %rsi      # 0x33ad0
movq %rbx, %rdi
callq 0xad70
leaq 0x507e(%rip), %rdx      # 0x33b52
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xb09f
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x90c6
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x8f61
leaq 0x11a(%rip), %rsi       # 0x2ec21
movq %rbx, %rdi
xorl %edx, %edx
callq 0xac1c
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xbfaa
testl %eax, %eax
jne 0x2eb96
movq %rbx, %rdi
callq 0x17646
movl 0x139ae(%rip), %edi     # 0x424e8
testl %edi, %edi
je 0x2eb43
callq 0x6240
movq 0x13996(%rip), %rdi     # 0x424e0
testq %rdi, %rdi
je 0x2eb54
callq 0x6370
movq 0x1397d(%rip), %rdi     # 0x424d8
testq %rdi, %rdi
je 0x2eb65
callq 0x6230
movq 0x13964(%rip), %rdi     # 0x424d0
testq %rdi, %rdi
je 0x2eb76
callq 0x6030
callq 0x60b0
movl 0x113fcb(%rip), %edi    # 0x142b4c
cmpl $-0x1, %edi
je 0x2eb8b
callq 0x6880
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x8c50
jmp 0x2eb2c
// File: /workspace/github_c_makefile_star2_O3/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 0x423c(%rip), %xmm0     # 0x32de8
movl $0x88, %esi
callq 0xf920
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1d, %edx
callq 0xb205
leaq 0x13014(%rip), %rsi     # 0x41be0
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf213
leaq 0x683d(%rip), %rsi      # 0x3541a
movq %rbx, %rdi
callq 0xa67f
leaq 0x685b(%rip), %rdx      # 0x35447
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0xb9f7
movl $0x212, %esi            # imm = 0x212
movq %rbx, %rdi
callq 0xa4be
leaq 0x6842(%rip), %rdx      # 0x3544f
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0xb9f7
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xe462
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xe3e3
cvttsd2si %xmm0, %ebp
movq %r14, %rdi
movl $0x3, %esi
callq 0xe3e3
addl 0x112eef(%rip), %ebp    # 0x142500
js 0x2f644
cmpl 0x112eef(%rip), %ebp    # 0x142508
jge 0x2f644
cvttsd2si %xmm0, %eax
addl 0x112edf(%rip), %eax    # 0x142504
js 0x2f644
cmpl 0x112edf(%rip), %eax    # 0x14250c
jge 0x2f644
movl %ebp, %ecx
movl %eax, %eax
shlq $0xa, %rcx
leaq 0x12ec2(%rip), %rdx     # 0x42500
addq %rcx, %rdx
movb %bl, (%rax,%rdx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xe462
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x3, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r12d
movq %r14, %rdi
movl $0x4, %esi
callq 0xe3e3
cvttsd2si %xmm0, %ebp
movq %r14, %rdi
movl $0x5, %esi
callq 0xe3e3
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 0x112e3e(%rip), %edx    # 0x142504
movl 0x112e3c(%rip), %esi    # 0x142508
movl 0x112e3a(%rip), %edi    # 0x14250c
movslq %r15d, %r9
subq %r8, %r9
movq %r9, %r8
negq %r8
cmovsq %r9, %r8
incl %r8d
addl 0x112e15(%rip), %ebp    # 0x142500
leaq 0x12e0e(%rip), %r9      # 0x42500
leal (%rdx,%rax), %r10d
movl %ebp, %r11d
movl %r8d, %r14d
testl %r11d, %r11d
js 0x2f71e
cmpl %esi, %r11d
jge 0x2f71e
testl %r10d, %r10d
js 0x2f71e
cmpl %edi, %r10d
jge 0x2f71e
movl %r11d, %r15d
shlq $0xa, %r15
addq %r9, %r15
movb %bl, (%r10,%r15)
incl %r11d
decl %r14d
jne 0x2f6fc
leal 0x1(%rax), %r10d
cmpl %ecx, %eax
movl %r10d, %eax
jne 0x2f6f2
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xe462
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xe3e3
cvttsd2si %xmm0, %ebp
movq %r14, %rdi
movl $0x3, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x4, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r12d
movq %r14, %rdi
movl $0x5, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r9d
cmpl %r12d, %ebp
movl %r12d, %eax
cmovgl %ebp, %eax
movl %r12d, %ecx
cmovll %ebp, %ecx
cmpl %r9d, %r15d
movl %r9d, %edx
cmovgl %r15d, %edx
cmovll %r15d, %r9d
movl 0x112d41(%rip), %r10d   # 0x142500
movl 0x112d3e(%rip), %r11d   # 0x142504
leal (%r11,%r9), %esi
movl 0x112d38(%rip), %edi    # 0x142508
addl %edx, %r11d
movslq %ebp, %r8
movslq %r12d, %r14
subq %r14, %r8
movq %r8, %r15
negq %r15
cmovsq %r8, %r15
movl 0x112d1f(%rip), %r8d    # 0x14250c
incl %r15d
leal (%r10,%rcx), %ebp
leaq 0x12d05(%rip), %r14     # 0x42500
testl %ebp, %ebp
js 0x2f836
cmpl %edi, %ebp
jge 0x2f81a
testl %esi, %esi
js 0x2f81a
cmpl %r8d, %esi
jge 0x2f81a
movl %ebp, %r12d
shlq $0xa, %r12
addq %r14, %r12
movb %bl, (%rsi,%r12)
cmpl %edi, %ebp
jge 0x2f836
testl %r11d, %r11d
js 0x2f836
cmpl %r8d, %r11d
jge 0x2f836
movl %ebp, %r12d
shlq $0xa, %r12
addq %r14, %r12
movb %bl, (%r11,%r12)
incl %ebp
decl %r15d
jne 0x2f7fb
addl %r10d, %ecx
addl %r10d, %eax
subl %r9d, %edx
incl %edx
movq %rcx, %r9
shlq $0xa, %r9
addq %r14, %r9
movq %rax, %r10
shlq $0xa, %r10
addq %r14, %r10
testl %ecx, %ecx
js 0x2f874
cmpl %edi, %ecx
jge 0x2f874
testl %esi, %esi
js 0x2f874
cmpl %r8d, %esi
jge 0x2f874
movl %esi, %r11d
movb %bl, (%r11,%r9)
testl %eax, %eax
js 0x2f88c
cmpl %edi, %eax
jge 0x2f88c
testl %esi, %esi
js 0x2f88c
cmpl %r8d, %esi
jge 0x2f88c
movl %esi, %r11d
movb %bl, (%r11,%r10)
incl %esi
decl %edx
jne 0x2f85c
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xe462
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movl $0x2, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x3, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r12d
movq %r14, %rdi
movl $0x4, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r13d
movq %r14, %rdi
movl $0x5, %esi
callq 0xe3e3
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 0x112ba7(%rip), %r11d   # 0x142500
movl 0x112ba4(%rip), %r14d   # 0x142504
movl 0x112ba1(%rip), %r8d    # 0x142508
movl 0x112b9f(%rip), %edx    # 0x14250c
movl %edx, 0xc(%rsp)
movl %ebp, %r10d
negl %r10d
movl %r11d, %esi
addl %r15d, %esi
js 0x2f9ac
cmpl %r8d, %esi
jge 0x2f9ac
movl %r14d, %edi
addl %r12d, %edi
js 0x2f9ac
cmpl 0xc(%rsp), %edi
jge 0x2f9ac
movl %esi, %esi
movl %edi, %edi
shlq $0xa, %rsi
leaq 0x12b5f(%rip), %rdx     # 0x42500
addq %rdx, %rsi
movq 0x10(%rsp), %rdx
movb %dl, (%rdi,%rsi)
cmpl %r13d, %r15d
jne 0x2f9b8
cmpl 0x8(%rsp), %r12d
je 0x2f9f0
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 0x2f977
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq