{"name": "ff_nelly_get_sample_bits", "code": "__int64 __fastcall ff_nelly_get_sample_bits ( __int64 @@a1@@ , __int64 @@a2@@ ) { int v2 ; __int16 v3 ; __int16 v4 ; __int16 v5 ; __int64 result ; int @@v7@@ ; int @@v8@@ ; __int16 @@v9@@ [ Number ] ; unsigned int @@v10@@ ; unsigned int @@v11@@ ; unsigned int @@v12@@ ; __int16 @@v13@@ ; int @@v14@@ ; int @@v15@@ ; int @@v16@@ ; int @@k@@ ; int @@v18@@ ; __int16 @@v19@@ ; unsigned int @@v20@@ ; unsigned int @@v21@@ ; unsigned int @@v22@@ ; int @@v23@@ ; int @@j@@ ; int @@i@@ ; @@v23@@ = Number ; @@v8@@ = Number ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { if ( ( float ) @@v8@@ <= * ( float * ) ( Number L * @@i@@ + @@a1@@ ) ) v2 = ( int ) * ( float * ) ( Number L * @@i@@ + @@a1@@ ) ; else v2 = ( int ) ( float ) @@v8@@ ; @@v8@@ = v2 ; } @@v19@@ = Number ; v3 = headroom ( & @@v8@@ ) ; @@v19@@ += v3 ; @@v7@@ = Number ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { v4 = signed_shift ( ( int ) * ( float * ) ( Number L * @@i@@ + @@a1@@ ) , @@v19@@ ) ; @@v9@@ [ @@i@@ ] = v4 ; @@v9@@ [ @@i@@ ] = ( Number * @@v9@@ [ @@i@@ ] ) >> Number ; @@v7@@ += @@v9@@ [ @@i@@ ] ; } @@v19@@ += Number ; @@v13@@ = @@v19@@ ; @@v7@@ -= Number << @@v19@@ ; v5 = headroom ( & @@v7@@ ) ; @@v19@@ += v5 ; @@v15@@ = ( Number * ( @@v7@@ >> Number ) ) >> Number ; @@v19@@ = @@v13@@ - @@v19@@ + Number ; @@v15@@ = signed_shift ( @@v15@@ , @@v19@@ ) ; result = sum_bits ( ( __int64 ) @@v9@@ , @@v13@@ , @@v15@@ ) ; @@v23@@ = result ; if ( ( _DWORD ) result != Number ) { @@v14@@ = @@v23@@ - Number ; @@v19@@ = Number ; while ( @@v14@@ >= Number && @@v14@@ <= Number ) { @@v14@@ *= Number ; ++ @@v19@@ ; } @@v14@@ = ( Number * @@v14@@ ) >> Number ; @@v19@@ = @@v13@@ - @@v19@@ - Number ; @@v14@@ = signed_shift ( @@v14@@ , @@v19@@ ) ; for ( @@j@@ = Number ; @@j@@ <= Number ; ++ @@j@@ ) { @@v18@@ = @@v15@@ ; @@v15@@ += @@v14@@ ; @@v22@@ = @@v23@@ ; @@v23@@ = sum_bits ( ( __int64 ) @@v9@@ , @@v13@@ , @@v15@@ ) ; if ( ( int ) ( ( @@v23@@ - Number ) * ( @@v22@@ - Number ) ) <= Number ) break ; } if ( @@v23@@ <= Number ) { @@v16@@ = @@v18@@ ; @@v20@@ = @@v22@@ ; @@v21@@ = @@v23@@ ; } else { @@v16@@ = @@v15@@ ; @@v15@@ = @@v18@@ ; @@v20@@ = @@v23@@ ; @@v21@@ = @@v22@@ ; } while ( @@v23@@ != Number && @@j@@ <= Number ) { @@v14@@ = ( @@v16@@ + @@v15@@ ) >> Number ; @@v23@@ = sum_bits ( ( __int64 ) @@v9@@ , @@v13@@ , @@v14@@ ) ; if ( @@v23@@ <= Number ) { @@v15@@ = @@v14@@ ; @@v21@@ = @@v23@@ ; } else { @@v16@@ = @@v14@@ ; @@v20@@ = @@v23@@ ; } ++ @@j@@ ; } if ( ( int ) abs32 ( @@v20@@ - Number ) < ( int ) abs32 ( @@v21@@ - Number ) ) { @@v15@@ = @@v16@@ ; result = @@v20@@ ; @@v23@@ = @@v20@@ ; } else { result = @@v21@@ ; @@v23@@ = @@v21@@ ; } } for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { @@k@@ = @@v9@@ [ @@i@@ ] - @@v15@@ ; @@k@@ = ( ( @@k@@ >> ( @@v13@@ - Number ) ) + Number ) >> Number ; @@v12@@ = @@k@@ ; @@v11@@ = Number ; @@v10@@ = Number ; if ( @@k@@ >= Number ) { if ( ( int ) @@v12@@ <= ( int ) @@v10@@ ) result = @@v12@@ ; else result = @@v10@@ ; } else { result = @@v11@@ ; } * ( _DWORD * ) ( @@a2@@ + Number L * @@i@@ ) = result ; } if ( @@v23@@ > Number ) { @@i@@ = Number ; for ( @@k@@ = Number ; @@k@@ <= Number ; @@k@@ += * ( _DWORD * ) ( Number L * @@i@@ ++ + @@a2@@ ) ) ; result = Number L * @@i@@ - Number + @@a2@@ ; * ( _DWORD * ) result -= @@k@@ - Number ; while ( @@i@@ <= Number ) { result = Number L * @@i@@ + @@a2@@ ; * ( _DWORD * ) result = Number ; ++ @@i@@ ; } } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v23", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v22", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}, {"n": "v21", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v20", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s24"}, {"n": "v19", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s26"}, {"n": "v18", "t": {"T": 1, "n": "int", "s": 4}, "location": "s32"}, {"n": "v9", "t": {"T": 2, "n": 128, "s": 2, "t": "__int16"}, "location": "s320"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s324"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s328"}, {"n": "k", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s40"}, {"n": "v15", "t": {"T": 1, "n": "int", "s": 4}, "location": "s44"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s48"}, {"n": "v13", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s50"}, {"n": "v12", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s56"}, {"n": "v11", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s60"}, {"n": "v10", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s64"}, {"n": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}