{"name": "Sys_Print", "code": "__int64 __fastcall Sys_Print ( char * @@a1@@ ) { struct _IO_FILE * @@v1@@ ; __int64 @@v2@@ ; __int64 @@result@@ ; char @@s@@ [ Number ] ; if ( ttycon_on ) tty_Hide ( ) ; if ( ttycon_on && ttycon_color_on ) { Sys_ANSIColorify ( @@a1@@ , @@s@@ , Number ) ; @@v1@@ = stderr ; @@a1@@ = @@s@@ ; fputs ( @@s@@ , stderr ) ; } else { @@v1@@ = stderr ; fputs ( @@a1@@ , stderr ) ; } @@result@@ = ( unsigned int ) ttycon_on ; if ( ttycon_on ) @@result@@ = tty_Show ( @@a1@@ , @@v1@@ , @@v2@@ ) ; return @@result@@ ; }", "source": [{"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "char"}, "location": "r56"}, {"n": "v1", "t": {"T": 3, "t": "struct _IO_FILE"}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "s", "t": {"T": 2, "n": 8192, "s": 1, "t": "char"}, "location": "s8192"}]}
{"name": "tty_Hide", "code": "__int64 tty_Hide ( ) { __int64 @@result@@ ; int @@i@@ ; @@result@@ = ( unsigned int ) ttycon_on ; if ( ttycon_on ) { if ( ttycon_hide ) { @@result@@ = ( unsigned int ) ++ ttycon_hide ; } else { if ( tty_con > Number ) { for ( @@i@@ = Number ; @@i@@ < tty_con ; ++ @@i@@ ) tty_Back ( ) ; } tty_Back ( ) ; @@result@@ = ( unsigned int ) ++ ttycon_hide ; } } return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "tty_Show", "code": "__int64 tty_Show ( ) { __int64 @@result@@ ; int @@i@@ ; @@result@@ = ( unsigned int ) ttycon_on ; if ( ttycon_on ) { @@result@@ = ( unsigned int ) -- ttycon_hide ; if ( ! ttycon_hide ) { write ( Number , & unk_4FC0 , Number ) ; @@result@@ = ( unsigned int ) tty_con ; if ( tty_con ) { for ( @@i@@ = Number ; ; ++ @@i@@ ) { @@result@@ = ( unsigned int ) tty_con ; if ( @@i@@ >= tty_con ) break ; write ( Number , & byte_1C0C [ @@i@@ ] , Number ) ; } } } } return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "Sys_ANSIColorify", "code": "void __fastcall Sys_ANSIColorify ( const char * @@a1@@ , char * @@a2@@ , int @@a3@@ ) { int @@v3@@ ; char @@src@@ [ Number ] ; int @@v6@@ ; char * @@v7@@ ; unsigned int @@i@@ ; int @@v9@@ ; if ( @@a1@@ && @@a2@@ ) { @@v6@@ = strlen ( @@a1@@ ) ; @@v9@@ = Number ; * @@a2@@ = Number ; while ( @@v9@@ < @@v6@@ ) { if ( @@a1@@ [ @@v9@@ ] == Number ) { Com_sprintf ( @@src@@ , Number L , String , Number L ) ; strncat ( @@a2@@ , @@src@@ , @@a3@@ - Number ) ; ++ @@v9@@ ; } else if ( @@a1@@ [ @@v9@@ ] == Number ) { if ( ++ @@v9@@ < @@v6@@ ) { @@v7@@ = Number L ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { if ( @@a1@@ [ @@v9@@ ] == * ( ( _BYTE * ) & tty_colorTable + Number * ( int ) @@i@@ ) ) { @@v7@@ = ( & off_1B28 ) [ Number * ( int ) @@i@@ ] ; break ; } } if ( @@v7@@ ) { Com_sprintf ( @@src@@ , Number L , String , Number L , @@v7@@ ) ; strncat ( @@a2@@ , @@src@@ , @@a3@@ - Number ) ; } ++ @@v9@@ ; } } else { @@v3@@ = @@v9@@ ++ ; Com_sprintf ( @@src@@ , Number L , String , ( unsigned int ) @@a1@@ [ @@v3@@ ] ) ; strncat ( @@a2@@ , @@src@@ , @@a3@@ - Number ) ; } } } }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "char"}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v7", "t": {"T": 3, "t": "char"}, "location": "s16"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "src", "t": {"T": 2, "n": 7, "s": 1, "t": "char"}, "location": "s27"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]} {"name": "Sys_PrintBinVersion", "code": "int __fastcall Sys_PrintBinVersion ( const char * @@a1@@ ) { fprintf ( stdout , String , String ) ; fprintf ( stdout , String , String , String ) ; fprintf ( stdout , String , @@a1@@ ) ; return fprintf ( stdout , String , String ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}]} {"name": "Sys_ParseArgs", "code": "__int64 __fastcall Sys_ParseArgs ( int @@a1@@ , __int64 @@a2@@ ) { char * @@v2@@ ; if ( @@a1@@ != Number || strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) && strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) return Number L ; @@v2@@ = Sys_BinName ( * ( _QWORD * ) @@a2@@ ) ; Sys_PrintBinVersion ( @@v2@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v2", "t": {"T": 3, "t": "char"}, "location": "r8"}]}