{"name": "count_leading_zeros", "code": "__int64 __fastcall count_leading_zeros ( unsigned int @@a1@@ ) { return Number - ( unsigned int ) av_log2 ( @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}]}
{"name": "av_log2", "code": "__int64 __fastcall av_log2 ( unsigned int @@a1@@ ) { int @@v1@@ ; unsigned int @@v3@@ ; int @@v4@@ ; @@v3@@ = @@a1@@ ; @@v4@@ = Number ; HIWORD ( @@v1@@ ) = HIWORD ( @@a1@@ ) ; LOWORD ( @@v1@@ ) = Number ; if ( @@v1@@ ) { @@v3@@ = HIWORD ( @@a1@@ ) ; @@v4@@ = Number ; } if ( ( @@v3@@ & Number ) != Number ) { @@v3@@ >>= Number ; @@v4@@ += Number ; } return ( unsigned int ) * ( ( unsigned __int8 * ) & ff_log2_tab + @@v3@@ ) + @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "bastardized_rice_decompress", "code": "__int64 __fastcall bastardized_rice_decompress ( __int64 @@a1@@ , __int64 @@a2@@ , int @@a3@@ , int @@a4@@ , unsigned int @@a5@@ , int @@a6@@ , int @@a7@@ , int @@a8@@ ) { __int64 @@result@@ ; int @@v12@@ ; int @@v13@@ ; int @@v14@@ ; int @@v15@@ ; int @@v16@@ ; int v17 ; int v18 ; int @@v19@@ ; int @@v20@@ ; int v21 ; int v22 ; int @@v23@@ ; unsigned int @@i@@ ; @@v23@@ = Number ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { @@result@@ = @@i@@ ; if ( ( int ) @@i@@ >= @@a3@@ ) break ; v21 = get_unary_0_9 ( @@a1@@ + Number ) ; if ( v21 <= Number ) { v17 = Number - @@a6@@ - count_leading_zeros ( ( @@a5@@ >> Number ) + Number ) ; if ( v17 >= Number ) v18 = @@a6@@ ; else v18 = @@a6@@ + v17 ; if ( v18 != Number ) { @@v15@@ = show_bits ( @@a1@@ + Number , v18 ) ; v21 = ( v21 << v18 ) - v21 ; if ( @@v15@@ <= Number ) { skip_bits ( @@a1@@ + Number , v18 - Number ) ; } else { v21 += @@v15@@ - Number ; skip_bits ( @@a1@@ + Number , v18 ) ; } } } else { @@v19@@ = get_bits ( @@a1@@ + Number , @@a4@@ ) ; if ( @@a4@@ != Number ) @@v19@@ &= Number >> ( Number - @@a4@@ ) ; v21 = @@v19@@ ; } @@v14@@ = @@v23@@ + v21 ; @@v20@@ = ( @@v23@@ + v21 + Number ) / Number ; if ( ( ( ( _BYTE ) @@v23@@ + ( _BYTE ) v21 ) & Number ) != Number ) @@v20@@ = ( @@v23@@ + v21 + Number ) / Number ; * ( _DWORD * ) ( @@a2@@ + Number L * ( int ) @@i@@ ) = @@v20@@ ; @@v23@@ = Number ; @@a5@@ += @@a7@@ * @@v14@@ - ( ( @@a5@@ * @@a7@@ ) >> Number ) ; if ( @@v14@@ > Number ) @@a5@@ = Number ; if ( @@a5@@ <= Number && @@a3@@ > ( int ) ( @@i@@ + Number ) ) { @@v23@@ = Number ; v22 = get_unary_0_9 ( @@a1@@ + Number ) ; if ( v22 <= Number ) { @@v13@@ = count_leading_zeros ( @@a5@@ ) + ( ( @@a5@@ + Number ) >> Number ) - Number ; @@v12@@ = show_bits ( @@a1@@ + Number , @@v13@@ ) ; @@v16@@ = v22 * ( @@a8@@ & ( ( Number << @@v13@@ ) - Number ) ) + @@v12@@ - Number ; if ( @@v12@@ > Number ) { skip_bits ( @@a1@@ + Number , @@v13@@ ) ; } else { @@v16@@ = v22 * ( @@a8@@ & ( ( Number << @@v13@@ ) - Number ) ) ; skip_bits ( @@a1@@ + Number , @@v13@@ - Number ) ; } } else { @@v16@@ = ( unsigned __int16 ) get_bits ( @@a1@@ + Number , Number ) ; } if ( @@v16@@ > Number ) { memset ( ( void * ) ( @@a2@@ + Number * ( ( int ) @@i@@ + Number L ) ) , Number , Number * @@v16@@ ) ; @@i@@ += @@v16@@ ; } if ( @@v16@@ > Number ) @@v23@@ = Number ; @@a5@@ = Number ; } } 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": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r72"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "a6", "t": {"T": 1, "n": "int", "s": 4}, "location": "r80"}, {"n": "a8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-16"}, {"n": "a7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-8"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v23", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v20", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v19", "t": {"T": 1, "n": "int", "s": 4}, "location": "s32"}, {"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": "int", "s": 4}, "location": "s52"}, {"n": "v12", "t": {"T": 1, "n": "int", "s": 4}, "location": "s56"}]}