{"name": "l2cap_lmp_acl_data_slave", "code": "unsigned __int64 __fastcall l2cap_lmp_acl_data_slave ( __int64 @@a1@@ , const void * @@a2@@ , int @@a3@@ , int @@a4@@ ) { unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; if ( @@a3@@ ) * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; l2cap_pdu_in ( @@a1@@ + Number , @@a2@@ , @@a4@@ ) ; return __readfsqword ( Number ) ^ @@v5@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const void"}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "l2cap_pdu_in", "code": "unsigned __int64 __fastcall l2cap_pdu_in ( __int64 @@a1@@ , const void * @@a2@@ , int @@a3@@ ) { unsigned __int16 * @@v5@@ ; unsigned __int64 @@v6@@ ; @@v6@@ = __readfsqword ( Number ) ; @@v5@@ = ( unsigned __int16 * ) ( @@a1@@ + Number ) ; if ( ( unsigned int ) ( * ( _DWORD * ) ( @@a1@@ + Number ) + @@a3@@ ) <= Number ) { memcpy ( ( void * ) ( * ( int * ) ( @@a1@@ + Number ) + @@a1@@ + Number ) , @@a2@@ , @@a3@@ ) ; * ( _DWORD * ) ( @@a1@@ + Number ) += @@a3@@ ; if ( @@a3@@ > Number && @@a3@@ > ( unsigned __int16 ) le16_to_cpu ( * @@v5@@ ) + Number ) l2cap_frame_in ( @@a1@@ , @@v5@@ ) ; } else if ( * ( _DWORD * ) ( @@a1@@ + Number ) <= Number ) { memcpy ( ( void * ) ( * ( int * ) ( @@a1@@ + Number ) + @@a1@@ + Number ) , @@a2@@ , Number L - * ( int * ) ( @@a1@@ + Number ) ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; l2cap_frame_in ( @@a1@@ , @@v5@@ ) ; } return __readfsqword ( Number ) ^ @@v6@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const void"}, "location": "r64"}, {"n": "v5", "t": {"T": 3, "t": "unsigned __int16"}, "location": "s16"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "bt_l2cap_device_init", "code": "unsigned __int64 __fastcall bt_l2cap_device_init ( _QWORD * @@a1@@ , __int64 @@a2@@ ) { unsigned __int64 @@v3@@ ; @@v3@@ = __readfsqword ( Number ) ; bt_device_init ( @@a1@@ , @@a2@@ ) ; @@a1@@ [ Number ] = l2cap_lmp_connection_request ; @@a1@@ [ Number ] = l2cap_lmp_connection_complete ; @@a1@@ [ Number ] = l2cap_lmp_disconnect_host ; @@a1@@ [ Number ] = l2cap_lmp_disconnect_slave ; @@a1@@ [ Number ] = l2cap_lmp_acl_data_slave ; @@a1@@ [ Number ] = l2cap_lmp_acl_data_host ; @@a1@@ [ Number ] = l2cap_dummy_destroy ; return __readfsqword ( Number ) ^ @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}