// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r15
pushq $0x34
popq %rsi
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x11150
testl %r15d, %r15d
jle 0x379c7
leal -0x1404(%rax), %ecx
cmpl $0x6, %ecx
ja 0x379d3
leaq 0x10106(%rip), %rax     # 0x47a50
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x38801
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x37c96
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
cmpq %rbp, %r13
je 0x37c0f
leaq 0x4(%rbp), %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x115b0
testl %eax, %eax
je 0x37bf2
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r12,%rbp,4)
incq %rbp
jmp 0x37991
leaq 0x10126(%rip), %rsi     # 0x47af4
jmp 0x37c9d
testl %eax, %eax
jne 0x37a4a
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x38801
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x37c96
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
cmpq %rbp, %r13
je 0x37c0f
leaq 0x4(%rbp), %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x11850
movq %rbx, %rdi
cmpl $0x1, %eax
jne 0x37cb5
movl %r14d, %esi
callq 0x11700
movl %eax, (%r12,%rbp,4)
incq %rbp
jmp 0x37a15
leaq 0x3834(%rip), %rsi      # 0x3b285
leaq 0xea9f(%rip), %rdx      # 0x464f7
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
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x38801
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x37c96
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
cmpq %rbp, %r13
je 0x37c25
leaq 0x4(%rbp), %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x11390
testl %eax, %eax
je 0x37bd5
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x11780
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r12,%rbp,4)
incq %rbp
jmp 0x37ab3
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x38801
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x37c96
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x3, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
cmpq %rbp, %r13
je 0x37c3b
leaq 0x4(%rbp), %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x11390
testl %eax, %eax
je 0x37bd5
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x11780
movsd %xmm0, (%r12,%rbp,8)
incq %rbp
jmp 0x37b2d
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x38801
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x37c96
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
cmpq %rbp, %r13
je 0x37c51
leaq 0x4(%rbp), %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x115b0
testl %eax, %eax
je 0x37bf2
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r12,%rbp,4)
incq %rbp
jmp 0x37ba3
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11360
addl $0x4, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11a80
jmp 0x37cca
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11360
addl $0x4, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11af0
jmp 0x37cca
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x37c8b
movl %eax, %eax
leaq 0x1d08d(%rip), %rcx     # 0x54cb0
jmp 0x37c65
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x37c8b
movl %eax, %eax
leaq 0x1d0b7(%rip), %rcx     # 0x54cf0
jmp 0x37c65
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x37c8b
movl %eax, %eax
leaq 0x1d0c1(%rip), %rcx     # 0x54d10
jmp 0x37c65
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x37c8b
movl %eax, %eax
leaq 0x1d06b(%rip), %rcx     # 0x54cd0
movq (%rcx,%rax,8), %rax
movq 0x10(%rsp), %rdi
movl %r15d, %esi
movq %r12, %rdx
callq *(%rax)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11360
movq %rbx, %rdi
callq 0x11870
jmp 0x37cca
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11360
leaq 0x38e1(%rip), %rsi      # 0x3b57e
movq %rbx, %rdi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11ae0
movq %r12, %rsi
callq 0x11360
addl $0x4, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11500
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq