{"name": "tv_adjust", "code": "__int64 __fastcall tv_adjust ( __int64 @@a1@@ , __int64 @@a2@@ ) { while ( @@a2@@ > Number ) { @@a2@@ -= Number L ; ++ @@a1@@ ; } while ( @@a2@@ < Number ) { @@a2@@ += Number L ; -- @@a1@@ ; } return @@a1@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]}
{"name": "tv_ceil", "code": "__int64 __fastcall tv_ceil ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@v2@@ ; __int64 @@result@@ ; __int64 @@v4@@ ; @@v4@@ = tv_adjust ( @@a1@@ , @@a2@@ ) ; if ( @@v2@@ ) @@result@@ = ( unsigned int ) ( @@v4@@ + Number ) ; else @@result@@ = @@v4@@ ; return @@result@@ ; }", "source": [{"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}]} {"name": "tv_floor", "code": "__int64 __fastcall tv_floor ( __int64 @@a1@@ , __int64 @@a2@@ ) { return tv_adjust ( @@a1@@ , @@a2@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "tv_add", "code": "__int64 __fastcall tv_add ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { return tv_adjust ( @@a1@@ + @@a3@@ , @@a2@@ + @@a4@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "tv_sub", "code": "__int64 __fastcall tv_sub ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { return tv_adjust ( @@a1@@ - @@a3@@ , @@a2@@ - @@a4@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]}