#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 GLubyte;

/* Variables and functions */
int /*<<< orphan*/ GL_NEAREST;
int /*<<< orphan*/ GL_RGB;
int /*<<< orphan*/ GL_TEXTURE_2D;
int /*<<< orphan*/ GL_TEXTURE_MIN_FILTER;
int /*<<< orphan*/ GL_UNPACK_ALIGNMENT;
int /*<<< orphan*/ GL_UNSIGNED_BYTE;
int /*<<< orphan*/ glPixelStorei(int /*<<< orphan*/, int);
int /*<<< orphan*/ glTexImage2D(int /*<<< orphan*/, int /*<<< orphan*/, int,
                                int, int, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/,
                                int ***);
int /*<<< orphan*/ glTexParameteri(int /*<<< orphan*/, int /*<<< orphan*/,
                                   int /*<<< orphan*/);
void makeTexture(char *pattern[]) {
  GLubyte floorTexture[16][16][3];
  GLubyte *loc;
  int s, t;
  loc = (GLubyte *)floorTexture;
  for (t = 0; t < 16; t++) {
    for (s = 0; s < 16; s++) {
      if (pattern[t][s] == 'x') {
        loc[0] = 0x6f;
        loc[1] = 0x8f;
        loc[2] = 0x1f;
      } else {
        loc[0] = 0xaa;
        loc[1] = 0xaa;
        loc[2] = 0xaa;
      }
      loc += 3;
    }
  }
  glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
  glTexImage2D(GL_TEXTURE_2D, 0, 3, 16, 16, 0, GL_RGB, GL_UNSIGNED_BYTE,
               floorTexture);
}


x86 assembly (clang, -O0):
<makeTexture>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc40,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0xc10(%rbp),%rax
mov    %rax,-0xc18(%rbp)
movl   $0x0,-0xc20(%rbp)
cmpl   $0x10,-0xc20(%rbp)
jge    1234 <makeTexture+0x104>
movl   $0x0,-0xc1c(%rbp)
cmpl   $0x10,-0xc1c(%rbp)
jge    121b <makeTexture+0xeb>
mov    -0x8(%rbp),%rax
movslq -0xc20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x78,%eax
jne    11cc <makeTexture+0x9c>
mov    -0xc18(%rbp),%rax
movl   $0x6f,(%rax)
mov    -0xc18(%rbp),%rax
movl   $0x8f,0x4(%rax)
mov    -0xc18(%rbp),%rax
movl   $0x1f,0x8(%rax)
jmp    11f5 <makeTexture+0xc5>
mov    -0xc18(%rbp),%rax
movl   $0xaa,(%rax)
mov    -0xc18(%rbp),%rax
movl   $0xaa,0x4(%rax)
mov    -0xc18(%rbp),%rax
movl   $0xaa,0x8(%rax)
mov    -0xc18(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0xc18(%rbp)
mov    -0xc1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc1c(%rbp)
jmp    116e <makeTexture+0x3e>
jmp    1220 <makeTexture+0xf0>
mov    -0xc20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc20(%rbp)
jmp    1157 <makeTexture+0x27>
mov    0x2d9d(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   1050 <glPixelStorei@plt>
mov    0x2d7a(%rip),%rax
mov    (%rax),%edi
mov    0x2d89(%rip),%rax
mov    (%rax),%esi
mov    0x2d60(%rip),%rax
mov    (%rax),%edx
call   1030 <glTexParameteri@plt>
mov    0x2d5a(%rip),%rax
mov    (%rax),%edi
mov    0x2d79(%rip),%rax
mov    (%rax),%r11d
mov    0x2d37(%rip),%rax
mov    (%rax),%r10d
lea    -0xc10(%rbp),%rax
xor    %r9d,%r9d
mov    $0x3,%edx
mov    $0x10,%r8d
mov    %r9d,%esi
mov    %r8d,%ecx
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1040 <glTexImage2D@plt>
add    $0xc40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<makeTexture>:
push   %rbx
sub    $0xc00,%rsp
mov    %rsp,%rax
xor    %r8d,%r8d
mov    $0x6f,%r9d
mov    $0x8f,%r10d
mov    $0x1f,%r11d
mov    (%rdi,%r8,8),%rdx
cmpb   $0x78,(%rdx)
mov    $0xaa,%esi
cmove  %r9d,%esi
mov    $0xaa,%ecx
cmove  %r10d,%ecx
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %esi,(%rax)
mov    %ecx,0x4(%rax)
mov    %ebx,0x8(%rax)
cmpb   $0x78,0x1(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0xc(%rax)
mov    %esi,0x10(%rax)
mov    %ebx,0x14(%rax)
cmpb   $0x78,0x2(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x18(%rax)
mov    %esi,0x1c(%rax)
mov    %ebx,0x20(%rax)
cmpb   $0x78,0x3(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x24(%rax)
mov    %esi,0x28(%rax)
mov    %ebx,0x2c(%rax)
cmpb   $0x78,0x4(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x30(%rax)
mov    %esi,0x34(%rax)
mov    %ebx,0x38(%rax)
cmpb   $0x78,0x5(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x3c(%rax)
mov    %esi,0x40(%rax)
mov    %ebx,0x44(%rax)
cmpb   $0x78,0x6(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x48(%rax)
mov    %esi,0x4c(%rax)
mov    %ebx,0x50(%rax)
cmpb   $0x78,0x7(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x54(%rax)
mov    %esi,0x58(%rax)
mov    %ebx,0x5c(%rax)
cmpb   $0x78,0x8(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x60(%rax)
mov    %esi,0x64(%rax)
mov    %ebx,0x68(%rax)
cmpb   $0x78,0x9(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x6c(%rax)
mov    %esi,0x70(%rax)
mov    %ebx,0x74(%rax)
cmpb   $0x78,0xa(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x78(%rax)
mov    %esi,0x7c(%rax)
mov    %ebx,0x80(%rax)
cmpb   $0x78,0xb(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x84(%rax)
mov    %esi,0x88(%rax)
mov    %ebx,0x8c(%rax)
cmpb   $0x78,0xc(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x90(%rax)
mov    %esi,0x94(%rax)
mov    %ebx,0x98(%rax)
cmpb   $0x78,0xd(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0x9c(%rax)
mov    %esi,0xa0(%rax)
mov    %ebx,0xa4(%rax)
cmpb   $0x78,0xe(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%esi
cmove  %r10d,%esi
mov    $0xaa,%ebx
cmove  %r11d,%ebx
mov    %ecx,0xa8(%rax)
mov    %esi,0xac(%rax)
mov    %ebx,0xb0(%rax)
cmpb   $0x78,0xf(%rdx)
mov    $0xaa,%ecx
cmove  %r9d,%ecx
mov    $0xaa,%edx
mov    $0xaa,%esi
cmove  %r10d,%edx
cmove  %r11d,%esi
mov    %ecx,0xb4(%rax)
mov    %edx,0xb8(%rax)
mov    %esi,0xbc(%rax)
add    $0x1,%r8
add    $0xc0,%rax
cmp    $0x10,%r8
jne    1150 <makeTexture+0x20>
mov    0x2bbb(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   1050 <glPixelStorei@plt>
mov    0x2b98(%rip),%rbx
mov    (%rbx),%edi
mov    0x2ba7(%rip),%rax
mov    (%rax),%esi
mov    0x2b7e(%rip),%rax
mov    (%rax),%edx
call   1030 <glTexParameteri@plt>
mov    (%rbx),%edi
mov    0x2b9e(%rip),%rax
mov    (%rax),%eax
mov    0x2b5d(%rip),%rcx
mov    (%rcx),%ebx
sub    $0x8,%rsp
lea    0x8(%rsp),%r10
xor    %esi,%esi
mov    $0x3,%edx
mov    $0x10,%ecx
mov    $0x10,%r8d
xor    %r9d,%r9d
push   %r10
push   %rbx
push   %rax
call   1040 <glTexImage2D@plt>
add    $0xc20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@GL_UNPACK_ALIGNMENT = global i32 0
@GL_TEXTURE_2D = global i32 0
@GL_TEXTURE_MIN_FILTER = global i32 0
@GL_NEAREST = global i32 0
@GL_RGB = global i32 0
@GL_UNSIGNED_BYTE = global i32 0
define void @makeTexture(i8** %0) {
%2 = alloca i8**
%3 = alloca [16 x [16 x [3 x i32]]]
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i8** %0, i8*** %2
%7 = getelementptr inbounds [16 x [16 x [3 x i32]]], [16 x [16 x [3 x i32]]]* %3, i64 0, i64 0
%8 = bitcast [16 x [3 x i32]]* %7 to i32*
store i32* %8, i32** %4
store i32 0, i32* %6
br label %9
9: ; preds = %49, %1
%10 = load i32, i32* %6
%11 = icmp slt i32 %10, 16
br i1 %11, label %12, label %52
12: ; preds = %9
store i32 0, i32* %5
br label %13
13: ; preds = %45, %12
%14 = load i32, i32* %5
%15 = icmp slt i32 %14, 16
br i1 %15, label %16, label %48
16: ; preds = %13
%17 = load i8**, i8*** %2
%18 = load i32, i32* %6
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8*, i8** %17, i64 %19
%21 = load i8*, i8** %20
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %21, i64 %23
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 120
br i1 %27, label %28, label %35
28: ; preds = %16
%29 = load i32*, i32** %4
%30 = getelementptr inbounds i32, i32* %29, i64 0
store i32 111, i32* %30
%31 = load i32*, i32** %4
%32 = getelementptr inbounds i32, i32* %31, i64 1
store i32 143, i32* %32
%33 = load i32*, i32** %4
%34 = getelementptr inbounds i32, i32* %33, i64 2
store i32 31, i32* %34
br label %42
35: ; preds = %16
%36 = load i32*, i32** %4
%37 = getelementptr inbounds i32, i32* %36, i64 0
store i32 170, i32* %37
%38 = load i32*, i32** %4
%39 = getelementptr inbounds i32, i32* %38, i64 1
store i32 170, i32* %39
%40 = load i32*, i32** %4
%41 = getelementptr inbounds i32, i32* %40, i64 2
store i32 170, i32* %41
br label %42
42: ; preds = %35, %28
%43 = load i32*, i32** %4
%44 = getelementptr inbounds i32, i32* %43, i64 3
store i32* %44, i32** %4
br label %45
45: ; preds = %42
%46 = load i32, i32* %5
%47 = add nsw i32 %46, 1
store i32 %47, i32* %5
br label %13
48: ; preds = %13
br label %49
49: ; preds = %48
%50 = load i32, i32* %6
%51 = add nsw i32 %50, 1
store i32 %51, i32* %6
br label %9
52: ; preds = %9
%53 = load i32, i32* @GL_UNPACK_ALIGNMENT
%54 = call i32 @glPixelStorei(i32 %53, i32 1)
%55 = load i32, i32* @GL_TEXTURE_2D
%56 = load i32, i32* @GL_TEXTURE_MIN_FILTER
%57 = load i32, i32* @GL_NEAREST
%58 = call i32 @glTexParameteri(i32 %55, i32 %56, i32 %57)
%59 = load i32, i32* @GL_TEXTURE_2D
%60 = load i32, i32* @GL_RGB
%61 = load i32, i32* @GL_UNSIGNED_BYTE
%62 = getelementptr inbounds [16 x [16 x [3 x i32]]], [16 x [16 x [3 x i32]]]* %3, i64 0, i64 0
%63 = bitcast [16 x [3 x i32]]* %62 to i32***
%64 = call i32 @glTexImage2D(i32 %59, i32 0, i32 3, i32 16, i32 16, i32 0, i32 %60, i32 %61, i32*** %63)
ret void
}

LLVM IR (-O2):
@GL_UNPACK_ALIGNMENT = global i32 0
@GL_TEXTURE_2D = global i32 0
@GL_TEXTURE_MIN_FILTER = global i32 0
@GL_NEAREST = global i32 0
@GL_RGB = global i32 0
@GL_UNSIGNED_BYTE = global i32 0
define void @makeTexture(i8** nocapture %0) {
%2 = alloca [16 x [16 x [3 x i32]]]
%3 = bitcast [16 x [16 x [3 x i32]]]* %2 to i8*
%4 = getelementptr inbounds [16 x [16 x [3 x i32]]], [16 x [16 x [3 x i32]]]* %2, i64 0, i64 0, i64 0, i64 0
br label %5
5: ; preds = %1, %5
%6 = phi i64 [ 0, %1 ], [ %153, %5 ]
%7 = phi i32* [ %4, %1 ], [ %152, %5 ]
%8 = getelementptr inbounds i8*, i8** %0, i64 %6
%9 = load i8*, i8** %8
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 120
%12 = select i1 %11, i32 111, i32 170
%13 = select i1 %11, i32 143, i32 170
%14 = select i1 %11, i32 31, i32 170
store i32 %12, i32* %7
%15 = getelementptr inbounds i32, i32* %7, i64 1
store i32 %13, i32* %15
%16 = getelementptr inbounds i32, i32* %7, i64 2
store i32 %14, i32* %16
%17 = getelementptr inbounds i32, i32* %7, i64 3
%18 = getelementptr inbounds i8, i8* %9, i64 1
%19 = load i8, i8* %18
%20 = icmp eq i8 %19, 120
%21 = select i1 %20, i32 111, i32 170
%22 = select i1 %20, i32 143, i32 170
%23 = select i1 %20, i32 31, i32 170
store i32 %21, i32* %17
%24 = getelementptr inbounds i32, i32* %7, i64 4
store i32 %22, i32* %24
%25 = getelementptr inbounds i32, i32* %7, i64 5
store i32 %23, i32* %25
%26 = getelementptr inbounds i32, i32* %7, i64 6
%27 = getelementptr inbounds i8, i8* %9, i64 2
%28 = load i8, i8* %27
%29 = icmp eq i8 %28, 120
%30 = select i1 %29, i32 111, i32 170
%31 = select i1 %29, i32 143, i32 170
%32 = select i1 %29, i32 31, i32 170
store i32 %30, i32* %26
%33 = getelementptr inbounds i32, i32* %7, i64 7
store i32 %31, i32* %33
%34 = getelementptr inbounds i32, i32* %7, i64 8
store i32 %32, i32* %34
%35 = getelementptr inbounds i32, i32* %7, i64 9
%36 = getelementptr inbounds i8, i8* %9, i64 3
%37 = load i8, i8* %36
%38 = icmp eq i8 %37, 120
%39 = select i1 %38, i32 111, i32 170
%40 = select i1 %38, i32 143, i32 170
%41 = select i1 %38, i32 31, i32 170
store i32 %39, i32* %35
%42 = getelementptr inbounds i32, i32* %7, i64 10
store i32 %40, i32* %42
%43 = getelementptr inbounds i32, i32* %7, i64 11
store i32 %41, i32* %43
%44 = getelementptr inbounds i32, i32* %7, i64 12
%45 = getelementptr inbounds i8, i8* %9, i64 4
%46 = load i8, i8* %45
%47 = icmp eq i8 %46, 120
%48 = select i1 %47, i32 111, i32 170
%49 = select i1 %47, i32 143, i32 170
%50 = select i1 %47, i32 31, i32 170
store i32 %48, i32* %44
%51 = getelementptr inbounds i32, i32* %7, i64 13
store i32 %49, i32* %51
%52 = getelementptr inbounds i32, i32* %7, i64 14
store i32 %50, i32* %52
%53 = getelementptr inbounds i32, i32* %7, i64 15
%54 = getelementptr inbounds i8, i8* %9, i64 5
%55 = load i8, i8* %54
%56 = icmp eq i8 %55, 120
%57 = select i1 %56, i32 111, i32 170
%58 = select i1 %56, i32 143, i32 170
%59 = select i1 %56, i32 31, i32 170
store i32 %57, i32* %53
%60 = getelementptr inbounds i32, i32* %7, i64 16
store i32 %58, i32* %60
%61 = getelementptr inbounds i32, i32* %7, i64 17
store i32 %59, i32* %61
%62 = getelementptr inbounds i32, i32* %7, i64 18
%63 = getelementptr inbounds i8, i8* %9, i64 6
%64 = load i8, i8* %63
%65 = icmp eq i8 %64, 120
%66 = select i1 %65, i32 111, i32 170
%67 = select i1 %65, i32 143, i32 170
%68 = select i1 %65, i32 31, i32 170
store i32 %66, i32* %62
%69 = getelementptr inbounds i32, i32* %7, i64 19
store i32 %67, i32* %69
%70 = getelementptr inbounds i32, i32* %7, i64 20
store i32 %68, i32* %70
%71 = getelementptr inbounds i32, i32* %7, i64 21
%72 = getelementptr inbounds i8, i8* %9, i64 7
%73 = load i8, i8* %72
%74 = icmp eq i8 %73, 120
%75 = select i1 %74, i32 111, i32 170
%76 = select i1 %74, i32 143, i32 170
%77 = select i1 %74, i32 31, i32 170
store i32 %75, i32* %71
%78 = getelementptr inbounds i32, i32* %7, i64 22
store i32 %76, i32* %78
%79 = getelementptr inbounds i32, i32* %7, i64 23
store i32 %77, i32* %79
%80 = getelementptr inbounds i32, i32* %7, i64 24
%81 = getelementptr inbounds i8, i8* %9, i64 8
%82 = load i8, i8* %81
%83 = icmp eq i8 %82, 120
%84 = select i1 %83, i32 111, i32 170
%85 = select i1 %83, i32 143, i32 170
%86 = select i1 %83, i32 31, i32 170
store i32 %84, i32* %80
%87 = getelementptr inbounds i32, i32* %7, i64 25
store i32 %85, i32* %87
%88 = getelementptr inbounds i32, i32* %7, i64 26
store i32 %86, i32* %88
%89 = getelementptr inbounds i32, i32* %7, i64 27
%90 = getelementptr inbounds i8, i8* %9, i64 9
%91 = load i8, i8* %90
%92 = icmp eq i8 %91, 120
%93 = select i1 %92, i32 111, i32 170
%94 = select i1 %92, i32 143, i32 170
%95 = select i1 %92, i32 31, i32 170
store i32 %93, i32* %89
%96 = getelementptr inbounds i32, i32* %7, i64 28
store i32 %94, i32* %96
%97 = getelementptr inbounds i32, i32* %7, i64 29
store i32 %95, i32* %97
%98 = getelementptr inbounds i32, i32* %7, i64 30
%99 = getelementptr inbounds i8, i8* %9, i64 10
%100 = load i8, i8* %99
%101 = icmp eq i8 %100, 120
%102 = select i1 %101, i32 111, i32 170
%103 = select i1 %101, i32 143, i32 170
%104 = select i1 %101, i32 31, i32 170
store i32 %102, i32* %98
%105 = getelementptr inbounds i32, i32* %7, i64 31
store i32 %103, i32* %105
%106 = getelementptr inbounds i32, i32* %7, i64 32
store i32 %104, i32* %106
%107 = getelementptr inbounds i32, i32* %7, i64 33
%108 = getelementptr inbounds i8, i8* %9, i64 11
%109 = load i8, i8* %108
%110 = icmp eq i8 %109, 120
%111 = select i1 %110, i32 111, i32 170
%112 = select i1 %110, i32 143, i32 170
%113 = select i1 %110, i32 31, i32 170
store i32 %111, i32* %107
%114 = getelementptr inbounds i32, i32* %7, i64 34
store i32 %112, i32* %114
%115 = getelementptr inbounds i32, i32* %7, i64 35
store i32 %113, i32* %115
%116 = getelementptr inbounds i32, i32* %7, i64 36
%117 = getelementptr inbounds i8, i8* %9, i64 12
%118 = load i8, i8* %117
%119 = icmp eq i8 %118, 120
%120 = select i1 %119, i32 111, i32 170
%121 = select i1 %119, i32 143, i32 170
%122 = select i1 %119, i32 31, i32 170
store i32 %120, i32* %116
%123 = getelementptr inbounds i32, i32* %7, i64 37
store i32 %121, i32* %123
%124 = getelementptr inbounds i32, i32* %7, i64 38
store i32 %122, i32* %124
%125 = getelementptr inbounds i32, i32* %7, i64 39
%126 = getelementptr inbounds i8, i8* %9, i64 13
%127 = load i8, i8* %126
%128 = icmp eq i8 %127, 120
%129 = select i1 %128, i32 111, i32 170
%130 = select i1 %128, i32 143, i32 170
%131 = select i1 %128, i32 31, i32 170
store i32 %129, i32* %125
%132 = getelementptr inbounds i32, i32* %7, i64 40
store i32 %130, i32* %132
%133 = getelementptr inbounds i32, i32* %7, i64 41
store i32 %131, i32* %133
%134 = getelementptr inbounds i32, i32* %7, i64 42
%135 = getelementptr inbounds i8, i8* %9, i64 14
%136 = load i8, i8* %135
%137 = icmp eq i8 %136, 120
%138 = select i1 %137, i32 111, i32 170
%139 = select i1 %137, i32 143, i32 170
%140 = select i1 %137, i32 31, i32 170
store i32 %138, i32* %134
%141 = getelementptr inbounds i32, i32* %7, i64 43
store i32 %139, i32* %141
%142 = getelementptr inbounds i32, i32* %7, i64 44
store i32 %140, i32* %142
%143 = getelementptr inbounds i32, i32* %7, i64 45
%144 = getelementptr inbounds i8, i8* %9, i64 15
%145 = load i8, i8* %144
%146 = icmp eq i8 %145, 120
%147 = select i1 %146, i32 111, i32 170
%148 = select i1 %146, i32 143, i32 170
%149 = select i1 %146, i32 31, i32 170
store i32 %147, i32* %143
%150 = getelementptr inbounds i32, i32* %7, i64 46
store i32 %148, i32* %150
%151 = getelementptr inbounds i32, i32* %7, i64 47
store i32 %149, i32* %151
%152 = getelementptr inbounds i32, i32* %7, i64 48
%153 = add nuw nsw i64 %6, 1
%154 = icmp eq i64 %153, 16
br i1 %154, label %155, label %5
155: ; preds = %5
%156 = load i32, i32* @GL_UNPACK_ALIGNMENT
%157 = tail call i32 @glPixelStorei(i32 %156, i32 1)
%158 = load i32, i32* @GL_TEXTURE_2D
%159 = load i32, i32* @GL_TEXTURE_MIN_FILTER
%160 = load i32, i32* @GL_NEAREST
%161 = tail call i32 @glTexParameteri(i32 %158, i32 %159, i32 %160)
%162 = load i32, i32* @GL_TEXTURE_2D
%163 = load i32, i32* @GL_RGB
%164 = load i32, i32* @GL_UNSIGNED_BYTE
%165 = bitcast [16 x [16 x [3 x i32]]]* %2 to i32***
%166 = call i32 @glTexImage2D(i32 %162, i32 0, i32 3, i32 16, i32 16, i32 0, i32 %163, i32 %164, i32*** %165)
ret void
}