LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: Clear
static int Clear(lua_State *L)
/* clear(offset, size, c) 
 */
    {
    size_t len;
    const char *s;
    char c;
    hostmem_t* hostmem = checkhostmem(L, 1, NULL);
    size_t offset = luaL_checkinteger(L, 2);
    size_t size = luaL_checkinteger(L, 3);

    if(lua_type(L, 4) == LUA_TSTRING)
        {
        s = luaL_checklstring(L, 4, &len);
        if(len != 1)
            return luaL_argerror(L, 4, "invalid length"); /* must be 1 */
        c = s[0];
        }
    else
        c = luaL_optinteger(L, 4, 0);
    
    if((offset >= hostmem->size) || (size > hostmem->size - offset))
        return luaL_error(L, errstring(ERR_BOUNDARIES));
    if(size == 0)
        return 0;
    memset(hostmem->ptr + offset, c, size);
    return 0;
    }

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq 0x38(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0x1294b(%rip), %rcx     # 0x23399
callq 0x80e0
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movl $0x2, %esi
callq 0x8740
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rdi
movl $0x3, %esi
callq 0x8740
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
movl $0x4, %esi
callq 0x8d20
cmpl $0x4, %eax
jne 0x10ae1
movq 0x38(%rsp), %rdi
movl $0x4, %esi
leaq 0x30(%rsp), %rdx
callq 0x8600
movq %rax, 0x28(%rsp)
cmpq $0x1, 0x30(%rsp)
je 0x10ad4
movq 0x38(%rsp), %rdi
movl $0x4, %esi
leaq 0x12935(%rip), %rdx     # 0x233fb
callq 0x81b0
movl %eax, 0x44(%rsp)
jmp 0x10b80
movq 0x28(%rsp), %rax
movb (%rax), %al
movb %al, 0x27(%rsp)
jmp 0x10af8
movq 0x38(%rsp), %rdi
movl $0x4, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x88c0
movb %al, 0x27(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x10b20
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq 0x10(%rsp), %rcx
cmpq %rcx, %rax
jbe 0x10b47
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movl $0xfffffff6, %edi       # imm = 0xFFFFFFF6
callq 0x8550
movq (%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x44(%rsp)
jmp 0x10b80
cmpq $0x0, 0x8(%rsp)
jne 0x10b59
movl $0x0, 0x44(%rsp)
jmp 0x10b80
movq 0x18(%rsp), %rax
movq (%rax), %rdi
addq 0x10(%rsp), %rdi
movsbl 0x27(%rsp), %eax
movq 0x8(%rsp), %rdx
movzbl %al, %esi
callq 0x8530
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: Read
static int Read(lua_State *L)
    {
    int type;
    hostmem_t* hostmem = checkhostmem(L, 1, NULL);
    size_t offset = luaL_optinteger(L, 2, 0);
    size_t size = luaL_optinteger(L, 3, hostmem->size - offset);
    if((offset >= hostmem->size) || (size > hostmem->size - offset))
        return luaL_error(L, errstring(ERR_BOUNDARIES));
    if(lua_type(L, 4) == LUA_TSTRING) /* unpack according to 'type' */
        {
        type = checktype(L, 4);
        if(size == 0)
            { lua_newtable(L); return 1; }
        return pushdata(L, type, hostmem->ptr + offset, size);
        }
    if(size == 0)
        lua_pushstring(L, ""); 
    else
        lua_pushlstring(L, hostmem->ptr + offset, size);
    return 1;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0x127eb(%rip), %rcx     # 0x23399
callq 0x80e0
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movl $0x2, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x88c0
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdx
subq 0x10(%rsp), %rdx
movl $0x3, %esi
callq 0x88c0
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x10c1a
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq 0x10(%rsp), %rcx
cmpq %rcx, %rax
jbe 0x10c44
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movl $0xfffffff6, %edi       # imm = 0xFFFFFFF6
callq 0x8550
movq (%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x34(%rsp)
jmp 0x10cf5
movq 0x28(%rsp), %rdi
movl $0x4, %esi
callq 0x8d20
cmpl $0x4, %eax
jne 0x10cb6
movq 0x28(%rsp), %rdi
movl $0x1, %esi
movl $0x4, %edx
callq 0x8050
movl %eax, 0x24(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x10c90
movq 0x28(%rsp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x8320
movl $0x1, 0x34(%rsp)
jmp 0x10cf5
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
movq 0x18(%rsp), %rax
movq (%rax), %rdx
addq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq 0x8720
movl %eax, 0x34(%rsp)
jmp 0x10cf5
cmpq $0x0, 0x8(%rsp)
jne 0x10cd1
movq 0x28(%rsp), %rdi
leaq 0x129f8(%rip), %rsi     # 0x236c2
callq 0x8de0
jmp 0x10ced
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rax
movq (%rax), %rsi
addq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x8a00
movl $0x1, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: Ptr
static int Ptr(lua_State *L)
    {
    hostmem_t* hostmem = checkhostmem(L, 1, NULL);
    size_t offset = luaL_optinteger(L, 2, 0);
    size_t size = luaL_optinteger(L, 3, 0);
    if((offset >= hostmem->size) || (size > hostmem->size - offset))
        return luaL_error(L, errstring(ERR_BOUNDARIES));
    lua_pushlightuserdata(L, hostmem->ptr + offset);
    return 1;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0x1267b(%rip), %rcx     # 0x23399
callq 0x80e0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movl $0x2, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x88c0
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movl $0x3, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x88c0
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x10d80
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq 0x18(%rsp), %rcx
cmpq %rcx, %rax
jbe 0x10da9
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0xfffffff6, %edi       # imm = 0xFFFFFFF6
callq 0x8550
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x34(%rsp)
jmp 0x10dc8
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %rsi
addq 0x18(%rsp), %rsi
callq 0x8960
movl $0x1, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: Size
static int Size(lua_State *L)
    {
    size_t offset;
    char *ptr;
    hostmem_t* hostmem = checkhostmem(L, 1, NULL);
    if(lua_isnoneornil(L, 2))
        lua_pushinteger(L, hostmem->size);
    else if(lua_isinteger(L, 2))
        {
        offset = luaL_checkinteger(L, 2);
        if(offset >= hostmem->size)
            lua_pushinteger(L, 0);
        else
            lua_pushinteger(L, hostmem->size - offset);
        }
    else
        {
        ptr = (char*)checklightuserdata(L, 2);
        if((ptr < hostmem->ptr) || (ptr > (hostmem->ptr + hostmem->size)))
            lua_pushinteger(L, 0);
        else
            lua_pushinteger(L, hostmem->ptr + hostmem->size - ptr);
        }
    return 1;
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0x1259b(%rip), %rcx     # 0x23399
callq 0x80e0
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
movl $0x2, %esi
callq 0x8d20
cmpl $0x0, %eax
jg 0x10e34
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x8540
jmp 0x10f0b
movq 0x20(%rsp), %rdi
movl $0x2, %esi
callq 0x8ee0
cmpl $0x0, %eax
je 0x10e96
movq 0x20(%rsp), %rdi
movl $0x2, %esi
callq 0x8740
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x10e7c
movq 0x20(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x8540
jmp 0x10e94
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
subq 0x18(%rsp), %rsi
callq 0x8540
jmp 0x10f09
movq 0x20(%rsp), %rdi
movl $0x2, %esi
callq 0x8c90
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq (%rcx), %rax
jb 0x10ed4
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
movq (%rcx), %rcx
movq 0x8(%rsp), %rdx
addq 0x8(%rdx), %rcx
cmpq %rcx, %rax
jbe 0x10ee4
movq 0x20(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x8540
jmp 0x10f07
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rsp), %rax
addq 0x8(%rax), %rsi
movq 0x10(%rsp), %rax
subq %rax, %rsi
callq 0x8540
jmp 0x10f09
jmp 0x10f0b
movl $0x1, %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: WritePack
static int WritePack(lua_State *L) 
    {
    hostmem_t* hostmem = checkhostmem(L, 1, NULL);
    size_t offset = luaL_checkinteger(L, 2);
    int type = checktype(L, 3);
    size_t size = hostmem->size - offset;
    if(offset >= hostmem->size)
        return luaL_error(L, errstring(ERR_BOUNDARIES));
    checkdata(L, 4, type, hostmem->ptr + offset, size);
    return 0;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0x1245b(%rip), %rcx     # 0x23399
callq 0x80e0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movl $0x2, %esi
callq 0x8740
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movl $0x1, %esi
movl $0x3, %edx
callq 0x8050
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
subq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x10fbe
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movl $0xfffffff6, %edi       # imm = 0xFFFFFFF6
callq 0x8550
movq (%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x34(%rsp)
jmp 0x10feb
movq 0x28(%rsp), %rdi
movl 0x14(%rsp), %edx
movq 0x20(%rsp), %rax
movq (%rax), %rcx
addq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x4, %esi
callq 0x81c0
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: WriteData
static int WriteData(lua_State *L)
    {
    size_t size;
    hostmem_t* hostmem = checkhostmem(L, 1, NULL);
    size_t offset = luaL_checkinteger(L, 2);
    /* arg 3 should be nil */
    const char *data = luaL_checklstring(L, 4, &size);
    if(size == 0)
        return 0;
    if((offset >= hostmem->size) || (size > hostmem->size - offset))
        return luaL_error(L, errstring(ERR_BOUNDARIES));
    memcpy(hostmem->ptr + offset, data, size);
    return 0;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0x1237b(%rip), %rcx     # 0x23399
callq 0x80e0
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movl $0x2, %esi
callq 0x8740
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rdi
movl $0x4, %esi
leaq 0x20(%rsp), %rdx
callq 0x8600
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x11067
movl $0x0, 0x34(%rsp)
jmp 0x110da
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x1108f
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq 0x10(%rsp), %rcx
cmpq %rcx, %rax
jbe 0x110b6
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movl $0xfffffff6, %edi       # imm = 0xFFFFFFF6
callq 0x8550
movq (%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x34(%rsp)
jmp 0x110da
movq 0x18(%rsp), %rax
movq (%rax), %rdi
addq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x87d0
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: CopyPtr
static int CopyPtr(lua_State *L)
    {
    hostmem_t* hostmem = checkhostmem(L, 1, NULL);
    size_t offset = luaL_checkinteger(L, 2);
    size_t size = luaL_checkinteger(L, 3);
    void *ptr = checklightuserdata(L, 4);
    if(size == 0)
        return 0;
    if((offset >= hostmem->size) || (size > hostmem->size - offset))
        return luaL_error(L, errstring(ERR_BOUNDARIES));
    memcpy(hostmem->ptr + offset, ptr, size);
    return 0;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0x1228b(%rip), %rcx     # 0x23399
callq 0x80e0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movl $0x2, %esi
callq 0x8740
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movl $0x3, %esi
callq 0x8740
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rdi
movl $0x4, %esi
callq 0x8c90
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x11166
movl $0x0, 0x34(%rsp)
jmp 0x111d9
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x1118e
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq 0x18(%rsp), %rcx
cmpq %rcx, %rax
jbe 0x111b5
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movl $0xfffffff6, %edi       # imm = 0xFFFFFFF6
callq 0x8550
movq (%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x34(%rsp)
jmp 0x111d9
movq 0x20(%rsp), %rax
movq (%rax), %rdi
addq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x87d0
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: CopyHostmem
static int CopyHostmem(lua_State *L)
    {
    hostmem_t* hostmem = checkhostmem(L, 1, NULL);
    size_t offset = luaL_checkinteger(L, 2);
    size_t size = luaL_checkinteger(L, 3);
    hostmem_t* srchostmem = checkhostmem(L, 4, NULL);
    size_t srcoffset = luaL_checkinteger(L, 5);
    if(hostmem == srchostmem)
        return luaL_argerror(L, 4, "source and destination hostmem are the same");
    if(size == 0)
        return 0;
    if((offset >= hostmem->size) || (size > hostmem->size - offset))
        return luaL_error(L, errstring(ERR_BOUNDARIES));
    if((srcoffset >= srchostmem->size) || (size > srchostmem->size - srcoffset))
        return luaL_error(L, errstring(ERR_BOUNDARIES));
    memcpy(hostmem->ptr + offset, srchostmem->ptr + srcoffset, size);
    return 0;
    }

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq 0x38(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0x1218b(%rip), %rcx     # 0x23399
callq 0x80e0
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movl $0x2, %esi
callq 0x8740
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
movl $0x3, %esi
callq 0x8740
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
movl $0x4, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0x12144(%rip), %rcx     # 0x23399
callq 0x80e0
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movl $0x5, %esi
callq 0x8740
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x18(%rsp), %rax
jne 0x1129e
movq 0x38(%rsp), %rdi
movl $0x4, %esi
leaq 0x1213f(%rip), %rdx     # 0x233cf
callq 0x81b0
movl %eax, 0x44(%rsp)
jmp 0x1137f
cmpq $0x0, 0x20(%rsp)
jne 0x112b3
movl $0x0, 0x44(%rsp)
jmp 0x1137f
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x112db
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq 0x28(%rsp), %rcx
cmpq %rcx, %rax
jbe 0x11304
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0xfffffff6, %edi       # imm = 0xFFFFFFF6
callq 0x8550
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x44(%rsp)
jmp 0x1137f
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x1132c
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq 0x10(%rsp), %rcx
cmpq %rcx, %rax
jbe 0x11353
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movl $0xfffffff6, %edi       # imm = 0xFFFFFFF6
callq 0x8550
movq (%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x44(%rsp)
jmp 0x1137f
movq 0x30(%rsp), %rax
movq (%rax), %rdi
addq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rax
movq (%rax), %rsi
addq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x87d0
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: CreateHostmem
static int CreateHostmem(lua_State *L)
    {
    size_t size;
    const char *ptr;
    hostmem_t* hostmem;

    if(lua_type(L, 1) == LUA_TSTRING)
        {
        ptr = lua_tolstring(L, 1, &size);
        }
    else
        {
        size = luaL_checkinteger(L, 1);
        ptr = (char*)checklightuserdata(L, 2);
        }

    if(size == 0)
        return luaL_argerror(L, 1, errstring(ERR_LENGTH));

    hostmem = (hostmem_t*)MallocNoErr(L, sizeof(hostmem_t));
    if(!hostmem)
        {
        Free(L, hostmem);
        return luaL_error(L, errstring(ERR_MEMORY));
        }

    hostmem->ptr = (char*)ptr;
    hostmem->size = size;
    newhostmem(L, hostmem);
    return 1;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0x8d20
cmpl $0x4, %eax
jne 0x11428
movq 0x28(%rsp), %rdi
movl $0x1, %esi
leaq 0x20(%rsp), %rdx
callq 0x82c0
movq %rax, 0x18(%rsp)
jmp 0x11450
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0x8740
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movl $0x2, %esi
callq 0x8c90
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x11487
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0xfffffff8, %edi       # imm = 0xFFFFFFF8
callq 0x8550
movq 0x8(%rsp), %rdi
movq %rax, %rdx
movl $0x1, %esi
callq 0x81b0
movl %eax, 0x34(%rsp)
jmp 0x1150b
movq 0x28(%rsp), %rdi
movl $0x10, %esi
callq 0x8a90
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x114d9
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x8630
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movl $0xfffffffa, %edi       # imm = 0xFFFFFFFA
callq 0x8550
movq (%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x34(%rsp)
jmp 0x1150b
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x118f0
movl $0x1, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: Create
static int Create(lua_State *L, int arg, size_t alignment)
    {
    const char *data = NULL;
    char *ptr;
    size_t size;
    (void)alignment;

    if(lua_type(L, arg) == LUA_TSTRING)
        {
        if(!lua_isnoneornil(L, arg+1))
            return CreatePack(L, arg, alignment);
    
        data = luaL_checklstring(L, arg, &size);
        if(size == 0) 
            return luaL_argerror(L, arg, errstring(ERR_LENGTH));
        }
    else
        {
        size = luaL_checkinteger(L, arg);
        if(size == 0) 
            return luaL_argerror(L, arg, errstring(ERR_VALUE));
        }
#if defined(MACOS) /* @@TODO */
    ptr = (char*)Malloc(L, size);
#else
    ptr = (char*)AlignedAlloc(alignment, size);
#endif
    if(!ptr)
        return luaL_error(L, "failed to allocate page aligned memory");
            
    if(data)
        memcpy(ptr, data, size);
    else
        memset(ptr, 0, size);

    CreateAllocated(L, ptr, size);
    return 1;
    }

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movl %esi, 0x44(%rsp)
movq %rdx, 0x38(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x48(%rsp), %rdi
movl 0x44(%rsp), %esi
callq 0x8d20
cmpl $0x4, %eax
jne 0x115dc
movq 0x48(%rsp), %rdi
movl 0x44(%rsp), %esi
addl $0x1, %esi
callq 0x8d20
cmpl $0x0, %eax
jle 0x11584
movq 0x48(%rsp), %rdi
movl 0x44(%rsp), %esi
movq 0x38(%rsp), %rdx
callq 0x116c0
movl %eax, 0x54(%rsp)
jmp 0x116ad
movq 0x48(%rsp), %rdi
movl 0x44(%rsp), %esi
leaq 0x20(%rsp), %rdx
callq 0x8600
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x115da
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x44(%rsp), %eax
movl %eax, 0x1c(%rsp)
movl $0xfffffff8, %edi       # imm = 0xFFFFFFF8
callq 0x8550
movq 0x10(%rsp), %rdi
movl 0x1c(%rsp), %esi
movq %rax, %rdx
callq 0x81b0
movl %eax, 0x54(%rsp)
jmp 0x116ad
jmp 0x1162d
movq 0x48(%rsp), %rdi
movl 0x44(%rsp), %esi
callq 0x8740
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x1162b
movq 0x48(%rsp), %rax
movq %rax, (%rsp)
movl 0x44(%rsp), %eax
movl %eax, 0xc(%rsp)
movl $0xfffffffd, %edi       # imm = 0xFFFFFFFD
callq 0x8550
movq (%rsp), %rdi
movl 0xc(%rsp), %esi
movq %rax, %rdx
callq 0x81b0
movl %eax, 0x54(%rsp)
jmp 0x116ad
jmp 0x1162d
movq 0x38(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x8d80
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x11662
movq 0x48(%rsp), %rdi
leaq 0x11dc8(%rip), %rsi     # 0x2341d
movb $0x0, %al
callq 0x8b30
movl %eax, 0x54(%rsp)
jmp 0x116ad
cmpq $0x0, 0x30(%rsp)
je 0x11680
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x87d0
jmp 0x11691
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rdx
xorl %esi, %esi
callq 0x8530
movq 0x48(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x11830
movl $0x1, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: CreatePack
static int CreatePack(lua_State *L, int arg, size_t alignment)
    {
    int err;
    char *ptr;
    int type = checktype(L, arg);
    size_t n = toflattable(L, arg+1);
    size_t size = n * sizeoftype(type);
    (void)alignment;

    if(size == 0) 
        return luaL_argerror(L, arg+1, errstring(ERR_LENGTH));
#if defined(MACOS) /* @@TODO */
    ptr = (char*)Malloc(L, size);
#else
    ptr = (char*)AlignedAlloc(alignment, size);
#endif
    if(!ptr)
        return luaL_error(L, "failed to allocate page aligned memory");

    err = testdata(L, type, n, ptr, size);
    if(err)
        {
        free(ptr);
        return luaL_argerror(L, arg+1, errstring(err));
        }

    CreateAllocated(L, ptr, size);
    return 1;
    }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movl %esi, 0x64(%rsp)
movq %rdx, 0x58(%rsp)
movq 0x68(%rsp), %rdi
movl 0x64(%rsp), %edx
movl $0x1, %esi
callq 0x8050
movl %eax, 0x44(%rsp)
movq 0x68(%rsp), %rdi
movl 0x64(%rsp), %esi
addl $0x1, %esi
callq 0x84c0
cltq
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x44(%rsp), %edi
callq 0x8240
movq %rax, %rcx
movq 0x28(%rsp), %rax
imulq %rcx, %rax
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x11766
movq 0x68(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x64(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
movl $0xfffffff8, %edi       # imm = 0xFFFFFFF8
callq 0x8550
movq 0x18(%rsp), %rdi
movl 0x24(%rsp), %esi
movq %rax, %rdx
callq 0x81b0
movl %eax, 0x74(%rsp)
jmp 0x11821
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x8d80
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
jne 0x1179e
movq 0x68(%rsp), %rdi
leaq 0x11c8f(%rip), %rsi     # 0x2341d
movb $0x0, %al
callq 0x8b30
movl %eax, 0x74(%rsp)
jmp 0x11821
movq 0x68(%rsp), %rdi
movl 0x44(%rsp), %esi
movq 0x38(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x30(%rsp), %r8
callq 0x85f0
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
je 0x11805
movq 0x48(%rsp), %rdi
callq 0x8090
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0x64(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
movl 0x54(%rsp), %edi
callq 0x8550
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %esi
movq %rax, %rdx
callq 0x81b0
movl %eax, 0x74(%rsp)
jmp 0x11821
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x11830
movl $0x1, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: CreateAllocated
static int CreateAllocated(lua_State *L, char *ptr, size_t size)
    {
    ud_t *ud;
    hostmem_t* hostmem;
    hostmem = (hostmem_t*)MallocNoErr(L, sizeof(hostmem_t));
    if(!hostmem)
        {
        free(ptr);
        return luaL_error(L, errstring(ERR_MEMORY));
        }
    hostmem->ptr = ptr;
    hostmem->size = size;
    ud = newhostmem(L, hostmem);
    MarkAllocated(ud);
    return 1;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movl $0x10, %esi
callq 0x8a90
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x11890
movq 0x20(%rsp), %rdi
callq 0x8090
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movl $0xfffffffa, %edi       # imm = 0xFFFFFFFA
callq 0x8550
movq (%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x8b30
movl %eax, 0x34(%rsp)
jmp 0x118da
movq 0x20(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x28(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x118f0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movl 0x18(%rax), %ecx
orl $0x2, %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x18(%rax)
movl $0x1, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/hostmem.c
// Function: freehostmem
static int freehostmem(lua_State *L, ud_t *ud)
    {
    hostmem_t* hostmem = (hostmem_t*)ud->handle;
    int allocated = IsAllocated(ud);
    if(!freeuserdata(L, ud, "hostmem")) return 0;
    if(allocated)
        AlignedFree(hostmem->ptr);
    Free(L, hostmem);
    return 0;
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movl 0x18(%rax), %eax
andl $0x2, %eax
cmpl $0x2, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x4(%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
leaq 0x11a1e(%rip), %rdx     # 0x233a4
callq 0x8b60
cmpl $0x0, %eax
jne 0x1199a
movl $0x0, 0x24(%rsp)
jmp 0x119c5
cmpl $0x0, 0x4(%rsp)
je 0x119ae
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x8090
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x8630
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/main.c
// Function: AddVersions
static int AddVersions(lua_State *L)
/* Add version strings to the gl table */
    {
    lua_pushstring(L, "_VERSION");
    lua_pushstring(L, "MoonGLMATH "MOONGLMATH_VERSION);
    lua_settable(L, -3);
    return 0;
    }

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rdi
leaq 0x1178b(%rip), %rsi     # 0x2352b
callq 0x8de0
movq (%rsp), %rdi
leaq 0x11784(%rip), %rsi     # 0x23534
callq 0x8de0
movq (%rsp), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x8870
xorl %eax, %eax
popq %rcx
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_unm
void mat_unm(mat_t dst, mat_t m, size_t nr, size_t nc)
    {
    size_t i, j;
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            dst[i][j] = -m[i][j];
    }

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq $0x0, -0x28(%rsp)
movq -0x28(%rsp), %rax
cmpq -0x18(%rsp), %rax
jae 0x129f4
movq $0x0, -0x30(%rsp)
movq -0x30(%rsp), %rax
cmpq -0x20(%rsp), %rax
jae 0x129df
movq -0x10(%rsp), %rax
movq -0x28(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x30(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movq -0x8(%rsp), %rax
movq -0x28(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x30(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rsp)
jmp 0x12976
jmp 0x129e1
movq -0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rsp)
jmp 0x1295d
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_transpose
void mat_transpose(mat_t dst, mat_t m, size_t nr, size_t nc)
    {
    size_t i, j;
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            dst[i][j] = m[j][i];
    }

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq $0x0, -0x28(%rsp)
movq -0x28(%rsp), %rax
cmpq -0x18(%rsp), %rax
jae 0x12a96
movq $0x0, -0x30(%rsp)
movq -0x30(%rsp), %rax
cmpq -0x20(%rsp), %rax
jae 0x12a84
movq -0x10(%rsp), %rax
movq -0x30(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x28(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x8(%rsp), %rax
movq -0x28(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x30(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rsp)
jmp 0x12a32
jmp 0x12a86
movq -0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rsp)
jmp 0x12a1d
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_add
void mat_add(mat_t dst, mat_t m1, mat_t m2, size_t nr, size_t nc)
    {
    size_t i, j;
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            dst[i][j] = m1[i][j] + m2[i][j];
    }

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq %r8, -0x28(%rsp)
movq $0x0, -0x30(%rsp)
movq -0x30(%rsp), %rax
cmpq -0x20(%rsp), %rax
jae 0x12b5d
movq $0x0, -0x38(%rsp)
movq -0x38(%rsp), %rax
cmpq -0x28(%rsp), %rax
jae 0x12b48
movq -0x10(%rsp), %rax
movq -0x30(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x38(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rsp), %rax
movq -0x30(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x38(%rsp), %rcx
addsd (%rax,%rcx,8), %xmm0
movq -0x8(%rsp), %rax
movq -0x30(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x38(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rsp)
jmp 0x12adb
jmp 0x12b4a
movq -0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rsp)
jmp 0x12ac2
retq
nop
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_div
void mat_div(mat_t dst, mat_t m, double s, size_t nr, size_t nc)
    {
    size_t i, j;
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            dst[i][j] = m[i][j]/s;
    }

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movsd %xmm0, -0x18(%rsp)
movq %rdx, -0x20(%rsp)
movq %rcx, -0x28(%rsp)
movq $0x0, -0x30(%rsp)
movq -0x30(%rsp), %rax
cmpq -0x20(%rsp), %rax
jae 0x12cc2
movq $0x0, -0x38(%rsp)
movq -0x38(%rsp), %rax
cmpq -0x28(%rsp), %rax
jae 0x12cb0
movq -0x10(%rsp), %rax
movq -0x30(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x38(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
divsd -0x18(%rsp), %xmm0
movq -0x8(%rsp), %rax
movq -0x30(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x38(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rsp)
jmp 0x12c58
jmp 0x12cb2
movq -0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rsp)
jmp 0x12c43
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_mul
void mat_mul(mat_t dst, mat_t m1, mat_t m2, size_t nr1, size_t nc1, size_t nc2) /* nr1=nc1 */
/* dst = m1 * m2  
 * (nr1 x nc2) = (nr1 x nc1) *(nc1 x nc2)
 */
    {
    size_t i, j, k;
    double s;
    for(i=0; i < nr1; i++)
        for(j=0; j < nc2; j++)
            {
            s = 0;
            for(k=0; k < nc1; k++)
                s += m1[i][k] * m2[k][j];
            dst[i][j] = s;
            }
    }

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq %r8, -0x28(%rsp)
movq %r9, -0x30(%rsp)
movq $0x0, -0x38(%rsp)
movq -0x38(%rsp), %rax
cmpq -0x20(%rsp), %rax
jae 0x12e91
movq $0x0, -0x40(%rsp)
movq -0x40(%rsp), %rax
cmpq -0x30(%rsp), %rax
jae 0x12e7c
xorps %xmm0, %xmm0
movsd %xmm0, -0x50(%rsp)
movq $0x0, -0x48(%rsp)
movq -0x48(%rsp), %rax
cmpq -0x28(%rsp), %rax
jae 0x12e48
movq -0x10(%rsp), %rax
movq -0x38(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x48(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rsp), %rax
movq -0x48(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x40(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd -0x50(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x50(%rsp)
movq -0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rsp)
jmp 0x12de2
movsd -0x50(%rsp), %xmm0
movq -0x8(%rsp), %rax
movq -0x38(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x40(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rsp)
jmp 0x12dc0
jmp 0x12e7e
movq -0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rsp)
jmp 0x12da7
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_mulby
void mat_mulby(mat_t m1, mat_t m2, size_t nr1, size_t nc1, size_t nc2) /* nr1=nc1 */
/* m1 = m1 * m2  (in place)
 * (nr1 x nc2) = (nr1 x nc1) *(nc1 x nc2)
 */
    {
    size_t i, j, k;
    double s;
    mat_t tmp;
    mat_copy(tmp, m1);
    for(i=0; i < nr1; i++)
        for(j=0; j < nc2; j++)
            {
            s = 0;
            for(k=0; k < nc1; k++)
                s += tmp[i][k] * m2[k][j];
            m1[i][j] = s;
            }
    }

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0xc0(%rsp)
movq %rsi, 0xb8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rcx, 0xa8(%rsp)
movq %r8, 0xa0(%rsp)
movq %rsp, %rdi
movq 0xc0(%rsp), %rsi
movl $0x80, %edx
callq 0x87d0
movq $0x0, 0x98(%rsp)
movq 0x98(%rsp), %rax
cmpq 0xb0(%rsp), %rax
jae 0x13029
movq $0x0, 0x90(%rsp)
movq 0x90(%rsp), %rax
cmpq 0xa0(%rsp), %rax
jae 0x1300e
xorps %xmm0, %xmm0
movsd %xmm0, 0x80(%rsp)
movq $0x0, 0x88(%rsp)
movq 0x88(%rsp), %rax
cmpq 0xa8(%rsp), %rax
jae 0x12fc8
movq 0x98(%rsp), %rcx
movq %rsp, %rax
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x88(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0xb8(%rsp), %rax
movq 0x88(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x90(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x80(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x80(%rsp)
movq 0x88(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x88(%rsp)
jmp 0x12f40
movsd 0x80(%rsp), %xmm0
movq 0xc0(%rsp), %rax
movq 0x98(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x90(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x90(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x90(%rsp)
jmp 0x12f12
jmp 0x13010
movq 0x98(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x98(%rsp)
jmp 0x12ef0
addq $0xc8, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_mxv
void mat_mxv(vec_t dst, mat_t m, vec_t v, size_t nr, size_t nc)
/* m is an nr x nc matrix
 * v is an nc column vector
 * dst is an nr column vector  (nr x nc) * (nc x 1) = (nr x 1)
 */
    {
    size_t i, j;
    double s;
    for(i=0; i < nr; i++)
        {
        s = 0;
        for(j=0; j < nc; j++)
            s += (m[i][j] * v[j]);
        dst[i] = s;
        }
    }

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq %r8, -0x28(%rsp)
movq $0x0, -0x30(%rsp)
movq -0x30(%rsp), %rax
cmpq -0x20(%rsp), %rax
jae 0x13106
xorps %xmm0, %xmm0
movsd %xmm0, -0x40(%rsp)
movq $0x0, -0x38(%rsp)
movq -0x38(%rsp), %rax
cmpq -0x28(%rsp), %rax
jae 0x130de
movq -0x10(%rsp), %rax
movq -0x30(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x38(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rsp), %rax
movq -0x38(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd -0x40(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rsp)
movq -0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rsp)
jmp 0x13084
movsd -0x40(%rsp), %xmm0
movq -0x8(%rsp), %rax
movq -0x30(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rsp)
jmp 0x13062
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_vxm
void mat_vxm(vec_t dst, vec_t v, mat_t m, size_t nr, size_t nc)
/* v is an nr row vector
 * m is an nr x nc matrix
 * dst is an nc row vector  (1 x nr) x (nr x nc) = (1 x nc)
 */
    {
    size_t i, j;
    double s;
    for(i=0; i < nc; i++)
        {
        s = 0;
        for(j=0; j < nr; j++)
            s += (v[j] * m[j][i]);
        dst[i] = s;
        }
    }

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq %r8, -0x28(%rsp)
movq $0x0, -0x30(%rsp)
movq -0x30(%rsp), %rax
cmpq -0x28(%rsp), %rax
jae 0x131d6
xorps %xmm0, %xmm0
movsd %xmm0, -0x40(%rsp)
movq $0x0, -0x38(%rsp)
movq -0x38(%rsp), %rax
cmpq -0x20(%rsp), %rax
jae 0x131ae
movq -0x10(%rsp), %rax
movq -0x38(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rsp), %rax
movq -0x38(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq -0x30(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd -0x40(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rsp)
movq -0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rsp)
jmp 0x13154
movsd -0x40(%rsp), %xmm0
movq -0x8(%rsp), %rax
movq -0x30(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rsp)
jmp 0x13132
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_clamp
int mat_clamp(mat_t dst, mat_t m, mat_t minm, mat_t maxm, size_t nr, size_t nc)
    {
    size_t i, j;
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            dst[i][j] = clamp(m[i][j], minm[i][j], maxm[i][j]);
    return 1;
    }

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x20(%rsp), %rax
jae 0x150dd
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x18(%rsp), %rax
jae 0x150c8
movq 0x38(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x30(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x28(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
callq 0x83c0
movq 0x40(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x15034
jmp 0x150ca
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x1501b
movl $0x1, %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_mix
int mat_mix(mat_t dst, mat_t m1, mat_t m2, size_t nr, size_t nc, double k)
    {
    size_t i, j;
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            dst[i][j] = mix(m1[i][j], m2[i][j], k);
    return 1;
    }

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movsd %xmm0, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x28(%rsp), %rax
jae 0x151c2
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x20(%rsp), %rax
jae 0x151ad
movq 0x38(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x30(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movsd 0x18(%rsp), %xmm2
callq 0x87f0
movq 0x40(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x15135
jmp 0x151af
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x1511c
movl $0x1, %eax
addq $0x48, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_step
int mat_step(mat_t dst, mat_t m, mat_t edge, size_t nr, size_t nc)
    {
    size_t i, j;
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            dst[i][j] = step(m[i][j], edge[i][j]);
    return 1;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x18(%rsp), %rax
jae 0x1528f
movq $0x0, (%rsp)
movq (%rsp), %rax
cmpq 0x10(%rsp), %rax
jae 0x1527a
movq 0x28(%rsp), %rax
movq 0x8(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x20(%rsp), %rax
movq 0x8(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
callq 0x88e0
movq 0x30(%rsp), %rax
movq 0x8(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
jmp 0x1520e
jmp 0x1527c
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x151f6
movl $0x1, %eax
addq $0x38, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_smoothstep
int mat_smoothstep(mat_t dst, mat_t m, mat_t edge0, mat_t edge1, size_t nr, size_t nc)
    {
    size_t i, j;
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            dst[i][j] = smoothstep(m[i][j], edge0[i][j], edge1[i][j]);
    return 1;
    }

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x20(%rsp), %rax
jae 0x1538d
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x18(%rsp), %rax
jae 0x15378
movq 0x38(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x30(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x28(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
callq 0x86f0
movq 0x40(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x152e4
jmp 0x1537a
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x152cb
movl $0x1, %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_fade
int mat_fade(mat_t dst, mat_t m, mat_t edge0, mat_t edge1, size_t nr, size_t nc)
    {
    size_t i, j;
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            dst[i][j] = fade(m[i][j], edge0[i][j], edge1[i][j]);
    return 1;
    }

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x20(%rsp), %rax
jae 0x1548d
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x18(%rsp), %rax
jae 0x15478
movq 0x38(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x30(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x28(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
callq 0x8800
movq 0x40(%rsp), %rax
movq 0x10(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x153e4
jmp 0x1547a
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x153cb
movl $0x1, %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_Adj
int mat_Adj(lua_State *L)
    {
    size_t nr, nc;
    mat_t m, adj;
    checkmat(L, 1, m, &nr, &nc);
    if(nr != nc)
        return luaL_argerror(L, 1, "not a square matrix");
    mat_adj(adj, m, nr);
    return pushmat(L, adj, nr, nr, nr, nr);
    }

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq %rdi, 0x118(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x80(%rsp), %rdx
movl $0x1, %esi
leaq 0x110(%rsp), %rcx
leaq 0x108(%rsp), %r8
callq 0x8560
movq 0x110(%rsp), %rax
cmpq 0x108(%rsp), %rax
je 0x15aed
movq 0x118(%rsp), %rdi
movl $0x1, %esi
leaq 0xda96(%rip), %rdx      # 0x23575
callq 0x81b0
movl %eax, 0x124(%rsp)
jmp 0x15b3c
movq %rsp, %rdi
leaq 0x80(%rsp), %rsi
movq 0x110(%rsp), %rdx
callq 0x84a0
movq 0x118(%rsp), %rdi
movq %rsp, %rsi
movq 0x110(%rsp), %rdx
movq 0x110(%rsp), %rcx
movq 0x110(%rsp), %r8
movq 0x110(%rsp), %r9
callq 0x8500
movl %eax, 0x124(%rsp)
movl 0x124(%rsp), %eax
addq $0x128, %rsp            # imm = 0x128
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_Inv
int mat_Inv(lua_State *L)
    {
    size_t nr, nc;
    mat_t m, inv;
    checkmat(L, 1, m, &nr, &nc);
    if(nr != nc)
        return luaL_argerror(L, 1, "not a square matrix");
    if(!mat_inv(inv, m, nr))
        return luaL_argerror(L, 1, "singular matrix");
    return pushmat(L, inv, nr, nr, nr, nr);
    }

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq %rdi, 0x118(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x80(%rsp), %rdx
movl $0x1, %esi
leaq 0x110(%rsp), %rcx
leaq 0x108(%rsp), %r8
callq 0x8560
movq 0x110(%rsp), %rax
cmpq 0x108(%rsp), %rax
je 0x15bbd
movq 0x118(%rsp), %rdi
movl $0x1, %esi
leaq 0xd9c6(%rip), %rdx      # 0x23575
callq 0x81b0
movl %eax, 0x124(%rsp)
jmp 0x15c33
movq %rsp, %rdi
leaq 0x80(%rsp), %rsi
movq 0x110(%rsp), %rdx
callq 0x82e0
cmpl $0x0, %eax
jne 0x15bfc
movq 0x118(%rsp), %rdi
movl $0x1, %esi
leaq 0xd99b(%rip), %rdx      # 0x23589
callq 0x81b0
movl %eax, 0x124(%rsp)
jmp 0x15c33
movq 0x118(%rsp), %rdi
movq %rsp, %rsi
movq 0x110(%rsp), %rdx
movq 0x110(%rsp), %rcx
movq 0x110(%rsp), %r8
movq 0x110(%rsp), %r9
callq 0x8500
movl %eax, 0x124(%rsp)
movl 0x124(%rsp), %eax
addq $0x128, %rsp            # imm = 0x128
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_Trace
int mat_Trace(lua_State *L)
    {
    size_t nr, nc, i;
    mat_t m;
    double res = 0;
    checkmat(L, 1, m, &nr, &nc);
    if(nr != nc)
        return luaL_argerror(L, 1, "not a square matrix");
    for(i = 0; i < nr; i++)
        res += m[i][i];
    lua_pushnumber(L, res);
    return 1;
    }

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0xa8(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0xa8(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movl $0x1, %esi
leaq 0xa0(%rsp), %rcx
leaq 0x98(%rsp), %r8
callq 0x8560
movq 0xa0(%rsp), %rax
cmpq 0x98(%rsp), %rax
je 0x15cc3
movq 0xa8(%rsp), %rdi
movl $0x1, %esi
leaq 0xd8c0(%rip), %rdx      # 0x23575
callq 0x81b0
movl %eax, 0xb4(%rsp)
jmp 0x15d42
movq $0x0, 0x90(%rsp)
movq 0x90(%rsp), %rax
cmpq 0xa0(%rsp), %rax
jae 0x15d24
movq 0x90(%rsp), %rcx
leaq 0x10(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x90(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x90(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x90(%rsp)
jmp 0x15ccf
movq 0xa8(%rsp), %rdi
movsd 0x8(%rsp), %xmm0
callq 0x8840
movl $0x1, 0xb4(%rsp)
movl 0xb4(%rsp), %eax
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/mat.c
// Function: moonglmath_mat_Transpose
int mat_Transpose(lua_State *L)
    {
    size_t i, j, nr, nc;
    mat_t m, m1;
    checkmat(L, 1, m, &nr, &nc);
    for(i = 0; i < nr; i++)
        for(j = 0; j < nc; j++)
            m1[j][i] = m[i][j];
    return pushmat(L, m1, nc, nr, nc, nr);
    }

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq %rdi, 0x120(%rsp)
movq 0x120(%rsp), %rdi
leaq 0x80(%rsp), %rdx
movl $0x1, %esi
leaq 0x108(%rsp), %rcx
leaq 0x100(%rsp), %r8
callq 0x8560
movq $0x0, 0x118(%rsp)
movq 0x118(%rsp), %rax
cmpq 0x108(%rsp), %rax
jae 0x15e4d
movq $0x0, 0x110(%rsp)
movq 0x110(%rsp), %rax
cmpq 0x100(%rsp), %rax
jae 0x15e32
movq 0x118(%rsp), %rcx
leaq 0x80(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x110(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x110(%rsp), %rcx
movq %rsp, %rax
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x118(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x110(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x110(%rsp)
jmp 0x15dc7
jmp 0x15e34
movq 0x118(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x118(%rsp)
jmp 0x15da5
movq 0x120(%rsp), %rdi
movq %rsp, %rsi
movq 0x100(%rsp), %rdx
movq 0x108(%rsp), %rcx
movq 0x100(%rsp), %r8
movq 0x108(%rsp), %r9
callq 0x8500
addq $0x128, %rsp            # imm = 0x128
retq
nopw %cs:(%rax,%rax)