{"name": "rpl_remove_routes", "code": "__int64 __fastcall rpl_remove_routes ( __int64 @@a1@@ ) { __int64 @@result@@ ; __int64 @@i@@ ; @@result@@ = uip_ds6_route_list_head ( ) ; for ( @@i@@ = @@result@@ ; @@i@@ ; @@i@@ = @@result@@ ) { if ( @@a1@@ == * ( _QWORD * ) ( @@i@@ + Number ) ) { uip_ds6_route_rm ( @@i@@ ) ; @@result@@ = uip_ds6_route_list_head ( ) ; } else { @@result@@ = list_item_next ( @@i@@ ) ; } } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}
{"name": "uip_ds6_route_rm", "code": "__int64 __fastcall uip_ds6_route_rm ( __int64 @@a1@@ ) { __int64 @@result@@ ; __int64 @@i@@ ; @@result@@ = list_head ( routelist ) ; for ( @@i@@ = @@result@@ ; @@i@@ ; @@i@@ = @@result@@ ) { if ( @@i@@ == @@a1@@ ) { list_remove ( routelist , @@a1@@ ) ; memb_free ( & routememb , @@a1@@ ) ; return call_route_callback ( Number , @@a1@@ + Number , @@a1@@ + Number ) ; } @@result@@ = list_item_next ( @@i@@ ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "rpl_remove_routes_by_nexthop", "code": "__int64 __fastcall rpl_remove_routes_by_nexthop ( const void * @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; __int64 @@v3@@ ; @@result@@ = uip_ds6_route_list_head ( ) ; @@v3@@ = @@result@@ ; while ( @@v3@@ ) { if ( ! memcmp ( ( const void * ) ( @@v3@@ + Number ) , @@a1@@ , Number ) && @@a2@@ == * ( _QWORD * ) ( @@v3@@ + Number ) ) { uip_ds6_route_rm ( @@v3@@ ) ; @@result@@ = uip_ds6_route_list_head ( ) ; @@v3@@ = @@result@@ ; } else { @@result@@ = list_item_next ( @@v3@@ ) ; @@v3@@ = @@result@@ ; } } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const void"}, "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": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "rpl_set_root", "code": "__int64 __fastcall rpl_set_root ( unsigned __int8 @@a1@@ , _QWORD * @@a2@@ ) { __int64 @@v3@@ ; __int64 @@v4@@ ; _BYTE * v5 ; __int64 v6 ; char @@v7@@ ; @@v7@@ = Number ; v5 = get_dag ( @@a1@@ , @@a2@@ ) ; if ( v5 ) { @@v7@@ = v5 [ Number ] + Number ; if ( v5 == * ( _BYTE * * ) ( * ( ( _QWORD * ) v5 + Number ) + Number L ) ) * ( _QWORD * ) ( * ( ( _QWORD * ) v5 + Number ) + Number L ) = Number L ; rpl_free_dag ( v5 ) ; } v6 = rpl_alloc_dag ( @@a1@@ , @@a2@@ ) ; if ( ! v6 ) return Number L ; @@v4@@ = * ( _QWORD * ) ( v6 + Number ) ; * ( _BYTE * ) ( v6 + Number ) = @@v7@@ ; * ( _BYTE * ) ( v6 + Number ) = Number ; * ( _BYTE * ) ( v6 + Number ) = Number ; * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; * ( _QWORD * ) ( @@v4@@ + Number ) = rpl_of_etx ; * ( _QWORD * ) ( v6 + Number ) = Number L ; @@v3@@ = @@a2@@ [ Number ] ; * ( _QWORD * ) v6 = * @@a2@@ ; * ( _QWORD * ) ( v6 + Number ) = @@v3@@ ; * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; * ( _WORD * ) ( @@v4@@ + Number ) = Number ; * ( _WORD * ) ( @@v4@@ + Number ) = Number ; * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; * ( _WORD * ) ( @@v4@@ + Number ) = Number ; * ( _WORD * ) ( v6 + Number ) = * ( _WORD * ) ( @@v4@@ + Number ) ; if ( v6 != * ( _QWORD * ) ( @@v4@@ + Number ) ) { if ( * ( _QWORD * ) ( @@v4@@ + Number ) ) { rpl_remove_routes ( * ( _QWORD * ) ( @@v4@@ + Number ) ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v4@@ + Number ) + Number L ) = Number ; } } * ( _QWORD * ) ( @@v4@@ + Number ) = v6 ; * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; ( * ( void ( __fastcall * * ) ( __int64 ) ) ( * ( _QWORD * ) ( @@v4@@ + Number ) + Number L ) ) ( @@v4@@ ) ; default_instance = @@v4@@ ; rpl_reset_dio_timer ( @@v4@@ ) ; return v6 ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "v7", "t": {"T": 1, "n": "char", "s": 1}, "location": "s1"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}]} {"name": "rpl_free_dag", "code": "_BYTE * __fastcall rpl_free_dag ( _BYTE * @@a1@@ ) { _BYTE * @@result@@ ; if ( @@a1@@ [ Number ] ) { @@a1@@ [ Number ] = Number ; rpl_remove_routes ( ( __int64 ) @@a1@@ ) ; if ( ( @@a1@@ [ Number ] & Number ) != Number ) check_prefix ( @@a1@@ + Number , Number L ) ; remove_parents ( ( __int64 ) @@a1@@ , Number ) ; } @@result@@ = @@a1@@ ; @@a1@@ [ Number ] = Number ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_BYTE"}, "location": "r56"}, {"n": "result", "t": {"T": 3, "t": "_BYTE"}, "location": "r8"}]} {"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_move_parent", "code": "__int64 __fastcall rpl_move_parent ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { if ( @@a3@@ == * ( _QWORD * ) ( @@a1@@ + Number ) ) { * ( _QWORD * ) ( @@a1@@ + Number ) = Number L ; * ( _WORD * ) ( @@a1@@ + Number ) = Number ; if ( * ( _BYTE * ) ( @@a1@@ + Number ) && * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) { uip_ds6_defrt_rm ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number L ; } } else if ( * ( _BYTE * ) ( @@a1@@ + Number ) ) { rpl_remove_routes_by_nexthop ( ( const void * ) ( @@a3@@ + Number ) , @@a1@@ ) ; } list_remove ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@a3@@ ) ; * ( _QWORD * ) ( @@a3@@ + Number ) = @@a2@@ ; return list_add ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@a3@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "list_head", "code": "__int64 __fastcall list_head ( __int64 @@a1@@ ) { return * ( _QWORD * ) @@a1@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "list_item_next", "code": "__int64 __fastcall list_item_next ( __int64 * @@a1@@ ) { __int64 @@result@@ ; if ( @@a1@@ ) @@result@@ = * @@a1@@ ; else @@result@@ = Number L ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "__int64"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}