{"name": "uip_ds6_route_add", "code": "__int64 __fastcall uip_ds6_route_add ( _QWORD * @@a1@@ , char @@a2@@ , _QWORD * @@a3@@ , char @@a4@@ ) { __int64 v5 ; __int64 v6 ; __int64 @@v9@@ ; @@v9@@ = uip_ds6_route_lookup ( @@a1@@ ) ; if ( ! @@v9@@ ) { @@v9@@ = memb_alloc ( & routememb ) ; if ( ! @@v9@@ ) return Number L ; list_add ( routelist , @@v9@@ ) ; } v5 = @@a1@@ [ Number ] ; * ( _QWORD * ) ( @@v9@@ + Number ) = * @@a1@@ ; * ( _QWORD * ) ( @@v9@@ + Number ) = v5 ; * ( _BYTE * ) ( @@v9@@ + Number ) = @@a2@@ ; v6 = @@a3@@ [ Number ] ; * ( _QWORD * ) ( @@v9@@ + Number ) = * @@a3@@ ; * ( _QWORD * ) ( @@v9@@ + Number ) = v6 ; * ( _BYTE * ) ( @@v9@@ + Number ) = @@a4@@ ; memset ( ( void * ) ( @@v9@@ + Number ) , Number , Number ) ; call_route_callback ( Number , ( __int64 ) @@a1@@ , ( __int64 ) @@a3@@ ) ; return @@v9@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "_QWORD"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "char", "s": 1}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}
{"name": "call_route_callback", "code": "__int64 __fastcall call_route_callback ( unsigned int @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { __int64 @@result@@ ; __int64 @@i@@ ; unsigned int @@v6@@ ; @@result@@ = list_head ( notificationlist ) ; for ( @@i@@ = @@result@@ ; @@i@@ ; @@i@@ = @@result@@ ) { if ( @@a1@@ && @@a1@@ != Number ) @@v6@@ = list_length ( routelist ) ; else @@v6@@ = list_length ( defaultrouterlist ) ; ( * ( void ( __fastcall * * ) ( _QWORD , __int64 , __int64 , _QWORD ) ) ( @@i@@ + Number ) ) ( @@a1@@ , @@a2@@ , @@a3@@ , @@v6@@ ) ; @@result@@ = list_item_next ( @@i@@ ) ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "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": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v6", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "uip_ds6_route_lookup", "code": "__int64 __fastcall uip_ds6_route_lookup ( const void * @@a1@@ ) { unsigned __int8 @@v2@@ ; __int64 @@v3@@ ; __int64 @@i@@ ; @@v3@@ = Number L ; @@v2@@ = Number ; for ( @@i@@ = list_head ( routelist ) ; @@i@@ ; @@i@@ = list_item_next ( @@i@@ ) ) { if ( @@v2@@ <= * ( _BYTE * ) ( @@i@@ + Number ) && ! memcmp ( @@a1@@ , ( const void * ) ( @@i@@ + Number ) , * ( _BYTE * ) ( @@i@@ + Number ) >> Number ) ) { @@v2@@ = * ( _BYTE * ) ( @@i@@ + Number ) ; @@v3@@ = @@i@@ ; } } return @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const void"}, "location": "r56"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v2", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "s17"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "rpl_add_route", "code": "__int64 __fastcall rpl_add_route ( __int64 @@a1@@ , _QWORD * @@a2@@ , char @@a3@@ , _QWORD * @@a4@@ ) { __int64 v5 ; __int64 @@v8@@ ; @@v8@@ = uip_ds6_route_lookup ( @@a2@@ ) ; if ( @@v8@@ ) { v5 = @@a4@@ [ Number ] ; * ( _QWORD * ) ( @@v8@@ + Number ) = * @@a4@@ ; * ( _QWORD * ) ( @@v8@@ + Number ) = v5 ; } else { @@v8@@ = uip_ds6_route_add ( @@a2@@ , @@a3@@ , @@a4@@ , Number ) ; if ( ! @@v8@@ ) return Number L ; } * ( _QWORD * ) ( @@v8@@ + Number ) = @@a1@@ ; * ( _DWORD * ) ( @@v8@@ + Number ) = * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) * * ( unsigned __int16 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; * ( _BYTE * ) ( @@v8@@ + Number ) = Number ; return @@v8@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "char", "s": 1}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "_QWORD"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "memb_alloc", "code": "__int64 __fastcall memb_alloc ( unsigned __int16 * @@a1@@ ) { int @@i@@ ; for ( @@i@@ = Number ; @@i@@ < @@a1@@ [ Number ] ; ++ @@i@@ ) { if ( ! * ( _BYTE * ) ( * ( ( _QWORD * ) @@a1@@ + Number ) + @@i@@ ) ) { ++ * ( _BYTE * ) ( * ( ( _QWORD * ) @@a1@@ + Number ) + @@i@@ ) ; return * ( ( _QWORD * ) @@a1@@ + Number ) + @@i@@ * * @@a1@@ ; } } return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "unsigned __int16"}, "location": "r56"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "list_add", "code": "_QWORD * __fastcall list_add ( _QWORD * @@a1@@ , _QWORD * @@a2@@ ) { _QWORD * @@result@@ ; _QWORD * @@v3@@ ; list_remove ( @@a1@@ , @@a2@@ ) ; * @@a2@@ = Number L ; @@v3@@ = list_tail ( @@a1@@ ) ; if ( @@v3@@ ) { @@result@@ = @@v3@@ ; * @@v3@@ = @@a2@@ ; } else { @@result@@ = @@a1@@ ; * @@a1@@ = @@a2@@ ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "result", "t": {"T": 3, "t": "_QWORD"}, "location": "r8"}, {"n": "v3", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]}