LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/utils.c
// Function: moonglfw_pushhat
int pushhat(lua_State *L, unsigned int hat)
    {
    lua_newtable(L);
#define Setfield(name, val) do { lua_pushboolean(L, val); lua_setfield(L, -2, name); } while(0)
    Setfield("centered", hat == GLFW_HAT_CENTERED);
    Setfield("up", hat & GLFW_HAT_UP);
    Setfield("right", hat & GLFW_HAT_RIGHT);
    Setfield("down", hat & GLFW_HAT_DOWN);
    Setfield("left", hat & GLFW_HAT_LEFT);
#undef Setfield
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x5210
xorl %esi, %esi
testl %ebp, %ebp
sete %sil
movq %rbx, %rdi
callq 0x5480
leaq 0x54b2(%rip), %rdx      # 0x14e4d
pushq $-0x2
popq %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x52d0
movl %ebp, %esi
andl $0x1, %esi
movq %rbx, %rdi
callq 0x5480
leaq 0x2af2(%rip), %rdx      # 0x124b0
movq %rbx, %rdi
movl %r14d, %esi
callq 0x52d0
movl %ebp, %esi
andl $0x2, %esi
movq %rbx, %rdi
callq 0x5480
leaq 0x53e5(%rip), %rdx      # 0x14dc2
movq %rbx, %rdi
movl %r14d, %esi
callq 0x52d0
movl %ebp, %esi
andl $0x4, %esi
movq %rbx, %rdi
callq 0x5480
leaq 0x2abc(%rip), %rdx      # 0x124b8
movq %rbx, %rdi
movl %r14d, %esi
callq 0x52d0
andl $0x8, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5480
leaq 0x53bc(%rip), %rdx      # 0x14dd7
movq %rbx, %rdi
movl %r14d, %esi
callq 0x52d0
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/utils.c
// Function: moonglfw_pushgammaramp
int pushgammaramp(lua_State *L, const GLFWgammaramp *ramp)
    {
    unsigned int i;
    int table;
#define Setfield(x, name)   do {            \
        lua_newtable(L);                    \
        table = lua_gettop(L);              \
        for(i=0; i<ramp->size; i++)         \
            {                               \
            lua_pushinteger(L, ramp->x[i]); \
            lua_seti(L, table, i+1);        \
            }                               \
} while(0)
    Setfield(red,"red");
    Setfield(green,"green");
    Setfield(blue,"blue");
#undef Setfield
    return 3;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
xorl %esi, %esi
xorl %edx, %edx
callq 0x5210
movq %r14, %rdi
callq 0x5080
movl %eax, %ebp
movl 0x18(%rbx), %eax
cmpq %rax, %r15
jae 0xfa7b
movq (%rbx), %rax
movzwl (%rax,%r15,2), %esi
movq %r14, %rdi
callq 0x5310
incq %r15
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x53a0
jmp 0xfa51
xorl %r15d, %r15d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5210
movq %r14, %rdi
callq 0x5080
movl %eax, %ebp
movl 0x18(%rbx), %eax
cmpq %rax, %r15
jae 0xfabf
movq 0x8(%rbx), %rax
movzwl (%rax,%r15,2), %esi
movq %r14, %rdi
callq 0x5310
incq %r15
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x53a0
jmp 0xfa94
xorl %r15d, %r15d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5210
movq %r14, %rdi
callq 0x5080
movl %eax, %ebp
movl 0x18(%rbx), %eax
cmpq %rax, %r15
jae 0xfb03
movq 0x10(%rbx), %rax
movzwl (%rax,%r15,2), %esi
movq %r14, %rdi
callq 0x5310
incq %r15
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x53a0
jmp 0xfad8
pushq $0x3
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/vulkan.c
// Function: GetRequiredInstanceExtensions
static int GetRequiredInstanceExtensions(lua_State *L)
    {
    uint32_t count, i;
    const char **names;
    CheckVulkanPfn(L, GetRequiredInstanceExtensions);
    names = glfw.GetRequiredInstanceExtensions(&count);
    lua_newtable(L);
    if((count == 0) || names==NULL)
        return 1;
    for(i=0; i< count; i++)
        {
        lua_pushstring(L, names[i]);
        lua_rawseti(L, -2, i+1);
        }
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xc1c9(%rip), %rax      # 0x1bfe8
movq 0x3b0(%rax), %rax
testq %rax, %rax
je 0xfe64
leaq 0x4(%rsp), %r15
movq %r15, %rdi
callq *%rax
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5210
movl (%r15), %eax
testl %eax, %eax
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
je 0xfe90
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x3
popq %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0xfebf
leaq 0x5245(%rip), %rsi      # 0x150c1
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x55b0
xorl %r15d, %r15d
pushq $-0x2
popq %rbp
movl %eax, %eax
cmpq %rax, %r15
jae 0xfe56
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
callq 0x5690
incq %r15
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x5410
movl 0x4(%rsp), %eax
jmp 0xfe96
leaq 0x51b7(%rip), %rsi      # 0x1507d
pushq $0x3
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/vulkan.c
// Function: GetPhysicalDevicePresentationSupport
static int GetPhysicalDevicePresentationSupport(lua_State *L)
    {
    int result;
    VkInstance instance = (VkInstance)checkhandle(L, 1);
    VkPhysicalDevice device = (VkPhysicalDevice)checkhandle(L, 2);
    uint32_t queuefamily = luaL_checkinteger(L, 3);
    CheckVulkanPfn(L, GetPhysicalDevicePresentationSupport);
    result = glfw.GetPhysicalDevicePresentationSupport(instance, device, queuefamily);
    lua_pushboolean(L, result);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x53e0
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq %rax, %r15
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq 0xc0d2(%rip), %rcx      # 0x1bfe8
movq 0x3c0(%rcx), %rcx
testq %rcx, %rcx
je 0xff3f
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
callq *%rcx
movq %rbx, %rdi
movl %eax, %esi
callq 0x5480
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
pushq $0x3
popq %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0xff66
leaq 0x51e9(%rip), %rsi      # 0x15140
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x55b0
leaq 0x5188(%rip), %rsi      # 0x150f5
pushq $0x3
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/win.c
// Function: moonglfw_win_check
win_t* win_check(lua_State *L, int arg)
    {
    int id = luaL_checkinteger(L, arg);
    win_t *win = win_search(id);
    if(!win)
        luaL_error(L, "invalid window id");
    return win;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x53e0
movl %eax, %edi
callq 0x5430
movq %rax, %r14
testq %rax, %rax
jne 0x10b40
leaq 0x4231(%rip), %rsi      # 0x14d67
movq %rbx, %rdi
xorl %eax, %eax
callq 0x55b0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: CreateWindow
static int CreateWindow(lua_State *L)
    {
    win_t *win, *share_win=NULL;
    mon_t *mon;
    intptr_t id;
    int width = luaL_checkinteger(L, 1);
    int height = luaL_checkinteger(L, 2);
    const char* title = luaL_optstring(L, 3, "");
    GLFWmonitor* monitor = testmonitor(L, 4, &mon) ? mon->monitor : NULL;
    GLFWwindow* share = testwindow(L, 5, &share_win) ? share_win->window : NULL;

    win = win_new();
    if(!win)
        return luaL_error(L, "cannot create window");
    
#ifdef MACOS
     glfw.WindowHint(GLFW_OPENGL_FORWARD_COMPAT,GLFW_TRUE); 
     glfw.WindowHint(GLFW_OPENGL_PROFILE,GLFW_OPENGL_CORE_PROFILE); 
#endif
    win->window = glfw.CreateWindow(width, height, title, monitor, share);
    if(win->window == NULL)
        {
        win_free(win);
        return luaL_error(L, "cannot create window");
        }
    /* this will allow us to retrieve the win_t* from the GLFWwindow*: */
    id = win->id;
    win->share_id =  share_win ? share_win->id : -1;
    glfw.SetWindowUserPointer(win->window, (void*)id);
    lua_pushinteger(L, win->id);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
andq $0x0, 0x8(%rsp)
pushq $0x1
popq %rbp
movl %ebp, %esi
callq 0x53e0
movq %rax, 0x18(%rsp)
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq %rax, 0x10(%rsp)
leaq 0x37c6(%rip), %rdx      # 0x1437e
xorl %r12d, %r12d
pushq $0x3
popq %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x5260
movq %rax, %r13
pushq $0x4
popq %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
testl %eax, %eax
je 0x10be8
movq 0x20(%rsp), %rax
movq 0x28(%rax), %r12
pushq $0x5
popq %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x5550
testl %eax, %eax
je 0x10c07
movq 0x8(%rsp), %rax
movq 0x28(%rax), %r15
jmp 0x10c0a
xorl %r15d, %r15d
callq 0x5400
testq %rax, %rax
je 0x10c5e
movq %rax, %r14
movq 0xb3ca(%rip), %rax      # 0x1bfe8
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %r15, %r8
movq %rax, %r15
callq *0x90(%rax)
movq %rax, 0x28(%r14)
testq %rax, %rax
je 0x10c56
movslq 0x20(%r14), %rsi
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
je 0x10c73
movl 0x20(%rcx), %ecx
jmp 0x10c76
movq %r14, %rdi
callq 0x5240
leaq 0x4975(%rip), %rsi      # 0x155da
movq %rbx, %rdi
xorl %eax, %eax
callq 0x55b0
movl %eax, %ebp
jmp 0x10c90
pushq $-0x1
popq %rcx
movl %ecx, 0x30(%r14)
movq %rax, %rdi
callq *0x148(%r15)
movslq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x5310
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: FocusWindow
static int FocusWindow(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    CheckPfn(L, FocusWindow, 3, 2, 0);
    glfw.FocusWindow(win->window);
    return 0;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xb31f(%rip), %rcx      # 0x1bfe8
movq 0x128(%rcx), %rcx
testq %rcx, %rcx
je 0x10cdf
movq 0x28(%rax), %rdi
callq *%rcx
xorl %eax, %eax
popq %rbx
retq
pushq $0x3
popq %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x10d02
leaq 0x492a(%rip), %rsi      # 0x15621
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
jmp 0x55b0
leaq 0x48e6(%rip), %rsi      # 0x155ef
pushq $0x3
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
popq %rbx
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: SetWindowAspectRatio
static int SetWindowAspectRatio(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    int numer = luaL_optinteger(L, 2, GLFW_DONT_CARE);
    int denom = luaL_optinteger(L, 3, GLFW_DONT_CARE);
    CheckPfn(L, SetWindowAspectRatio, 3, 2, 0);
    glfw.SetWindowAspectRatio(win->window, numer, denom);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq %rax, %r14
pushq $0x2
popq %rsi
pushq $-0x1
popq %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x5490
movq %rax, %r15
pushq $0x3
popq %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x5490
movq 0xb28b(%rip), %rcx      # 0x1bfe8
movq 0xe0(%rcx), %rcx
testq %rcx, %rcx
je 0x10d82
movq 0x28(%r14), %rdi
movl %r15d, %esi
movl %eax, %edx
callq *%rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
pushq $0x3
popq %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x10daf
leaq 0x48e4(%rip), %rsi      # 0x1567e
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x55b0
leaq 0x488d(%rip), %rsi      # 0x15643
pushq $0x3
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: SetWindowSizeLimits
static int SetWindowSizeLimits(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    int minwidth = luaL_optinteger(L, 2, GLFW_DONT_CARE);
    int minheight = luaL_optinteger(L, 3, GLFW_DONT_CARE);
    int maxwidth = luaL_optinteger(L, 4, GLFW_DONT_CARE);
    int maxheight = luaL_optinteger(L, 5, GLFW_DONT_CARE);
    CheckPfn(L, SetWindowSizeLimits, 3, 2, 0);
    glfw.SetWindowSizeLimits(win->window, minwidth, minheight, maxwidth, maxheight);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq %rax, %r14
pushq $0x2
popq %rsi
pushq $-0x1
popq %rbp
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x5490
movq %rax, %r15
pushq $0x3
popq %rsi
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x5490
movq %rax, %r12
pushq $0x4
popq %rsi
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x5490
movq %rax, %r13
pushq $0x5
popq %rsi
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x5490
movq 0xb1b0(%rip), %rcx      # 0x1bfe8
movq 0xd8(%rcx), %r9
testq %r9, %r9
je 0x10e68
movq 0x28(%r14), %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %r13d, %ecx
movl %eax, %r8d
callq *%r9
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x3
popq %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x10e98
leaq 0x4863(%rip), %rsi      # 0x156e3
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55b0
leaq 0x480a(%rip), %rsi      # 0x156a9
pushq $0x3
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: SetWindowIcon
static int SetWindowIcon(lua_State *L)
    {
    size_t len;
    int count, arg;
    GLFWimage images[32];
    win_t *win = checkwindow(L, 1);
    CheckPfn(L, SetWindowIcon, 3, 2, 0);
    count = 0;
    arg = 2;
    while(!lua_isnoneornil(L, arg))
        {
        images[count].width = luaL_checkinteger(L, arg++);
        images[count].height = luaL_checkinteger(L, arg++);
        images[count].pixels = (unsigned char*)luaL_checklstring(L, arg++, &len);
        count++;
        }
    if(count==0)
        luaL_checkinteger(L, arg); /* raises an error */
    glfw.SetWindowIcon(win->window, count, images);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xb105(%rip), %rcx      # 0x1bfe8
cmpq $0x0, 0xb8(%rcx)
je 0x10f99
movq %rax, (%rsp)
pushq $0x2
popq %r12
leaq 0x18(%rsp), %r13
xorl %r15d, %r15d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x5630
testl %eax, %eax
jle 0x10f58
leal 0x1(%r12), %ebp
movq %rbx, %rdi
movl %r12d, %esi
callq 0x53e0
movl %eax, -0x8(%r13)
leal 0x2(%r12), %r14d
movq %rbx, %rdi
movl %ebp, %esi
callq 0x53e0
movl %eax, -0x4(%r13)
addl $0x3, %r12d
movq %rbx, %rdi
movl %r14d, %esi
leaq 0x8(%rsp), %rdx
callq 0x5340
movq %rax, (%r13)
decq %r15
addq $0x10, %r13
jmp 0x10f01
negq %r15
jb 0x10f68
movq %rbx, %rdi
movl %r12d, %esi
callq 0x53e0
movq (%rsp), %rax
movq 0x28(%rax), %rdi
leaq 0x10(%rsp), %rdx
movl %r15d, %esi
movq 0xb069(%rip), %rax      # 0x1bfe8
callq *0xb8(%rax)
xorl %eax, %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x3
popq %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x10fcc
leaq 0x4790(%rip), %rsi      # 0x15741
movq %rbx, %rdi
xorl %eax, %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55b0
leaq 0x473a(%rip), %rsi      # 0x1570d
pushq $0x3
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: SetWindowMonitor
static int SetWindowMonitor(lua_State *L)
    {
    mon_t *mon;
    win_t *win = checkwindow(L, 1);
    GLFWmonitor* monitor = testmonitor(L, 2, &mon) ? mon->monitor : NULL;
    int xpos = luaL_checkinteger(L, 3);
    int ypos = luaL_checkinteger(L, 4);
    int width = luaL_checkinteger(L, 5);
    int height = luaL_checkinteger(L, 6);
    int refreshRate = luaL_optinteger(L, 7, GLFW_DONT_CARE);
    CheckPfn(L, SetWindowMonitor, 3, 2, 0);
    glfw.SetWindowMonitor(win->window, monitor, xpos, ypos, width, height, refreshRate);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq %rax, 0x8(%rsp)
pushq $0x2
popq %rsi
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
testl %eax, %eax
je 0x11034
movq 0x10(%rsp), %rax
movq 0x28(%rax), %r15
jmp 0x11037
xorl %r15d, %r15d
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq %rax, %r12
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq %rax, %r13
pushq $0x5
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq %rax, %rbp
pushq $0x6
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq %rax, %r14
pushq $0x7
popq %rsi
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x5490
movq 0xaf64(%rip), %rcx      # 0x1bfe8
movq 0x138(%rcx), %r10
testq %r10, %r10
je 0x110b2
movq 0x8(%rsp), %rcx
movq 0x28(%rcx), %rdi
movl %eax, (%rsp)
movq %r15, %rsi
movl %r12d, %edx
movl %r13d, %ecx
movl %ebp, %r8d
movl %r14d, %r9d
callq *%r10
xorl %eax, %eax
jmp 0x110f0
pushq $0x3
popq %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x110d6
leaq 0x46d2(%rip), %rsi      # 0x1579c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x55b0
jmp 0x110f0
leaq 0x4688(%rip), %rsi      # 0x15765
pushq $0x3
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x55b0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: WaitEventsTimeout
static int WaitEventsTimeout(lua_State *L)
    {
    double timeout = luaL_checknumber(L, 1);
    CheckPfn(L, WaitEventsTimeout, 3, 2, 0);
    glfw.WaitEventsTimeout(timeout);
    return 0;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5230
movq 0xaeb2(%rip), %rax      # 0x1bfe8
movq 0x1a0(%rax), %rax
testq %rax, %rax
je 0x11148
callq *%rax
xorl %eax, %eax
popq %rbx
retq
pushq $0x3
popq %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x1116b
leaq 0x469b(%rip), %rsi      # 0x157fb
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
jmp 0x55b0
leaq 0x4651(%rip), %rsi      # 0x157c3
pushq $0x3
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
popq %rbx
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: SetWindowShouldClose
static int SetWindowShouldClose(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    int value = checkboolean(L, 2);
    glfw.SetWindowShouldClose(win->window, value);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x5070
movzbl %al, %esi
movq 0xadd7(%rip), %rax      # 0x1bfe8
movq 0x28(%r14), %rdi
callq *0xa8(%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: SetWindowTitle
static int SetWindowTitle(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    const char *title = luaL_optstring(L, 2, "");
    glfw.SetWindowTitle(win->window, title);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq %rax, %r14
leaq 0x3140(%rip), %rdx      # 0x1437e
pushq $0x2
popq %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x5260
movq 0xad96(%rip), %rcx      # 0x1bfe8
movq 0x28(%r14), %rdi
movq %rax, %rsi
callq *0xb0(%rcx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: GetWindowTitle
static int GetWindowTitle(lua_State *L)
    {
    const char *title;
    win_t *win = checkwindow(L, 1);
    CheckPfn(L, GetWindowTitle, 3, 4, 0);
    title = glfw.GetWindowTitle(win->window);
    lua_pushstring(L, title);
    return 1;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xad6c(%rip), %rcx      # 0x1bfe8
movq 0x388(%rcx), %rcx
testq %rcx, %rcx
je 0x1129e
movq 0x28(%rax), %rdi
callq *%rcx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x5690
pushq $0x1
popq %rax
popq %rbx
retq
pushq $0x3
popq %rdi
pushq $0x4
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x112c1
leaq 0x45a2(%rip), %rsi      # 0x15858
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
jmp 0x55b0
leaq 0x455b(%rip), %rsi      # 0x15823
pushq $0x3
popq %rdx
pushq $0x4
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
popq %rbx
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: GetWindowPos
static int GetWindowPos(lua_State *L)
    {
    int xpos, ypos;
    win_t *win = checkwindow(L, 1);
    glfw.GetWindowPos(win->window, &xpos, &ypos);
    lua_pushinteger(L, xpos);
    lua_pushinteger(L, ypos);
    return 2;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xacf1(%rip), %rcx      # 0x1bfe8
movq 0x28(%rax), %rdi
leaq 0xc(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq *0xc0(%rcx)
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x5310
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x5310
pushq $0x2
popq %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: SetWindowPos
static int SetWindowPos(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    int xpos = luaL_checkinteger(L, 2);
    int ypos = luaL_checkinteger(L, 3);
    glfw.SetWindowPos(win->window, xpos, ypos);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq %rax, %r15
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq 0xac81(%rip), %rcx      # 0x1bfe8
movq 0x28(%r14), %rdi
movl %r15d, %esi
movl %eax, %edx
callq *0xc8(%rcx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: GetWindowSize
static int GetWindowSize(lua_State *L)
    {
    int width, height;
    win_t *win = checkwindow(L, 1);
    glfw.GetWindowSize(win->window, &width, &height);
    lua_pushinteger(L, width);
    lua_pushinteger(L, height);
    return 2;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xac4f(%rip), %rcx      # 0x1bfe8
movq 0x28(%rax), %rdi
leaq 0xc(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq *0xd0(%rcx)
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x5310
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x5310
pushq $0x2
popq %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: SetWindowSize
static int SetWindowSize(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    int width = luaL_checkinteger(L, 2);
    int height = luaL_checkinteger(L, 3);
    glfw.SetWindowSize(win->window, width, height);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq %rax, %r15
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x53e0
movq 0xabdf(%rip), %rcx      # 0x1bfe8
movq 0x28(%r14), %rdi
movl %r15d, %esi
movl %eax, %edx
callq *0xe8(%rcx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: GetWindowFrameSize
static int GetWindowFrameSize(lua_State *L)
    {
    int left, top, right, bottom;
    win_t *win = checkwindow(L, 1);
    (void)L;
    glfw.GetWindowFrameSize(win->window, &left, &top, &right, &bottom);
    lua_pushinteger(L, left);
    lua_pushinteger(L, top);
    lua_pushinteger(L, right);
    lua_pushinteger(L, bottom);
    return 4;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xab51(%rip), %r9       # 0x1bfe8
movq 0x28(%rax), %rdi
leaq 0xc(%rsp), %r14
leaq 0x8(%rsp), %r15
leaq 0x4(%rsp), %r12
movq %rsp, %r13
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
callq *0xf8(%r9)
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x5310
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x5310
movslq (%r12), %rsi
movq %rbx, %rdi
callq 0x5310
movslq (%r13), %rsi
movq %rbx, %rdi
callq 0x5310
pushq $0x4
popq %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: MaximizeWindow
static int MaximizeWindow(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    CheckPfn(L, MaximizeWindow, 3, 2, 0);
    glfw.MaximizeWindow(win->window);
    return 0;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xaa9a(%rip), %rcx      # 0x1bfe8
movq 0x110(%rcx), %rcx
testq %rcx, %rcx
je 0x11564
movq 0x28(%rax), %rdi
callq *%rcx
xorl %eax, %eax
popq %rbx
retq
pushq $0x3
popq %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x11587
leaq 0x4336(%rip), %rsi      # 0x158b2
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
jmp 0x55b0
leaq 0x42ef(%rip), %rsi      # 0x1587d
pushq $0x3
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
popq %rbx
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: GetWindowMonitor
static int GetWindowMonitor(lua_State *L)
    {
    int id;
    win_t *win = checkwindow(L, 1);
    GLFWmonitor *monitor = glfw.GetWindowMonitor(win->window);
    if(!monitor)
        return 0;
    id = monitorAdd(L, monitor);
    lua_pushinteger(L, id); 
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x1
popq %rbx
movl %ebx, %esi
callq 0x5570
movq 0xa9f2(%rip), %rcx      # 0x1bfe8
movq 0x28(%rax), %rdi
callq *0x130(%rcx)
testq %rax, %rax
je 0x1161d
movq %r14, %rdi
movq %rax, %rsi
callq 0x53f0
movslq %eax, %rsi
movq %r14, %rdi
callq 0x5310
jmp 0x1161f
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: GetWindowContentScale
static int GetWindowContentScale(lua_State *L)
    {
    float xscale, yscale;
    win_t *win = checkwindow(L, 1);
    CheckPfn(L, GetWindowContentScale, 3, 3, 0);
    glfw.GetWindowContentScale(win->window, &xscale, &yscale);
    lua_pushnumber(L, xscale);
    lua_pushnumber(L, yscale);
    return 2;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xa9a4(%rip), %rcx      # 0x1bfe8
movq 0x300(%rcx), %rcx
testq %rcx, %rcx
je 0x1168d
movq 0x28(%rax), %rdi
leaq 0xc(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq *%rcx
cvtss2sd (%r14), %xmm0
movq %rbx, %rdi
callq 0x5460
cvtss2sd (%r15), %xmm0
movq %rbx, %rdi
callq 0x5460
pushq $0x2
popq %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
pushq $0x3
popq %rdi
movl %edi, %esi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x116b7
leaq 0x426f(%rip), %rsi      # 0x15913
movq %rbx, %rdi
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x55b0
leaq 0x4219(%rip), %rsi      # 0x158d7
pushq $0x3
popq %rcx
movq %rbx, %rdi
movl %ecx, %edx
xorl %r8d, %r8d
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: GetWindowOpacity
static int GetWindowOpacity(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    CheckPfn(L, GetWindowOpacity, 3, 3, 0);
    lua_pushnumber(L, glfw.GetWindowOpacity(win->window));
    return 1;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xa8fc(%rip), %rcx      # 0x1bfe8
movq 0x308(%rcx), %rcx
testq %rcx, %rcx
je 0x1170f
movq 0x28(%rax), %rdi
callq *%rcx
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x5460
pushq $0x1
popq %rax
popq %rbx
retq
pushq $0x3
popq %rdi
movl %edi, %esi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x11731
leaq 0x4250(%rip), %rsi      # 0x15976
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
jmp 0x55b0
leaq 0x4207(%rip), %rsi      # 0x1593f
pushq $0x3
popq %rcx
movq %rbx, %rdi
movl %ecx, %edx
xorl %r8d, %r8d
xorl %eax, %eax
popq %rbx
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: SetWindowOpacity
static int SetWindowOpacity(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    float opacity = luaL_checknumber(L, 2);
    CheckPfn(L, SetWindowOpacity, 3, 3, 0);
    glfw.SetWindowOpacity(win->window, opacity);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x5230
movq 0xa879(%rip), %rax      # 0x1bfe8
movq 0x310(%rax), %rax
testq %rax, %rax
je 0x1178f
cvtsd2ss %xmm0, %xmm0
movq 0x28(%r14), %rdi
callq *%rax
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x3
popq %rdi
movl %edi, %esi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x117b7
leaq 0x422e(%rip), %rsi      # 0x159d4
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x55b0
leaq 0x41df(%rip), %rsi      # 0x1599d
pushq $0x3
popq %rcx
movq %rbx, %rdi
movl %ecx, %edx
xorl %r8d, %r8d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonglfw/src/window.c
// Function: RequestWindowAttention
static int RequestWindowAttention(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    CheckPfn(L, RequestWindowAttention, 3, 3, 0);
    glfw.RequestWindowAttention(win->window);
    return 0;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x5570
movq 0xa7fe(%rip), %rcx      # 0x1bfe8
movq 0x318(%rcx), %rcx
testq %rcx, %rcx
je 0x11800
movq 0x28(%rax), %rdi
callq *%rcx
xorl %eax, %eax
popq %rbx
retq
pushq $0x3
popq %rdi
movl %edi, %esi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x11822
leaq 0x4221(%rip), %rsi      # 0x15a38
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
jmp 0x55b0
leaq 0x41d2(%rip), %rsi      # 0x159fb
pushq $0x3
popq %rcx
movq %rbx, %rdi
movl %ecx, %edx
xorl %r8d, %r8d
xorl %eax, %eax
popq %rbx
jmp 0x55b0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/cirocosta[P]stress/src/print.c
// Function: thread_handler
void*
thread_handler(void* arg)
{
	thread_arg_t* targ = (thread_arg_t*)arg;
	char file_buffer[CHUNK_SIZE] = { 0 };
	unsigned long writes = targ->count * _STRESS_MB(1) / CHUNK_SIZE;

	memset(file_buffer, 65, CHUNK_SIZE);
	while (writes-- > 0) {
		_STRESS_MUST(write(targ->fd, file_buffer, CHUNK_SIZE) != -1,
		             "Couldn't properly write chunk to fd %d",
		             targ->fd);
	}

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rdi, %r14
movslq (%rdi), %r12
notq %r12
shlq $0x8, %r12
movq %rsp, %rbx
pushq $0x41
popq %rsi
movl $0x1000, %edx           # imm = 0x1000
movq %rbx, %rdi
callq 0x10b0
movabsq $-0xfffffffffff01, %r15 # imm = 0xFFF00000000000FF
orq %r12, %r15
incq %r15
je 0x179b
movl 0x4(%r14), %edi
movl $0x1000, %edx           # imm = 0x1000
movq %rbx, %rsi
callq 0x1060
cmpq $-0x1, %rax
jne 0x16c9
movq 0x2908(%rip), %r15      # 0x3ff8
movq (%r15), %rcx
leaq 0x926(%rip), %rdi       # 0x2020
pushq $0x9
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x1130
movq (%r15), %rcx
leaq 0x914(%rip), %rdi       # 0x2026
pushq $0x3
popq %rsi
movq %rbx, %rdx
callq 0x1130
movq (%r15), %rdi
movl 0x4(%r14), %edx
leaq 0x9dd(%rip), %rsi       # 0x2108
xorl %eax, %eax
callq 0x10e0
movq (%r15), %rcx
leaq 0x911(%rip), %rdi       # 0x204d
pushq $0x2
popq %rsi
movq %rbx, %rdx
callq 0x1130
movq (%r15), %rdi
leaq 0x8ff(%rip), %rsi       # 0x2050
leaq 0x9d7(%rip), %rdx       # 0x212f
xorl %eax, %eax
callq 0x10e0
movq (%r15), %rdi
leaq 0x903(%rip), %rsi       # 0x206c
pushq $0x21
popq %rdx
xorl %eax, %eax
callq 0x10e0
movq (%r15), %rsi
pushq $0xa
popq %rdi
callq 0x10c0
movq (%r15), %rcx
leaq 0x8f1(%rip), %rdi       # 0x2079
pushq $0xa
popq %rsi
movq %rbx, %rdx
callq 0x1130
pushq $0x1
popq %rdi
callq 0x1120
xorl %eax, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/healpix.c
// Function: hpix_new
HealPix* hpix_new(int64 nside) {
    HealPix* hpix;

    if (nside < 1 || nside > NS_MAX) {
        fprintf(stderr,"nside %ld out of range [%d, %d]\n", nside, 1, NS_MAX);
        exit(EXIT_FAILURE);
    }

    hpix = malloc(sizeof(HealPix));
    if (hpix == NULL) {
        printf("Could not allocate HealPix\n");
        exit(EXIT_FAILURE);
    }

    hpix->nside = nside;
    hpix->npix = hpix_npix(nside);
    hpix->half_npix = hpix->npix/2;
    hpix->area = hpix_area(nside);
    hpix->ncap = 2*nside*(nside-1); // number of pixels in the north polar cap

    return hpix;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $-0x10000001, %rax      # imm = 0xEFFFFFFF
leaq (%rdi,%rax), %rcx
cmpq %rax, %rcx
jbe 0x2457
pushq $0x28
popq %rdi
callq 0x2200
testq %rax, %rax
je 0x2484
movq %rbx, (%rax)
movq %rbx, %rcx
imulq %rbx, %rcx
imulq $0xc, %rcx, %rcx
movq %rcx, 0x8(%rax)
cvtsi2sd %rcx, %xmm0
shrq %rcx
movq %rcx, 0x10(%rax)
movsd 0x6bd0(%rip), %xmm1     # 0x9008
divsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rax)
leaq -0x1(%rbx), %rcx
imulq %rbx, %rcx
addq %rcx, %rcx
movq %rcx, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0xbb9a(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x6c68(%rip), %rsi      # 0x90d0
pushq $0x1
popq %rbp
movq %rbx, %rdx
movl %ebp, %ecx
movl $0x10000000, %r8d       # imm = 0x10000000
xorl %eax, %eax
callq 0x21a0
movl %ebp, %edi
callq 0x2280
leaq 0x6cb9(%rip), %rdi      # 0x9144
callq 0x2080
pushq $0x1
popq %rdi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/healpix.c
// Function: hpix_eq2xyz
void hpix_eq2xyz(double ra, double dec, double* x, double* y, double* z) {

    double theta=0, phi=0;

    hpix_radec_degrees_to_thetaphi_radians(ra, dec, &theta, &phi);

    double sintheta = sin(theta);
    *x = sintheta * cos(phi);
    *y = sintheta * sin(phi);
    *z = cos(theta);

}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x28(%rsp), %r12
andq $0x0, (%r12)
leaq 0x20(%rsp), %r13
andq $0x0, (%r13)
movq %r12, %rdi
movq %r13, %rsi
callq 0x2eff
movsd (%r12), %xmm0
movsd %xmm0, 0x18(%rsp)
callq 0x2250
movsd %xmm0, 0x8(%rsp)
movsd (%r13), %xmm0
movsd %xmm0, 0x10(%rsp)
callq 0x2140
mulsd 0x8(%rsp), %xmm0
movsd %xmm0, (%r15)
movsd 0x10(%rsp), %xmm0
callq 0x2250
mulsd 0x8(%rsp), %xmm0
movsd %xmm0, (%r14)
movsd 0x18(%rsp), %xmm0
callq 0x2140
movsd %xmm0, (%rbx)
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/healpix.c
// Function: hpix_ring_num
int64 hpix_ring_num(const HealPix* hpix, double z) {
    int64 nside=hpix->nside;

    // rounds double to nearest long long int
    int64 iring = llrintl( nside*(2.-1.5*z) );

    // north cap
    if (z > M_TWOTHIRD) {
        iring = llrintl( nside* sqrt(3.*(1.-z)) );
        if (iring == 0) {
            iring = 1;
        }
    } else if (z < -M_TWOTHIRD) {
        iring = llrintl( nside* sqrt(3.*(1.+z)) );

        if (iring == 0) {
            iring = 1;
        }
        iring = 4*nside - iring;
    }

    return iring;
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movsd %xmm0, 0x20(%rsp)
movq (%rdi), %rbx
cvtsi2sd %rbx, %xmm1
movsd 0x6718(%rip), %xmm2     # 0x9058
mulsd %xmm0, %xmm2
addsd 0x66dc(%rip), %xmm2     # 0x9028
movsd %xmm1, 0x18(%rsp)
mulsd %xmm1, %xmm2
movsd %xmm2, 0x38(%rsp)
fldl 0x38(%rsp)
fstpt (%rsp)
callq 0x21e0
movsd 0x20(%rsp), %xmm1
ucomisd 0x66ea(%rip), %xmm1     # 0x9060
jbe 0x299c
movsd 0x66a0(%rip), %xmm0     # 0x9020
subsd %xmm1, %xmm0
mulsd 0x668c(%rip), %xmm0     # 0x9018
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x29ca
sqrtsd %xmm0, %xmm0
jmp 0x29cf
movsd 0x66c4(%rip), %xmm0     # 0x9068
ucomisd %xmm1, %xmm0
jbe 0x2a20
addsd 0x666e(%rip), %xmm1     # 0x9020
mulsd 0x665e(%rip), %xmm1     # 0x9018
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jb 0x29f1
sqrtsd %xmm1, %xmm0
jmp 0x29fa
callq 0x22b0
mulsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
fldl 0x28(%rsp)
fstpt (%rsp)
callq 0x21e0
cmpq $0x1, %rax
adcq $0x0, %rax
jmp 0x2a20
movapd %xmm1, %xmm0
callq 0x22b0
mulsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
fldl 0x30(%rsp)
fstpt (%rsp)
callq 0x21e0
shlq $0x2, %rbx
cmpq $0x1, %rax
sbbq %rax, %rbx
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/healpix.c
// Function: hpix_radec_degrees_to_thetaphi_radians
void hpix_radec_degrees_to_thetaphi_radians(double ra, double dec, double* theta, double* phi) {

    if (ra < 0.0 || ra > 360.) {
        printf("ra %g out of range [0,360.]\n", ra);
        exit(EXIT_FAILURE);
    }
    if (dec < -90. || dec > 90.) {
        printf("dec %g out of range [-90.,90.]\n", dec);
        exit(EXIT_FAILURE);
    }

    *phi = ra*D2R;
    *theta = -dec*D2R + M_PI_2;
}

// Assembly:
pushq %rax
xorpd %xmm2, %xmm2
ucomisd %xmm0, %xmm2
ja 0x2f50
ucomisd 0x6186(%rip), %xmm0     # 0x9098
ja 0x2f50
movapd 0x61a4(%rip), %xmm2     # 0x90c0
andpd %xmm1, %xmm2
ucomisd 0x6178(%rip), %xmm2     # 0x90a0
ja 0x2f59
movsd 0x6176(%rip), %xmm2     # 0x90a8
mulsd %xmm2, %xmm0
movsd %xmm0, (%rsi)
mulsd %xmm2, %xmm1
movsd 0x60ea(%rip), %xmm0     # 0x9030
subsd %xmm1, %xmm0
movsd %xmm0, (%rdi)
popq %rax
retq
leaq 0x61b0(%rip), %rdi      # 0x9107
jmp 0x2f64
leaq 0x61c4(%rip), %rdi      # 0x9124
movapd %xmm1, %xmm0
movb $0x1, %al
callq 0x20f0
pushq $0x1
popq %rdi
callq 0x2280
nop
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/cosmo.c
// Function: cosmo_new
Cosmo* cosmo_new(
        double H0, 
        int flat,
        double omega_m,
        double omega_l,
        double omega_k) {

    Cosmo* c;
    c=(Cosmo* ) calloc(1,sizeof(Cosmo));

    if (c == NULL) {
        return NULL;
    }

    c->H0=H0;
    c->DH=CLIGHT/H0;
    c->flat=flat;
    c->omega_m=omega_m;
    c->omega_l=omega_l;
    c->omega_k=omega_k;

    c->tcfac = 0;
    if (c->flat != 1) {
        if (c->omega_k > 0) {
            c->tcfac = sqrt(c->omega_k)/c->DH;
        } else {
            c->tcfac = sqrt(-c->omega_k)/c->DH;
        }
    }

    gauleg(-1.0,1.0, NPTS,  c->x,  c->w);
    gauleg(-1.0,1.0, VNPTS, c->vx, c->vw);

    return c;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x28, %rsp
movaps %xmm3, (%rsp)
movsd %xmm2, 0x20(%rsp)
movsd %xmm1, 0x18(%rsp)
movl %edi, %ebp
movsd %xmm0, 0x10(%rsp)
pushq $0x1
popq %rdi
movl $0x128, %esi            # imm = 0x128
callq 0x2170
movq %rax, %rbx
testq %rax, %rax
je 0x306f
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x8(%rbx)
movsd 0x61a2(%rip), %xmm2     # 0x9160
divsd %xmm0, %xmm2
movsd %xmm2, 0x10(%rbx)
movl %ebp, (%rbx)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%rbx)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x20(%rbx)
movapd (%rsp), %xmm0
movsd %xmm0, 0x28(%rbx)
cmpl $0x1, %ebp
je 0x3026
movapd 0x60ba(%rip), %xmm1     # 0x90b0
xorpd %xmm0, %xmm1
maxsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x300e
sqrtsd %xmm0, %xmm0
jmp 0x301d
movsd %xmm2, (%rsp)
callq 0x22b0
movsd (%rsp), %xmm2
divsd %xmm2, %xmm0
movsd %xmm0, 0x30(%rbx)
leaq 0x38(%rbx), %rsi
leaq 0x60(%rbx), %rdx
movsd 0x6002(%rip), %xmm0     # 0x9038
movsd 0x5fe2(%rip), %xmm1     # 0x9020
pushq $0x5
popq %rdi
callq 0x3079
leaq 0x88(%rbx), %rsi
movq %rbx, %rdx
addq $0xd8, %rdx
pushq $0xa
popq %rdi
movsd 0x5fd6(%rip), %xmm0     # 0x9038
movsd 0x5fb6(%rip), %xmm1     # 0x9020
callq 0x3079
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/cosmo.c
// Function: cosmo_print
void cosmo_print(Cosmo* c) {
    wlog("    H0: %lf\n", c->H0);
    wlog("    DH: %lf\n", c->DH);
    wlog("    flat: %d\n", c->flat);
    wlog("    omega_m: %lf\n", c->omega_m);
    wlog("    omega_l: %lf\n", c->omega_l);
    wlog("    omega_k: %lf\n", c->omega_k);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xad50(%rip), %r14      # 0xdff8
movq (%r14), %rdi
movsd 0x8(%rbx), %xmm0
leaq 0x5ec9(%rip), %rsi      # 0x9180
movb $0x1, %al
callq 0x21a0
movq (%r14), %rdi
movsd 0x10(%rbx), %xmm0
leaq 0x5ec0(%rip), %rsi      # 0x918d
movb $0x1, %al
callq 0x21a0
movq (%r14), %rdi
movl (%rbx), %edx
leaq 0x5eba(%rip), %rsi      # 0x919a
xorl %eax, %eax
callq 0x21a0
movq (%r14), %rdi
movsd 0x18(%rbx), %xmm0
leaq 0x5eb2(%rip), %rsi      # 0x91a8
movb $0x1, %al
callq 0x21a0
movq (%r14), %rdi
movsd 0x20(%rbx), %xmm0
leaq 0x5eae(%rip), %rsi      # 0x91ba
movb $0x1, %al
callq 0x21a0
movq (%r14), %rdi
movsd 0x28(%rbx), %xmm0
leaq 0x5eaa(%rip), %rsi      # 0x91cc
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x21a0
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/cosmo.c
// Function: ez_inverse_integral
double ez_inverse_integral(Cosmo* c, double zmin, double zmax) {
    int i;
    double f1, f2, z, ezinv_int=0, ezinv;

    f1 = (zmax-zmin)/2.;
    f2 = (zmax+zmin)/2.;

    ezinv_int = 0.0;

    for (i=0;i<NPTS;i++) {
        z = c->x[i]*f1 + f2;

        ezinv = ez_inverse(c, z);
        ezinv_int += f1*ezinv*c->w[i];
    }

    return ezinv_int;

}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
movsd 0x5d05(%rip), %xmm2     # 0x9070
mulsd %xmm2, %xmm3
movsd %xmm3, 0x8(%rsp)
addsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, 0x10(%rsp)
xorpd %xmm0, %xmm0
pushq $0x7
popq %r14
cmpq $0xc, %r14
je 0x33d5
movsd %xmm0, (%rsp)
movsd (%rbx,%r14,8), %xmm0
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movq %rbx, %rdi
callq 0x34ba
mulsd 0x8(%rsp), %xmm0
mulsd 0x28(%rbx,%r14,8), %xmm0
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r14
jmp 0x338b
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/cosmo.c
// Function: Dm
double Dm(Cosmo* c, double zmin, double zmax) {

    double d;

    d = Dc(c, zmin, zmax);

    if (!c->flat) {
        if (c->omega_k > 0) {
            d= sinh(d*c->tcfac)/c->tcfac;
        } else {
            d= sin(d*c->tcfac)/c->tcfac;
        }
    }
    return d;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x333a
cmpl $0x0, (%rbx)
jne 0x3410
movsd 0x28(%rbx), %xmm1
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm1
mulsd 0x30(%rbx), %xmm0
jbe 0x3406
callq 0x21f0
jmp 0x340b
callq 0x2250
divsd 0x30(%rbx), %xmm0
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/cosmo.c
// Function: Da
double Da(Cosmo* c, double zmin, double zmax) {
    double d;
    d = Dm(c, zmin, zmax);
    d /= (1.+zmax);
    return d;
}

// Assembly:
pushq %rax
movsd %xmm1, (%rsp)
callq 0x33dd
movsd (%rsp), %xmm1
addsd 0x5bf6(%rip), %xmm1     # 0x9020
divsd %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/cosmo.c
// Function: dV
double dV(Cosmo* c, double z) {
    double da, ezinv, oneplusz;
    double dv;

    oneplusz = 1.+z;

    da = Da(c, 0.0, z);
    ezinv = ez_inverse(c, z);
    dv = c->DH*da*da*ezinv*oneplusz*oneplusz;

    return dv;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movapd %xmm0, %xmm1
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
movsd 0x5bb8(%rip), %xmm0     # 0x9020
addsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
xorpd %xmm0, %xmm0
callq 0x3412
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x34ba
movsd 0x10(%rbx), %xmm1
movsd 0x10(%rsp), %xmm2
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd 0x18(%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/cosmo.c
// Function: ez_inverse
double ez_inverse(Cosmo* c, double z) {
    double oneplusz, oneplusz2;
    double ezi;

    oneplusz = 1.+z;
    if (c->flat) {
        ezi = c->omega_m*oneplusz*oneplusz*oneplusz + c->omega_l;
    } else {
        oneplusz2 = oneplusz*oneplusz;
        ezi = c->omega_m*oneplusz2*oneplusz + c->omega_k*oneplusz2 + c->omega_l;
    }
    ezi = sqrt(1.0/ezi);
    return ezi;
}

// Assembly:
addsd 0x5b5e(%rip), %xmm0     # 0x9020
cmpl $0x0, (%rdi)
je 0x34da
movsd 0x18(%rdi), %xmm1
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
jmp 0x34f8
movapd %xmm0, %xmm2
mulsd %xmm0, %xmm2
movsd 0x18(%rdi), %xmm1
mulsd %xmm2, %xmm1
mulsd 0x28(%rdi), %xmm2
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
addsd 0x20(%rdi), %xmm1
movsd 0x5b1b(%rip), %xmm0     # 0x9020
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x22b0
sqrtsd %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/cosmo.c
// Function: V
double V(Cosmo* c, double zmin, double zmax) {
    int i;
    double f1,f2,z;
    double dv;
    double v=0;

    f1 = (zmax-zmin)/2.;
    f2 = (zmax+zmin)/2.;

    for (i=0; i<VNPTS; i++) {
        z = c->vx[i]*f1 + f2;
        dv = dV(c, z);
        v += f1*dv*c->vw[i];
    }

    return v;

}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
movsd 0x5b3a(%rip), %xmm2     # 0x9070
mulsd %xmm2, %xmm3
movsd %xmm3, 0x8(%rsp)
addsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, 0x10(%rsp)
xorpd %xmm0, %xmm0
pushq $0x11
popq %r14
cmpq $0x1b, %r14
je 0x35a0
movsd %xmm0, (%rsp)
movsd (%rbx,%r14,8), %xmm0
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movq %rbx, %rdi
callq 0x344e
mulsd 0x8(%rsp), %xmm0
mulsd 0x50(%rbx,%r14,8), %xmm0
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r14
jmp 0x3556
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/cosmo.c
// Function: scinv
double scinv(Cosmo* c, double zl, double zs) {
    double dl, ds, dls;

    if (zs <= zl) {
        return 0.0;
    }

    dl = Da(c, 0.0, zl);
    ds = Da(c, 0.0, zs);
    dls = Da(c, zl, zs);
    return dls*dl/ds*FOUR_PI_G_OVER_C_SQUARED;
}

// Assembly:
movapd %xmm0, %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm2
jae 0x361f
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movsd %xmm1, (%rsp)
movapd %xmm2, %xmm1
movsd %xmm2, 0x10(%rsp)
callq 0x3412
movsd %xmm0, 0x18(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
movsd (%rsp), %xmm1
callq 0x3412
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movsd 0x10(%rsp), %xmm0
movsd (%rsp), %xmm1
callq 0x3412
mulsd 0x18(%rsp), %xmm0
divsd 0x8(%rsp), %xmm0
mulsd 0x5b5e(%rip), %xmm0     # 0x9178
addq $0x20, %rsp
popq %rbx
retq