LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/datahandling.c
// Function: Unpack
static int Unpack(lua_State *L)
    {
    size_t len;
    int type = checktype(L, 1);
    const void *data = luaL_checklstring(L, 2, &len);
    return Unpack_(L, type, data, len);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x65
popq %rsi
pushq $0x1
popq %rbx
movl %ebx, %edx
callq 0x4130
movl %eax, %r12d
pushq $0x2
popq %rsi
movq %rsp, %rdx
movq %r14, %rdi
callq 0x4380
decl %r12d
cmpl $0x3, %r12d
ja 0x5717
movq %rax, %r15
movq (%rsp), %r13
leaq 0x6d10(%rip), %rax      # 0xc298
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpq $0x2, %r13
setb %al
movl %r13d, %ecx
orb %al, %cl
testb $0x1, %cl
jne 0x5700
shrq %r13
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
negq %r13
pushq $0x1
popq %r12
pushq $-0x2
popq %rbp
leaq (%r12,%r13), %rax
cmpq $0x1, %rax
je 0x5736
movswq -0x2(%r15,%r12,2), %rsi
movq %r14, %rdi
callq 0x4320
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x4490
incq %r12
jmp 0x55bf
cmpq $0x4, %r13
setb %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x5700
shrq $0x2, %r13
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
negq %r13
pushq $0x1
popq %r12
pushq $-0x2
popq %rbp
leaq (%r12,%r13), %rax
cmpq $0x1, %rax
je 0x5736
cvtss2sd -0x4(%r15,%r12,4), %xmm0
movq %r14, %rdi
callq 0x4510
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x4490
incq %r12
jmp 0x561d
cmpq $0x8, %r13
setb %al
testb $0x7, %r13b
setne %cl
orb %al, %cl
jne 0x5700
shrq $0x3, %r13
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
negq %r13
pushq $0x1
popq %r12
pushq $-0x2
popq %rbp
leaq (%r12,%r13), %rax
cmpq $0x1, %rax
je 0x5736
movsd -0x8(%r15,%r12,8), %xmm0
movq %r14, %rdi
callq 0x4510
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x4490
incq %r12
jmp 0x567c
cmpq $0x4, %r13
setb %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x5700
shrq $0x2, %r13
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
negq %r13
pushq $0x1
popq %r12
pushq $-0x2
popq %rbp
leaq (%r12,%r13), %rax
cmpq $0x1, %rax
je 0x5736
movslq -0x4(%r15,%r12,4), %rsi
movq %r14, %rdi
callq 0x4320
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x4490
incq %r12
jmp 0x56d7
pushq $-0x7
popq %rdi
callq 0x4660
movq %r14, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x46c0
jmp 0x5734
leaq 0x6be6(%rip), %rsi      # 0xc304
leaq 0x6bf9(%rip), %rdx      # 0xc31e
movq %r14, %rdi
movl $0xe7, %ecx
xorl %eax, %eax
callq 0x46c0
movl %eax, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/enums.c
// Function: moonsndfile_enums_checklist
int* enums_checklist(lua_State *L, uint32_t domain, int arg, size_t *count, int *err)
    {
    int* list;
    size_t i;

    *count = 0;
    *err = 0;
    if(lua_isnoneornil(L, arg))
        { *err = ERR_NOTPRESENT; return NULL; }
    if(lua_type(L, arg) != LUA_TTABLE)
        { *err = ERR_TABLE; return NULL; }

    *count = luaL_len(L, arg);
    if(*count == 0)
        { *err = ERR_NOTPRESENT; return NULL; }

    list = (int*)MallocNoErr(L, sizeof(int) * (*count));
    if(!list)
        { *count = 0; *err = ERR_MEMORY; return NULL; }

    for(i=0; i<*count; i++)
        {
        lua_rawgeti(L, arg, i+1);
        list[i] = enums_test(L, domain, -1, err);
        lua_pop(L, 1);
        if(*err)
            { Free(L, list); *count = 0; return NULL; }
        }
    return list;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movl %edx, %ebp
movl %esi, 0x14(%rsp)
movq %rcx, 0x8(%rsp)
andq $0x0, (%rcx)
movq %rdi, %r12
andl $0x0, (%r8)
movl %edx, %esi
callq 0x4730
testl %eax, %eax
jle 0x6462
movq %r12, %rdi
movl %ebp, %esi
callq 0x4730
cmpl $0x5, %eax
jne 0x646b
movq %r12, %rdi
movl %ebp, %esi
callq 0x4740
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x6462
shlq $0x2, %rax
movq %r12, %rdi
movq %rax, %rsi
callq 0x4390
testq %rax, %rax
je 0x6487
movq %rax, %r13
xorl %r15d, %r15d
movq 0x8(%rsp), %rax
cmpq (%rax), %r15
jae 0x6475
leaq 0x1(%r15), %rbx
movq %r12, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x42a0
movq %r12, %rdi
movl 0x14(%rsp), %esi
pushq $-0x1
popq %rdx
movq %r14, %rcx
callq 0x4600
movl %eax, (%r13,%r15,4)
movq %r12, %rdi
pushq $-0x2
popq %rsi
callq 0x4080
cmpl $0x0, (%r14)
movq %rbx, %r15
je 0x6406
movq %r12, %rdi
movq %r13, %rsi
callq 0x43a0
movq 0x8(%rsp), %rax
andq $0x0, (%rax)
jmp 0x6472
movl $0x1, (%r14)
jmp 0x6472
movl $0xfffffffc, (%r14)     # imm = 0xFFFFFFFC
xorl %r13d, %r13d
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rax
andq $0x0, (%rax)
movl $0xfffffffa, (%r14)     # imm = 0xFFFFFFFA
jmp 0x6472
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/enums.c
// Function: Enum
static int Enum(lua_State *L)
/* { strings } = cl.enum('type') lists all the values for a given enum type */
    { 
    const char *s = luaL_checkstring(L, 1); 
#define CASE(xxx) if(strcmp(s, ""#xxx) == 0) return values##xxx(L)
    CASE(type);
    CASE(format);
    CASE(subformat);
    CASE(endianness);
    CASE(stringtype);
    CASE(whence);
    CASE(openmode);
    CASE(channelmap);
    CASE(ditherlevel);
    CASE(dithertype);
    CASE(loopmode);
    CASE(ambisonic);
    CASE(bitratemode);
#undef CASE
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x4380
movq %rax, %r14
leaq 0x4fa1(%rip), %rsi      # 0xd4de
movq %rax, %rdi
callq 0x4430
testl %eax, %eax
je 0x8653
leaq 0x48c0(%rip), %rsi      # 0xce14
movq %r14, %rdi
callq 0x4430
movl %ebp, %esi
testl %eax, %eax
je 0x867e
leaq 0x50e6(%rip), %rsi      # 0xd653
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8657
leaq 0x490a(%rip), %rsi      # 0xce8e
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x865b
leaq 0x48fe(%rip), %rsi      # 0xce99
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x865f
leaq 0x48f2(%rip), %rsi      # 0xcea4
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8663
leaq 0x48e2(%rip), %rsi      # 0xceab
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8667
leaq 0x48d4(%rip), %rsi      # 0xceb4
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x866b
leaq 0x48cc(%rip), %rsi      # 0xcebf
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x866f
leaq 0x48c5(%rip), %rsi      # 0xcecb
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8673
leaq 0x48bd(%rip), %rsi      # 0xced6
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8677
leaq 0x3c21(%rip), %rsi      # 0xc24d
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x867b
leaq 0x48a0(%rip), %rsi      # 0xcedf
movq %r14, %rdi
callq 0x4430
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x8688
pushq $0xc
jmp 0x867d
pushq $0x65
jmp 0x867d
pushq $0x2
jmp 0x867d
pushq $0x3
jmp 0x867d
pushq $0x4
jmp 0x867d
pushq $0x5
jmp 0x867d
pushq $0x6
jmp 0x867d
pushq $0x7
jmp 0x867d
pushq $0x8
jmp 0x867d
pushq $0x9
jmp 0x867d
pushq $0xa
jmp 0x867d
pushq $0xb
popq %rsi
movq %rbx, %rdi
callq 0x4540
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/format.c
// Function: FormatCheck
static int FormatCheck(lua_State *L)
/* boolean = sf.format_check(format, subformat) */
    {
    SF_INFO sfinfo;
    int format = checkformat(L, 1);
    int subformat = checksubformat(L, 2);
    
    memset(&sfinfo, 0, sizeof(sfinfo));
    sfinfo.channels = 1;
    sfinfo.format = (format & SF_FORMAT_TYPEMASK) | subformat;
    lua_pushboolean(L, sf.format_check(&sfinfo));
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
pushq $0x1
popq %rbx
movl %ebx, %esi
movl %ebx, %edx
callq 0x4130
movl %eax, %ebp
pushq $0x2
popq %rdx
movq %r14, %rdi
movl %edx, %esi
callq 0x4130
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movaps %xmm0, 0x10(%rdi)
movl $0x1, 0xc(%rdi)
andl $0xfff0000, %ebp        # imm = 0xFFF0000
orl %eax, %ebp
movl %ebp, 0x10(%rdi)
movq 0x98f6(%rip), %rax      # 0x11fe0
callq *0x48(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x4550
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/format.c
// Function: GetSimpleFormatList
static int GetSimpleFormatList(lua_State *L)
    {
    SF_FORMAT_INFO info;
    int i, count;
    sf.command(NULL, SFC_GET_SIMPLE_FORMAT_COUNT, &count, sizeof(count));
    lua_newtable(L);
    for(i = 0; i < count; i++) 
        {
        info.format = i;
        sf.command(NULL, SFC_GET_SIMPLE_FORMAT, &info, sizeof(info));
        pushsimpleformat(L, &info);
        lua_rawseti(L, -2, i+1);
        }
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x98c6(%rip), %r13      # 0x11fe0
xorl %r14d, %r14d
leaq 0xc(%rsp), %rdx
pushq $0x4
popq %rcx
xorl %edi, %edi
movl $0x1020, %esi           # imm = 0x1020
callq *0x40(%r13)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
leaq 0x10(%rsp), %r15
pushq $0x18
popq %rbp
pushq $-0x2
popq %r12
movslq 0xc(%rsp), %rax
cmpq %rax, %r14
jge 0x8785
movl %r14d, 0x10(%rsp)
xorl %edi, %edi
movl $0x1021, %esi           # imm = 0x1021
movq %r15, %rdx
movl %ebp, %ecx
callq *0x40(%r13)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x43e0
incq %r14
movq %rbx, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x4490
jmp 0x8748
pushq $0x1
popq %rax
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]moonsndfile/src/format.c
// Function: GetFormatList
static int GetFormatList(lua_State *L)
    {
    SF_FORMAT_INFO info;
    int i, count;
    sf.command(NULL, SFC_GET_FORMAT_MAJOR_COUNT, &count, sizeof(count));

    lua_newtable(L);
    memset(&info, 0, sizeof(info));
    for(i = 0; i < count; i++) 
        {
        info.format = i;
        sf.command(NULL, SFC_GET_FORMAT_MAJOR, &info, sizeof(info));
        sf.command(NULL, SFC_GET_FORMAT_INFO, &info, sizeof(info));
        pushformatinfo(L, &info);
        lua_rawseti(L, -2, i+1);
        }
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x9831(%rip), %r13      # 0x11fe0
xorl %r14d, %r14d
leaq 0xc(%rsp), %rdx
pushq $0x4
popq %rcx
xorl %edi, %edi
movl $0x1030, %esi           # imm = 0x1030
callq *0x40(%r13)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
leaq 0x10(%rsp), %r15
andq $0x0, 0x10(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
pushq $0x18
popq %rbp
pushq $-0x2
popq %r12
movslq 0xc(%rsp), %rax
cmpq %rax, %r14
jge 0x8836
movl %r14d, 0x10(%rsp)
xorl %edi, %edi
movl $0x1031, %esi           # imm = 0x1031
movq %r15, %rdx
movl %ebp, %ecx
callq *0x40(%r13)
xorl %edi, %edi
movl $0x1028, %esi           # imm = 0x1028
movq %r15, %rdx
movl %ebp, %ecx
callq *0x40(%r13)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x44e0
incq %r14
movq %rbx, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x4490
jmp 0x87e9
pushq $0x1
popq %rax
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]moonsndfile/src/format.c
// Function: GetFormatInfo
static int GetFormatInfo(lua_State *L)
    {
    SF_FORMAT_INFO info;
    int format = checkformat(L, 1);
    memset(&info, 0, sizeof(info));
    info.format = format;
    sf.command(NULL, SFC_GET_FORMAT_INFO, &info, sizeof(info));
    pushformatinfo(L, &info);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %esi
movl %ebp, %edx
callq 0x4130
movq %rsp, %r14
andq $0x0, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movl %eax, (%r14)
movq 0x9768(%rip), %rax      # 0x11fe0
pushq $0x18
popq %rcx
xorl %edi, %edi
movl $0x1028, %esi           # imm = 0x1028
movq %r14, %rdx
callq *0x40(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/format.c
// Function: GetSubFormatInfo
static int GetSubFormatInfo(lua_State *L)
    {
    SF_FORMAT_INFO info;
    int subformat = checksubformat(L, 1);
    memset(&info, 0, sizeof(info));
    info.format = subformat;
    sf.command(NULL, SFC_GET_FORMAT_INFO, &info, sizeof(info));
    pushsubformatinfo(L, &info);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
pushq $0x2
popq %rsi
pushq $0x1
popq %rbp
movl %ebp, %edx
callq 0x4130
movq %rsp, %r14
andq $0x0, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movl %eax, (%r14)
movq 0x9711(%rip), %rax      # 0x11fe0
pushq $0x18
popq %rcx
xorl %edi, %edi
movl $0x1028, %esi           # imm = 0x1028
movq %r14, %rdx
callq *0x40(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4330
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/main.c
// Function: luaopen_moonsndfile
int luaopen_moonsndfile(lua_State *L)
/* Lua calls this function to load the module */
    {
    moonsndfile_L = L;

    moonsndfile_utils_init(L);
    atexit(AtExit);

    lua_newtable(L); /* the cl table */

    /* add functions: */
    moonsndfile_open_getproc(L);
    moonsndfile_open_version(L);
    moonsndfile_open_enums(L);
    moonsndfile_open_tracing(L);
    moonsndfile_open_sndfile(L);
    moonsndfile_open_readwrite(L);
    moonsndfile_open_rawreadwrite(L);
    moonsndfile_open_datahandling(L);
    moonsndfile_open_command(L);
    moonsndfile_open_format(L);
    moonsndfile_open_chunk(L);

#if 0 //@@
    /* Add functions implemented in Lua */
    lua_pushvalue(L, -1); lua_setglobal(L, "moonsndfile");
    if(luaL_dostring(L, "require('moonsndfile.utils')") != 0) lua_error(L);
    lua_pushnil(L);  lua_setglobal(L, "moonsndfile");
#endif

    return 1;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq %rdi, 0x9575(%rip)      # 0x12560
callq 0x45c0
leaq 0x6e(%rip), %rdi        # 0x9065
callq 0xbb10
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movq %rbx, %rdi
callq 0x44a0
movq %rbx, %rdi
callq 0x4410
movq %rbx, %rdi
callq 0x4070
movq %rbx, %rdi
callq 0x4050
movq %rbx, %rdi
callq 0x4750
movq %rbx, %rdi
callq 0x4360
movq %rbx, %rdi
callq 0x41f0
movq %rbx, %rdi
callq 0x4640
movq %rbx, %rdi
callq 0x41d0
movq %rbx, %rdi
callq 0x42e0
movq %rbx, %rdi
callq 0x4250
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/main.c
// Function: AtExit
static void AtExit(void)
    {
    if(moonsndfile_L)
        {
        enums_free_all(moonsndfile_L);
        moonsndfile_atexit_getproc();
        moonsndfile_L = NULL;
        }
    }

// Assembly:
movq 0x94f4(%rip), %rdi      # 0x12560
testq %rdi, %rdi
je 0x9088
pushq %rax
callq 0x4090
callq 0x40a0
andq $0x0, 0x94dc(%rip)      # 0x12560
addq $0x8, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/objects.c
// Function: moonsndfile_newuserdata
ud_t *newuserdata(lua_State *L, void *handle, const char *mt)
    {
    ud_t *ud;
    /* we use handle as search key */
    ud = (ud_t*)udata_new(L, sizeof(ud_t), (uint64_t)(uintptr_t)handle, mt);
    memset(ud, 0, sizeof(ud_t));
    ud->handle = handle;
    MarkValid(ud);
    return ud;
    }

// Assembly:
pushq %rbx
movq %rdx, %rcx
movq %rsi, %rbx
pushq $0x50
popq %rsi
movq %rbx, %rdx
callq 0x40c0
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x28(%rax)
andq $0x0, 0x48(%rax)
movups %xmm0, 0x38(%rax)
movq %rbx, (%rax)
movl $0x1, 0x18(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/objects.c
// Function: moonsndfile_freeuserdata
int freeuserdata(lua_State *L, ud_t *ud)
    {
    /* The 'Valid' mark prevents double calls when an object is explicitly destroyed, 
     * and subsequently deleted also by the GC (the ud sticks around until the GC
     * collects it, so we mark it as invalid when the object is explicitly destroyed
     * by the script, or implicitly destroyed because child of a destroyed object). */
    if(!IsValid(ud)) return 0;
    CancelValid(ud);
    if(ud->info) 
        Free(L, ud->info);
    udata_free(L, (uint64_t)(uintptr_t)ud->handle);
    return 1;
    }

// Assembly:
movl 0x18(%rsi), %ecx
xorl %eax, %eax
testb $0x1, %cl
je 0x9102
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
andl $-0x2, %ecx
movl %ecx, 0x18(%rsi)
movq 0x48(%rsi), %rsi
testq %rsi, %rsi
je 0x90ed
movq %rbx, %rdi
callq 0x43a0
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x46f0
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/rawreadwrite.c
// Function: ReadRaw
static int ReadRaw(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    size_t bytes = luaL_checkinteger(L, 2);
    char *ptr = (char*)Malloc(L, bytes);
    sf_count_t nbytes = sf.read_raw(sndfile, ptr, bytes);
    lua_pushlstring(L, ptr, nbytes);
    Free(L, ptr);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x2d67(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4470
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x41e0
movq %rax, %r12
movq 0x8c7e(%rip), %rax      # 0x11fe0
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq *0x78(%rax)
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x4650
movq %rbx, %rdi
movq %r12, %rsi
callq 0x43a0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/rawreadwrite.c
// Function: WriteRaw
static int WriteRaw(lua_State *L)
    {
    size_t bytes;
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    const char *ptr = luaL_checklstring(L, 2, &bytes);
    sf_count_t nbytes = sf.write_raw(sndfile, ptr, bytes);
    lua_pushinteger(L, nbytes);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2cf4(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0x4380
movq 0x8c16(%rip), %rcx      # 0x11fe0
movq (%r15), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq *0x80(%rcx)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4320
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/readwrite.c
// Function: Seek
static int Seek(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    sf_count_t frames = luaL_checkinteger(L, 2);
    int whence = checkwhence(L, 3);
    sf_count_t offset = sf.seek(sndfile, frames, whence) ;
    if(offset == -1)
        return nil_sndfileerror(L, sndfile);
    lua_pushinteger(L, offset);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x2c57(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4470
movq %rax, %r15
pushq $0x5
popq %rsi
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x4130
movq 0x8b70(%rip), %rcx      # 0x11fe0
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
callq *0x50(%rcx)
movq %rbx, %rdi
cmpq $-0x1, %rax
je 0x9495
movq %rax, %rsi
callq 0x4320
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x4590
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/readwrite.c
// Function: CurrentByterate
static int CurrentByterate(lua_State *L)
    {
    int val;
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    if(!sf.current_byterate) //CheckPfn(L, current_byterate, 1,0,26);
        return 0;
    val = sf.current_byterate(sndfile);
    if(val == -1) 
        return 0; /* unknown */
    lua_pushinteger(L, val);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x2bc1(%rip), %rcx      # 0xc097
xorl %r14d, %r14d
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x4400
movq 0x8af4(%rip), %rcx      # 0x11fe0
movq 0x70(%rcx), %rcx
testq %rcx, %rcx
je 0x950d
movq %rax, %rdi
callq *%rcx
cmpl $-0x1, %eax
je 0x950d
movslq %eax, %rsi
movq %rbx, %rdi
callq 0x4320
movl %ebp, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/readwrite.c
// Function: Write
static int Write(lua_State *L)
    {
    ud_t *ud;
    size_t size;
    sf_count_t frames, nframes = 0;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    int t = checktype(L, 2);
    const char *ptr = luaL_checklstring(L, 3, &size);
    switch(t)
        {
        case NONSF_TYPE_SHORT:  frames = CheckSize_short(L, 3, ud, size);
                                nframes = sf.writef_short(sndfile, (short*)ptr, frames);
                                break;
        case NONSF_TYPE_INT:    frames = CheckSize_int(L, 3, ud, size);
                                nframes = sf.writef_int(sndfile, (int*)ptr, frames);
                                break;
        case NONSF_TYPE_FLOAT:  frames = CheckSize_float(L, 3, ud, size);
                                nframes = sf.writef_float(sndfile, (float*)ptr, frames);
                                break;
        case NONSF_TYPE_DOUBLE: frames = CheckSize_double(L, 3, ud, size);
                                nframes = sf.writef_double(sndfile, (double*)ptr, frames);
                                break;
        default:
            return luaL_argerror(L, 2, "invalid type");
        }
    lua_pushinteger(L, nframes);
    lua_pushinteger(L, frames);
    return 2;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x29fe(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
leaq 0x10(%rsp), %rdx
callq 0x4400
movq %rax, %r14
pushq $0x65
popq %rsi
pushq $0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %edx
callq 0x4130
movl %eax, %r12d
pushq $0x3
popq %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x4380
decl %r12d
cmpl $0x3, %r12d
ja 0x97b0
movq %rax, %r15
leaq 0x3c91(%rip), %rax      # 0xd374
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movslq 0x2c(%rcx), %rcx
addq %rcx, %rcx
movl $0x90, %r13d
jmp 0x9751
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movslq 0x2c(%rcx), %rcx
shlq $0x2, %rcx
movl $0xb0, %r13d
jmp 0x9751
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movslq 0x2c(%rcx), %rcx
shlq $0x3, %rcx
movl $0xc0, %r13d
jmp 0x9751
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movslq 0x2c(%rcx), %rcx
shlq $0x2, %rcx
movl $0xa0, %r13d
addq 0x8888(%rip), %r13      # 0x11fe0
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
je 0x9779
leaq 0x3d7a(%rip), %rdx      # 0xd4e3
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x4110
movslq %eax, %r12
jmp 0x977c
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq *(%r13)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4320
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4320
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3d1f(%rip), %rdx      # 0xd4d6
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4110
movl %eax, %ebp
jmp 0x979f
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/readwrite.c
// Function: SetBitrateMode
static int SetBitrateMode(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int val = checkbitratemode(L, 2);
    sf.command(sndfile, SFC_SET_BITRATE_MODE, NULL, val);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2823(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
pushq $0xc
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x4130
movq 0x874a(%rip), %r8       # 0x11fe0
movq %r14, %rdi
movl $0x1305, %esi           # imm = 0x1305
xorl %edx, %edx
movl %eax, %ecx
callq *0x40(%r8)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/readwrite.c
// Function: GetBitrateMode
static int GetBitrateMode(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int val = sf.command(sndfile, SFC_GET_BITRATE_MODE, NULL, 0);
    pushbitratemode(L, val);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x27da(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x4400
movq 0x8710(%rip), %r8       # 0x11fe0
movq %rax, %rdi
movl $0x1304, %esi           # imm = 0x1304
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x40(%r8)
pushq $0xc
popq %rsi
movq %rbx, %rdi
movl %eax, %edx
callq 0x4120
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/sndfile.c
// Function: GetFileinfo
static int GetFileinfo(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    pushinfo(L, &ud->sfinfo);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x266f(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %r14
movl %ebp, %esi
movq %r14, %rdx
callq 0x4400
movq (%r14), %rdx
movq 0x859c(%rip), %r8       # 0x11fe0
addq $0x20, %rdx
pushq $0x20
popq %rcx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
callq *0x40(%r8)
movq (%r14), %rsi
addq $0x20, %rsi
movq %rbx, %rdi
callq 0x43b0
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/sndfile.c
// Function: GetFormat
static int GetFormat(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    pushformat(L, ud->sfinfo.format & SF_FORMAT_TYPEMASK);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0x2613(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbx
leaq 0x8(%rsp), %r15
movl %ebx, %esi
movq %r15, %rdx
callq 0x4400
movq (%r15), %rdx
movq 0x8540(%rip), %r8       # 0x11fe0
addq $0x20, %rdx
pushq $0x20
popq %rcx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
callq *0x40(%r8)
movq (%r15), %rax
movl $0xfff0000, %edx        # imm = 0xFFF0000
andl 0x30(%rax), %edx
movq %r14, %rdi
movl %ebx, %esi
callq 0x4120
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/sndfile.c
// Function: GetSubformat
static int GetSubformat(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    pushsubformat(L, ud->sfinfo.format & SF_FORMAT_SUBMASK);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x25b1(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %r14
movl %ebp, %esi
movq %r14, %rdx
callq 0x4400
movq (%r14), %rdx
movq 0x84de(%rip), %r8       # 0x11fe0
addq $0x20, %rdx
pushq $0x20
popq %rcx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
callq *0x40(%r8)
movq (%r14), %rax
movzwl 0x30(%rax), %edx
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4120
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/sndfile.c
// Function: GetEndianness
static int GetEndianness(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    pushendianness(L, ud->sfinfo.format & SF_FORMAT_ENDMASK);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0x2552(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbx
leaq 0x8(%rsp), %r15
movl %ebx, %esi
movq %r15, %rdx
callq 0x4400
movq (%r15), %rdx
movq 0x847f(%rip), %r8       # 0x11fe0
addq $0x20, %rdx
pushq $0x20
popq %rcx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
callq *0x40(%r8)
movq (%r15), %rax
movl $0x30000000, %edx       # imm = 0x30000000
andl 0x30(%rax), %edx
pushq $0x3
popq %rsi
movq %r14, %rdi
callq 0x4120
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/sndfile.c
// Function: GetSeekable
static int GetSeekable(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    lua_pushboolean(L, ud->sfinfo.seekable);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x2328(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %r14
movl %ebp, %esi
movq %r14, %rdx
callq 0x4400
movq (%r14), %rdx
movq 0x8255(%rip), %r8       # 0x11fe0
addq $0x20, %rdx
pushq $0x20
popq %rcx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
callq *0x40(%r8)
movq (%r14), %rax
movl 0x38(%rax), %esi
movq %rbx, %rdi
callq 0x4550
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/sndfile.c
// Function: SetString
static int SetString(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int str_type = checkstringtype(L, 2);
    const char *str = luaL_checkstring(L, 3);
    if(sf.set_string(sndfile, str_type, str))
        return sndfileerror(L, sndfile);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x22c3(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
pushq $0x4
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x4130
movl %eax, %ebp
pushq $0x3
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4380
movq 0x81db(%rip), %rcx      # 0x11fe0
movq %r14, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq *0x58(%rcx)
testl %eax, %eax
je 0x9e23
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x4340
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/sndfile.c
// Function: GetString
static int GetString(lua_State *L)
    {
    int str_type = checkstringtype(L, 2);
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    const char *str = sf.get_string(sndfile, str_type);
    if(!str) return 0;
    lua_pushstring(L, str);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x4
popq %rsi
pushq $0x2
popq %rdx
callq 0x4130
movl %eax, %r15d
leaq 0x224e(%rip), %rcx      # 0xc097
xorl %r14d, %r14d
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x4400
movq 0x817e(%rip), %rcx      # 0x11fe0
movq %rax, %rdi
movl %r15d, %esi
callq *0x60(%rcx)
testq %rax, %rax
je 0x9e7e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4780
movl %ebp, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/sndfile.c
// Function: GetEmbedFileInfo
static int GetEmbedFileInfo (lua_State *L)
    {
    SF_EMBED_FILE_INFO info;
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    if(sf.command(sndfile, SFC_GET_EMBED_FILE_INFO, &info, sizeof(info)) != 0)
        return sndfileerror(L, sndfile);
    lua_pushinteger(L, info.offset);
    lua_pushinteger(L, info.length);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x21fa(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
movq 0x812f(%rip), %rax      # 0x11fe0
leaq 0x8(%rsp), %rdx
pushq $0x10
popq %rcx
movq %r14, %rdi
movl $0x10b0, %esi           # imm = 0x10B0
callq *0x40(%rax)
testl %eax, %eax
je 0x9ed5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4340
jmp 0x9ef2
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4320
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4320
pushq $0x2
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/sndfile.c
// Function: freesndfile
static int freesndfile(lua_State *L, ud_t *ud)
    {
    int ec;
    sndfile_t sndfile = (sndfile_t)ud->handle;
    chunknode_t *chunklist = ud->chunklist;
    if(!freeuserdata(L, ud)) return 0;
    TRACE_DELETE(sndfile, "sndfile");
    ec = sf.close(sndfile);
    freechunks(L, chunklist);
    if(ec != 0) 
        return luaL_error(L, sf.error_number(ec));
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq (%rsi), %r15
movq 0x40(%rsi), %r14
callq 0x4720
testl %eax, %eax
je 0xa15e
movq 0x7eef(%rip), %rax      # 0x11ff8
cmpl $0x0, (%rax)
je 0xa11f
leaq 0x34a8(%rip), %rdi      # 0xd5bd
movq %r15, %rsi
xorl %eax, %eax
callq 0x4290
movq 0x7eba(%rip), %r12      # 0x11fe0
movq %r15, %rdi
callq *0x108(%r12)
movl %eax, %ebp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x47b0
testl %ebp, %ebp
je 0xa15e
movl %ebp, %edi
callq *0x28(%r12)
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x46c0
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_pushinfo
int pushinfo(lua_State *L, SF_INFO *p)
    {
    lua_newtable(L);
    lua_pushinteger(L, p->format); lua_setfield(L, -2, "code");
    pushformat(L, FORMAT(p->format)); lua_setfield(L, -2, "format");
    pushsubformat(L, SUBFORMAT(p->format)); lua_setfield(L, -2, "subformat");
    pushendianness(L, ENDIANNESS(p->format)); lua_setfield(L, -2, "endianness");
    lua_pushinteger(L, p->frames); lua_setfield(L, -2, "frames");
    lua_pushinteger(L, p->samplerate); lua_setfield(L, -2, "samplerate");
    lua_pushinteger(L, p->channels); lua_setfield(L, -2, "channels");
    lua_pushinteger(L, p->sections); lua_setfield(L, -2, "sections");
    lua_pushboolean(L, p->seekable); lua_setfield(L, -2, "seekable");
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movslq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x31ee(%rip), %rdx      # 0xd637
pushq $-0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movl $0xfff0000, %edx        # imm = 0xFFF0000
andl 0x10(%r14), %edx
pushq $0x1
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x4120
leaq 0x299f(%rip), %rdx      # 0xce14
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movzwl 0x10(%r14), %edx
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4120
leaq 0x31bd(%rip), %rdx      # 0xd653
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movl $0x30000000, %edx       # imm = 0x30000000
andl 0x10(%r14), %edx
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x4120
leaq 0x29d3(%rip), %rdx      # 0xce8e
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x3027(%rip), %rdx      # 0xd4fe
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movslq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x1d88(%rip), %rdx      # 0xc27c
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movslq 0xc(%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x1cac(%rip), %rdx      # 0xc1bd
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movslq 0x14(%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x2fd7(%rip), %rdx      # 0xd505
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x4550
leaq 0x2fc3(%rip), %rdx      # 0xd50e
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_pushformatinfo
int pushformatinfo(lua_State *L, SF_FORMAT_INFO *p)
    {
    lua_newtable(L);
    pushformat(L, p->format); lua_setfield(L, -2, "format");
    lua_pushinteger(L, p->format); lua_setfield(L, -2, "code");
    lua_pushstring(L, p->name); lua_setfield(L, -2, "name");
    lua_pushstring(L, p->extension); lua_setfield(L, -2, "extension");
    GetSubFormats(L, p->format); lua_setfield(L, -2, "subformats"); 
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %r13d, %r13d
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movl (%r14), %edx
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x4120
leaq 0x287c(%rip), %rdx      # 0xce14
pushq $-0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x3080(%rip), %rdx      # 0xd637
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x32d3(%rip), %rdx      # 0xd8a7
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x30aa(%rip), %rdx      # 0xd69b
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movl $0xfff0000, %eax        # imm = 0xFFF0000
andl (%r14), %eax
movl %eax, (%rsp)
movq 0x79d3(%rip), %r15      # 0x11fe0
leaq 0x4(%rsp), %rdx
pushq $0x4
popq %rcx
xorl %edi, %edi
movl $0x1032, %esi           # imm = 0x1032
callq *0x40(%r15)
movq %rbx, 0x8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
leaq 0x10(%rsp), %r14
andq $0x0, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
leaq 0x30(%rsp), %rax
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movl $0x1, 0xc(%rax)
pushq $0x18
popq %r12
xorl %ebx, %ebx
movq 0x8(%rsp), %rbp
cmpl 0x4(%rsp), %r13d
jge 0xa6c6
movl %r13d, 0x10(%rsp)
xorl %edi, %edi
movl $0x1033, %esi           # imm = 0x1033
movq %r14, %rdx
movl %r12d, %ecx
callq *0x40(%r15)
movl 0x10(%rsp), %eax
orl (%rsp), %eax
movl %eax, 0x40(%rsp)
leaq 0x30(%rsp), %rdi
callq *0x48(%r15)
testl %eax, %eax
je 0xa6c1
xorl %edi, %edi
movl $0x1028, %esi           # imm = 0x1028
movq %r14, %rdx
movl %r12d, %ecx
callq *0x40(%r15)
movq %rbp, %rdi
movq %r14, %rsi
callq 0x4330
incl %ebx
movslq %ebx, %rdx
movq %rbp, %rdi
pushq $-0x2
popq %rsi
callq 0x4420
incl %r13d
jmp 0xa660
leaq 0x2fd8(%rip), %rdx      # 0xd6a5
pushq $-0x2
popq %rsi
movq 0x8(%rsp), %rdi
callq 0x4300
pushq $0x1
popq %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_pushsubformatinfo
int pushsubformatinfo(lua_State *L, SF_FORMAT_INFO *p)
    {
    lua_newtable(L);
    pushsubformat(L, p->format); lua_setfield(L, -2, "subformat");
    lua_pushinteger(L, p->format); lua_setfield(L, -2, "code");
    lua_pushstring(L, p->name); lua_setfield(L, -2, "name");
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movl (%r14), %edx
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4120
leaq 0x2f3f(%rip), %rdx      # 0xd653
pushq $-0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x2f04(%rip), %rdx      # 0xd637
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x3157(%rip), %rdx      # 0xd8a7
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_pushsimpleformat
int pushsimpleformat(lua_State *L, SF_FORMAT_INFO *p)
    {
    lua_newtable(L);
    lua_pushinteger(L, p->format); lua_setfield(L, -2, "code");
    lua_pushstring(L, p->name); lua_setfield(L, -2, "name");
    lua_pushstring(L, p->extension); lua_setfield(L, -2, "extension");
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x2eb0(%rip), %rdx      # 0xd637
pushq $-0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x3100(%rip), %rdx      # 0xd8a7
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x2ed7(%rip), %rdx      # 0xd69b
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4300
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_checkchunk
chunknode_t *checkchunk(lua_State *L, int arg)
    {
    const char *id;
    const char *data;
    size_t id_size, datalen;
    chunknode_t *p;
    if(lua_isnoneornil(L, arg))
        { luaL_argerror(L, arg, errstring(ERR_NOTPRESENT)); return NULL; }
    if(lua_type(L, arg) != LUA_TTABLE)
        { luaL_argerror(L, arg, errstring(ERR_TABLE)); return NULL; }

    lua_getfield(L, arg, "id");
    id = luaL_checklstring(L, -1, &id_size);
    if(!id || id_size == 0 || id_size > 64)
        { lua_pop(L, 1); luaL_argerror(L, arg, "missing or invalid 'id' field"); return NULL; }
    lua_pop(L, 1);
    
    lua_getfield(L, arg, "data");
    data = luaL_optlstring(L, -1, NULL, &datalen);
    lua_pop(L, 1);
    
    p = (chunknode_t*)Malloc(L, sizeof(chunknode_t));
    if(id) memcpy(p->chunk.id, id, id_size);
    if(data && datalen > 0)
        {
        p->chunk.data = MallocNoErr(L, datalen);
        if(!p->chunk.data)
            { 
            freechunk(L, p);
            luaL_argerror(L, arg, errstring(ERR_MEMORY)); 
            return NULL;
            }
        memcpy(p->chunk.data, data, datalen);
        }
    return p;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
movq %rdi, %r14
callq 0x4730
testl %eax, %eax
jle 0xa912
movq %r14, %rdi
movl %ebx, %esi
callq 0x4730
cmpl $0x5, %eax
jne 0xa916
leaq 0x2177(%rip), %rdx      # 0xc9b7
movq %r14, %rdi
movl %ebx, %esi
callq 0x47e0
pushq $-0x1
popq %rsi
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %r15, %rdx
callq 0x4380
movq %rax, %r12
movq (%r15), %r15
pushq $-0x2
popq %rsi
movq %r14, %rdi
callq 0x4080
testq %r12, %r12
je 0xa940
addq $-0x41, %r15
cmpq $-0x41, %r15
jbe 0xa940
leaq 0x2a94(%rip), %rdx      # 0xd320
movq %r14, %rdi
movl %ebx, %esi
callq 0x47e0
pushq $-0x1
popq %rsi
leaq 0x8(%rsp), %rbp
movq %r14, %rdi
xorl %edx, %edx
movq %rbp, %rcx
callq 0x4270
movq %rax, %r13
pushq $-0x2
popq %rsi
movq %r14, %rdi
callq 0x4080
pushq $0x58
popq %rsi
movq %r14, %rdi
callq 0x41e0
movq %rax, %r15
leaq 0x8(%rax), %rdi
movq 0x10(%rsp), %rdx
movq %r12, %rsi
callq 0x44b0
testq %r13, %r13
setne %al
movq (%rbp), %rsi
testq %rsi, %rsi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xa92e
movq %r14, %rdi
callq 0x4390
movq %rax, 0x50(%r15)
testq %rax, %rax
je 0xa94e
movq 0x8(%rsp), %rdx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44b0
jmp 0xa92e
pushq $0x1
jmp 0xa918
pushq $-0x4
popq %rdi
callq 0x4660
movq %r14, %rdi
movl %ebx, %esi
movq %rax, %rdx
callq 0x4110
xorl %r15d, %r15d
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2d69(%rip), %rdx      # 0xd6b0
movq %r14, %rdi
movl %ebx, %esi
jmp 0xa926
movq %r14, %rdi
movq %r15, %rsi
callq 0x4240
pushq $-0x6
jmp 0xa918
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_pushchunk
int pushchunk(lua_State *L, chunk_t *p)
    {
    lua_newtable(L);
    lua_pushlstring(L, p->id, p->id_size);
    lua_setfield(L, -2, "id");
    if(p->data && p->datalen > 0)
        {
        lua_pushlstring(L, (const char*)p->data, p->datalen);
        lua_setfield(L, -2, "data");
        }
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movl 0x40(%r14), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4650
leaq 0x2031(%rip), %rdx      # 0xc9b7
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x4300
movq 0x48(%r14), %rsi
testq %rsi, %rsi
je 0xa9bd
movl 0x44(%r14), %edx
testq %rdx, %rdx
je 0xa9bd
movq %rbx, %rdi
callq 0x4650
leaq 0x296e(%rip), %rdx      # 0xd320
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x4300
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/utils.c
// Function: moonsndfile_tablelen
int tablelen(lua_State *L, int arg)
/* counts the elements of the table at arg */
    {
    int n = 0;
    if(!lua_istable(L, arg))
        return luaL_error(L, errstring(ERR_TABLE));
    lua_pushnil(L);
    while(lua_next(L, arg) != 0)
        { lua_pop(L, 1); n++; }
    return n;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
callq 0x4730
cmpl $0x5, %eax
jne 0xb65c
movq %rbx, %rdi
callq 0x46d0
xorl %r14d, %r14d
pushq $-0x2
popq %r15
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4150
testl %eax, %eax
je 0xb677
movq %rbx, %rdi
movl %r15d, %esi
callq 0x4080
incl %r14d
jmp 0xb63e
leaq 0x21b5(%rip), %rsi      # 0xd818
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x46c0
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/utils.c
// Function: moonsndfile_testboolean
int testboolean(lua_State *L, int arg, int *err)
    {
    if(!lua_isboolean(L, arg))
        { *err = ERR_TYPE; return 0; }
    *err = 0;
    return lua_toboolean(L, arg);
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x4730
cmpl $0x1, %eax
jne 0xb903
andl $0x0, (%rbx)
movq %r14, %rdi
movl %ebp, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x40d0
movl $0xfffffffe, (%rbx)     # imm = 0xFFFFFFFE
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/utils.c
// Function: moonsndfile_nil_sndfileerror
int nil_sndfileerror(lua_State *L, sndfile_t sndfile)
    { 
    const char *str = sf.strerror(sndfile);
    lua_pushnil(L);
    lua_pushstring(L, str ? str : "unknown error");
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x6668(%rip), %rax      # 0x11fe0
movq %rsi, %rdi
callq *0x20(%rax)
movq %rax, %r14
movq %rbx, %rdi
callq 0x46d0
testq %r14, %r14
leaq 0x1f1d(%rip), %rsi      # 0xd8b0
cmovneq %r14, %rsi
movq %rbx, %rdi
callq 0x4780
pushq $0x2
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/version.c
// Function: VersionNumbers
static int VersionNumbers(lua_State *L)
    {
    lua_pushinteger(L, VerMajor);
    lua_pushinteger(L, VerMinor);
    lua_pushinteger(L, VerPatch);
    return 3;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x6ab0(%rip), %esi      # 0x1258c
callq 0x4320
movl 0x6aa9(%rip), %esi      # 0x12590
movq %rbx, %rdi
callq 0x4320
movl 0x6a9f(%rip), %esi      # 0x12594
movq %rbx, %rdi
callq 0x4320
pushq $0x3
popq %rax
popq %rbx
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/agl[P]obstcp/obstcp-redir.c
// Function: connect_cb
static void
connect_cb(int fd, short events, void *arg) {
  struct connection *conn = (struct connection *) arg;

  int err;
  socklen_t errlen = sizeof(err);
  if (getsockopt(conn->outfd, SOL_SOCKET, SO_ERROR, &err, &errlen)) {
    perror("getsockopt for connection result");
    connection_free(conn);
    return;
  }

  if (err) {
    fprintf(stderr, "Connection error: %s\n", strerror(err));
    connection_free(conn);
    return;
  }

  connection_setevents(conn);

  return;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
leaq 0x4(%rsp), %r8
movl $0x4, (%r8)
movl 0x1cc(%rdx), %edi
pushq $0x1
popq %rsi
pushq $0x4
popq %rdx
movq %rsp, %rcx
callq 0x1100
testl %eax, %eax
jne 0x17dc
movl (%rsp), %edi
testl %edi, %edi
jne 0x17ea
movq %rbx, %rdi
callq 0x1817
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x694b(%rip), %rdi      # 0x812e
callq 0x11c0
jmp 0x180d
movq 0x9807(%rip), %rax      # 0xaff8
movq (%rax), %r14
callq 0x1210
leaq 0x694f(%rip), %rsi      # 0x814f
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x190b
jmp 0x17d4