{"name": "calculate_rank", "code": "__int64 __fastcall calculate_rank ( __int64 @@a1@@ , unsigned __int16 @@a2@@ ) { unsigned __int16 @@v3@@ ; unsigned __int16 @@v4@@ ; unsigned __int16 @@v5@@ ; @@v3@@ = @@a2@@ ; if ( @@a1@@ ) { @@v4@@ = * ( unsigned __int8 * ) ( @@a1@@ + Number ) * * ( unsigned __int16 * ) ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) + Number L ) / Number ; if ( ! @@a2@@ ) @@v3@@ = * ( _WORD * ) ( @@a1@@ + Number ) ; } else { if ( ! @@a2@@ ) return Number ; @@v4@@ = Number ; } if ( Number - @@v3@@ >= @@v4@@ ) @@v5@@ = @@v3@@ + @@v4@@ ; else @@v5@@ = Number ; return @@v5@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s2"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s28"}, {"n": "v4", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s4"}]}
{"name": "rpl_recalculate_ranks", "code": "char * rpl_recalculate_ranks ( ) { char * @@result@@ ; int @@j@@ ; __int64 @@k@@ ; char * @@i@@ ; for ( @@i@@ = ( char * ) & instance_table ; ; @@i@@ += Number ) { @@result@@ = @@i@@ ; if ( @@i@@ >= ( char * ) & instance_table + Number ) break ; if ( @@i@@ [ Number ] ) { for ( @@j@@ = Number ; @@j@@ <= Number ; ++ @@j@@ ) { if ( @@i@@ [ Number * @@j@@ + Number ] ) { for ( @@k@@ = list_head ( * ( _QWORD * ) & @@i@@ [ Number * @@j@@ + Number ] ) ; @@k@@ ; @@k@@ = * ( _QWORD * ) @@k@@ ) { if ( * ( _BYTE * ) ( @@k@@ + Number ) ) { * ( _BYTE * ) ( @@k@@ + Number ) = Number ; rpl_process_parent_event ( @@i@@ , @@k@@ ) ; break ; } } } } } } return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 3, "t": "char"}, "location": "r8"}, {"n": "k", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "i", "t": {"T": 3, "t": "char"}, "location": "s8"}]}