{"name": "CreateEGLContext", "code": "__int64 __fastcall CreateEGLContext ( __int64 @@a1@@ , __int64 * @@a2@@ , __int64 * @@a3@@ , __int64 * @@a4@@ ) { __int64 @@v7@@ ; __int64 @@v8@@ ; __int64 @@v9@@ ; @@v9@@ = eglGetDisplay ( ) ; if ( ! @@v9@@ ) return Number L ; if ( ! ( unsigned int ) eglInitialize ( ) ) return Number L ; if ( ! ( unsigned int ) eglGetConfigs ( ) ) return Number L ; if ( ! ( unsigned int ) eglChooseConfig ( ) ) return Number L ; @@v8@@ = eglCreateWindowSurface ( ) ; if ( ! @@v8@@ ) return Number L ; @@v7@@ = eglCreateContext ( ) ; if ( ! @@v7@@ ) return Number L ; if ( ! ( unsigned int ) eglMakeCurrent ( ) ) return Number L ; * @@a2@@ = @@v9@@ ; * @@a4@@ = @@v8@@ ; * @@a3@@ = @@v7@@ ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "__int64"}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "__int64"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "__int64"}, "location": "r64"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}
{"name": "esCreateWindow", "code": "_BOOL8 __fastcall esCreateWindow ( __int64 @@a1@@ , const char * @@a2@@ , int @@a3@@ , int @@a4@@ ) { _BOOL8 @@result@@ ; if ( ! @@a1@@ ) return Number L ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a4@@ ; if ( ( unsigned int ) WinCreate ( @@a1@@ , @@a2@@ ) ) @@result@@ = ( unsigned int ) CreateEGLContext ( * ( _QWORD * ) ( @@a1@@ + Number ) , ( __int64 * ) ( @@a1@@ + Number ) , ( __int64 * ) ( @@a1@@ + Number ) , ( __int64 * ) ( @@a1@@ + Number ) ) != Number ; else @@result@@ = Number L ; return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "_BOOL8", "s": 8}, "location": "r8"}]} {"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"}]}