// File: /workspace/github_c_makefile_star2_O3/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 0x11150
testl %r15d, %r15d
jle 0x3ac3e
leal -0x1404(%rax), %ecx
cmpl $0x6, %ecx
ja 0x3ac4a
leaq 0x10e6c(%rip), %rax     # 0x4ba28
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3baf0
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3aee0
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
testl %r13d, %r13d
jle 0x3acc1
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x115b0
testl %eax, %eax
je 0x3af1b
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r12,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x3ac0b
jmp 0x3acc1
leaq 0x10e87(%rip), %rsi     # 0x4bacc
jmp 0x3aee7
testl %eax, %eax
jne 0x3acde
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3baf0
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3aee0
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
testl %r13d, %r13d
jle 0x3acc1
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11850
movq %rbx, %rdi
cmpl $0x1, %eax
jne 0x3af37
movl %ebp, %esi
callq 0x11700
movl %eax, (%r12,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x3ac94
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x3aed5
movl %eax, %eax
leaq 0x1afd7(%rip), %rcx     # 0x55cb0
jmp 0x3aeaf
leaq 0x45a0(%rip), %rsi      # 0x3f285
leaq 0xf80f(%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 0x3baf0
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3aee0
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
testl %r13d, %r13d
jle 0x3ad7f
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11390
testl %eax, %eax
je 0x3aeff
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11780
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r12,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x3ad4b
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x3aed5
movl %eax, %eax
leaq 0x1af59(%rip), %rcx     # 0x55cf0
jmp 0x3aeaf
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3baf0
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3aee0
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x3, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
testl %r13d, %r13d
jle 0x3ae0e
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11390
testl %eax, %eax
je 0x3aeff
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11780
movsd %xmm0, (%r12,%r13,8)
incq %r13
cmpq %r13, %r14
jne 0x3adde
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x3aed5
movl %eax, %eax
leaq 0x1aeea(%rip), %rcx     # 0x55d10
jmp 0x3aeaf
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3baf0
movl %eax, %r13d
cltd
idivl %r15d
testl %edx, %edx
jne 0x3aee0
movl %eax, 0xc(%rsp)
movq %r14, 0x10(%rsp)
movslq %r13d, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r12
testl %r13d, %r13d
jle 0x3ae9b
movl %r13d, %r14d
xorl %r13d, %r13d
leaq 0x4(%r13), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x115b0
testl %eax, %eax
je 0x3af1b
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r12,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x3ae6d
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x4, %eax
jae 0x3aed5
movl %eax, %eax
leaq 0x1ae21(%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 0x11360
movq %rbx, %rdi
callq 0x11870
jmp 0x3af4e
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11360
leaq 0x4697(%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 0x11360
addl $0x4, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x11a80
jmp 0x3af4e
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11360
addl $0x4, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x11af0
jmp 0x3af4e
movq %r12, %rsi
callq 0x11360
addl $0x4, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x11500
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq