{"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"}]}
{"name": "unpack_roq_cell", "code": "void * __fastcall unpack_roq_cell ( __int64 @@a1@@ , _DWORD * @@a2@@ ) { * @@a2@@ = * ( _DWORD * ) @@a1@@ ; memset ( @@a2@@ + Number , * ( unsigned __int8 * ) ( @@a1@@ + Number ) , sizeof ( _DWORD ) ) ; return memset ( @@a2@@ + Number , * ( unsigned __int8 * ) ( @@a1@@ + Number ) , sizeof ( _DWORD ) ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_DWORD"}, "location": "r64"}]} {"name": "unpack_roq_qcell", "code": "__int64 __fastcall unpack_roq_qcell ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { __int64 @@result@@ ; int @@i@@ ; int @@j@@ ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { for ( @@j@@ = Number ; @@j@@ <= Number ; ++ @@j@@ ) { * ( _BYTE * ) ( @@a3@@ + Number * @@i@@ + offsets_6055 [ @@j@@ ] ) = * ( _BYTE * ) ( Number * ( Number * * ( _DWORD * ) ( @@a2@@ + Number L * @@j@@ ) + @@i@@ ) + @@a1@@ ) ; * ( _BYTE * ) ( @@a3@@ + Number * @@i@@ + offsets_6055 [ @@j@@ ] + Number L ) = * ( _BYTE * ) ( Number * ( Number * * ( _DWORD * ) ( @@a2@@ + Number L * @@j@@ ) + @@i@@ ) + Number L + @@a1@@ ) ; * ( _BYTE * ) ( @@a3@@ + Number * @@i@@ + offsets_6055 [ @@j@@ ] + Number L ) = * ( _BYTE * ) ( Number * ( Number * * ( _DWORD * ) ( @@a2@@ + Number L * @@j@@ ) + @@i@@ ) + Number L + @@a1@@ ) ; @@result@@ = * ( unsigned __int8 * ) ( Number * ( Number * * ( _DWORD * ) ( @@a2@@ + Number L * @@j@@ ) + @@i@@ ) + Number L + @@a1@@ ) ; * ( _BYTE * ) ( @@a3@@ + Number * @@i@@ + offsets_6055 [ @@j@@ ] + Number L ) = @@result@@ ; } } return @@result@@ ; }", "source": [{"n": "a3", "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": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"name": "enlarge_roq_mb4", "code": "_BYTE * __fastcall enlarge_roq_mb4 ( __int64 @@a1@@ , _BYTE * @@a2@@ ) { _BYTE * @@result@@ ; int @@i@@ ; int @@j@@ ; int @@k@@ ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { for ( @@j@@ = Number ; @@j@@ <= Number ; ++ @@j@@ ) { for ( @@k@@ = Number ; @@k@@ <= Number ; ++ @@k@@ ) { @@result@@ = @@a2@@ ++ ; * @@result@@ = * ( _BYTE * ) ( @@k@@ / Number + Number * ( @@j@@ / Number ) + Number * @@i@@ + @@a1@@ ) ; } } } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_BYTE"}, "location": "r64"}, {"n": "result", "t": {"T": 3, "t": "_BYTE"}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "k", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"name": "index_mb", "code": "__int64 __fastcall index_mb ( unsigned __int8 * @@a1@@ , __int64 @@a2@@ , int @@a3@@ , _DWORD * @@a4@@ , int @@a5@@ ) { int @@v9@@ ; int @@v10@@ ; int @@v11@@ ; int @@i@@ ; @@v11@@ = Number ; @@v10@@ = Number ; for ( @@i@@ = Number ; @@i@@ < @@a3@@ ; ++ @@i@@ ) { @@v9@@ = squared_diff_macroblock ( @@a1@@ , ( unsigned __int8 * ) ( Number * @@a5@@ * @@a5@@ * @@i@@ + @@a2@@ ) , @@a5@@ ) ; if ( @@v9@@ < @@v11@@ ) { @@v11@@ = @@v9@@ ; @@v10@@ = @@i@@ ; } } * @@a4@@ = @@v10@@ ; return ( unsigned int ) @@v11@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "_DWORD"}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "unsigned __int8"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "int", "s": 4}, "location": "r72"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v11", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"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": "generate_codebook", "code": "__int64 __fastcall generate_codebook ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , unsigned int @@a4@@ , __int64 @@a5@@ , int @@a6@@ , unsigned int @@a7@@ ) { _DWORD * v7 ; _DWORD * v8 ; __int64 @@v14@@ ; int @@v15@@ ; __int64 @@v16@@ ; _DWORD * @@v17@@ ; int @@j@@ ; int @@k@@ ; int @@i@@ ; @@v15@@ = @@a6@@ * @@a6@@ / Number ; @@v14@@ = av_malloc ( Number * @@a7@@ * @@v15@@ ) ; if ( @@a6@@ == Number ) @@v16@@ = av_malloc ( Number * @@a4@@ * @@v15@@ ) ; else @@v16@@ = * ( _QWORD * ) ( @@a2@@ + Number ) ; ff_init_elbg ( @@a3@@ , ( unsigned int ) ( Number * @@v15@@ ) , @@a4@@ , @@v14@@ , @@a7@@ , Number L , @@v16@@ , @@a1@@ + Number ) ; ff_do_elbg ( @@a3@@ , ( unsigned int ) ( Number * @@v15@@ ) , @@a4@@ , @@v14@@ , @@a7@@ , Number L , @@v16@@ , @@a1@@ + Number ) ; if ( @@a6@@ == Number ) av_free ( @@v16@@ ) ; @@v17@@ = ( _DWORD * ) @@v14@@ ; for ( @@i@@ = Number ; @@i@@ < ( int ) @@a7@@ ; ++ @@i@@ ) { for ( @@j@@ = Number ; @@j@@ < @@v15@@ ; ++ @@j@@ ) { for ( @@k@@ = Number ; @@k@@ <= Number ; ++ @@k@@ ) { v7 = @@v17@@ ++ ; * ( _BYTE * ) ( @@a5@@ + @@k@@ ) = * v7 ; } * ( _BYTE * ) ( @@a5@@ + Number ) = * @@v17@@ ; v8 = @@v17@@ + Number ; @@v17@@ += Number ; * ( _BYTE * ) ( @@a5@@ + Number ) = * v8 ; @@a5@@ += Number L ; } } return av_free ( @@v14@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "int", "s": 4}, "location": "r80"}, {"n": "a7", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s-8"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "k", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v17", "t": {"T": 3, "t": "_DWORD"}, "location": "s32"}, {"n": "v16", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v15", "t": {"T": 1, "n": "int", "s": 4}, "location": "s44"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}]} {"name": "roq_encode_video", "code": "__int64 __fastcall roq_encode_video ( __int64 @@a1@@ ) { __int64 v1 ; double v2 ; __int64 @@v3@@ ; double v4 ; unsigned __int64 v5 ; __int64 result ; __int64 @@v7@@ ; __int64 @@v8@@ ; __int64 @@v9@@ ; _QWORD * @@s@@ ; int @@i@@ ; @@s@@ = * ( _QWORD * * ) ( @@a1@@ + Number ) ; memset ( @@s@@ , Number , Number ) ; create_cel_evals ( @@a1@@ , @@s@@ ) ; generate_new_codebooks ( @@a1@@ , ( __int64 ) @@s@@ ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { motion_search ( @@a1@@ , Number ) ; motion_search ( @@a1@@ , Number ) ; } while ( Number ) { for ( @@i@@ = Number ; @@i@@ < * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) / Number ; ++ @@i@@ ) gather_data_for_cel ( Number L * @@i@@ + * @@s@@ , @@a1@@ , ( __int64 ) @@s@@ ) ; if ( * ( ( int * ) @@s@@ + Number ) <= Number ) break ; v1 = * ( _QWORD * ) ( @@a1@@ + Number ) ; if ( v1 < Number ) { @@v3@@ = * ( _QWORD * ) ( @@a1@@ + Number ) & Number L | ( ( unsigned __int64 ) v1 >> Number ) ; v2 = ( double ) ( int ) @@v3@@ + ( double ) ( int ) @@v3@@ ; } else { v2 = ( double ) ( int ) v1 ; } v4 = v2 * Number ; if ( v4 >= Number ) v5 = ( unsigned int ) ( int ) ( v4 - Number ) ^ Number ; else v5 = ( unsigned int ) ( int ) v4 ; * ( _QWORD * ) ( @@a1@@ + Number ) = v5 ; } remap_codebooks ( @@a1@@ , ( __int64 ) @@s@@ ) ; write_codebooks ( @@a1@@ , ( __int64 ) @@s@@ ) ; reconstruct_and_encode_image ( @@a1@@ , ( __int64 ) @@s@@ , * ( unsigned int * ) ( @@a1@@ + Number ) , * ( unsigned int * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) / Number ) ; * ( _QWORD * ) ( * ( _QWORD * ) @@a1@@ + Number L ) = * ( _QWORD * ) ( @@a1@@ + Number ) ; @@v9@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@v9@@ ; @@v8@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@v8@@ ; @@v7@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@v7@@ ; av_free ( * @@s@@ ) ; av_free ( @@s@@ [ Number ] ) ; result = @@a1@@ ; ++ * ( _DWORD * ) ( @@a1@@ + Number ) ; return result ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "s", "t": {"T": 3, "t": "_QWORD"}, "location": "s24"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}]}