{"name": "cdxl_read_packet", "code": "__int64 __fastcall cdxl_read_packet ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@v3@@ ; int @@v4@@ ; __int64 @@v5@@ ; __int64 @@v6@@ ; unsigned int @@v7@@ ; unsigned __int16 @@v8@@ ; unsigned __int16 @@v9@@ ; unsigned __int16 @@v10@@ ; unsigned __int16 @@v11@@ ; unsigned int @@v12@@ ; __int64 @@v13@@ ; __int64 @@v14@@ ; __int64 @@v15@@ ; int @@v16@@ ; int @@v17@@ ; @@v15@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; @@v14@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; if ( ( unsigned int ) avio_feof ( @@v14@@ ) ) return Number L ; @@v13@@ = avio_seek ( @@v14@@ , Number L , Number L ) ; if ( ! * ( _DWORD * ) ( @@v15@@ + Number ) && ( unsigned int ) avio_read ( @@v14@@ , @@v15@@ + Number , Number L ) != Number ) return Number L ; if ( * ( _BYTE * ) ( @@v15@@ + Number ) != Number ) { av_log ( @@a1@@ , Number L , String ) ; return Number L ; } @@v12@@ = ( ( ( unsigned __int16 ) ( ( unsigned __int16 ) * ( _DWORD * ) ( @@v15@@ + Number ) << Number ) | ( unsigned __int8 ) BYTE1 ( * ( _DWORD * ) ( @@v15@@ + Number ) ) ) << Number ) | HIBYTE ( * ( _DWORD * ) ( @@v15@@ + Number ) ) | ( unsigned __int16 ) ( HIWORD ( * ( _DWORD * ) ( @@v15@@ + Number ) ) << Number ) ; @@v11@@ = HIBYTE ( * ( unsigned __int16 * ) ( @@v15@@ + Number ) ) | ( * ( _WORD * ) ( @@v15@@ + Number ) << Number ) ; @@v10@@ = HIBYTE ( * ( unsigned __int16 * ) ( @@v15@@ + Number ) ) | ( * ( _WORD * ) ( @@v15@@ + Number ) << Number ) ; @@v9@@ = HIBYTE ( * ( unsigned __int16 * ) ( @@v15@@ + Number ) ) | ( * ( _WORD * ) ( @@v15@@ + Number ) << Number ) ; @@v8@@ = HIBYTE ( * ( unsigned __int16 * ) ( @@v15@@ + Number ) ) | ( * ( _WORD * ) ( @@v15@@ + Number ) << Number ) ; if ( @@v10@@ * ( __int64 ) ( int ) ( ( @@v11@@ + Number ) & Number ) * ( unsigned __int64 ) * ( unsigned __int8 * ) ( @@v15@@ + Number ) >= Number ) return Number L ; if ( ( * ( _BYTE * ) ( @@v15@@ + Number ) & Number ) == Number ) @@v17@@ = @@v10@@ * @@v11@@ * * ( unsigned __int8 * ) ( @@v15@@ + Number ) / Number ; else @@v17@@ = ( int ) ( @@v10@@ * ( ( @@v11@@ + Number ) & Number ) * * ( unsigned __int8 * ) ( @@v15@@ + Number ) ) / Number ; @@v7@@ = @@v9@@ + @@v17@@ ; if ( @@v9@@ > Number ) return Number L ; if ( @@v12@@ < @@v8@@ + ( unsigned __int64 ) @@v7@@ + Number ) return Number L ; if ( * ( _DWORD * ) ( @@v15@@ + Number ) && * ( unsigned __int16 * ) ( @@v15@@ + Number ) << Number ) { if ( * ( _DWORD * ) ( @@v15@@ + Number ) == Number ) { @@v6@@ = avformat_new_stream ( @@a1@@ , Number L ) ; if ( ! @@v6@@ ) return Number L ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = Number ; if ( ( * ( _BYTE * ) ( @@v15@@ + Number ) & Number ) != Number ) { * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = Number ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = Number L ; } else { * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = Number ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = Number L ; } * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = * ( _DWORD * ) ( @@v15@@ + Number ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = Number L ; * ( _DWORD * ) ( @@v15@@ + Number ) = * ( _DWORD * ) @@v6@@ ; avpriv_set_pts_info ( @@v6@@ , Number L , Number L , * ( unsigned int * ) ( @@v15@@ + Number ) ) ; } @@v16@@ = av_get_packet ( @@v14@@ , @@a2@@ , @@v8@@ ) ; if ( @@v16@@ < Number ) return ( unsigned int ) @@v16@@ ; * ( _DWORD * ) ( @@a2@@ + Number ) = * ( _DWORD * ) ( @@v15@@ + Number ) ; * ( _QWORD * ) ( @@a2@@ + Number ) = @@v13@@ ; * ( _QWORD * ) ( @@a2@@ + Number ) = @@v8@@ ; * ( _DWORD * ) ( @@v15@@ + Number ) = Number ; } else { if ( * ( _DWORD * ) ( @@v15@@ + Number ) == Number ) { @@v5@@ = avformat_new_stream ( @@a1@@ , Number L ) ; if ( ! @@v5@@ ) return Number L ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) = @@v11@@ ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) = @@v10@@ ; if ( @@v8@@ + @@v7@@ && * ( __int64 * ) ( @@v15@@ + Number ) > Number ) { @@v4@@ = * ( _QWORD * ) ( @@v15@@ + Number ) / ( __int64 ) ( @@v8@@ + @@v7@@ ) ; if ( * ( _QWORD * ) ( @@v15@@ + Number ) ) * ( _QWORD * ) ( @@v5@@ + Number ) = @@v4@@ ; else * ( _QWORD * ) ( @@v5@@ + Number ) = @@v8@@ * ( __int64 ) @@v4@@ ; } * ( _QWORD * ) ( @@v5@@ + Number ) = Number L ; * ( _DWORD * ) ( @@v15@@ + Number ) = * ( _DWORD * ) @@v5@@ ; if ( * ( _QWORD * ) ( @@v15@@ + Number ) ) avpriv_set_pts_info ( @@v5@@ , Number L , * ( unsigned int * ) ( @@v15@@ + Number ) , * ( unsigned int * ) ( @@v15@@ + Number ) ) ; else avpriv_set_pts_info ( @@v5@@ , Number L , Number L , * ( unsigned int * ) ( @@v15@@ + Number ) ) ; } if ( ( int ) av_new_packet ( @@a2@@ , @@v7@@ + Number ) < Number ) return Number L ; memcpy ( * ( void * * ) ( @@a2@@ + Number ) , ( const void * ) ( @@v15@@ + Number ) , Number ) ; @@v16@@ = avio_read ( @@v14@@ , * ( _QWORD * ) ( @@a2@@ + Number ) + Number L , @@v7@@ ) ; if ( @@v16@@ < Number ) { av_packet_unref ( @@a2@@ ) ; return ( unsigned int ) @@v16@@ ; } av_shrink_packet ( @@a2@@ , ( unsigned int ) ( @@v16@@ + Number ) ) ; * ( _DWORD * ) ( @@a2@@ + Number ) = * ( _DWORD * ) ( @@v15@@ + Number ) ; * ( _DWORD * ) ( @@a2@@ + Number ) |= Number ; * ( _QWORD * ) ( @@a2@@ + Number ) = @@v13@@ ; if ( * ( _QWORD * ) ( @@v15@@ + Number ) ) { @@v3@@ = Number L ; } else if ( @@v8@@ ) { @@v3@@ = @@v8@@ ; } else { @@v3@@ = Number L ; } * ( _QWORD * ) ( @@a2@@ + Number ) = @@v3@@ ; * ( _DWORD * ) ( @@v15@@ + Number ) = @@v8@@ ; } if ( ! * ( _DWORD * ) ( @@v15@@ + Number ) ) avio_skip ( @@v14@@ , @@v12@@ - @@v8@@ - @@v7@@ - Number ) ; return ( unsigned int ) @@v16@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v17", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v15", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v12", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s48"}, {"n": "v11", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s50"}, {"n": "v10", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s52"}, {"n": "v9", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s54"}, {"n": "v8", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s56"}, {"n": "v7", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s60"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s72"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s80"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s84"}]}