{"name": "zalloc", "code": "void * __fastcall zalloc ( size_t @@a1@@ ) { return calloc ( Number , @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "r56"}]}
{"name": "parse_perf_probe_arg", "code": "__int64 __fastcall parse_perf_probe_arg ( char * @@a1@@ , __int64 @@a2@@ ) { __int64 result ; _QWORD * v3 ; char * v4 ; _QWORD * v5 ; _QWORD * v6 ; char * @@s@@ ; char * @@endptr@@ ; char * @@v9@@ ; void * * @@v10@@ ; unsigned __int64 @@v11@@ ; @@s@@ = @@a1@@ ; @@v11@@ = __readfsqword ( Number ) ; eprintf ( Number L , String , @@a1@@ ) ; @@endptr@@ = strchr ( @@a1@@ , Number ) ; if ( @@endptr@@ ) { * ( _QWORD * ) @@a2@@ = strndup ( @@a1@@ , @@endptr@@ - @@a1@@ ) ; if ( ! * ( _QWORD * ) @@a2@@ ) return Number L ; eprintf ( Number L , String , * ( const char * * ) @@a2@@ ) ; @@s@@ = @@endptr@@ + Number ; } @@endptr@@ = strchr ( @@s@@ , Number ) ; if ( @@endptr@@ ) { * @@endptr@@ = Number ; * ( _QWORD * ) ( @@a2@@ + Number ) = strdup ( @@endptr@@ + Number ) ; if ( ! * ( _QWORD * ) ( @@a2@@ + Number ) ) return Number L ; eprintf ( Number L , String , * ( const char * * ) ( @@a2@@ + Number ) ) ; } @@endptr@@ = strpbrk ( @@s@@ , String ) ; if ( is_c_varname ( @@s@@ ) && @@endptr@@ ) { * ( _QWORD * ) ( @@a2@@ + Number ) = strndup ( @@s@@ , @@endptr@@ - @@s@@ ) ; if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v9@@ = * ( char * * ) ( @@a2@@ + Number ) ; eprintf ( Number L , String , * ( const char * * ) ( @@a2@@ + Number ) ) ; @@v10@@ = ( void * * ) ( @@a2@@ + Number ) ; do { * @@v10@@ = zalloc ( Number ) ; if ( ! * @@v10@@ ) return Number L ; if ( * @@endptr@@ == Number ) { @@s@@ = @@endptr@@ ; v3 = * @@v10@@ ; v3 [ Number ] = strtol ( @@endptr@@ + Number , & @@endptr@@ , Number ) ; * ( ( _BYTE * ) * @@v10@@ + Number ) = Number ; if ( * @@endptr@@ != Number || @@s@@ + Number == @@endptr@@ ) { eprintf ( Number L , String ) ; return Number L ; } if ( ! * ++ @@endptr@@ ) @@endptr@@ = Number L ; } else { if ( * @@endptr@@ == Number ) { @@s@@ = @@endptr@@ + Number ; * ( ( _BYTE * ) * @@v10@@ + Number ) = Number ; v4 = strpbrk ( @@s@@ , String ) ; } else { if ( @@endptr@@ [ Number ] != Number ) { eprintf ( Number L , String , @@s@@ ) ; return Number L ; } @@s@@ = @@endptr@@ + Number ; * ( ( _BYTE * ) * @@v10@@ + Number ) = Number ; v4 = strpbrk ( @@s@@ , String ) ; } @@endptr@@ = v4 ; } if ( @@endptr@@ ) { v5 = * @@v10@@ ; v5 [ Number ] = strndup ( @@s@@ , @@endptr@@ - @@s@@ ) ; if ( ! * ( ( _QWORD * ) * @@v10@@ + Number ) ) return Number L ; if ( * @@s@@ != Number ) @@v9@@ = ( char * ) * ( ( _QWORD * ) * @@v10@@ + Number ) ; eprintf ( Number L , String , * ( ( const char * * ) * @@v10@@ + Number ) , * ( ( unsigned __int8 * ) * @@v10@@ + Number ) ) ; @@v10@@ = ( void * * ) * @@v10@@ ; } } while ( @@endptr@@ ) ; v6 = * @@v10@@ ; v6 [ Number ] = strdup ( @@s@@ ) ; if ( * ( ( _QWORD * ) * @@v10@@ + Number ) ) { if ( * @@s@@ != Number ) @@v9@@ = ( char * ) * ( ( _QWORD * ) * @@v10@@ + Number ) ; eprintf ( Number L , String , * ( ( const char * * ) * @@v10@@ + Number ) , * ( ( unsigned __int8 * ) * @@v10@@ + Number ) ) ; if ( * ( _QWORD * ) @@a2@@ || ( * ( _QWORD * ) @@a2@@ = strdup ( @@v9@@ ) ) != Number L ) result = Number L ; else result = Number L ; } else { result = Number L ; } } else { result = Number L ; } } else { * ( _QWORD * ) ( @@a2@@ + Number ) = strdup ( @@s@@ ) ; if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { eprintf ( Number L , String , * ( const char * * ) ( @@a2@@ + Number ) ) ; result = Number L ; } else { result = Number L ; } } return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "char"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v11", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s24"}, {"n": "v10", "t": {"T": 3, "t": "void *"}, "location": "s32"}, {"n": "v9", "t": {"T": 3, "t": "char"}, "location": "s40"}, {"n": "endptr", "t": {"T": 3, "t": "char"}, "location": "s48"}, {"n": "s", "t": {"T": 3, "t": "char"}, "location": "s56"}]} {"name": "parse_perf_probe_command", "code": "__int64 __fastcall parse_perf_probe_command ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; int @@v3@@ ; int @@i@@ ; int @@v5@@ ; char * * @@v6@@ ; unsigned __int64 @@v7@@ ; @@v7@@ = __readfsqword ( Number ) ; @@v5@@ = Number ; @@v6@@ = ( char * * ) argv_split ( @@a1@@ , & @@v3@@ ) ; if ( @@v6@@ ) { if ( @@v3@@ <= Number ) { @@v5@@ = parse_perf_probe_point ( * @@v6@@ , ( char * * ) @@a2@@ ) ; if ( @@v5@@ >= Number ) { * ( _DWORD * ) ( @@a2@@ + Number ) = @@v3@@ - Number ; * ( _QWORD * ) ( @@a2@@ + Number ) = zalloc ( Number L * * ( int * ) ( @@a2@@ + Number ) ) ; if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { for ( @@i@@ = Number ; @@i@@ < * ( _DWORD * ) ( @@a2@@ + Number ) && @@v5@@ >= Number ; ++ @@i@@ ) { @@v5@@ = parse_perf_probe_arg ( @@v6@@ [ @@i@@ + Number ] , * ( _QWORD * ) ( @@a2@@ + Number ) + Number L * @@i@@ ) ; if ( @@v5@@ >= Number && is_c_varname ( * ( _BYTE * * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a2@@ + Number ) + Number ) ) ) { if ( * ( _BYTE * ) ( @@a2@@ + Number ) ) { eprintf ( Number L , String ) ; @@v5@@ = Number ; } } } } else { @@v5@@ = Number ; } } } else { eprintf ( Number L , String , ( unsigned int ) ( @@v3@@ - Number ) ) ; @@v5@@ = Number ; } argv_free ( @@v6@@ ) ; @@result@@ = ( unsigned int ) @@v5@@ ; } else { eprintf ( Number L , String ) ; @@result@@ = Number L ; } 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"}, {"n": "v6", "t": {"T": 3, "t": "char *"}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v7", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "parse_probe_trace_command", "code": "__int64 __fastcall parse_probe_trace_command ( const char * @@a1@@ , __int64 @@a2@@ ) { __int64 result ; char * v3 ; char * v4 ; char * * v5 ; __int64 v6 ; char @@v7@@ ; int @@v8@@ ; unsigned int @@v9@@ ; int @@i@@ ; char * @@s@@ ; __int64 @@v12@@ ; const char * * @@v13@@ ; unsigned __int64 @@v14@@ ; @@v14@@ = __readfsqword ( Number ) ; @@v12@@ = @@a2@@ + Number ; eprintf ( Number L , String , @@a1@@ ) ; @@v13@@ = ( const char * * ) argv_split ( @@a1@@ , & @@v8@@ ) ; if ( @@v13@@ ) { if ( @@v8@@ > Number ) { @@v9@@ = sscanf ( * @@v13@@ , String , & @@v7@@ , @@a2@@ + Number , @@a2@@ ) ; if ( @@v9@@ == Number ) { eprintf ( Number L , String , * ( const char * * ) ( @@a2@@ + Number ) , * ( const char * * ) @@a2@@ , ( unsigned int ) @@v7@@ ) ; * ( _BYTE * ) ( @@v12@@ + Number ) = @@v7@@ == Number ; @@s@@ = strchr ( @@v13@@ [ Number ] , Number ) ; if ( @@s@@ ) { v3 = strndup ( @@v13@@ [ Number ] , @@s@@ - @@v13@@ [ Number ] ) ; * ( _QWORD * ) ( @@v12@@ + Number ) = v3 ; ++ @@s@@ ; } else { @@s@@ = ( char * ) @@v13@@ [ Number ] ; } @@v9@@ = sscanf ( @@s@@ , String , @@v12@@ , @@v12@@ + Number ) ; if ( @@v9@@ == Number ) * ( _QWORD * ) ( @@v12@@ + Number ) = Number L ; * ( _DWORD * ) ( @@a2@@ + Number ) = @@v8@@ - Number ; * ( _QWORD * ) ( @@a2@@ + Number ) = zalloc ( Number L * * ( int * ) ( @@a2@@ + Number ) ) ; if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { for ( @@i@@ = Number ; @@i@@ < * ( _DWORD * ) ( @@a2@@ + Number ) ; ++ @@i@@ ) { @@s@@ = strchr ( @@v13@@ [ @@i@@ + Number ] , Number ) ; if ( @@s@@ ) { v4 = @@s@@ ++ ; * v4 = Number ; } else { @@s@@ = ( char * ) @@v13@@ [ @@i@@ + Number ] ; } v5 = ( char * * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L * @@i@@ ) ; * v5 = strdup ( @@v13@@ [ @@i@@ + Number ] ) ; v6 = * ( _QWORD * ) ( @@a2@@ + Number ) + Number L * @@i@@ ; * ( _QWORD * ) ( v6 + Number ) = strdup ( @@s@@ ) ; if ( ! * ( _QWORD * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a2@@ + Number ) ) || ! * ( _QWORD * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a2@@ + Number ) + Number ) ) { @@v9@@ = Number ; goto LABEL_24 ; } } @@v9@@ = Number ; } else { @@v9@@ = Number ; } } else { eprintf ( Number L , String , * @@v13@@ ) ; @@v9@@ = Number ; } } else { eprintf ( Number L , String ) ; @@v9@@ = Number ; } LABEL_24 : argv_free ( @@v13@@ ) ; result = @@v9@@ ; } else { eprintf ( Number L , String ) ; result = Number L ; } return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v14", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s24"}, {"n": "v13", "t": {"T": 3, "t": "const char *"}, "location": "s32"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "s", "t": {"T": 3, "t": "char"}, "location": "s48"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s52"}, {"n": "v9", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s56"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s60"}, {"n": "v7", "t": {"T": 1, "n": "char", "s": 1}, "location": "s61"}]} {"name": "synthesize_perf_probe_point", "code": "char * __fastcall synthesize_perf_probe_point ( __int64 @@a1@@ ) { __int64 v1 ; __int64 v2 ; __int64 v3 ; __int64 v4 ; __int64 v5 ; unsigned int v6 ; char * v8 ; int @@v9@@ ; int @@v10@@ ; char * s ; char * sa ; char * @@ptr@@ ; __int64 @@v14@@ [ Number ] ; __int64 @@v15@@ [ Number ] ; __int64 @@v16@@ [ Number ] ; @@v16@@ [ Number ] = __readfsqword ( Number ) ; @@v14@@ [ Number ] = Number L ; @@v14@@ [ Number ] = Number L ; @@v14@@ [ Number ] = Number L ; @@v14@@ [ Number ] = Number L ; @@v15@@ [ Number ] = Number L ; @@v15@@ [ Number ] = Number L ; @@v15@@ [ Number ] = Number L ; @@v15@@ [ Number ] = Number L ; @@v16@@ [ Number ] = Number L ; @@v16@@ [ Number ] = Number L ; @@v16@@ [ Number ] = Number L ; @@v16@@ [ Number ] = Number L ; @@ptr@@ = ( char * ) zalloc ( Number ) ; if ( @@ptr@@ ) { if ( ! * ( _QWORD * ) ( @@a1@@ + Number ) || ( @@v9@@ = e_snprintf ( ( char * ) @@v14@@ , Number , String , * ( _QWORD * ) ( @@a1@@ + Number ) , v1 , v2 ) , @@v9@@ > Number ) ) { if ( ! * ( _DWORD * ) ( @@a1@@ + Number ) || ( @@v9@@ = e_snprintf ( ( char * ) @@v15@@ , Number , String , * ( unsigned int * ) ( @@a1@@ + Number ) , v1 , v2 ) , @@v9@@ > Number ) ) { if ( ! * ( _QWORD * ) @@a1@@ ) goto LABEL_14 ; s = * ( char * * ) @@a1@@ ; @@v10@@ = strlen ( * ( const char * * ) @@a1@@ ) ; if ( @@v10@@ > Number ) { sa = strchr ( ( const char * ) ( @@v10@@ - Number L + * ( _QWORD * ) @@a1@@ ) , Number ) ; if ( sa ) v5 = ( __int64 ) ( sa + Number ) ; else v5 = @@v10@@ - Number L + * ( _QWORD * ) @@a1@@ ; s = ( char * ) v5 ; } @@v9@@ = e_snprintf ( ( char * ) @@v16@@ , Number , String , ( __int64 ) s , v3 , v4 ) ; if ( @@v9@@ > Number ) { LABEL_14 : if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) { v6 = * ( _BYTE * ) ( @@a1@@ + Number ) ? ( unsigned int ) e_snprintf ( @@ptr@@ , Number , String , * ( _QWORD * ) ( @@a1@@ + Number ) , ( __int64 ) @@v14@@ , ( __int64 ) String , @@v15@@ , @@v16@@ ) : ( unsigned int ) e_snprintf ( @@ptr@@ , Number , String , * ( _QWORD * ) ( @@a1@@ + Number ) , ( __int64 ) @@v14@@ , ( __int64 ) & unk_5925 , @@v15@@ , @@v16@@ ) ; @@v9@@ = v6 ; } else { @@v9@@ = e_snprintf ( @@ptr@@ , Number , String , ( __int64 ) @@v16@@ , ( __int64 ) @@v15@@ , v2 ) ; } if ( @@v9@@ > Number ) return @@ptr@@ ; } } } } else { @@v9@@ = Number ; } v8 = strerror ( - @@v9@@ ) ; eprintf ( Number L , String , v8 ) ; if ( @@ptr@@ ) free ( @@ptr@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v14", "t": {"T": 2, "n": 4, "s": 8, "t": "__int64"}, "location": "s112"}, {"n": "ptr", "t": {"T": 3, "t": "char"}, "location": "s120"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s132"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s136"}, {"n": "v16", "t": {"T": 2, "n": 6, "s": 8, "t": "__int64"}, "location": "s48"}, {"n": "v15", "t": {"T": 2, "n": 4, "s": 8, "t": "__int64"}, "location": "s80"}]} {"name": "synthesize_probe_trace_command", "code": "char * __fastcall synthesize_probe_trace_command ( __int64 @@a1@@ ) { char * result ; const char * @@v2@@ ; void * v3 ; unsigned int @@v4@@ ; __int64 @@v5@@ ; __int64 @@v6@@ ; __int64 * v7 ; int @@i@@ ; int @@v10@@ ; int @@v11@@ ; char * @@ptr@@ ; @@ptr@@ = ( char * ) zalloc ( Number ) ; if ( ! @@ptr@@ ) return Number L ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) @@v2@@ = String ; else @@v2@@ = ( const char * ) & unk_5925 ; v3 = * ( void * * ) ( @@a1@@ + Number ) ; if ( ! v3 ) v3 = & unk_5925 ; if ( * ( _BYTE * ) ( @@a1@@ + Number ) ) @@v4@@ = Number ; else @@v4@@ = Number ; @@v10@@ = e_snprintf ( @@ptr@@ , Number , String , @@v4@@ , * ( _QWORD * ) ( @@a1@@ + Number ) , * ( _QWORD * ) @@a1@@ , v3 , @@v2@@ , * ( _QWORD * ) ( @@a1@@ + Number ) , * ( _QWORD * ) ( @@a1@@ + Number ) ) ; if ( @@v10@@ <= Number ) { LABEL_17 : free ( @@ptr@@ ) ; result = Number L ; } else { for ( @@i@@ = Number ; @@i@@ < * ( _DWORD * ) ( @@a1@@ + Number ) ; ++ @@i@@ ) { v7 = ( __int64 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@i@@ ) ; @@v11@@ = ( unsigned int ) synthesize_probe_trace_arg ( v7 , & @@ptr@@ [ @@v10@@ ] , Number - @@v10@@ , ( __int64 ) v7 , @@v5@@ , @@v6@@ ) ; if ( @@v11@@ <= Number ) goto LABEL_17 ; @@v10@@ += @@v11@@ ; } result = @@ptr@@ ; } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v2", "t": {"T": 3, "t": "const char"}, "location": "r88"}, {"n": "ptr", "t": {"T": 3, "t": "char"}, "location": "s16"}, {"n": "v11", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s32"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}]} {"name": "convert_to_perf_probe_event", "code": "__int64 __fastcall convert_to_perf_probe_event ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@v3@@ ; __int64 @@v4@@ ; char * * v5 ; char * * v6 ; int @@i@@ ; int @@v8@@ ; char @@s@@ [ Number ] ; __int64 @@v10@@ ; __int64 @@v11@@ ; __int64 @@v12@@ ; __int64 @@v13@@ ; __int64 @@v14@@ ; __int64 @@v15@@ ; __int64 @@v16@@ ; unsigned __int64 @@v17@@ ; @@v17@@ = __readfsqword ( Number ) ; * ( _QWORD * ) @@s@@ = Number L ; @@v10@@ = Number L ; @@v11@@ = Number L ; @@v12@@ = Number L ; @@v13@@ = Number L ; @@v14@@ = Number L ; @@v15@@ = Number L ; @@v16@@ = Number L ; * ( _QWORD * ) @@a2@@ = strdup ( * ( const char * * ) @@a1@@ ) ; * ( _QWORD * ) ( @@a2@@ + Number ) = strdup ( * ( const char * * ) ( @@a1@@ + Number ) ) ; if ( ! * ( _QWORD * ) @@a2@@ || ! * ( _QWORD * ) ( @@a2@@ + Number ) ) return Number L ; @@v8@@ = kprobe_convert_to_perf_probe ( ( const char * * ) ( @@a1@@ + Number ) , @@a2@@ + Number ) ; if ( @@v8@@ < Number ) return ( unsigned int ) @@v8@@ ; * ( _DWORD * ) ( @@a2@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@a2@@ + Number ) = zalloc ( Number L * * ( int * ) ( @@a2@@ + Number ) ) ; if ( ! * ( _QWORD * ) ( @@a2@@ + Number ) ) return Number L ; for ( @@i@@ = Number ; @@i@@ < * ( _DWORD * ) ( @@a1@@ + Number ) && @@v8@@ >= Number ; ++ @@i@@ ) { if ( * ( _QWORD * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a1@@ + Number ) ) ) { v5 = ( char * * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L * @@i@@ ) ; * v5 = strdup ( * ( const char * * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a1@@ + Number ) ) ) ; } else { @@v8@@ = ( unsigned int ) synthesize_probe_trace_arg ( ( __int64 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@i@@ ) , @@s@@ , Number , * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@i@@ , @@v3@@ , @@v4@@ ) ; v6 = ( char * * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L * @@i@@ ) ; * v6 = strdup ( @@s@@ ) ; } if ( ! * ( _QWORD * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a2@@ + Number ) ) && @@v8@@ >= Number ) @@v8@@ = Number ; } if ( @@v8@@ < Number ) clear_perf_probe_event ( @@a2@@ ) ; return ( unsigned int ) @@v8@@ ; }", "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": "r72"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s100"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s104"}, {"n": "v17", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s24"}, {"n": "v16", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v15", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s72"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s80"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s88"}, {"n": "s", "t": {"T": 2, "n": 8, "s": 1, "t": "char"}, "location": "s96"}]} {"name": "convert_to_probe_trace_events", "code": "__int64 __fastcall convert_to_probe_trace_events ( __int64 @@a1@@ , __int64 * @@a2@@ , unsigned int @@a3@@ , const char * @@a4@@ ) { char * * v5 ; __int64 v6 ; __int64 v7 ; unsigned int v9 ; unsigned int v10 ; int @@i@@ ; _QWORD * @@ptr@@ ; __int64 @@v13@@ ; v9 = try_to_find_probe_trace_events ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; if ( v9 ) return v9 ; * @@a2@@ = ( __int64 ) zalloc ( Number ) ; @@ptr@@ = ( _QWORD * ) * @@a2@@ ; if ( ! * @@a2@@ ) return Number L ; @@ptr@@ [ Number ] = strdup ( * ( const char * * ) ( @@a1@@ + Number ) ) ; if ( @@ptr@@ [ Number ] ) { if ( ! @@a4@@ || ( @@ptr@@ [ Number ] = strdup ( @@a4@@ ) ) != Number L ) { @@ptr@@ [ Number ] = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( ( _BYTE * ) @@ptr@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( ( _DWORD * ) @@ptr@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( * ( ( _DWORD * ) @@ptr@@ + Number ) ) { @@ptr@@ [ Number ] = zalloc ( Number L * * ( ( int * ) @@ptr@@ + Number ) ) ; if ( ! @@ptr@@ [ Number ] ) { v10 = Number ; goto LABEL_29 ; } for ( @@i@@ = Number ; @@i@@ < * ( ( _DWORD * ) @@ptr@@ + Number ) ; ++ @@i@@ ) { if ( * ( _QWORD * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a1@@ + Number ) ) ) { v5 = ( char * * ) ( @@ptr@@ [ Number ] + Number L * @@i@@ ) ; * v5 = strdup ( * ( const char * * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a1@@ + Number ) ) ) ; if ( ! * ( _QWORD * ) ( Number L * @@i@@ + @@ptr@@ [ Number ] ) ) { v10 = Number ; goto LABEL_29 ; } } v6 = @@ptr@@ [ Number ] + Number L * @@i@@ ; * ( _QWORD * ) ( v6 + Number ) = strdup ( * ( const char * * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a1@@ + Number ) + Number ) ) ; if ( ! * ( _QWORD * ) ( Number L * @@i@@ + @@ptr@@ [ Number ] + Number ) ) { v10 = Number ; goto LABEL_29 ; } if ( * ( _QWORD * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a1@@ + Number ) + Number ) ) { v7 = @@ptr@@ [ Number ] + Number L * @@i@@ ; * ( _QWORD * ) ( v7 + Number ) = strdup ( * ( const char * * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a1@@ + Number ) + Number ) ) ; if ( ! * ( _QWORD * ) ( Number L * @@i@@ + @@ptr@@ [ Number ] + Number ) ) { v10 = Number ; goto LABEL_29 ; } } } } @@v13@@ = _find_kernel_function_by_name ( @@ptr@@ [ Number ] , Number L ) ; if ( @@v13@@ ) { if ( @@ptr@@ [ Number ] <= * ( _QWORD * ) ( @@v13@@ + Number ) - * ( _QWORD * ) ( @@v13@@ + Number ) ) return Number L ; eprintf ( Number L , String , ( const char * ) @@ptr@@ [ Number ] ) ; v10 = Number ; } else { eprintf ( Number L , String , ( const char * ) @@ptr@@ [ Number ] ) ; v10 = Number ; } } else { v10 = Number ; } } else { v10 = Number ; } LABEL_29 : clear_probe_trace_event ( ( __int64 ) @@ptr@@ ) ; free ( @@ptr@@ ) ; * @@a2@@ = Number L ; return v10 ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "const char"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "__int64"}, "location": "r64"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "ptr", "t": {"T": 3, "t": "_QWORD"}, "location": "s40"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s44"}]} {"name": "add_perf_probe_events", "code": "__int64 __fastcall add_perf_probe_events ( __int64 @@a1@@ , int @@a2@@ , unsigned int @@a3@@ , const char * @@a4@@ , unsigned __int8 @@a5@@ ) { int i ; int j ; int k ; int @@l@@ ; int @@v13@@ ; _QWORD * @@ptr@@ ; @@ptr@@ = zalloc ( Number L * @@a2@@ ) ; if ( ! @@ptr@@ ) return Number L ; @@v13@@ = init_vmlinux ( ) ; if ( @@v13@@ >= Number ) { for ( i = Number ; i < @@a2@@ ; ++ i ) { @@ptr@@ [ Number * i ] = Number L * i + @@a1@@ ; @@v13@@ = convert_to_probe_trace_events ( @@ptr@@ [ Number * i ] , & @@ptr@@ [ Number * i + Number ] , @@a3@@ , @@a4@@ ) ; if ( @@v13@@ < Number ) goto LABEL_12 ; LODWORD ( @@ptr@@ [ Number * i + Number ] ) = @@v13@@ ; } for ( j = Number ; j < @@a2@@ ; ++ j ) { @@v13@@ = _add_probe_trace_events ( ( char * * ) @@ptr@@ [ Number * j ] , @@ptr@@ [ Number * j + Number ] , @@ptr@@ [ Number * j + Number ] , @@a5@@ ) ; if ( @@v13@@ < Number ) break ; } LABEL_12 : for ( k = Number ; k < @@a2@@ ; ++ k ) { for ( @@l@@ = Number ; @@l@@ < SLODWORD ( @@ptr@@ [ Number * k + Number ] ) ; ++ @@l@@ ) clear_probe_trace_event ( ( ( __int64 ) @@l@@ << Number ) + @@ptr@@ [ Number * k + Number ] ) ; free ( ( void * ) @@ptr@@ [ Number * k + Number ] ) ; } } free ( @@ptr@@ ) ; return ( unsigned int ) @@v13@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "const char"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r72"}, {"n": "ptr", "t": {"T": 3, "t": "_QWORD"}, "location": "s16"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "l", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}]}