{"name": "synthesize_perf_probe_arg", "code": "signed __int64 __fastcall synthesize_perf_probe_arg ( __int64 * @@a1@@ , char * @@a2@@ , size_t @@a3@@ , __int64 @@a4@@ , __int64 @@a5@@ , __int64 @@a6@@ ) { __int64 v6 ; __int64 v7 ; __int64 v8 ; const char * v9 ; char * v11 ; size_t @@v13@@ ; int @@v14@@ ; __int64 @@v15@@ ; char * @@v16@@ ; @@v15@@ = @@a1@@ [ Number ] ; if ( * @@a1@@ && @@a1@@ [ Number ] ) { @@v14@@ = e_snprintf ( @@a2@@ , @@a3@@ , String , * @@a1@@ , @@a1@@ [ Number ] , @@a6@@ ) ; } else { if ( * @@a1@@ ) v8 = * @@a1@@ ; else v8 = @@a1@@ [ Number ] ; @@v14@@ = e_snprintf ( @@a2@@ , @@a3@@ , String , v8 , @@a5@@ , @@a6@@ ) ; } if ( @@v14@@ > Number ) { @@v16@@ = & @@a2@@ [ @@v14@@ ] ; @@v13@@ = @@a3@@ - @@v14@@ ; while ( @@v15@@ ) { if ( * * ( _BYTE * * ) ( @@v15@@ + Number ) == Number ) { @@v14@@ = e_snprintf ( @@v16@@ , @@v13@@ , String , * ( _QWORD * ) ( @@v15@@ + Number ) , v6 , v7 ) ; } else { if ( * ( _BYTE * ) ( @@v15@@ + Number ) ) v9 = String ; else v9 = String ; @@v14@@ = e_snprintf ( @@v16@@ , @@v13@@ , String , ( __int64 ) v9 , * ( _QWORD * ) ( @@v15@@ + Number ) , v7 ) ; } if ( @@v14@@ <= Number ) goto LABEL_23 ; @@v16@@ += @@v14@@ ; @@v13@@ -= @@v14@@ ; @@v15@@ = * ( _QWORD * ) @@v15@@ ; } if ( ! @@a1@@ [ Number ] ) return @@v16@@ - @@a2@@ ; @@v14@@ = e_snprintf ( @@v16@@ , @@v13@@ , String , @@a1@@ [ Number ] , v6 , v7 ) ; if ( @@v14@@ > Number ) { @@v16@@ += @@v14@@ ; return @@v16@@ - @@a2@@ ; } } LABEL_23 : v11 = strerror ( - @@v14@@ ) ; eprintf ( Number L , String , v11 ) ; return ( unsigned int ) @@v14@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "__int64"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "char"}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v16", "t": {"T": 3, "t": "char"}, "location": "s16"}, {"n": "v15", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v13", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "s56"}]}
{"name": "e_snprintf", "code": "__int64 e_snprintf ( char * @@a1@@ , size_t @@a2@@ , const char * @@a3@@ , __int64 @@a4@@ , __int64 @@a5@@ , __int64 @@a6@@ , ... ) { int @@v7@@ ; gcc_va_list @@arg@@ ; unsigned __int64 @@v9@@ ; __int64 @@v10@@ ; __int64 @@v11@@ ; __int64 @@v12@@ ; va_start ( @@arg@@ , @@a6@@ ) ; @@v10@@ = @@a4@@ ; @@v11@@ = @@a5@@ ; @@v12@@ = @@a6@@ ; @@v9@@ = __readfsqword ( Number ) ; @@arg@@ [ Number ] . gp_offset = Number ; @@v7@@ = vsnprintf ( @@a1@@ , @@a2@@ , @@a3@@ , @@arg@@ ) ; if ( @@v7@@ >= ( int ) @@a2@@ ) @@v7@@ = Number ; return ( unsigned int ) @@v7@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "char"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s136"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s144"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s152"}, {"n": "v9", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s184"}, {"n": "arg", "t": {"T": 2, "n": 1, "s": 24, "t": "__va_list_tag"}, "location": "s208"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s212"}]} {"name": "show_perf_probe_event", "code": "__int64 __fastcall show_perf_probe_event ( __int64 @@a1@@ ) { __int64 v1 ; __int64 @@v3@@ ; __int64 v4 ; int @@i@@ ; int @@v6@@ ; char * @@ptr@@ ; char @@v8@@ [ Number ] ; unsigned __int64 @@v9@@ ; @@v9@@ = __readfsqword ( Number ) ; @@ptr@@ = synthesize_perf_probe_point ( @@a1@@ + Number ) ; if ( ! @@ptr@@ ) return Number L ; @@v6@@ = e_snprintf ( @@v8@@ , Number , String , * ( _QWORD * ) ( @@a1@@ + Number ) , * ( _QWORD * ) @@a1@@ , v1 ) ; if ( @@v6@@ < Number ) return ( unsigned int ) @@v6@@ ; printf ( String , @@v8@@ , @@ptr@@ ) ; if ( * ( int * ) ( @@a1@@ + Number ) > Number ) { printf ( String ) ; for ( @@i@@ = Number ; @@i@@ < * ( _DWORD * ) ( @@a1@@ + Number ) ; ++ @@i@@ ) { @@v6@@ = synthesize_perf_probe_arg ( ( __int64 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@i@@ ) , @@v8@@ , Number , * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@i@@ , @@v3@@ , v4 ) ; if ( @@v6@@ < Number ) break ; printf ( String , @@v8@@ ) ; } } puts ( String ) ; free ( @@ptr@@ ) ; return ( unsigned int ) @@v6@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "v8", "t": {"T": 2, "n": 136, "s": 1, "t": "char"}, "location": "s144"}, {"n": "ptr", "t": {"T": 3, "t": "char"}, "location": "s152"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s156"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s160"}, {"n": "v9", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}