{"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"}]}
{"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": "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": "packetbuf_reference", "code": "__int64 __fastcall packetbuf_reference ( void * @@a1@@ , unsigned __int16 @@a2@@ ) { __int64 @@result@@ ; packetbuf_clear ( ) ; packetbufptr = @@a1@@ ; @@result@@ = @@a2@@ ; buflen = @@a2@@ ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "void"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "packetbuf_attr_copyto", "code": "__int64 __fastcall packetbuf_attr_copyto ( void * @@a1@@ , _QWORD * @@a2@@ ) { __int64 v2 ; __int64 @@result@@ ; __int64 v4 ; memcpy ( @@a1@@ , packetbuf_attrs , Number ) ; v2 = qword_4239E8 ; * @@a2@@ = packetbuf_addrs ; @@a2@@ [ Number ] = v2 ; @@result@@ = qword_4239F0 ; v4 = qword_4239F8 ; @@a2@@ [ Number ] = qword_4239F0 ; @@a2@@ [ Number ] = v4 ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "void"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "output", "code": "__int64 __fastcall output ( __int64 @@a1@@ ) { char @@v2@@ [ Number ] ; __int64 * @@v3@@ ; unsigned __int16 @@v4@@ ; uncomp_hdr_len = Number ; rime_hdr_len = Number ; packetbuf_clear ( ) ; rime_ptr = packetbuf_dataptr ( ) ; packetbuf_set_attr ( Number , Number ) ; if ( callback ) set_packet_attrs ( ) ; if ( * ( ( _BYTE * ) & uip_aligned_buf + Number ) != Number || ( * ( ( _BYTE * ) & dword_4227A8 + Number ) & Number ) != Number || ( * ( ( _BYTE * ) & dword_4227A8 + Number ) & Number ) == Number ) { if ( * ( ( _BYTE * ) & uip_aligned_buf + Number ) == Number && ( * ( ( _BYTE * ) & dword_4227A8 + Number ) & Number ) != Number ) packetbuf_set_attr ( Number , Number ) ; } else { packetbuf_set_attr ( Number , Number ) ; } if ( @@a1@@ ) rimeaddr_copy ( ( __int64 ) @@v2@@ , @@a1@@ ) ; else rimeaddr_copy ( ( __int64 ) @@v2@@ , ( __int64 ) & rimeaddr_null ) ; compress_hdr_hc06 ( @@v2@@ ) ; if ( ( unsigned __int16 ) uip_len - ( unsigned __int8 ) uncomp_hdr_len <= Number - ( unsigned __int8 ) rime_hdr_len ) { memcpy ( ( char * ) rime_ptr + ( unsigned __int8 ) rime_hdr_len , ( char * ) & uip_aligned_buf + ( unsigned __int8 ) uncomp_hdr_len , ( unsigned __int16 ) uip_len - ( unsigned __int8 ) uncomp_hdr_len ) ; packetbuf_set_datalen ( uip_len - ( unsigned __int8 ) uncomp_hdr_len + ( unsigned __int8 ) rime_hdr_len ) ; send_packet_1 ( ( __int64 ) @@v2@@ ) ; } else { memmove ( ( char * ) rime_ptr + Number , rime_ptr , ( unsigned __int8 ) rime_hdr_len ) ; * ( _BYTE * ) rime_ptr = HIBYTE ( uip_len ) | Number ; * ( ( _BYTE * ) rime_ptr + Number ) = uip_len ; * ( ( _BYTE * ) rime_ptr + Number ) = HIBYTE ( my_tag ) ; * ( ( _BYTE * ) rime_ptr + Number ) = my_tag ++ ; rime_hdr_len += Number ; rime_payload_len = ( Number - rime_hdr_len ) & Number ; memcpy ( ( char * ) rime_ptr + ( unsigned __int8 ) rime_hdr_len , ( char * ) & uip_aligned_buf + ( unsigned __int8 ) uncomp_hdr_len , ( Number - rime_hdr_len ) & Number ) ; packetbuf_set_datalen ( ( unsigned __int8 ) rime_payload_len + ( unsigned __int8 ) rime_hdr_len ) ; @@v3@@ = ( __int64 * ) queuebuf_new_from_packetbuf ( ) ; if ( ! @@v3@@ ) return Number L ; send_packet_1 ( ( __int64 ) @@v2@@ ) ; queuebuf_to_packetbuf ( ( unsigned __int64 ) @@v3@@ ) ; queuebuf_free ( @@v3@@ ) ; @@v3@@ = Number L ; if ( last_tx_status == Number || last_tx_status == Number || last_tx_status == Number ) return Number L ; @@v4@@ = ( unsigned __int8 ) rime_payload_len + ( unsigned __int8 ) uncomp_hdr_len ; rime_hdr_len = Number ; * ( _BYTE * ) rime_ptr = HIBYTE ( uip_len ) | Number ; * ( ( _BYTE * ) rime_ptr + Number ) = uip_len ; rime_payload_len = ( Number - rime_hdr_len ) & Number ; while ( @@v4@@ < ( unsigned __int16 ) uip_len ) { * ( ( _BYTE * ) rime_ptr + Number ) = @@v4@@ >> Number ; if ( ( unsigned __int16 ) uip_len - @@v4@@ < ( unsigned __int8 ) rime_payload_len ) rime_payload_len = uip_len - @@v4@@ ; memcpy ( ( char * ) rime_ptr + ( unsigned __int8 ) rime_hdr_len , ( char * ) & uip_aligned_buf + @@v4@@ , ( unsigned __int8 ) rime_payload_len ) ; packetbuf_set_datalen ( ( unsigned __int8 ) rime_payload_len + ( unsigned __int8 ) rime_hdr_len ) ; @@v3@@ = ( __int64 * ) queuebuf_new_from_packetbuf ( ) ; if ( ! @@v3@@ ) return Number L ; send_packet_1 ( ( __int64 ) @@v2@@ ) ; queuebuf_to_packetbuf ( ( unsigned __int64 ) @@v3@@ ) ; queuebuf_free ( @@v3@@ ) ; @@v3@@ = Number L ; @@v4@@ += ( unsigned __int8 ) rime_payload_len ; if ( last_tx_status == Number || last_tx_status == Number || last_tx_status == Number ) return Number L ; } } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v3", "t": {"T": 3, "t": "__int64"}, "location": "s16"}, {"n": "v4", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s2"}, {"n": "v2", "t": {"T": 2, "n": 8, "s": 1, "t": "char"}, "location": "s24"}]}