{"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"}]}
{"name": "rimeaddr_copy", "code": "__int64 __fastcall rimeaddr_copy ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; unsigned __int8 @@i@@ ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { * ( _BYTE * ) ( @@a1@@ + @@i@@ ) = * ( _BYTE * ) ( @@a2@@ + @@i@@ ) ; @@result@@ = ( unsigned int ) @@i@@ + Number ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "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": "unsigned __int8", "s": 1}, "location": "s1"}]} {"name": "off", "code": "__int64 __fastcall off ( unsigned int @@a1@@ ) { return off_0 ( @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}]} {"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_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_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": "add_neighbor", "code": "__int64 __fastcall add_neighbor ( __int64 @@a1@@ ) { return neighbor_attr_add_neighbor ( @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "set_attr", "code": "void * __fastcall set_attr ( __int64 @@a1@@ , unsigned __int16 @@a2@@ ) { void * @@result@@ ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) @@result@@ = memcpy ( ( void * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + @@a2@@ * * ( unsigned __int16 * ) ( @@a1@@ + Number ) ) , * ( const void * * ) ( @@a1@@ + Number ) , * ( unsigned __int16 * ) ( @@a1@@ + Number ) ) ; else @@result@@ = memset ( ( void * ) ( @@a2@@ * * ( unsigned __int16 * ) ( @@a1@@ + Number ) + * ( _QWORD * ) ( @@a1@@ + Number ) ) , Number , * ( unsigned __int16 * ) ( @@a1@@ + Number ) ) ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "r64"}, {"n": "result", "t": {"T": 3, "t": "void"}, "location": "r8"}]} {"name": "neighbor_attr_has_neighbor", "code": "_BOOL8 __fastcall neighbor_attr_has_neighbor ( unsigned __int64 @@a1@@ ) { return neighbor_addr_get ( @@a1@@ ) != Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "r56"}]} {"name": "neighbor_attr_set_data", "code": "__int64 __fastcall neighbor_attr_set_data ( __int64 @@a1@@ , unsigned __int64 @@a2@@ , const void * @@a3@@ ) { _QWORD * @@v5@@ ; @@v5@@ = neighbor_addr_get ( @@a2@@ ) ; if ( ! @@v5@@ && ( unsigned int ) neighbor_attr_add_neighbor ( @@a2@@ ) ) @@v5@@ = neighbor_addr_get ( @@a2@@ ) ; if ( ! @@v5@@ ) return Number L ; * ( ( _WORD * ) @@v5@@ + Number ) = Number ; memcpy ( ( void * ) ( * ( ( unsigned __int16 * ) @@v5@@ + Number ) * * ( unsigned __int16 * ) ( @@a1@@ + Number ) + * ( _QWORD * ) ( @@a1@@ + Number ) ) , @@a3@@ , * ( unsigned __int16 * ) ( @@a1@@ + Number ) ) ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const void"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "r64"}, {"n": "v5", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]}