{"name": "acceptable_rank", "code": "_BOOL8 __fastcall acceptable_rank ( __int64 @@a1@@ , unsigned __int16 @@a2@@ ) { return @@a2@@ != Number && ( ! * ( _WORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) || ( unsigned __int16 ) ( @@a2@@ / * ( _WORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) <= ( * ( unsigned __int16 * ) ( @@a1@@ + Number ) + * ( unsigned __int16 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) / * ( unsigned __int16 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "r64"}]}
{"name": "rpl_select_dag", "code": "__int64 __fastcall rpl_select_dag ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@v3@@ ; __int64 @@v4@@ ; unsigned __int64 @@i@@ ; @@v3@@ = * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; @@v4@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; if ( * ( _WORD * ) ( @@v4@@ + Number ) != * ( _WORD * ) ( @@a1@@ + Number ) ) { if ( rpl_select_parent ( * ( _QWORD * ) ( @@a2@@ + Number ) ) ) { if ( @@v4@@ != * ( _QWORD * ) ( @@a2@@ + Number ) ) @@v4@@ = ( * ( __int64 ( __fastcall * * ) ( __int64 , _QWORD ) ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ( @@v4@@ , * ( _QWORD * ) ( @@a2@@ + Number ) ) ; } else if ( @@v4@@ == * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v4@@ = Number L ; for ( @@i@@ = @@a1@@ + Number ; @@i@@ < @@a1@@ + Number ; @@i@@ += Number L ) { if ( * ( _BYTE * ) ( @@i@@ + Number ) && * ( _QWORD * ) ( @@i@@ + Number ) && * ( _WORD * ) ( * ( _QWORD * ) ( @@i@@ + Number ) + Number L ) != Number ) { if ( @@v4@@ ) @@v4@@ = ( * ( __int64 ( __fastcall * * ) ( __int64 , unsigned __int64 ) ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ( @@v4@@ , @@i@@ ) ; else @@v4@@ = @@i@@ ; } } } } if ( ! @@v4@@ ) return Number L ; if ( @@v4@@ != * ( _QWORD * ) ( @@a1@@ + Number ) ) { rpl_remove_routes ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; if ( ( * ( _BYTE * ) ( @@v4@@ + Number ) & Number ) != Number ) { check_prefix ( ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) , ( unsigned __int8 * ) ( @@v4@@ + Number ) ) ; } else if ( ( * ( _BYTE * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) & Number ) != Number ) { check_prefix ( ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) , Number L ) ; } * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@v4@@ ; } ( * ( void ( __fastcall * * ) ( __int64 ) ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ( @@a1@@ ) ; * ( _WORD * ) ( @@v4@@ + Number ) = ( * ( __int64 ( __fastcall * * ) ( _QWORD , _QWORD ) ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ( * ( _QWORD * ) ( @@v4@@ + Number ) , Number L ) ; if ( * ( _WORD * ) ( @@v4@@ + Number ) < * ( _WORD * ) ( @@v4@@ + Number ) ) { * ( _WORD * ) ( @@v4@@ + Number ) = * ( _WORD * ) ( @@v4@@ + Number ) ; LABEL_30 : if ( @@v3@@ != * ( _QWORD * ) ( @@v4@@ + Number ) ) { rpl_set_default_route ( @@a1@@ , ( _QWORD * ) ( * ( _QWORD * ) ( @@v4@@ + Number ) + Number L ) ) ; if ( * ( _BYTE * ) ( @@a1@@ + Number ) ) { if ( @@v3@@ ) dao_output ( @@v3@@ , Number L ) ; ++ * ( _BYTE * ) ( @@a1@@ + Number ) ; rpl_schedule_dao ( @@a1@@ ) ; } rpl_reset_dio_timer ( @@a1@@ ) ; } return @@v4@@ ; } if ( acceptable_rank ( @@v4@@ , * ( _WORD * ) ( @@v4@@ + Number ) ) ) goto LABEL_30 ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number L ; if ( * ( _BYTE * ) ( @@a1@@ + Number ) && @@v3@@ ) dao_output ( @@v3@@ , Number L ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "i", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "rpl_process_parent_event", "code": "__int64 __fastcall rpl_process_parent_event ( __int64 @@a1@@ , __int64 @@a2@@ ) { unsigned int @@v3@@ ; @@v3@@ = Number ; if ( ! acceptable_rank ( * ( _QWORD * ) ( @@a2@@ + Number ) , * ( _WORD * ) ( @@a2@@ + Number ) ) ) { if ( @@a2@@ != * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) { rpl_nullify_parent ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@a2@@ ) ; return Number L ; } rpl_nullify_parent ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@a2@@ ) ; @@v3@@ = Number ; } if ( rpl_select_dag ( @@a1@@ , @@a2@@ ) ) return @@v3@@ ; rpl_local_repair ( @@a1@@ ) ; return Number L ; }", "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": "unsigned int", "s": 4}, "location": "s4"}]}