{"name": "init_report", "code": "__int64 __fastcall init_report ( _BYTE * @@a1@@ ) { __int64 result ; const char * v2 ; char * @@v3@@ ; int * v4 ; char * v5 ; _BYTE * @@v6@@ ; __int64 @@v7@@ [ Number ] ; char * @@endptr@@ ; char * @@filename@@ [ Number ] ; time_t @@timer@@ ; char * @@nptr@@ ; char * @@s1@@ ; unsigned int @@v13@@ ; signed int @@v14@@ ; struct tm * @@v15@@ ; int @@v16@@ ; char * @@v17@@ ; @@v6@@ = @@a1@@ ; @@v17@@ = Number L ; @@v16@@ = Number ; if ( report_file ) return Number L ; time ( & @@timer@@ ) ; @@v15@@ = localtime ( & @@timer@@ ) ; while ( @@v6@@ && * @@v6@@ ) { @@v14@@ = av_opt_get_key_value ( & @@v6@@ , String , String , Number L , & @@s1@@ , & @@nptr@@ ) ; if ( @@v14@@ < Number ) { if ( @@v16@@ ) { @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; v2 = ( const char * ) av_make_error_string ( ( __int64 ) @@v7@@ , Number L , @@v14@@ ) ; av_log ( Number L , Number L , String , v2 ) ; } break ; } if ( * @@v6@@ ) ++ @@v6@@ ; ++ @@v16@@ ; if ( ! strcmp ( @@s1@@ , String ) ) { av_free ( @@v17@@ ) ; @@v17@@ = @@nptr@@ ; @@nptr@@ = Number L ; } else if ( ! strcmp ( @@s1@@ , String ) ) { report_file_level = strtol ( @@nptr@@ , & @@endptr@@ , Number ) ; if ( * @@endptr@@ ) { av_log ( Number L , Number L , String ) ; exit_program ( Number ) ; } } else { av_log ( Number L , Number L , String , @@s1@@ ) ; } av_free ( @@nptr@@ ) ; av_free ( @@s1@@ ) ; } av_bprint_init ( @@filename@@ , Number L , Number L ) ; @@v3@@ = ( char * ) av_x_if_null ( ( __int64 ) @@v17@@ , ( __int64 ) String ) ; expand_filename_template ( ( __int64 ) @@filename@@ , @@v3@@ , ( unsigned int * ) @@v15@@ ) ; av_free ( @@v17@@ ) ; if ( av_bprint_is_complete ( ( __int64 ) @@filename@@ ) ) { report_file = fopen64 ( @@filename@@ [ Number ] , String ) ; if ( report_file ) { av_log_set_callback ( log_callback_report ) ; av_log ( Number L , Number L , String , ( const char * ) & program_name , ( unsigned int ) ( @@v15@@ -> tm_year + Number ) , ( unsigned int ) ( @@v15@@ -> tm_mon + Number ) , ( unsigned int ) @@v15@@ -> tm_mday , ( unsigned int ) @@v15@@ -> tm_hour , ( unsigned int ) @@v15@@ -> tm_min , ( unsigned int ) @@v15@@ -> tm_sec , @@filename@@ [ Number ] ) ; av_bprint_finalize ( @@filename@@ , Number L ) ; result = Number L ; } else { @@v13@@ = - * _errno_location ( ) ; v4 = _errno_location ( ) ; v5 = strerror ( * v4 ) ; av_log ( Number L , Number L , String , @@filename@@ [ Number ] , v5 ) ; result = @@v13@@ ; } } else { av_log ( Number L , Number L , String ) ; result = Number L ; } return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_BYTE"}, "location": "r56"}, {"n": "v3", "t": {"T": 3, "t": "char"}, "location": "r64"}, {"n": "filename", "t": {"T": 2, "n": 129, "s": 8, "t": "char *"}, "location": "s1096"}, {"n": "endptr", "t": {"T": 3, "t": "char"}, "location": "s1104"}, {"n": "v7", "t": {"T": 2, "n": 9, "s": 8, "t": "__int64"}, "location": "s1176"}, {"n": "v6", "t": {"T": 3, "t": "_BYTE"}, "location": "s1184"}, {"n": "v17", "t": {"T": 3, "t": "char"}, "location": "s16"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v15", "t": {"T": 3, "t": "struct tm"}, "location": "s32"}, {"n": "v14", "t": {"T": 1, "n": "signed int", "s": 4}, "location": "s36"}, {"n": "v13", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s40"}, {"n": "s1", "t": {"T": 3, "t": "char"}, "location": "s48"}, {"n": "nptr", "t": {"T": 3, "t": "char"}, "location": "s56"}, {"n": "timer", "t": {"T": 1, "n": "time_t", "s": 8}, "location": "s64"}]}
{"name": "av_make_error_string", "code": "__int64 __fastcall av_make_error_string ( __int64 @@a1@@ , __int64 @@a2@@ , unsigned int @@a3@@ ) { av_strerror ( @@a3@@ , @@a1@@ , @@a2@@ ) ; return @@a1@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "av_x_if_null", "code": "__int64 __fastcall av_x_if_null ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; if ( @@a1@@ ) @@result@@ = @@a1@@ ; else @@result@@ = @@a2@@ ; 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": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "av_bprint_is_complete", "code": "_BOOL8 __fastcall av_bprint_is_complete ( __int64 @@a1@@ ) { return * ( _DWORD * ) ( @@a1@@ + Number ) < * ( _DWORD * ) ( @@a1@@ + Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "log_callback_report", "code": "int __fastcall log_callback_report ( __int64 @@a1@@ , unsigned int @@a2@@ , __int64 @@a3@@ , _QWORD * @@a4@@ ) { __int64 v4 ; int @@result@@ ; char @@s@@ [ Number ] ; _QWORD @@v8@@ [ Number ] ; v4 = @@a4@@ [ Number ] ; @@v8@@ [ Number ] = * @@a4@@ ; @@v8@@ [ Number ] = v4 ; @@v8@@ [ Number ] = @@a4@@ [ Number ] ; av_log_default_callback ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; av_log_format_line ( @@a1@@ , @@a2@@ , @@a3@@ , @@v8@@ , @@s@@ , Number L , & print_prefix_14510 ) ; @@result@@ = report_file_level ; if ( ( int ) @@a2@@ <= report_file_level ) { fputs ( @@s@@ , report_file ) ; @@result@@ = fflush ( report_file ) ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "_QWORD"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "s", "t": {"T": 2, "n": 1032, "s": 1, "t": "char"}, "location": "s1064"}, {"n": "v8", "t": {"T": 2, "n": 4, "s": 8, "t": "_QWORD"}, "location": "s32"}]} {"name": "exit_program", "code": "void __fastcall __noreturn exit_program ( unsigned int @@a1@@ ) { if ( program_exit ) program_exit ( @@a1@@ ) ; exit ( @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}]} {"name": "parse_loglevel", "code": "__int64 __fastcall parse_loglevel ( int @@a1@@ , __int64 @@a2@@ , const char * * @@a3@@ ) { int v3 ; __int64 @@result@@ ; char * @@v6@@ ; int @@i@@ ; int v8 ; int v9 ; v8 = locate_option ( @@a1@@ , @@a2@@ , @@a3@@ , String ) ; if ( ! v8 ) v8 = locate_option ( @@a1@@ , @@a2@@ , @@a3@@ , String ) ; if ( v8 && * ( _QWORD * ) ( Number * ( v8 + Number L ) + @@a2@@ ) ) opt_loglevel ( Number L , String , * ( _QWORD * ) ( Number * ( v8 + Number L ) + @@a2@@ ) ) ; v9 = locate_option ( @@a1@@ , @@a2@@ , @@a3@@ , String ) ; @@v6@@ = getenv ( String ) ; if ( @@v6@@ || v9 ) { init_report ( @@v6@@ ) ; if ( report_file ) { fwrite ( String , Number , Number , report_file ) ; for ( @@i@@ = Number ; @@i@@ < @@a1@@ ; ++ @@i@@ ) { dump_argument ( * ( const char * * ) ( Number L * @@i@@ + @@a2@@ ) ) ; if ( @@i@@ >= @@a1@@ - Number ) v3 = Number ; else v3 = Number ; fputc ( v3 , report_file ) ; } fflush ( report_file ) ; } } @@result@@ = locate_option ( @@a1@@ , @@a2@@ , @@a3@@ , String ) ; if ( ( _DWORD ) @@result@@ ) hide_banner = Number ; return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char *"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v6", "t": {"T": 3, "t": "char"}, "location": "s24"}]} {"name": "expand_filename_template", "code": "__int64 __fastcall expand_filename_template ( __int64 @@a1@@ , char * @@a2@@ , unsigned int * @@a3@@ ) { char * v3 ; __int64 result ; char * v5 ; while ( Number ) { v5 = @@a2@@ ++ ; result = ( unsigned int ) * v5 ; if ( ! ( _DWORD ) result ) break ; if ( ( _DWORD ) result == Number ) { v3 = @@a2@@ ++ ; result = ( unsigned int ) * v3 ; if ( ! ( _DWORD ) result ) return result ; if ( ( _DWORD ) result == Number ) { av_bprintf ( @@a1@@ , String , @@a3@@ [ Number ] + Number , @@a3@@ [ Number ] + Number , @@a3@@ [ Number ] , @@a3@@ [ Number ] , @@a3@@ [ Number ] , * @@a3@@ ) ; } else if ( ( int ) result <= Number ) { if ( ( _DWORD ) result == Number ) { av_bprint_chars ( @@a1@@ , Number L , Number L ) ; } else if ( ( _DWORD ) result == Number ) { av_bprintf ( @@a1@@ , String , ( const char * ) & program_name ) ; } } } else { av_bprint_chars ( @@a1@@ , ( unsigned int ) ( char ) result , Number L ) ; } } return result ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "unsigned int"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "char"}, "location": "r64"}]}