{"name": "paintSubMenuArrow", "code": "int __fastcall paintSubMenuArrow ( Drawable @@a1@@ , __int16 @@a2@@ , __int16 @@a3@@ ) { XPoint @@v4@@ ; __int16 @@v5@@ ; __int16 @@v6@@ ; __int16 @@v7@@ ; __int16 @@v8@@ ; __int16 @@v9@@ ; __int16 @@v10@@ ; __int16 @@v11@@ ; __int16 @@v12@@ ; @@v11@@ = @@a2@@ ; @@v4@@ . x = @@a2@@ ; @@v12@@ = @@a3@@ - menuFont -> ascent + Number ; @@v4@@ . y = @@v12@@ ; @@v5@@ = @@a2@@ + Number ; @@v6@@ = @@v12@@ + menuFont -> ascent / Number - Number ; @@v7@@ = @@a2@@ + Number ; @@v8@@ = @@v6@@ + Number ; @@v9@@ = @@a2@@ ; @@v10@@ = @@v12@@ + menuFont -> ascent - Number ; XFillPolygon ( _glutDisplay , @@a1@@ , whiteGC , & @@v4@@ , Number , Number , Number ) ; return XDrawLines ( _glutDisplay , @@a1@@ , blackGC , & @@v4@@ , Number , Number ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "Drawable", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "r64"}, {"n": "v12", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s14"}, {"n": "v11", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s16"}, {"n": "v10", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s18"}, {"n": "v9", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s20"}, {"n": "v8", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s22"}, {"n": "v7", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s24"}, {"n": "v6", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s26"}, {"n": "v5", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s28"}, {"n": "v4", "t": {"T": 6, "n": "XPoint", "l": [{"T": 4, "n": "x", "t": "__int16", "s": 2}, {"T": 4, "n": "y", "t": "__int16", "s": 2}]}, "location": "s32"}]}
{"name": "paintMenuItem", "code": "int __fastcall paintMenuItem ( __int64 @@a1@@ , int @@a2@@ ) { int @@result@@ ; unsigned int @@v3@@ ; Drawable @@v4@@ ; int @@v5@@ ; struct _XGC * @@v6@@ ; @@v4@@ = * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) <= Number ) @@v5@@ = Number ; else @@v5@@ = Number ; if ( @@a1@@ == * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) @@v6@@ = whiteGC ; else @@v6@@ = ( struct _XGC * ) grayGC ; @@v3@@ = @@a2@@ * fontHeight + Number - menuFont -> descent ; XFillRectangle ( _glutDisplay , @@v4@@ , @@v6@@ , Number , @@v3@@ - fontHeight + menuFont -> descent , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) + @@v5@@ , fontHeight ) ; XDrawString ( _glutDisplay , @@v4@@ , blackGC , Number , @@v3@@ , * ( const char * * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; @@result@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( @@result@@ ) @@result@@ = paintSubMenuArrow ( @@v4@@ , * ( _WORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) + Number , @@v3@@ ) ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 1, "n": "Drawable", "s": 8}, "location": "s24"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s28"}, {"n": "v6", "t": {"T": 3, "t": "struct _XGC"}, "location": "s8"}]} {"name": "__glutPaintMenu", "code": "__int64 __fastcall _glutPaintMenu ( __int64 @@a1@@ ) { __int64 @@result@@ ; unsigned int @@v2@@ ; int @@v3@@ ; __int64 @@i@@ ; @@v3@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; @@v2@@ = @@v3@@ * fontHeight + Number - menuFont -> descent ; @@result@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; for ( @@i@@ = @@result@@ ; @@i@@ ; @@i@@ = @@result@@ ) { if ( @@i@@ == * ( _QWORD * ) ( * ( _QWORD * ) ( @@i@@ + Number ) + Number L ) ) { paintMenuItem ( @@i@@ , @@v3@@ ) ; } else { XDrawString ( _glutDisplay , * ( _QWORD * ) ( @@a1@@ + Number ) , blackGC , Number , @@v2@@ , * ( const char * * ) ( @@i@@ + Number ) , * ( _DWORD * ) ( @@i@@ + Number ) ) ; if ( * ( _DWORD * ) ( @@i@@ + Number ) ) paintSubMenuArrow ( * ( _QWORD * ) ( @@a1@@ + Number ) , * ( _WORD * ) ( @@a1@@ + Number ) + Number , @@v2@@ ) ; } -- @@v3@@ ; @@v2@@ -= fontHeight ; @@result@@ = * ( _QWORD * ) ( @@i@@ + Number ) ; } 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"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}