{"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"}]}
{"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": "calc_sums", "code": "__int64 __fastcall calc_sums ( int @@a1@@ , int @@a2@@ , __int64 @@a3@@ , int @@a4@@ , int @@a5@@ , __int64 @@a6@@ ) { _DWORD * v6 ; __int64 result ; int @@v8@@ ; unsigned __int64 @@v9@@ ; _DWORD * @@v10@@ ; int @@k@@ ; int i ; unsigned int j ; @@v10@@ = ( _DWORD * ) ( Number L * @@a5@@ + @@a3@@ ) ; @@v9@@ = Number L * ( @@a4@@ >> @@a2@@ ) + @@a3@@ ; for ( i = Number ; i < Number << @@a2@@ ; ++ i ) { @@v8@@ = Number ; while ( ( unsigned __int64 ) @@v10@@ < @@v9@@ ) { v6 = @@v10@@ ++ ; @@v8@@ += * v6 ; } * ( _DWORD * ) ( ( ( __int64 ) @@a2@@ << Number ) + @@a6@@ + Number L * i ) = @@v8@@ ; @@v9@@ += Number L * ( @@a4@@ >> @@a2@@ ) ; } for ( j = @@a2@@ - Number ; ; -- j ) { result = j ; if ( ( int ) j < @@a1@@ ) break ; for ( @@k@@ = Number ; @@k@@ < Number << j ; ++ @@k@@ ) * ( _DWORD * ) ( ( ( __int64 ) ( int ) j << Number ) + @@a6@@ + Number L * @@k@@ ) = * ( _DWORD * ) ( @@a6@@ + ( ( ( int ) j + Number L ) << Number ) + Number L * ( Number * @@k@@ + Number ) ) + * ( _DWORD * ) ( @@a6@@ + ( ( ( int ) j + Number L ) << Number ) + Number L * @@k@@ ) ; } return result ; }", "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": 1, "n": "int", "s": 4}, "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": "a6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v10", "t": {"T": 3, "t": "_DWORD"}, "location": "s16"}, {"n": "v9", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s24"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "k", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"name": "find_subframe_rice_params", "code": "__int64 __fastcall find_subframe_rice_params ( int * @@a1@@ , __int64 @@a2@@ , int @@a3@@ ) { int @@v5@@ ; int @@v6@@ ; int @@v7@@ ; @@v6@@ = get_max_p_order ( @@a1@@ [ Number ] , @@a1@@ [ Number ] , @@a3@@ ) ; @@v5@@ = get_max_p_order ( @@a1@@ [ Number ] , @@a1@@ [ Number ] , @@a3@@ ) ; @@v7@@ = @@a3@@ * * ( _DWORD * ) ( @@a2@@ + Number ) + Number ; if ( * ( _DWORD * ) @@a2@@ == Number ) @@v7@@ += @@a3@@ * @@a1@@ [ Number ] + Number ; return ( unsigned int ) calc_rice_params ( ( _QWORD * ) ( @@a2@@ + Number ) , @@v6@@ , @@v5@@ , @@a2@@ + Number , @@a1@@ [ Number ] , @@a3@@ ) + @@v7@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}]}