{"name": "WinCreate", "code": "__int64 __fastcall WinCreate ( __int64 @@a1@@ , const char * @@a2@@ ) { XEvent @@s@@ ; XWMHints @@v4@@ ; XSetWindowAttributes @@v5@@ ; XSetWindowAttributes @@v6@@ ; Window @@v7@@ ; Window @@v8@@ ; Window @@v9@@ ; x_display = XOpenDisplay ( Number L ) ; if ( ! x_display ) return Number L ; @@v9@@ = x_display -> screens [ ( __int64 ) x_display -> default_screen ] . root ; @@v6@@ . event_mask = Number L ; @@v8@@ = XCreateWindow ( x_display , @@v9@@ , Number , Number , * ( _DWORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) , Number , Number , Number , Number L , Number , & @@v6@@ ) ; @@v5@@ . override_redirect = Number ; XChangeWindowAttributes ( x_display , @@v8@@ , Number , & @@v5@@ ) ; @@v4@@ . input = Number ; @@v4@@ . flags = Number L ; XSetWMHints ( x_display , @@v8@@ , & @@v4@@ ) ; XMapWindow ( x_display , @@v8@@ ) ; XStoreName ( x_display , @@v8@@ , @@a2@@ ) ; @@v7@@ = XInternAtom ( x_display , String , Number ) ; memset ( & @@s@@ , Number , sizeof ( @@s@@ ) ) ; @@s@@ . type = Number ; @@s@@ . xany . window = @@v8@@ ; @@s@@ . xkey . root = @@v7@@ ; @@s@@ . xexpose . width = Number ; * ( _OWORD * ) & @@s@@ . pad [ Number ] = Number ; XSendEvent ( x_display , x_display -> screens [ ( __int64 ) x_display -> default_screen ] . root , Number , Number , & @@s@@ ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@v8@@ ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "v6", "t": {"T": 6, "n": "XSetWindowAttributes", "l": [{"T": 4, "n": "background_pixmap", "t": "Pixmap", "s": 8}, {"T": 4, "n": "background_pixel", "t": "unsigned __int64", "s": 8}, {"T": 4, "n": "border_pixmap", "t": "Pixmap", "s": 8}, {"T": 4, "n": "border_pixel", "t": "unsigned __int64", "s": 8}, {"T": 4, "n": "bit_gravity", "t": "int", "s": 4}, {"T": 4, "n": "win_gravity", "t": "int", "s": 4}, {"T": 4, "n": "backing_store", "t": "int", "s": 4}, {"T": 5, "s": 4}, {"T": 4, "n": "backing_planes", "t": "unsigned __int64", "s": 8}, {"T": 4, "n": "backing_pixel", "t": "unsigned __int64", "s": 8}, {"T": 4, "n": "save_under", "t": "int", "s": 4}, {"T": 5, "s": 4}, {"T": 4, "n": "event_mask", "t": "__int64", "s": 8}, {"T": 4, "n": "do_not_propagate_mask", "t": "__int64", "s": 8}, {"T": 4, "n": "override_redirect", "t": "int", "s": 4}, {"T": 5, "s": 4}, {"T": 4, "n": "colormap", "t": "Colormap", "s": 8}, {"T": 4, "n": "cursor", "t": "Cursor", "s": 8}]}, "location": "s144"}, {"n": "v8", "t": {"T": 1, "n": "Window", "s": 8}, "location": "s16"}, {"n": "v7", "t": {"T": 1, "n": "Window", "s": 8}, "location": "s24"}, {"n": "v5", "t": {"T": 6, "n": "XSetWindowAttributes", "l": [{"T": 4, "n": "background_pixmap", "t": "Pixmap", "s": 8}, {"T": 4, "n": "background_pixel", "t": "unsigned __int64", "s": 8}, {"T": 4, "n": "border_pixmap", "t": "Pixmap", "s": 8}, {"T": 4, "n": "border_pixel", "t": "unsigned __int64", "s": 8}, {"T": 4, "n": "bit_gravity", "t": "int", "s": 4}, {"T": 4, "n": "win_gravity", "t": "int", "s": 4}, {"T": 4, "n": "backing_store", "t": "int", "s": 4}, {"T": 5, "s": 4}, {"T": 4, "n": "backing_planes", "t": "unsigned __int64", "s": 8}, {"T": 4, "n": "backing_pixel", "t": "unsigned __int64", "s": 8}, {"T": 4, "n": "save_under", "t": "int", "s": 4}, {"T": 5, "s": 4}, {"T": 4, "n": "event_mask", "t": "__int64", "s": 8}, {"T": 4, "n": "do_not_propagate_mask", "t": "__int64", "s": 8}, {"T": 4, "n": "override_redirect", "t": "int", "s": 4}, {"T": 5, "s": 4}, {"T": 4, "n": "colormap", "t": "Colormap", "s": 8}, {"T": 4, "n": "cursor", "t": "Cursor", "s": 8}]}, "location": "s256"}, {"n": "v4", "t": {"T": 6, "n": "XWMHints", "l": [{"T": 4, "n": "flags", "t": "__int64", "s": 8}, {"T": 4, "n": "input", "t": "int", "s": 4}, {"T": 4, "n": "initial_state", "t": "int", "s": 4}, {"T": 4, "n": "icon_pixmap", "t": "Pixmap", "s": 8}, {"T": 4, "n": "icon_window", "t": "Window", "s": 8}, {"T": 4, "n": "icon_x", "t": "int", "s": 4}, {"T": 4, "n": "icon_y", "t": "int", "s": 4}, {"T": 4, "n": "icon_mask", "t": "Pixmap", "s": 8}, {"T": 4, "n": "window_group", "t": "XID", "s": 8}]}, "location": "s320"}, {"n": "s", "t": {"T": 8}, "location": "s512"}, {"n": "v9", "t": {"T": 1, "n": "Window", "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"}]}