#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ GLfloat;

/* Variables and functions */
int /*<<< orphan*/ GL_MODELVIEW_MATRIX;
int /*<<< orphan*/ glGetFloatv(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ glLoadMatrixf(int /*<<< orphan*/ *);
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glTranslatef(int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/);
void _vGLTranslate(GLfloat mMatrix[16], GLfloat vTranslation[3]) {
  glMatrixMode(GL_MODELVIEW_MATRIX);
  glLoadMatrixf(mMatrix);
  glTranslatef(vTranslation[0], vTranslation[1], vTranslation[2]);
  glGetFloatv(GL_MODELVIEW_MATRIX, mMatrix);
}


x86 assembly (clang, -O0):
<_vGLTranslate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
mov    -0x8(%rbp),%rdi
call   1040 <glLoadMatrixf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%edx
call   1060 <glTranslatef@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1050 <glGetFloatv@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_vGLTranslate>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%r14
mov    0x2e96(%rip),%r15
mov    (%r15),%edi
call   1030 <glMatrixMode@plt>
mov    %r14,%rdi
call   1040 <glLoadMatrixf@plt>
mov    (%rbx),%edi
mov    0x4(%rbx),%esi
mov    0x8(%rbx),%edx
call   1060 <glTranslatef@plt>
mov    (%r15),%edi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <glGetFloatv@plt>

LLVM IR (-O0):
@GL_MODELVIEW_MATRIX = global i32 0
define void @_vGLTranslate(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%5 = load i32, i32* @GL_MODELVIEW_MATRIX
%6 = call i32 @glMatrixMode(i32 %5)
%7 = load i32*, i32** %3
%8 = call i32 @glLoadMatrixf(i32* %7)
%9 = load i32*, i32** %4
%10 = getelementptr inbounds i32, i32* %9, i64 0
%11 = load i32, i32* %10
%12 = load i32*, i32** %4
%13 = getelementptr inbounds i32, i32* %12, i64 1
%14 = load i32, i32* %13
%15 = load i32*, i32** %4
%16 = getelementptr inbounds i32, i32* %15, i64 2
%17 = load i32, i32* %16
%18 = call i32 @glTranslatef(i32 %11, i32 %14, i32 %17)
%19 = load i32, i32* @GL_MODELVIEW_MATRIX
%20 = load i32*, i32** %3
%21 = call i32 @glGetFloatv(i32 %19, i32* %20)
ret void
}

LLVM IR (-O2):
@GL_MODELVIEW_MATRIX = global i32 0
define void @_vGLTranslate(i32* %0, i32* nocapture %1) {
%3 = load i32, i32* @GL_MODELVIEW_MATRIX
%4 = tail call i32 @glMatrixMode(i32 %3)
%5 = tail call i32 @glLoadMatrixf(i32* %0)
%6 = load i32, i32* %1
%7 = getelementptr inbounds i32, i32* %1, i64 1
%8 = load i32, i32* %7
%9 = getelementptr inbounds i32, i32* %1, i64 2
%10 = load i32, i32* %9
%11 = tail call i32 @glTranslatef(i32 %6, i32 %8, i32 %10)
%12 = load i32, i32* @GL_MODELVIEW_MATRIX
%13 = tail call i32 @glGetFloatv(i32 %12, i32* %0)
ret void
}