{"name": "roq_read_packet", "code": "__int64 __fastcall roq_read_packet ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 v3 ; __int64 v4 ; __int64 @@v5@@ [ Number ] ; __int64 @@v6@@ ; unsigned int @@v7@@ ; __int64 @@v8@@ ; __int64 @@v9@@ ; unsigned int @@v10@@ ; unsigned int @@v11@@ ; __int64 @@v12@@ ; unsigned int * @@v13@@ ; int @@v14@@ ; unsigned int @@v15@@ ; @@v13@@ = * ( unsigned int * * ) ( @@a1@@ + Number ) ; @@v12@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; @@v15@@ = Number ; @@v14@@ = Number ; while ( ! @@v14@@ ) { if ( ( unsigned int ) avio_feof ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) return Number L ; @@v15@@ = avio_read ( @@v12@@ , @@v5@@ , Number L ) ; if ( @@v15@@ != Number ) return Number L ; @@v11@@ = LOWORD ( @@v5@@ [ Number ] ) ; @@v10@@ = * ( _DWORD * ) ( ( char * ) @@v5@@ + Number ) ; if ( * ( int * ) ( ( char * ) @@v5@@ + Number ) < Number ) return Number L ; @@v10@@ = ffio_limit ( @@v12@@ , @@v10@@ ) ; if ( @@v11@@ > Number ) { LABEL_49 : av_log ( @@a1@@ , Number L , String , @@v11@@ ) ; return Number L ; } if ( @@v11@@ >= Number ) { if ( @@v13@@ [ Number ] == Number ) { @@v9@@ = avformat_new_stream ( @@a1@@ , Number L ) ; if ( ! @@v9@@ ) return Number L ; avpriv_set_pts_info ( @@v9@@ , Number L , Number L , Number L ) ; @@v13@@ [ Number ] = * ( _DWORD * ) @@v9@@ ; * * ( _DWORD * * ) ( @@v9@@ + Number ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = Number ; if ( @@v11@@ == Number ) { * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = Number ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = Number L ; } else { * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = Number ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = Number L ; } @@v13@@ [ Number ] = * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = Number ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) * * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) * * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) = * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) * * ( _DWORD * ) ( * ( _QWORD * ) ( @@v9@@ + Number ) + Number L ) ; } LABEL_38 : if ( @@v11@@ == Number && ( @@v13@@ [ Number ] & Number ) != Number ) return Number L ; if ( ( unsigned int ) av_new_packet ( @@a2@@ , @@v10@@ + Number ) ) return Number L ; * * ( _QWORD * * ) ( @@a2@@ + Number ) = @@v5@@ [ Number ] ; if ( @@v11@@ == Number ) { * ( _DWORD * ) ( @@a2@@ + Number ) = @@v13@@ [ Number ] ; v4 = * ( ( _QWORD * ) @@v13@@ + Number ) ; * ( ( _QWORD * ) @@v13@@ + Number ) = v4 + Number ; * ( _QWORD * ) ( @@a2@@ + Number ) = v4 ; } else { * ( _DWORD * ) ( @@a2@@ + Number ) = @@v13@@ [ Number ] ; * ( _QWORD * ) ( @@a2@@ + Number ) = @@v13@@ [ Number ] ; @@v13@@ [ Number ] += @@v10@@ / @@v13@@ [ Number ] ; } @@v5@@ [ Number ] = @@v12@@ ; * ( _QWORD * ) ( @@a2@@ + Number ) = avio_seek ( @@v12@@ , Number L , Number L ) ; @@v15@@ = avio_read ( @@v12@@ , * ( _QWORD * ) ( @@a2@@ + Number ) + Number L , @@v10@@ ) ; if ( @@v10@@ != @@v15@@ ) { av_packet_unref ( @@a2@@ ) ; @@v15@@ = Number ; } @@v14@@ = Number ; } else { if ( @@v11@@ == Number ) goto LABEL_38 ; if ( @@v11@@ > Number ) goto LABEL_49 ; if ( @@v11@@ == Number ) { if ( @@v13@@ [ Number ] == Number ) { @@v6@@ = avformat_new_stream ( @@a1@@ , Number L ) ; if ( ! @@v6@@ ) return Number L ; avpriv_set_pts_info ( @@v6@@ , Number L , Number L , * @@v13@@ ) ; @@v13@@ [ Number ] = * ( _DWORD * ) @@v6@@ ; * * ( _DWORD * * ) ( @@v6@@ + Number ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = Number ; if ( ( unsigned int ) avio_read ( @@v12@@ , @@v5@@ , Number L ) != Number ) return Number L ; @@v13@@ [ Number ] = LOWORD ( @@v5@@ [ Number ] ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = @@v13@@ [ Number ] ; @@v13@@ [ Number ] = WORD1 ( @@v5@@ [ Number ] ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) = @@v13@@ [ Number ] ; } else { avio_skip ( @@v12@@ , Number L ) ; } } else { if ( @@v11@@ != Number ) goto LABEL_49 ; if ( ( @@v13@@ [ Number ] & Number ) != Number ) return Number L ; @@v5@@ [ Number ] = @@v12@@ ; @@v8@@ = avio_seek ( @@v12@@ , Number L , Number L ) - Number ; @@v7@@ = @@v10@@ ; avio_skip ( @@v12@@ , @@v10@@ ) ; if ( ( unsigned int ) avio_read ( @@v12@@ , @@v5@@ , Number L ) != Number ) return Number L ; @@v10@@ = * ( _DWORD * ) ( ( char * ) @@v5@@ + Number ) + @@v7@@ + Number ; if ( ( @@v10@@ & Number ) != Number ) return Number L ; avio_seek ( @@v12@@ , @@v8@@ , Number L ) ; @@v15@@ = av_get_packet ( @@v12@@ , @@a2@@ , @@v10@@ ) ; if ( @@v10@@ != @@v15@@ ) return Number L ; * ( _DWORD * ) ( @@a2@@ + Number ) = @@v13@@ [ Number ] ; v3 = * ( ( _QWORD * ) @@v13@@ + Number ) ; * ( ( _QWORD * ) @@v13@@ + Number ) = v3 + Number ; * ( _QWORD * ) ( @@a2@@ + Number ) = v3 ; @@v14@@ = Number ; } } } return @@v15@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v15", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v13", "t": {"T": 3, "t": "unsigned int"}, "location": "s24"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v11", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s36"}, {"n": "v10", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s40"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "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": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s96"}]}