{"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"}]}
{"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"}]}