{"name": "count_frame_header", "code": "__int64 __fastcall count_frame_header ( _DWORD * @@a1@@ ) { unsigned int @@v1@@ ; unsigned int @@v3@@ ; int @@v4@@ ; int @@v5@@ ; @@v3@@ = @@a1@@ [ Number ] ; if ( @@v3@@ > Number ) { _BitScanReverse ( & @@v1@@ , @@v3@@ | Number ) ; @@v4@@ = Number * ( ( int ) ( Number - ( @@v1@@ ^ Number ) ) / Number - Number ) ; @@v5@@ = Number ; while ( @@v4@@ > Number ) { @@v4@@ -= Number ; @@v5@@ += Number ; } } else { @@v5@@ = Number ; } if ( @@a1@@ [ Number ] == Number ) { @@v5@@ += Number ; } else if ( @@a1@@ [ Number ] == Number ) { @@v5@@ += Number ; } return Number * ( ( @@a1@@ [ Number ] == Number ) + ( unsigned int ) ( @@a1@@ [ Number ] > Number ) ) + @@v5@@ + Number ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}
{"name": "encode_frame", "code": "__int64 __fastcall encode_frame ( int * @@a1@@ ) { int @@v2@@ ; int @@i@@ ; @@v2@@ = count_frame_header ( @@a1@@ ) ; for ( @@i@@ = Number ; @@i@@ < @@a1@@ [ Number ] ; ++ @@i@@ ) @@v2@@ += encode_residual_ch ( @@a1@@ , @@i@@ ) ; return ( unsigned int ) ( ( ( - @@v2@@ & Number ) + @@v2@@ + Number ) >> Number ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}]}