{"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": "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": "is_c_varname", "code": "_BOOL8 __fastcall is_c_varname ( _BYTE * @@a1@@ ) { return ( * ( ( _BYTE * ) & sane_ctype + ( unsigned __int8 ) * @@a1@@ ) & Number ) != Number || * @@a1@@ == Number ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_BYTE"}, "location": "r56"}]} {"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"}]}