{"name": "show_line_range", "code": "__int64 __fastcall show_line_range ( __int64 @@a1@@ , const char * @@a2@@ ) { __int64 result ; int * v3 ; char * v4 ; unsigned int v5 ; int v6 ; int v7 ; int @@v8@@ ; int v9 ; int v10 ; int v11 ; __int64 * @@i@@ ; __int64 @@v13@@ ; char * @@ptr@@ ; FILE * @@stream@@ ; @@v8@@ = Number ; v9 = init_vmlinux ( ) ; if ( v9 < Number ) return ( unsigned int ) v9 ; @@v13@@ = open_debuginfo ( @@a2@@ ) ; if ( @@v13@@ ) { v10 = debuginfo__find_line_range ( @@v13@@ , @@a1@@ ) ; debuginfo__delete ( @@v13@@ ) ; if ( v10 ) { if ( v10 >= Number ) { @@ptr@@ = * ( char * * ) ( @@a1@@ + Number ) ; v11 = get_real_path ( @@ptr@@ , * ( const char * * ) ( @@a1@@ + Number ) , ( char * * ) ( @@a1@@ + Number ) ) ; free ( @@ptr@@ ) ; if ( v11 >= Number ) { setup_pager ( ) ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) fprintf ( stdout , String , * ( const char * * ) ( @@a1@@ + Number ) , * ( const char * * ) ( @@a1@@ + Number ) , ( unsigned int ) ( * ( _DWORD * ) ( @@a1@@ + Number ) - * ( _DWORD * ) ( @@a1@@ + Number ) ) ) ; else fprintf ( stdout , String , * ( const char * * ) ( @@a1@@ + Number ) , * ( unsigned int * ) ( @@a1@@ + Number ) ) ; @@stream@@ = fopen64 ( * ( const char * * ) ( @@a1@@ + Number ) , String ) ; if ( @@stream@@ ) { while ( @@v8@@ < * ( _DWORD * ) ( @@a1@@ + Number ) ) { v5 = @@v8@@ ++ ; v11 = show_one_line ( @@stream@@ , v5 , Number , Number ) ; if ( v11 < Number ) goto LABEL_29 ; } for ( @@i@@ = * ( __int64 * * ) ( @@a1@@ + Number ) ; @@i@@ != ( __int64 * ) ( @@a1@@ + Number ) ; @@i@@ = ( __int64 * ) * @@i@@ ) { while ( @@v8@@ < * ( ( _DWORD * ) @@i@@ + Number ) ) { v11 = show_one_line ( @@stream@@ , @@v8@@ - * ( _DWORD * ) ( @@a1@@ + Number ) , Number , Number ) ; if ( v11 < Number ) goto LABEL_29 ; ++ @@v8@@ ; } v6 = @@v8@@ ++ ; v11 = show_one_line ( @@stream@@ , v6 - * ( _DWORD * ) ( @@a1@@ + Number ) , Number , Number ) ; if ( v11 < Number ) goto LABEL_29 ; } if ( * ( _DWORD * ) ( @@a1@@ + Number ) == Number ) * ( _DWORD * ) ( @@a1@@ + Number ) = @@v8@@ + Number ; do { if ( @@v8@@ > * ( _DWORD * ) ( @@a1@@ + Number ) ) break ; v7 = @@v8@@ ++ ; v11 = _show_one_line ( @@stream@@ , v7 - * ( _DWORD * ) ( @@a1@@ + Number ) , Number , Number ) ; } while ( v11 > Number ) ; LABEL_29 : fclose ( @@stream@@ ) ; result = ( unsigned int ) v11 ; } else { v3 = _errno_location ( ) ; v4 = strerror ( * v3 ) ; eprintf ( Number L , String , * ( const char * * ) ( @@a1@@ + Number ) , v4 ) ; result = ( unsigned int ) - * _errno_location ( ) ; } } else { eprintf ( Number L , String , ( unsigned int ) v11 ) ; result = ( unsigned int ) v11 ; } } else { eprintf ( Number L , String , ( unsigned int ) v10 ) ; result = ( unsigned int ) v10 ; } } else { eprintf ( Number L , String ) ; result = Number L ; } } 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": 3, "t": "const char"}, "location": "r64"}, {"n": "stream", "t": {"T": 3, "t": "FILE"}, "location": "s32"}, {"n": "ptr", "t": {"T": 3, "t": "char"}, "location": "s40"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "i", "t": {"T": 3, "t": "__int64"}, "location": "s56"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s64"}]}
{"name": "init_vmlinux", "code": "__int64 init_vmlinux ( ) { int @@v1@@ ; * ( ( _BYTE * ) & symbol_conf + Number ) = Number ; if ( * ( ( _QWORD * ) & symbol_conf + Number ) ) eprintf ( Number L , String , * ( ( const char * * ) & symbol_conf + Number ) ) ; else * ( ( _BYTE * ) & symbol_conf + Number ) = Number ; @@v1@@ = symbol__init ( ) ; if ( @@v1@@ >= Number ) { @@v1@@ = machine__init ( & machine , & unk_5925 , Number ) ; if ( @@v1@@ >= Number && ( int ) machine__create_kernel_maps ( & machine ) < Number ) eprintf ( Number L , String ) ; } else { eprintf ( Number L , String ) ; } if ( @@v1@@ < Number ) eprintf ( Number L , String ) ; return ( unsigned int ) @@v1@@ ; }", "source": [{"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}]} {"name": "open_debuginfo", "code": "__int64 __fastcall open_debuginfo ( const char * @@a1@@ ) { const char * @@v2@@ ; __int64 @@v3@@ ; if ( @@a1@@ && strchr ( @@a1@@ , Number ) ) return debuginfo__new ( @@a1@@ ) ; @@v3@@ = kernel_get_module_path ( @@a1@@ ) ; if ( @@v3@@ ) return debuginfo__new ( @@v3@@ ) ; @@v2@@ = @@a1@@ ; if ( ! @@a1@@ ) @@v2@@ = String ; eprintf ( Number L , String , @@v2@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "v2", "t": {"T": 3, "t": "const char"}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}]} {"name": "get_real_path", "code": "__int64 __fastcall get_real_path ( const char * @@a1@@ , const char * @@a2@@ , char * * @@a3@@ ) { size_t v3 ; size_t @@v5@@ ; size_t v6 ; unsigned int v7 ; char * @@name@@ ; char * @@s@@ ; @@name@@ = ( char * ) @@a1@@ ; @@s@@ = ( char * ) symbol_conf [ Number ] ; if ( @@s@@ ) { v3 = strlen ( @@s@@ ) ; } else { if ( * @@a1@@ == Number || ! @@a2@@ ) { if ( access ( @@a1@@ , Number ) ) return ( unsigned int ) - * _errno_location ( ) ; * @@a3@@ = strdup ( @@a1@@ ) ; return Number L ; } @@s@@ = ( char * ) @@a2@@ ; v3 = strlen ( @@a2@@ ) ; } @@v5@@ = v3 ; v6 = strlen ( @@a1@@ ) ; * @@a3@@ = ( char * ) malloc ( @@v5@@ + v6 + Number ) ; if ( ! * @@a3@@ ) return Number L ; while ( Number ) { sprintf ( * @@a3@@ , String , @@s@@ , @@name@@ ) ; if ( ! access ( * @@a3@@ , Number ) ) return Number L ; if ( ! symbol_conf [ Number ] ) return ( unsigned int ) - * _errno_location ( ) ; v7 = * _errno_location ( ) ; if ( v7 > Number || ( ( Number L << v7 ) & Number ) == Number ) break ; @@name@@ = strchr ( @@name@@ + Number , Number ) ; if ( ! @@name@@ ) { free ( * @@a3@@ ) ; * @@a3@@ = Number L ; return Number L ; } } free ( * @@a3@@ ) ; * @@a3@@ = Number L ; return ( unsigned int ) - * _errno_location ( ) ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "char *"}, "location": "r16"}, {"n": "v5", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "r32"}, {"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "s", "t": {"T": 3, "t": "char"}, "location": "s32"}, {"n": "name", "t": {"T": 3, "t": "char"}, "location": "s40"}]} {"name": "_show_one_line", "code": "__int64 __fastcall show_one_line ( FILE * @@a1@@ , unsigned int @@a2@@ , char @@a3@@ , char @@a4@@ ) { unsigned int @@v5@@ ; @@v5@@ = _show_one_line ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; if ( ! @@v5@@ ) { eprintf ( Number L , String ) ; @@v5@@ = Number ; } return @@v5@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "char", "s": 1}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "char", "s": 1}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "FILE"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}]}