{"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_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": "get_dag", "code": "void * __fastcall get_dag ( unsigned __int8 @@a1@@ , const void * @@a2@@ ) { __int64 @@v3@@ ; void * @@s1@@ ; __int64 @@v5@@ ; int @@i@@ ; @@v5@@ = rpl_get_instance ( @@a1@@ ) ; if ( ! @@v5@@ ) return Number L ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { @@v3@@ = Number L * @@i@@ + Number ; @@s1@@ = ( void * ) ( @@v3@@ + @@v5@@ + Number ) ; if ( * ( _BYTE * ) ( @@v3@@ + @@v5@@ + Number ) && ! memcmp ( @@s1@@ , @@a2@@ , Number ) ) return @@s1@@ ; } return Number L ; }", "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": "const void"}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "s1", "t": {"T": 3, "t": "void"}, "location": "s24"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "rpl_alloc_dag", "code": "char * __fastcall rpl_alloc_dag ( unsigned __int8 @@a1@@ ) { char * @@v2@@ ; char * @@s@@ ; @@v2@@ = ( char * ) rpl_get_instance ( @@a1@@ ) ; if ( ! @@v2@@ ) { @@v2@@ = rpl_alloc_instance ( @@a1@@ ) ; if ( ! @@v2@@ ) return Number L ; } for ( @@s@@ = @@v2@@ + Number ; @@s@@ < @@v2@@ + Number ; @@s@@ += Number ) { if ( ! @@s@@ [ Number ] ) { memset ( @@s@@ , Number , Number ) ; * ( ( _QWORD * ) @@s@@ + Number ) = @@s@@ + Number ; * ( ( _QWORD * ) @@s@@ + Number ) = Number L ; list_init ( * ( ( _QWORD * ) @@s@@ + Number ) ) ; @@s@@ [ Number ] = Number ; * ( ( _WORD * ) @@s@@ + Number ) = Number ; * ( ( _WORD * ) @@s@@ + Number ) = Number ; * ( ( _QWORD * ) @@s@@ + Number ) = @@v2@@ ; return @@s@@ ; } } rpl_free_instance ( @@v2@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r56"}, {"n": "v2", "t": {"T": 3, "t": "char"}, "location": "s16"}, {"n": "s", "t": {"T": 3, "t": "char"}, "location": "s8"}]} {"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_reset_dio_timer", "code": "__int64 __fastcall rpl_reset_dio_timer ( unsigned __int8 * @@a1@@ ) { __int64 @@result@@ ; @@result@@ = @@a1@@ [ Number ] ; if ( @@a1@@ [ Number ] > ( unsigned __int8 ) @@result@@ ) { @@a1@@ [ Number ] = Number ; @@a1@@ [ Number ] = @@a1@@ [ Number ] ; @@result@@ = new_dio_interval ( ( __int64 ) @@a1@@ ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "unsigned __int8"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}