{"name": "swap_channel_layouts_on_filter", "code": "__int64 __fastcall swap_channel_layouts_on_filter ( __int64 @@a1@@ ) { __int64 @@result@@ ; __int64 @@v2@@ ; __int64 @@v3@@ ; int @@v4@@ ; int @@v5@@ ; int @@v6@@ ; __int64 @@v7@@ ; __int64 @@v8@@ ; int v9 ; signed int v10 ; __int64 v11 ; unsigned __int64 v12 ; __int64 v13 ; unsigned __int64 v14 ; int @@v15@@ ; signed int @@v16@@ ; int @@v17@@ ; unsigned int @@l@@ ; int @@k@@ ; unsigned int i ; unsigned int j ; __int64 @@v22@@ ; @@v22@@ = Number L ; for ( i = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) > i ; ++ i ) { @@v22@@ = * ( _QWORD * ) ( Number L * ( int ) i + * ( _QWORD * ) ( @@a1@@ + Number ) ) ; if ( * ( _DWORD * ) ( @@v22@@ + Number ) == Number && * ( _DWORD * ) ( * ( _QWORD * ) ( @@v22@@ + Number ) + Number L ) == Number ) break ; } @@result@@ = i ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) != i ) { for ( j = Number ; ; ++ j ) { @@result@@ = j ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) <= j ) break ; @@v8@@ = * ( _QWORD * ) ( Number L * ( int ) j + * ( _QWORD * ) ( @@a1@@ + Number ) ) ; @@v17@@ = Number ; @@v16@@ = Number ; @@v15@@ = Number ; if ( * ( _DWORD * ) ( @@v8@@ + Number ) == Number && * ( int * ) ( * ( _QWORD * ) ( @@v8@@ + Number ) + Number L ) > Number ) { for ( @@k@@ = Number ; @@k@@ < * ( _DWORD * ) ( * ( _QWORD * ) ( @@v8@@ + Number ) + Number L ) ; ++ @@k@@ ) { v13 = * * * ( _QWORD * * * ) ( @@v22@@ + Number ) ; v11 = * ( _QWORD * ) ( Number L * @@k@@ + * * ( _QWORD * * ) ( @@v8@@ + Number ) ) ; @@v6@@ = av_get_channel_layout_nb_channels ( v13 ) ; @@v5@@ = av_get_channel_layout_nb_channels ( v11 ) - @@v6@@ ; v9 = Number ; for ( @@l@@ = Number ; @@l@@ <= Number ; ++ @@l@@ ) { @@v3@@ = * ( ( _QWORD * ) & ch_subst + Number * ( int ) @@l@@ ) ; @@v2@@ = qword_2728 [ Number * ( int ) @@l@@ ] ; if ( ( @@v3@@ & v13 ) != Number && ( @@v3@@ & v11 ) == Number && ( @@v2@@ & v11 ) != Number && ( @@v2@@ & v13 ) == Number ) { v13 &= ~ @@v3@@ ; v11 &= ~ @@v2@@ ; v9 += Number * av_get_channel_layout_nb_channels ( @@v2@@ ) - Number ; } } if ( ( v13 & Number ) != Number && ( v11 & Number ) != Number ) v9 += Number ; v14 = v13 & Number ; v12 = v11 & Number ; @@v4@@ = av_get_channel_layout_nb_channels ( v12 & v14 ) ; v10 = Number * @@v4@@ - Number * av_get_channel_layout_nb_channels ( v12 & ~ v14 ) + v9 ; if ( v10 > @@v16@@ || @@v5@@ < @@v15@@ && v10 == @@v16@@ ) { @@v16@@ = v10 ; @@v17@@ = @@k@@ ; @@v15@@ = @@v5@@ ; } } if ( @@v17@@ < Number ) { av_log ( Number L , Number L , String , String , String , Number L ) ; abort ( ) ; } @@v7@@ = * ( _QWORD * ) ( Number L * @@v17@@ + * * ( _QWORD * * ) ( @@v8@@ + Number ) ) ; * ( _QWORD * ) ( Number L * @@v17@@ + * * ( _QWORD * * ) ( @@v8@@ + Number ) ) = * * * ( _QWORD * * * ) ( @@v8@@ + Number ) ; * * * ( _QWORD * * * ) ( @@v8@@ + Number ) = @@v7@@ ; } } } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s112"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s120"}, {"n": "v22", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "k", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "l", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s28"}, {"n": "v17", "t": {"T": 1, "n": "int", "s": 4}, "location": "s32"}, {"n": "v16", "t": {"T": 1, "n": "signed int", "s": 4}, "location": "s36"}, {"n": "v15", "t": {"T": 1, "n": "int", "s": 4}, "location": "s40"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s72"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s80"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s84"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s92"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s96"}]}
{"name": "swap_channel_layouts", "code": "__int64 __fastcall swap_channel_layouts ( __int64 @@a1@@ ) { __int64 @@result@@ ; unsigned int @@i@@ ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { @@result@@ = @@i@@ ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) <= @@i@@ ) break ; swap_channel_layouts_on_filter ( * ( _QWORD * ) ( Number L * ( int ) @@i@@ + * ( _QWORD * ) ( @@a1@@ + Number ) ) ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}]}