{"name": "list_push", "code": "_QWORD * __fastcall list_push ( _QWORD * @@a1@@ , _QWORD * @@a2@@ ) { _QWORD * @@result@@ ; list_remove ( @@a1@@ , @@a2@@ ) ; * @@a2@@ = * @@a1@@ ; @@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"}]}
{"name": "uip_ds6_defrt_add", "code": "__int64 __fastcall uip_ds6_defrt_add ( _QWORD * @@a1@@ , __int64 @@a2@@ ) { __int64 @@v3@@ ; __int64 @@v4@@ ; @@v4@@ = uip_ds6_defrt_lookup ( @@a1@@ ) ; if ( ! @@v4@@ ) { @@v4@@ = memb_alloc ( & defaultroutermemb ) ; if ( ! @@v4@@ ) return Number L ; list_push ( defaultrouterlist , @@v4@@ ) ; } @@v3@@ = @@a1@@ [ Number ] ; * ( _QWORD * ) ( @@v4@@ + Number ) = * @@a1@@ ; * ( _QWORD * ) ( @@v4@@ + Number ) = @@v3@@ ; if ( @@a2@@ ) { stimer_set ( @@v4@@ + Number , @@a2@@ ) ; * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; } else { * ( _BYTE * ) ( @@v4@@ + Number ) = Number ; } call_route_callback ( Number , ( __int64 ) @@a1@@ , ( __int64 ) @@a1@@ ) ; return @@v4@@ ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "servreg_hack_register", "code": "int __fastcall servreg_hack_register ( char @@a1@@ , _QWORD * @@a2@@ ) { int result ; __int64 @@v3@@ ; unsigned __int16 v4 ; __int64 @@v5@@ ; __int64 @@v6@@ ; __int64 @@i@@ ; servreg_hack_init ( ) ; for ( @@i@@ = list_head ( own_services ) ; @@i@@ ; @@i@@ = list_item_next ( @@i@@ ) ) { result = servreg_hack_item_id ( @@i@@ ) ; if ( @@a1@@ == ( _BYTE ) result ) return result ; } @@v6@@ = memb_alloc ( & registrations ) ; if ( ! @@v6@@ ) return puts ( String String ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = @@a1@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; @@v3@@ = @@a2@@ [ Number ] ; * ( _QWORD * ) ( @@v6@@ + Number ) = * @@a2@@ ; * ( _QWORD * ) ( @@v6@@ + Number ) = @@v3@@ ; timer_set ( @@v6@@ + Number , Number L ) ; list_push ( own_services , @@v6@@ ) ; @@v5@@ = process_current ; process_current = ( __int64 ) & servreg_hack_process ; v4 = random_rand ( ) ; etimer_set ( ( __int64 ) & sendtimer , v4 % Number ) ; result = @@v5@@ ; process_current = @@v5@@ ; return result ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "char", "s": 1}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "handle_incoming_reg", "code": "char __fastcall handle_incoming_reg ( _QWORD * @@a1@@ , char @@a2@@ , char @@a3@@ ) { char @@result@@ ; __int64 v4 ; __int64 @@v6@@ ; __int64 @@i@@ ; for ( @@i@@ = servreg_hack_list_head ( ) ; ; @@i@@ = list_item_next ( @@i@@ ) ) { if ( ! @@i@@ ) { @@v6@@ = memb_alloc ( & registrations ) ; if ( ! @@v6@@ ) return puts ( String String ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = @@a2@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; v4 = @@a1@@ [ Number ] ; * ( _QWORD * ) ( @@v6@@ + Number ) = * @@a1@@ ; * ( _QWORD * ) ( @@v6@@ + Number ) = v4 ; timer_set ( @@v6@@ + Number , Number L ) ; return list_add ( others_services , @@v6@@ ) ; } if ( @@a2@@ == ( unsigned __int8 ) servreg_hack_item_id ( @@i@@ ) ) break ; } @@result@@ = * ( _BYTE * ) ( @@i@@ + Number ) - @@a3@@ ; if ( @@result@@ < Number ) { * ( _BYTE * ) ( @@i@@ + Number ) = @@a3@@ ; timer_set ( @@i@@ + Number , Number L ) ; list_remove ( others_services , @@i@@ ) ; @@result@@ = list_push ( others_services , @@i@@ ) ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "char", "s": 1}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "char", "s": 1}, "location": "r8"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "list_remove", "code": "_QWORD * __fastcall list_remove ( _QWORD * @@a1@@ , _QWORD * @@a2@@ ) { _QWORD * @@result@@ ; _QWORD * @@v3@@ ; _QWORD * @@i@@ ; @@result@@ = ( _QWORD * ) * @@a1@@ ; if ( * @@a1@@ ) { @@v3@@ = Number L ; @@result@@ = ( _QWORD * ) * @@a1@@ ; for ( @@i@@ = ( _QWORD * ) * @@a1@@ ; @@i@@ ; @@i@@ = ( _QWORD * ) * @@i@@ ) { if ( @@i@@ == @@a2@@ ) { if ( @@v3@@ ) * @@v3@@ = * @@i@@ ; else * @@a1@@ = * @@i@@ ; @@result@@ = @@i@@ ; * @@i@@ = Number L ; return @@result@@ ; } @@v3@@ = @@i@@ ; @@result@@ = ( _QWORD * ) * @@i@@ ; } } 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": "s16"}, {"n": "i", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]} {"name": "list_insert", "code": "_QWORD * __fastcall list_insert ( _QWORD * @@a1@@ , _QWORD * @@a2@@ , _QWORD * @@a3@@ ) { _QWORD * @@result@@ ; if ( ! @@a2@@ ) return list_push ( @@a1@@ , @@a3@@ ) ; * @@a3@@ = * @@a2@@ ; @@result@@ = @@a2@@ ; * @@a2@@ = @@a3@@ ; return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "_QWORD"}, "location": "r16"}, {"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"}]} {"name": "neighbor_attr_register", "code": "__int64 __fastcall neighbor_attr_register ( _QWORD * @@a1@@ ) { __int64 @@i@@ ; list_push ( neighbor_attrs , @@a1@@ ) ; for ( @@i@@ = list_head ( ( __int64 ) neighbor_addrs ) ; @@i@@ ; @@i@@ = * ( _QWORD * ) @@i@@ ) set_attr ( ( __int64 ) @@a1@@ , * ( _WORD * ) ( @@i@@ + Number ) ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "neighbor_attr_add_neighbor", "code": "__int64 __fastcall neighbor_attr_add_neighbor ( unsigned __int64 @@a1@@ ) { __int64 @@v2@@ ; unsigned __int16 @@i@@ ; _QWORD * @@j@@ ; if ( neighbor_attr_has_neighbor ( @@a1@@ ) ) return Number L ; @@v2@@ = memb_alloc ( & neighbor_addr_mem ) ; if ( ! @@v2@@ ) return Number ; list_push ( neighbor_addrs , ( _QWORD * ) @@v2@@ ) ; * ( _WORD * ) ( @@v2@@ + Number ) = Number ; rimeaddr_copy ( @@v2@@ + Number , @@a1@@ ) ; for ( @@i@@ = Number ; @@i@@ < ( unsigned __int16 ) word_41F3E2 && ( void * ) @@v2@@ != ( char * ) off_41F3F0 + Number * @@i@@ ; ++ @@i@@ ) ; * ( _WORD * ) ( @@v2@@ + Number ) = @@i@@ ; for ( @@j@@ = ( _QWORD * ) list_head ( ( __int64 ) neighbor_attrs ) ; @@j@@ ; @@j@@ = ( _QWORD * ) * @@j@@ ) set_attr ( ( __int64 ) @@j@@ , @@i@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "r56"}, {"n": "i", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s10"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "j", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]}