{"name": "packetbuf_copyto_hdr", "code": "__int64 __fastcall packetbuf_copyto_hdr ( void * @@a1@@ ) { memcpy ( @@a1@@ , ( char * ) packetbuf + ( unsigned __int8 ) hdrptr , Number - ( unsigned __int8 ) hdrptr ) ; return Number - ( unsigned int ) ( unsigned __int8 ) hdrptr ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "void"}, "location": "r56"}]}
{"name": "packetbuf_copyto", "code": "__int64 __fastcall packetbuf_copyto ( char * @@a1@@ ) { if ( Number - ( unsigned __int8 ) hdrptr + ( unsigned __int16 ) buflen > Number ) return Number L ; memcpy ( @@a1@@ , ( char * ) packetbuf + ( unsigned __int8 ) hdrptr , Number - ( unsigned __int8 ) hdrptr ) ; memcpy ( & @@a1@@ [ Number L - ( unsigned __int8 ) hdrptr ] , ( char * ) packetbufptr + ( unsigned __int16 ) bufptr , ( unsigned __int16 ) buflen ) ; return Number - ( unsigned __int8 ) hdrptr + ( unsigned int ) ( unsigned __int16 ) buflen ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "char"}, "location": "r56"}]} {"name": "queuebuf_new_from_packetbuf", "code": "__int64 queuebuf_new_from_packetbuf ( ) { __int64 @@result@@ ; __int64 @@v1@@ ; __int64 @@v2@@ ; __int64 @@v3@@ ; if ( packetbuf_is_reference ( ) ) { @@v1@@ = memb_alloc ( refbufmem ) ; if ( @@v1@@ ) { * ( _WORD * ) @@v1@@ = packetbuf_datalen ( ) ; * ( _QWORD * ) ( @@v1@@ + Number ) = packetbuf_reference_ptr ( ) ; * ( _BYTE * ) ( @@v1@@ + Number ) = packetbuf_copyto_hdr ( ( void * ) ( @@v1@@ + Number ) ) ; } @@result@@ = @@v1@@ ; } else { @@v3@@ = memb_alloc ( ( unsigned __int16 * ) bufmem ) ; if ( @@v3@@ ) { * ( _QWORD * ) @@v3@@ = memb_alloc ( buframmem ) ; if ( ! * ( _QWORD * ) @@v3@@ ) return Number L ; @@v2@@ = * ( _QWORD * ) @@v3@@ ; * ( _WORD * ) @@v2@@ = packetbuf_copyto ( ( char * ) ( * ( _QWORD * ) @@v3@@ + Number L ) ) ; packetbuf_attr_copyto ( ( void * ) ( @@v2@@ + Number ) , ( _QWORD * ) ( @@v2@@ + Number ) ) ; } @@result@@ = @@v3@@ ; } return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}