{"name": "LoadShader", "code": "__int64 LoadShader ( ) { int @@v1@@ ; unsigned int @@v2@@ ; @@v2@@ = glCreateShader ( ) ; if ( ! @@v2@@ ) return Number L ; glShaderSource ( ) ; glCompileShader ( ) ; glGetShaderiv ( ) ; if ( @@v1@@ ) return @@v2@@ ; glGetShaderiv ( ) ; glDeleteShader ( ) ; return Number L ; }", "source": [{"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]}
{"name": "esLoadShader", "code": "__int64 esLoadShader ( ) { int @@v1@@ ; unsigned int @@v2@@ ; @@v2@@ = glCreateShader ( ) ; if ( ! @@v2@@ ) return Number L ; glShaderSource ( ) ; glCompileShader ( ) ; glGetShaderiv ( ) ; if ( @@v1@@ ) return @@v2@@ ; glGetShaderiv ( ) ; glDeleteShader ( ) ; return Number L ; }", "source": [{"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "esLoadProgram", "code": "__int64 __fastcall esLoadProgram ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; int @@v3@@ ; unsigned int @@v4@@ ; if ( ! ( unsigned int ) esLoadShader ( Number L , @@a1@@ ) ) return Number L ; if ( ( unsigned int ) esLoadShader ( Number L , @@a2@@ ) ) { @@v4@@ = glCreateProgram ( ) ; if ( @@v4@@ ) { glAttachShader ( ) ; glAttachShader ( ) ; glLinkProgram ( ) ; glGetProgramiv ( ) ; if ( @@v3@@ ) { glDeleteShader ( ) ; glDeleteShader ( ) ; @@result@@ = @@v4@@ ; } else { glGetProgramiv ( ) ; glDeleteProgram ( ) ; @@result@@ = Number L ; } } else { @@result@@ = Number L ; } } else { glDeleteShader ( ) ; @@result@@ = Number L ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}]} {"name": "Init", "code": "__int64 __fastcall Init ( void * * @@a1@@ ) { __int64 @@result@@ ; int @@v2@@ ; char @@v3@@ [ Number ] ; char @@v4@@ [ Number ] ; int @@v5@@ ; int @@v6@@ ; int @@v7@@ ; _DWORD * @@v8@@ ; * @@a1@@ = malloc ( Number ) ; @@v8@@ = * @@a1@@ ; strcpy ( @@v4@@ , String String String String String ) ; strcpy ( @@v3@@ , String String String String String ) ; @@v7@@ = LoadShader ( Number L , @@v4@@ ) ; @@v6@@ = LoadShader ( Number L , @@v3@@ ) ; @@v5@@ = glCreateProgram ( ) ; if ( ! @@v5@@ ) return Number L ; glAttachShader ( ) ; glAttachShader ( ) ; glBindAttribLocation ( ) ; glLinkProgram ( ) ; glGetProgramiv ( ) ; if ( @@v2@@ ) { * @@v8@@ = @@v5@@ ; glClearColor ( ) ; @@result@@ = Number L ; } else { glGetProgramiv ( ) ; glDeleteProgram ( ) ; @@result@@ = Number L ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "void *"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v4", "t": {"T": 2, "n": 160, "s": 1, "t": "char"}, "location": "s192"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v3", "t": {"T": 2, "n": 224, "s": 1, "t": "char"}, "location": "s416"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s420"}, {"n": "v8", "t": {"T": 3, "t": "_DWORD"}, "location": "s8"}]}