{"name": "calc_optimal_rice_params", "code": "__int64 __fastcall calc_optimal_rice_params ( _DWORD * @@a1@@ , int @@a2@@ , __int64 @@a3@@ , int @@a4@@ , int @@a5@@ ) { int @@v8@@ ; unsigned int @@v9@@ ; int @@v10@@ ; int @@i@@ ; @@v9@@ = Number * ( Number << @@a2@@ ) ; @@v10@@ = ( @@a4@@ >> @@a2@@ ) - @@a5@@ ; for ( @@i@@ = Number ; @@i@@ < Number << @@a2@@ ; ++ @@i@@ ) { @@v8@@ = find_optimal_param ( * ( _DWORD * ) ( Number L * @@i@@ + @@a3@@ ) , @@v10@@ ) ; @@a1@@ [ @@i@@ + Number ] = @@v8@@ ; @@v9@@ += @@v10@@ * ( @@v8@@ + Number ) + ( ( unsigned int ) ( * ( _DWORD * ) ( Number L * @@i@@ + @@a3@@ ) - ( @@v10@@ >> Number ) ) >> @@v8@@ ) ; @@v10@@ = @@a4@@ >> @@a2@@ ; } * @@a1@@ = @@a2@@ ; return @@v9@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "int", "s": 4}, "location": "r72"}, {"n": "v9", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}
{"name": "find_optimal_param", "code": "__int64 __fastcall find_optimal_param ( unsigned int @@a1@@ , int @@a2@@ ) { __int64 result ; unsigned int v3 ; int @@v4@@ ; unsigned int @@v5@@ ; if ( @@a1@@ <= @@a2@@ >> Number ) return Number L ; @@v5@@ = @@a1@@ - ( @@a2@@ >> Number ) ; if ( @@a2@@ > Number ) v3 = ( @@v5@@ / @@a2@@ ) | Number ; else v3 = ( ( * ( ( unsigned int * ) & ff_inverse + @@a2@@ ) * ( unsigned __int64 ) @@v5@@ ) >> Number ) | Number ; _BitScanReverse ( & v3 , v3 ) ; @@v4@@ = Number - ( v3 ^ Number ) ; result = Number L ; if ( @@v4@@ <= Number ) result = ( unsigned int ) @@v4@@ ; return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "calc_rice_params", "code": "__int64 __fastcall calc_rice_params ( _QWORD * @@a1@@ , int @@a2@@ , int @@a3@@ , __int64 @@a4@@ , int @@a5@@ , int @@a6@@ ) { __int64 @@v6@@ ; int @@v7@@ ; char @@v13@@ [ Number ] ; __int64 @@v14@@ ; _QWORD @@v15@@ [ Number ] ; int @@v16@@ ; int @@i@@ ; @@v14@@ = av_malloc ( Number L * @@a5@@ ) ; for ( @@i@@ = Number ; @@i@@ < @@a5@@ ; ++ @@i@@ ) { @@v6@@ = Number L * * ( int * ) ( Number L * @@i@@ + @@a4@@ ) ; * ( _DWORD * ) ( Number L * @@i@@ + @@v14@@ ) = HIDWORD ( @@v6@@ ) ^ @@v6@@ ; } calc_sums ( @@a2@@ , @@a3@@ , @@v14@@ , @@a5@@ , @@a6@@ , ( __int64 ) @@v13@@ ) ; @@v16@@ = @@a2@@ ; * ( ( _DWORD * ) & @@v15@@ [ Number ] + @@a2@@ ) = Number ; for ( @@i@@ = @@a2@@ ; @@i@@ <= @@a3@@ ; ++ @@i@@ ) { @@v7@@ = calc_optimal_rice_params ( @@v15@@ , @@i@@ , ( __int64 ) & @@v13@@ [ Number * ( __int64 ) @@i@@ ] , @@a5@@ , @@a6@@ ) ; * ( ( _DWORD * ) & @@v15@@ [ Number ] + @@i@@ ) = @@v7@@ ; if ( * ( ( _DWORD * ) & @@v15@@ [ Number ] + @@i@@ ) <= * ( ( _DWORD * ) & @@v15@@ [ Number ] + @@v16@@ ) ) { @@v16@@ = @@i@@ ; * @@a1@@ = @@v15@@ [ Number ] ; * ( _QWORD * ) ( ( char * ) @@a1@@ + Number ) = * ( _QWORD * ) ( ( char * ) & @@v15@@ [ Number ] + Number ) ; qmemcpy ( ( void * ) ( ( unsigned __int64 ) ( @@a1@@ + Number ) & Number ) , ( const void * ) ( ( char * ) @@v15@@ - ( ( char * ) @@a1@@ - ( ( unsigned __int64 ) ( @@a1@@ + Number ) & Number ) ) ) , Number L * ( ( ( ( _DWORD ) @@a1@@ - ( ( ( _DWORD ) @@a1@@ + Number ) & Number ) + Number ) & Number ) >> Number ) ) ; } } av_freep ( & @@v14@@ ) ; return * ( ( unsigned int * ) & @@v15@@ [ Number ] + @@v16@@ ) ; }", "source": [{"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r1280"}, {"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "int", "s": 4}, "location": "r72"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "a6", "t": {"T": 1, "n": "int", "s": 4}, "location": "r80"}, {"n": "v13", "t": {"T": 2, "n": 9224, "s": 1, "t": "char"}, "location": "s10328"}, {"n": "v15", "t": {"T": 2, "n": 135, "s": 8, "t": "_QWORD"}, "location": "s1096"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s1104"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}]}