// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/uniform.c
// Function: Uniformv
static int Uniformv(lua_State *L)
/* uniformv(location, count, type, val1 [, val2 ... val4]) */
    {
    GLint location = luaL_checkinteger(L, 1);
    GLsizei count = luaL_checkinteger(L, 2);
    GLenum type = checkuniformtype(L, 3);
    if(count<=0)
        return luaL_error(L, "count should be positive");
#define arg_first 4
    switch(type)
        {
        case NONGL_BOOLEAN: return Uniformv_b(L, location, count, arg_first);
        case GL_INT: return Uniformv_i(L, location, count, arg_first);
        case GL_UNSIGNED_INT: return Uniformv_ui(L, location, count, arg_first);
        case GL_FLOAT: return Uniformv_f(L, location, count, arg_first);
        case GL_DOUBLE: return Uniformv_d(L, location, count, arg_first);
        default:
            return luaL_error(L, UNEXPECTED_ERROR);
        }
    return 0;
#undef arg_first
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x34, %esi
movl $0x3, %edx
callq 0x11160
testl %r15d, %r15d
jle 0x3ab92
leal -0x1404(%rax), %ecx
cmpl $0x6, %ecx
ja 0x3ab9e
leaq 0x10f18(%rip), %rax     # 0x4ba28
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3ba44
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3ae34
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r12
testl %r13d, %r13d
jle 0x3ac15
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x115c0
testl %eax, %eax
je 0x3ae6f
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r12,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x3ab5f
jmp 0x3ac15
leaq 0x10f33(%rip), %rsi     # 0x4bacc
jmp 0x3ae3b
testl %eax, %eax
jne 0x3ac32
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3ba44
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3ae34
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r12
testl %r13d, %r13d
jle 0x3ac15
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11860
movq %rbx, %rdi
cmpl $0x1, %eax
jne 0x3ae8b
movl %ebp, %esi
callq 0x11710
movl %eax, (%r12,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x3abe8
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x3ae29
movl %eax, %eax
leaq 0x1b083(%rip), %rcx     # 0x55cb0
jmp 0x3ae03
leaq 0x464c(%rip), %rsi      # 0x3f285
leaq 0xf8bb(%rip), %rdx      # 0x4a4fb
movq %rbx, %rdi
movl $0x97, %ecx
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11ae0
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3ba44
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3ae34
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r12
testl %r13d, %r13d
jle 0x3acd3
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x113a0
testl %eax, %eax
je 0x3ae53
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11790
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r12,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x3ac9f
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x3ae29
movl %eax, %eax
leaq 0x1b005(%rip), %rcx     # 0x55cf0
jmp 0x3ae03
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3ba44
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3ae34
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x3, %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r12
testl %r13d, %r13d
jle 0x3ad62
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x113a0
testl %eax, %eax
je 0x3ae53
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11790
movsd %xmm0, (%r12,%r13,8)
incq %r13
cmpq %r13, %r14
jne 0x3ad32
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x3ae29
movl %eax, %eax
leaq 0x1af96(%rip), %rcx     # 0x55d10
jmp 0x3ae03
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3ba44
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3ae34
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r12
testl %r13d, %r13d
jle 0x3adef
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x115c0
testl %eax, %eax
je 0x3ae6f
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r12,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x3adc1
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x3ae29
movl %eax, %eax
leaq 0x1aecd(%rip), %rcx     # 0x55cd0
movq (%rcx,%rax,8), %rax
movq 0x10(%rsp), %rdi
movl %r15d, %esi
movq %r12, %rdx
callq *(%rax)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11370
movq %rbx, %rdi
callq 0x11880
jmp 0x3aea2
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11370
leaq 0x4743(%rip), %rsi      # 0x3f57e
movq %rbx, %rdi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11ae0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11370
addl $0x4, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x11a80
jmp 0x3aea2
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11370
addl $0x4, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x11af0
jmp 0x3aea2
movq %r12, %rsi
callq 0x11370
addl $0x4, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x11510
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq