// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/teximage.c
// Function: TextureStorageMultisample
static int TextureStorageMultisample(lua_State *L)
/* texture_storage_multisample(target|texture, samples, intfmt, fslocs, width, height)
 * texture_storage_multisample(target|texture, samples, intfmt, fslocs, width, height, depth)
 */
    {
    GLsizei depth;
    int arg = 1;
    GLenum target;
    GLuint texture = checktargetorname(L, arg++, &target, DOMAIN_TEXTURE_TARGET);
    GLsizei samples = luaL_checkinteger(L, arg++);
    GLenum intfmt = checkinternalformat(L, arg++);
    GLboolean fslocs = checkboolean(L, arg++);
    GLsizei width = luaL_checkinteger(L, arg++);
    GLsizei height = luaL_checkinteger(L, arg++);
    if(lua_isnoneornil(L, arg))
        {
        if(texture==0)
            glTexStorage2DMultisample(target,samples,intfmt,width,height,fslocs);
        else
            glTextureStorage2DMultisample(texture,samples,intfmt,width,height,fslocs);
        CheckError(L);
        return 0;
        }
    depth = luaL_checkinteger(L, arg++);
    if(texture==0)
        glTexStorage3DMultisample(target,samples,intfmt,width,height,depth,fslocs);
    else
        glTextureStorage3DMultisample(texture,samples,intfmt,width,height,depth,fslocs);
    CheckError(L);
    return 0;
    }

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movl $0x1, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
leaq 0x2c(%rsp), %rdx
movl $0x13, %ecx
callq 0x11430
movl %eax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
callq 0x11af0
movl %eax, 0x24(%rsp)
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
movl $0x11, %esi
callq 0x11160
movl %eax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
callq 0x11510
movb %al, 0x1f(%rsp)
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
callq 0x11af0
movl %eax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
callq 0x11af0
movl %eax, 0x14(%rsp)
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
callq 0x11860
cmpl $0x0, %eax
jg 0x46b33
cmpl $0x0, 0x28(%rsp)
jne 0x46af5
movq 0x20ea5(%rip), %rax     # 0x67978
movq (%rax), %rax
movl 0x2c(%rsp), %edi
movl 0x24(%rsp), %esi
movl 0x20(%rsp), %edx
movl 0x18(%rsp), %ecx
movl 0x14(%rsp), %r8d
movzbl 0x1f(%rsp), %r9d
callq *%rax
jmp 0x46b1c
movq 0x20714(%rip), %rax     # 0x67210
movq (%rax), %rax
movl 0x28(%rsp), %edi
movl 0x24(%rsp), %esi
movl 0x20(%rsp), %edx
movl 0x18(%rsp), %ecx
movl 0x14(%rsp), %r8d
movzbl 0x1f(%rsp), %r9d
callq *%rax
movq 0x38(%rsp), %rdi
callq 0x11880
movl $0x0, 0x44(%rsp)
jmp 0x46bc9
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
callq 0x11af0
movl %eax, 0x34(%rsp)
cmpl $0x0, 0x28(%rsp)
jne 0x46b87
movq 0x2110c(%rip), %rax     # 0x67c68
movq (%rax), %rax
movl 0x2c(%rsp), %edi
movl 0x24(%rsp), %esi
movl 0x20(%rsp), %edx
movl 0x18(%rsp), %ecx
movl 0x14(%rsp), %r8d
movl 0x34(%rsp), %r9d
movzbl 0x1f(%rsp), %r10d
movl %r10d, (%rsp)
callq *%rax
jmp 0x46bb7
movq 0x20d42(%rip), %rax     # 0x678d0
movq (%rax), %rax
movl 0x28(%rsp), %edi
movl 0x24(%rsp), %esi
movl 0x20(%rsp), %edx
movl 0x18(%rsp), %ecx
movl 0x14(%rsp), %r8d
movl 0x34(%rsp), %r9d
movzbl 0x1f(%rsp), %r10d
movl %r10d, (%rsp)
callq *%rax
movq 0x38(%rsp), %rdi
callq 0x11880
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)