{"name": "create_clusters", "code": "__int64 __fastcall create_clusters ( __int64 @@a1@@ , int @@a2@@ , int @@a3@@ , __int64 @@a4@@ ) { __int64 @@result@@ ; int @@l@@ ; int @@k@@ ; int @@j@@ ; unsigned int @@i@@ ; for ( @@i@@ = Number ; ; @@i@@ += Number ) { @@result@@ = @@i@@ ; if ( ( int ) @@i@@ >= @@a3@@ ) break ; for ( @@j@@ = Number ; @@j@@ < @@a2@@ ; @@j@@ += Number ) { for ( @@k@@ = Number ; @@k@@ <= Number ; ++ @@k@@ ) { for ( @@l@@ = Number ; @@l@@ <= Number ; ++ @@l@@ ) frame_block_to_cell ( ( _BYTE * ) ( Number * ( @@l@@ + Number * @@k@@ ) + @@a4@@ ) , ( _QWORD * ) @@a1@@ , Number * @@k@@ + @@i@@ , Number * @@l@@ + @@j@@ , ( _DWORD * ) ( @@a1@@ + Number ) ) ; } @@a4@@ += Number L ; } } return @@result@@ ; }", "source": [{"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": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "k", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "l", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}
{"name": "frame_block_to_cell", "code": "_BYTE * __fastcall frame_block_to_cell ( _BYTE * @@a1@@ , _QWORD * @@a2@@ , int @@a3@@ , int @@a4@@ , _DWORD * @@a5@@ ) { _BYTE * v5 ; int v6 ; int v7 ; _BYTE * v8 ; int v9 ; char v10 ; _BYTE * result ; _BYTE * @@v13@@ ; int @@v14@@ ; int @@v15@@ ; int @@v16@@ ; int @@j@@ ; int @@i@@ ; @@v16@@ = Number ; @@v15@@ = Number ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { for ( @@j@@ = Number ; @@j@@ <= Number ; ++ @@j@@ ) { v5 = @@a1@@ ++ ; * v5 = * ( _BYTE * ) ( * @@a2@@ + @@a4@@ + * @@a5@@ * ( @@i@@ + @@a3@@ ) + @@j@@ ) ; @@v14@@ = @@a4@@ + @@a5@@ [ Number ] * ( @@i@@ + @@a3@@ ) + @@j@@ ; @@v16@@ += * ( unsigned __int8 * ) ( @@a2@@ [ Number ] + @@v14@@ ) ; @@v15@@ += * ( unsigned __int8 * ) ( @@a2@@ [ Number ] + @@v14@@ ) ; } } v6 = @@v16@@ + Number ; if ( @@v16@@ + Number < Number ) v6 = @@v16@@ + Number ; v7 = v6 >> Number ; v8 = @@a1@@ ; @@v13@@ = @@a1@@ + Number ; * v8 = v7 ; v9 = @@v15@@ + Number ; if ( @@v15@@ + Number < Number ) v9 = @@v15@@ + Number ; v10 = v9 >> Number ; result = @@v13@@ ; * @@v13@@ = v10 ; return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "_BYTE"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "a5", "t": {"T": 3, "t": "_DWORD"}, "location": "r72"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v15", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v13", "t": {"T": 3, "t": "_BYTE"}, "location": "s40"}, {"n": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"name": "generate_new_codebooks", "code": "__int64 __fastcall generate_new_codebooks ( __int64 @@a1@@ , __int64 @@a2@@ ) { _DWORD @@v3@@ [ Number ] ; __int64 @@v4@@ ; __int64 @@v5@@ ; __int64 @@v6@@ ; int @@v7@@ ; _DWORD * @@v8@@ ; int @@j@@ ; int @@i@@ ; @@v8@@ = ( _DWORD * ) ( @@a2@@ + Number ) ; @@v7@@ = * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) / Number ; @@v6@@ = av_malloc ( Number L ) ; @@v5@@ = av_malloc ( ( unsigned int ) ( Number * @@v7@@ ) ) ; @@v4@@ = av_malloc ( ( unsigned int ) ( Number * @@v7@@ ) ) ; create_clusters ( * ( _QWORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) , @@v5@@ ) ; for ( @@i@@ = Number ; @@i@@ < Number * @@v7@@ ; ++ @@i@@ ) { @@v3@@ [ Number ] = Number ; * ( _DWORD * ) ( Number L * @@i@@ + @@v4@@ ) = * ( unsigned __int8 * ) ( @@i@@ + @@v5@@ ) ; } generate_codebook ( @@a1@@ , @@a2@@ , @@v4@@ , @@v7@@ , @@v6@@ , Number , Number ) ; * @@v8@@ = Number ; * ( _QWORD * ) ( @@a2@@ + Number ) = av_malloc ( ( unsigned int ) ( Number * @@v7@@ ) ) ; generate_codebook ( @@a1@@ , @@a2@@ , @@v4@@ , Number * @@v7@@ , @@a1@@ + Number , Number , Number ) ; @@v8@@ [ Number ] = Number ; for ( @@i@@ = Number ; @@i@@ < @@v8@@ [ Number ] ; ++ @@i@@ ) unpack_roq_cell ( @@a1@@ + Number + Number L * @@i@@ , & @@v8@@ [ Number * @@i@@ + Number ] ) ; for ( @@i@@ = Number ; @@i@@ < * @@v8@@ ; ++ @@i@@ ) { for ( @@j@@ = Number ; @@j@@ <= Number ; ++ @@j@@ ) { unpack_roq_cell ( @@v6@@ + Number L * ( Number * @@i@@ + @@j@@ ) , @@v3@@ ) ; index_mb ( ( unsigned __int8 * ) @@v3@@ , ( __int64 ) ( @@v8@@ + Number ) , @@v8@@ [ Number ] , ( _DWORD * ) ( Number * ( Number L * @@i@@ + @@j@@ + Number ) + @@a1@@ + Number ) , Number ) ; } unpack_roq_qcell ( ( __int64 ) ( @@v8@@ + Number ) , Number L * @@i@@ + @@a1@@ + Number , ( __int64 ) & @@v8@@ [ Number * @@i@@ + Number ] ) ; enlarge_roq_mb4 ( ( __int64 ) & @@v8@@ [ Number * @@i@@ + Number ] , & @@v8@@ [ Number * @@i@@ + Number ] ) ; } av_free ( @@v5@@ ) ; av_free ( @@v4@@ ) ; return av_free ( @@v6@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v8", "t": {"T": 3, "t": "_DWORD"}, "location": "s24"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v3", "t": {"T": 2, "n": 4, "s": 4, "t": "_DWORD"}, "location": "s72"}]}