{"name": "setMenuItem", "code": "__int64 __fastcall setMenuItem ( __int64 @@a1@@ , const char * @@a2@@ , int @@a3@@ , int @@a4@@ ) { __int64 @@result@@ ; __int64 @@v7@@ ; @@v7@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = strdup ( @@a2@@ ) ; if ( ! * ( _QWORD * ) ( @@a1@@ + Number ) ) _glutFatalError ( String ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a4@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = strlen ( @@a2@@ ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = XTextWidth ( menuFont , @@a2@@ , * ( _DWORD * ) ( @@a1@@ + Number ) ) + Number ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) > * ( _DWORD * ) ( @@v7@@ + Number ) ) * ( _DWORD * ) ( @@v7@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) ; @@result@@ = @@v7@@ ; * ( _DWORD * ) ( @@v7@@ + Number ) = Number ; 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": "__int64", "s": 8}, "location": "r8"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}
{"name": "glutAddMenuEntry", "code": "__int64 __fastcall glutAddMenuEntry ( const char * @@a1@@ , int @@a2@@ ) { Window v2 ; __int64 result ; XSetWindowAttributes @@v4@@ ; void * @@v5@@ ; if ( _glutMappedMenu ) menuModificationError ( ) ; @@v5@@ = malloc ( Number ) ; if ( ! @@v5@@ ) _glutFatalError ( String ) ; * ( ( _QWORD * ) @@v5@@ + Number ) = _glutCurrentMenu ; setMenuItem ( ( __int64 ) @@v5@@ , @@a1@@ , @@a2@@ , Number ) ; @@v4@@ . event_mask = Number L ; v2 = XCreateWindow ( _glutDisplay , * ( _QWORD * ) ( _glutCurrentMenu + Number ) , Number , * ( _DWORD * ) ( _glutCurrentMenu + Number ) * fontHeight + Number , * ( ( _DWORD * ) @@v5@@ + Number ) , fontHeight , Number , Number , Number , Number L , Number , & @@v4@@ ) ; * ( _QWORD * ) @@v5@@ = v2 ; XMapWindow ( _glutDisplay , * ( _QWORD * ) @@v5@@ ) ; ++ * ( _DWORD * ) ( _glutCurrentMenu + Number ) ; * ( ( _QWORD * ) @@v5@@ + Number ) = * ( _QWORD * ) ( _glutCurrentMenu + Number ) ; result = _glutCurrentMenu ; * ( _QWORD * ) ( _glutCurrentMenu + Number ) = @@v5@@ ; return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v4", "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": "s128"}, {"n": "v5", "t": {"T": 3, "t": "void"}, "location": "s8"}]} {"name": "glutAddSubMenu", "code": "__int64 __fastcall glutAddSubMenu ( const char * @@a1@@ , int @@a2@@ ) { Window v2 ; __int64 result ; XSetWindowAttributes @@v4@@ ; void * @@v5@@ ; if ( _glutMappedMenu ) menuModificationError ( ) ; @@v5@@ = malloc ( Number ) ; if ( ! @@v5@@ ) _glutFatalError ( String ) ; ++ * ( _DWORD * ) ( _glutCurrentMenu + Number ) ; * ( ( _QWORD * ) @@v5@@ + Number ) = _glutCurrentMenu ; setMenuItem ( ( __int64 ) @@v5@@ , @@a1@@ , @@a2@@ - Number , Number ) ; @@v4@@ . event_mask = Number L ; v2 = XCreateWindow ( _glutDisplay , * ( _QWORD * ) ( _glutCurrentMenu + Number ) , Number , * ( _DWORD * ) ( _glutCurrentMenu + Number ) * fontHeight + Number , * ( ( _DWORD * ) @@v5@@ + Number ) , fontHeight , Number , Number , Number , Number L , Number , & @@v4@@ ) ; * ( _QWORD * ) @@v5@@ = v2 ; XMapWindow ( _glutDisplay , * ( _QWORD * ) @@v5@@ ) ; ++ * ( _DWORD * ) ( _glutCurrentMenu + Number ) ; * ( ( _QWORD * ) @@v5@@ + Number ) = * ( _QWORD * ) ( _glutCurrentMenu + Number ) ; result = _glutCurrentMenu ; * ( _QWORD * ) ( _glutCurrentMenu + Number ) = @@v5@@ ; return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v4", "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": "s128"}, {"n": "v5", "t": {"T": 3, "t": "void"}, "location": "s8"}]} {"name": "glutChangeToMenuEntry", "code": "__int64 __fastcall glutChangeToMenuEntry ( __int64 @@a1@@ , const char * @@a2@@ , int @@a3@@ ) { int @@v5@@ ; __int64 @@i@@ ; if ( _glutMappedMenu ) menuModificationError ( @@a1@@ , @@a2@@ ) ; @@v5@@ = * ( _DWORD * ) ( _glutCurrentMenu + Number ) ; for ( @@i@@ = * ( _QWORD * ) ( _glutCurrentMenu + Number ) ; ; @@i@@ = * ( _QWORD * ) ( @@i@@ + Number ) ) { if ( ! @@i@@ ) return _glutWarning ( String , ( unsigned int ) @@a1@@ ) ; if ( @@v5@@ == ( _DWORD ) @@a1@@ ) break ; -- @@v5@@ ; } if ( * ( _DWORD * ) ( @@i@@ + Number ) ) -- * ( _DWORD * ) ( * ( _QWORD * ) ( @@i@@ + Number ) + Number L ) ; free ( * ( void * * ) ( @@i@@ + Number ) ) ; return setMenuItem ( @@i@@ , @@a2@@ , @@a3@@ , Number ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "glutChangeToSubMenu", "code": "__int64 __fastcall glutChangeToSubMenu ( __int64 @@a1@@ , const char * @@a2@@ , int @@a3@@ ) { int @@v5@@ ; __int64 @@i@@ ; if ( _glutMappedMenu ) menuModificationError ( @@a1@@ , @@a2@@ ) ; @@v5@@ = * ( _DWORD * ) ( _glutCurrentMenu + Number ) ; for ( @@i@@ = * ( _QWORD * ) ( _glutCurrentMenu + Number ) ; ; @@i@@ = * ( _QWORD * ) ( @@i@@ + Number ) ) { if ( ! @@i@@ ) return _glutWarning ( String , ( unsigned int ) @@a1@@ ) ; if ( @@v5@@ == ( _DWORD ) @@a1@@ ) break ; -- @@v5@@ ; } if ( ! * ( _DWORD * ) ( @@i@@ + Number ) ) ++ * ( _DWORD * ) ( * ( _QWORD * ) ( @@i@@ + Number ) + Number L ) ; free ( * ( void * * ) ( @@i@@ + Number ) ) ; return setMenuItem ( @@i@@ , @@a2@@ , @@a3@@ - Number , Number ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}