{"name": "glutSetMenu", "code": "__int64 __fastcall glutSetMenu ( int @@a1@@ ) { __int64 @@result@@ ; __int64 @@v2@@ ; if ( @@a1@@ > Number && @@a1@@ <= menuListSize && ( @@v2@@ = * ( ( _QWORD * ) menuList + @@a1@@ - Number ) ) != Number ) @@result@@ = _glutSetMenu ( @@v2@@ ) ; else @@result@@ = _glutWarning ( String ) ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}
{"name": "__glutSetMenu", "code": "__int64 __fastcall _glutSetMenu ( __int64 @@a1@@ ) { __int64 @@result@@ ; @@result@@ = @@a1@@ ; _glutCurrentMenu = @@a1@@ ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "__glutFinishMenu", "code": "__int64 __fastcall _glutFinishMenu ( Window @@a1@@ , int @@a2@@ , int @@a3@@ ) { __int64 @@result@@ ; int @@v4@@ ; int @@v5@@ ; Window @@v6@@ ; Window @@v7@@ ; @@v6@@ = @@a1@@ ; @@v5@@ = @@a2@@ ; @@v4@@ = @@a3@@ ; unmapMenu ( ( Window * ) _glutMappedMenu ) ; XUngrabPointer ( _glutDisplay , Number L ) ; XFlush ( _glutDisplay ) ; if ( _glutMenuStatusFunc ) { if ( @@v6@@ != * ( _QWORD * ) ( _glutMenuWindow + Number ) && ! XTranslateCoordinates ( _glutDisplay , @@v6@@ , * ( _QWORD * ) ( _glutMenuWindow + Number ) , @@v5@@ , @@v4@@ , & @@v5@@ , & @@v4@@ , & @@v7@@ ) ) { _assert_fail ( String , String , Number , String ) ; } _glutSetWindow ( _glutMenuWindow ) ; _glutSetMenu ( _glutMappedMenu ) ; _glutMappedMenu = Number L ; _glutMenuStatusFunc ( Number L , ( unsigned int ) @@v5@@ , ( unsigned int ) @@v4@@ ) ; } _glutMappedMenu = Number L ; @@result@@ = _glutItemSelected ; if ( _glutItemSelected ) { @@result@@ = * ( unsigned int * ) ( _glutItemSelected + Number ) ; if ( ! ( _DWORD ) @@result@@ ) { _glutSetWindow ( _glutMenuWindow ) ; _glutSetMenu ( * ( _QWORD * ) ( _glutItemSelected + Number ) ) ; @@result@@ = ( * ( __int64 ( __fastcall * * ) ( _QWORD ) ) ( * ( _QWORD * ) ( _glutItemSelected + Number ) + Number L ) ) ( * ( unsigned int * ) ( _glutItemSelected + Number ) ) ; } } _glutMenuWindow = Number L ; return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "Window", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v7", "t": {"T": 1, "n": "Window", "s": 8}, "location": "s16"}, {"n": "v6", "t": {"T": 1, "n": "Window", "s": 8}, "location": "s24"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s32"}]} {"name": "__glutStartMenu", "code": "int __fastcall _glutStartMenu ( __int64 @@a1@@ , __int64 @@a2@@ , int @@a3@@ , int @@a4@@ , unsigned int @@a5@@ , unsigned int @@a6@@ ) { int @@result@@ ; if ( _glutMappedMenu ) _assert_fail ( String , String , Number , String ) ; @@result@@ = XGrabPointer ( _glutDisplay , _glutRoot , Number , Number , Number , Number , _glutRoot , menuCursor , Number L ) ; if ( ! @@result@@ ) { _glutMappedMenu = @@a1@@ ; _glutMenuWindow = @@a2@@ ; _glutItemSelected = Number L ; if ( _glutMenuStatusFunc ) { _glutSetMenu ( @@a1@@ ) ; _glutSetWindow ( @@a2@@ ) ; _glutMenuStatusFunc ( Number L , @@a5@@ , @@a6@@ ) ; } @@result@@ = mapMenu ( @@a1@@ , @@a3@@ , @@a4@@ ) ; } 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": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r72"}, {"n": "result", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "a6", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r80"}]} {"name": "glutCreateMenu", "code": "__int64 __fastcall glutCreateMenu ( __int64 @@a1@@ ) { Window @@v1@@ ; XSetWindowAttributes @@v3@@ ; void * @@v4@@ ; int @@v5@@ ; if ( _glutMappedMenu ) menuModificationError ( ) ; if ( ! _glutDisplay ) _glutOpenXConnection ( Number L ) ; @@v5@@ = getUnusedMenuSlot ( ) ; @@v4@@ = malloc ( Number ) ; if ( ! @@v4@@ ) _glutFatalError ( String ) ; * ( _DWORD * ) @@v4@@ = @@v5@@ ; * ( ( _DWORD * ) @@v4@@ + Number ) = Number ; * ( ( _DWORD * ) @@v4@@ + Number ) = Number ; * ( ( _DWORD * ) @@v4@@ + Number ) = Number ; * ( ( _DWORD * ) @@v4@@ + Number ) = Number ; * ( ( _QWORD * ) @@v4@@ + Number ) = @@a1@@ ; * ( ( _QWORD * ) @@v4@@ + Number ) = Number L ; * ( ( _QWORD * ) @@v4@@ + Number ) = Number L ; * ( ( _QWORD * ) @@v4@@ + Number ) = Number L ; * ( ( _QWORD * ) @@v4@@ + Number ) = Number L ; menuSetup ( ) ; @@v3@@ . override_redirect = Number ; @@v3@@ . background_pixel = menuGray ; @@v3@@ . border_pixel = menuBlack ; @@v3@@ . colormap = menuColormap ; @@v3@@ . event_mask = Number L ; @@v3@@ . save_under = Number ; @@v1@@ = XCreateWindow ( _glutDisplay , _glutRoot , Number , Number , Number , Number , Number , menuDepth , Number , menuVisual , useSaveUnders | Number , & @@v3@@ ) ; * ( ( _QWORD * ) @@v4@@ + Number ) = @@v1@@ ; menuGraphicsContextSetup ( * ( ( _QWORD * ) @@v4@@ + Number ) ) ; * ( ( _QWORD * ) menuList + @@v5@@ ) = @@v4@@ ; _glutSetMenu ( ( __int64 ) @@v4@@ ) ; return ( unsigned int ) ( @@v5@@ + Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "Window", "s": 8}, "location": "r8"}, {"n": "v3", "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": "v4", "t": {"T": 3, "t": "void"}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]}