{"name": "hist_browser__show_callchain_node_rb_tree", "code": "__int64 __fastcall hist_browser__show_callchain_node_rb_tree ( __int64 @@a1@@ , __int64 @@a2@@ , unsigned __int64 @@a3@@ , int @@a4@@ , unsigned __int16 @@a5@@ , _QWORD * @@a6@@ , _BYTE * @@a7@@ ) { double v7 ; double @@v8@@ ; double v9 ; int v10 ; unsigned __int16 @@v13@@ ; char @@v15@@ ; bool @@v16@@ ; int @@v17@@ ; int @@v18@@ ; unsigned int @@v19@@ ; int @@v20@@ ; int @@v21@@ ; unsigned int @@v22@@ ; char * @@ptr@@ ; __int64 @@i@@ ; unsigned __int64 @@v25@@ ; unsigned __int64 @@v26@@ ; _QWORD * @@j@@ ; const char * @@v28@@ ; __int64 @@v29@@ ; __int64 @@v30@@ ; __int64 @@v31@@ ; unsigned __int64 @@v32@@ ; __int64 @@v33@@ ; double @@v34@@ ; __int64 @@v35@@ ; char @@v36@@ [ Number ] ; unsigned __int64 @@v37@@ ; @@v13@@ = @@a5@@ ; @@v37@@ = __readfsqword ( Number ) ; @@v20@@ = @@a5@@ ; @@v21@@ = Number * @@a4@@ ; if ( callchain_param == Number ) @@v25@@ = * ( _QWORD * ) ( @@a2@@ + Number ) ; else @@v25@@ = @@a3@@ ; @@v26@@ = @@v25@@ ; for ( @@i@@ = rb_first ( @@a2@@ + Number ) ; @@i@@ ; @@i@@ = @@v31@@ ) { @@v29@@ = @@i@@ ; @@v30@@ = @@i@@ - Number ; @@v31@@ = rb_next ( @@i@@ ) ; @@v32@@ = callchain_cumul_hits ( @@v30@@ ) ; @@v15@@ = Number ; @@v17@@ = Number ; @@v18@@ = Number ; @@v26@@ -= @@v32@@ ; @@v33@@ = * ( _QWORD * ) ( @@v30@@ + Number ) ; for ( @@j@@ = ( _QWORD * ) ( @@v33@@ - Number ) ; @@j@@ + Number != ( _QWORD * ) ( @@v30@@ + Number ) ; @@j@@ = ( _QWORD * ) ( @@v35@@ - Number ) ) { @@v16@@ = @@v17@@ != Number ; if ( @@v17@@ ) @@v17@@ = Number ; else @@v18@@ = Number ; @@v15@@ = callchain_list__folded ( ( __int64 ) @@j@@ ) ; if ( * @@a6@@ ) { -- * @@a6@@ ; } else { @@ptr@@ = Number L ; @@v28@@ = ( const char * ) callchain_list__sym_name ( @@j@@ , @@v36@@ , Number ) ; if ( @@v16@@ ) { if ( ( @@v32@@ & Number ) != Number L ) v7 = ( double ) ( int ) ( @@v32@@ & Number | ( @@v32@@ >> Number ) ) + ( double ) ( int ) ( @@v32@@ & Number | ( @@v32@@ >> Number ) ) ; else v7 = ( double ) ( int ) @@v32@@ ; @@v8@@ = Number * v7 ; if ( ( @@v25@@ & Number ) != Number L ) v9 = ( double ) ( int ) ( @@v25@@ & Number | ( @@v25@@ >> Number ) ) + ( double ) ( int ) ( @@v25@@ & Number | ( @@v25@@ >> Number ) ) ; else v9 = ( double ) ( int ) @@v25@@ ; @@v34@@ = @@v8@@ / v9 ; if ( asprintf ( & @@ptr@@ , String , @@v8@@ / v9 , @@v28@@ ) >= Number ) @@v28@@ = @@ptr@@ ; else @@v28@@ = String ; } @@v19@@ = Number ; @@v22@@ = * ( unsigned __int16 * ) ( @@a1@@ + Number ) - ( @@v21@@ + @@v18@@ + Number ) ; if ( ( unsigned __int8 ) ui_browser__is_current_entry ( @@a1@@ , @@v13@@ ) ) { * ( _QWORD * ) ( @@a1@@ + Number ) = @@j@@ + Number ; @@v19@@ = Number ; * @@a7@@ = Number ; } ui_browser__set_color ( @@a1@@ , @@v19@@ ) ; ui_browser__gotorc ( @@a1@@ , @@v13@@ , Number L ) ; SLsmg_write_nstring ( String , ( unsigned int ) ( @@v21@@ + @@v18@@ ) ) ; SLsmg_printf ( String , ( unsigned int ) @@v15@@ ) ; SLsmg_write_nstring ( @@v28@@ , @@v22@@ ) ; free ( @@ptr@@ ) ; if ( ++ @@v13@@ == * ( _WORD * ) ( @@a1@@ + Number ) ) return ( unsigned int ) @@v13@@ - @@v20@@ ; } if ( @@v15@@ == Number ) break ; @@v35@@ = @@j@@ [ Number ] ; } if ( @@v15@@ == Number ) { if ( @@v18@@ ) v10 = Number ; else v10 = Number ; @@v13@@ += hist_browser__show_callchain_node_rb_tree ( @@a1@@ , @@v30@@ , @@v25@@ , v10 + @@a4@@ , @@v13@@ , ( _DWORD ) @@a6@@ , ( __int64 ) @@a7@@ ) ; } if ( @@v13@@ == * ( _WORD * ) ( @@a1@@ + Number ) ) break ; } return ( unsigned int ) @@v13@@ - @@v20@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "v8", "t": {"T": 1, "n": "double", "s": 8}, "location": "r512"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "r72"}, {"n": "a6", "t": {"T": 3, "t": "_QWORD"}, "location": "r80"}, {"n": "a7", "t": {"T": 3, "t": "_BYTE"}, "location": "s-16"}, {"n": "j", "t": {"T": 3, "t": "_QWORD"}, "location": "s104"}, {"n": "v26", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s112"}, {"n": "v25", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s120"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s128"}, {"n": "ptr", "t": {"T": 3, "t": "char"}, "location": "s136"}, {"n": "v22", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s144"}, {"n": "v21", "t": {"T": 1, "n": "int", "s": 4}, "location": "s148"}, {"n": "v20", "t": {"T": 1, "n": "int", "s": 4}, "location": "s152"}, {"n": "v19", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s156"}, {"n": "v18", "t": {"T": 1, "n": "int", "s": 4}, "location": "s160"}, {"n": "v17", "t": {"T": 1, "n": "int", "s": 4}, "location": "s164"}, {"n": "v16", "t": {"T": 1, "n": "bool", "s": 1}, "location": "s165"}, {"n": "v15", "t": {"T": 1, "n": "char", "s": 1}, "location": "s166"}, {"n": "v13", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s208"}, {"n": "v36", "t": {"T": 2, "n": 24, "s": 1, "t": "char"}, "location": "s32"}, {"n": "v35", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v34", "t": {"T": 1, "n": "double", "s": 8}, "location": "s48"}, {"n": "v33", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v32", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s64"}, {"n": "v31", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s72"}, {"n": "v37", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "v30", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s80"}, {"n": "v29", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s88"}, {"n": "v28", "t": {"T": 3, "t": "const char"}, "location": "s96"}]}