{"name": "l2cap_init", "code": "unsigned __int64 __fastcall l2cap_init ( __int64 @@a1@@ , __int64 * @@a2@@ , int @@a3@@ ) { __int64 @@v3@@ ; unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; * ( _QWORD * ) @@a1@@ = @@a2@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; if ( @@a3@@ ) @@v3@@ = @@a2@@ [ Number ] ; else @@v3@@ = * @@a2@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@v3@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _QWORD * ) ( @@a1@@ + Number ) = l2cap_cframe_in ; * ( _QWORD * ) ( @@a1@@ + Number ) = l2cap_bframe_out ; * ( _QWORD * ) ( @@a1@@ + Number ) = l2cap_bframe_submit ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _WORD * ) ( @@a1@@ + Number ) = Number ; * ( _QWORD * ) ( @@a1@@ + Number ) = l2cap_bframe_in ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a1@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a1@@ + Number ; * ( _QWORD * ) ( @@a1@@ + Number ) = l2cap_gframe_in ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a1@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = l2cap_bframe_in ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a1@@ ; * ( _WORD * ) ( @@a1@@ + Number ) = Number ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a1@@ + Number ; return __readfsqword ( Number ) ^ @@v5@@ ; }", "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": "__int64"}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "l2cap_cframe_in", "code": "unsigned __int64 __fastcall l2cap_cframe_in ( __int64 @@a1@@ , unsigned __int8 * @@a2@@ , int @@a3@@ ) { int @@v5@@ ; unsigned __int16 * @@v7@@ ; int @@v8@@ ; unsigned __int8 * @@v9@@ ; unsigned __int64 @@v10@@ ; @@v10@@ = __readfsqword ( Number ) ; while ( @@a3@@ ) { @@v9@@ = @@a2@@ ; if ( @@a3@@ <= Number ) break ; @@v5@@ = @@a3@@ - Number ; @@v7@@ = ( unsigned __int16 * ) ( @@a2@@ + Number ) ; @@v8@@ = ( unsigned __int16 ) le16_to_cpu ( * ( ( _WORD * ) @@v9@@ + Number ) ) ; if ( @@v5@@ < @@v8@@ ) { l2cap_command_reject ( @@a1@@ , @@v9@@ [ Number ] , Number , Number L , Number ) ; return __readfsqword ( Number ) ^ @@v10@@ ; } l2cap_command ( @@a1@@ , * @@v9@@ , @@v9@@ [ Number ] , @@v7@@ , @@v8@@ ) ; @@a3@@ = @@v5@@ - @@v8@@ ; @@a2@@ = ( unsigned __int8 * ) @@v7@@ + @@v8@@ ; } return __readfsqword ( Number ) ^ @@v10@@ ; }", "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": "unsigned __int8"}, "location": "r64"}, {"n": "v9", "t": {"T": 3, "t": "unsigned __int8"}, "location": "s16"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v7", "t": {"T": 3, "t": "unsigned __int16"}, "location": "s48"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s52"}, {"n": "v10", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "l2cap_bframe_in", "code": "unsigned __int64 __fastcall l2cap_bframe_in ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , unsigned int @@a4@@ ) { unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; ( * ( void ( __fastcall * * ) ( _QWORD , __int64 , _QWORD ) ) ( @@a1@@ + Number ) ) ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@a3@@ + Number , @@a4@@ ) ; return __readfsqword ( Number ) ^ @@v5@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "l2cap_bframe_out", "code": "__int64 __fastcall l2cap_bframe_out ( __int64 @@a1@@ , int @@a2@@ ) { if ( @@a2@@ > * ( _DWORD * ) ( @@a1@@ + Number ) ) { fprintf ( stderr , String , String , * ( unsigned __int16 * ) ( @@a1@@ + Number ) , * ( unsigned int * ) ( @@a1@@ + Number ) ) ; exit ( Number ) ; } return l2cap_pdu_out ( * ( _QWORD * ) ( @@a1@@ + Number ) , * ( _WORD * ) ( @@a1@@ + Number ) , @@a2@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}]} {"name": "l2cap_bframe_submit", "code": "unsigned __int64 __fastcall l2cap_bframe_submit ( __int64 @@a1@@ ) { unsigned __int64 @@v2@@ ; @@v2@@ = __readfsqword ( Number ) ; l2cap_pdu_submit ( * ( _DWORD * * ) ( @@a1@@ + Number ) ) ; return __readfsqword ( Number ) ^ @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "l2cap_lmp_connection_request", "code": "unsigned __int64 __fastcall l2cap_lmp_connection_request ( __int64 * @@a1@@ ) { __int64 @@v2@@ ; __int64 * @@v3@@ ; unsigned __int64 @@v4@@ ; @@v4@@ = __readfsqword ( Number ) ; @@v2@@ = * @@a1@@ ; @@v3@@ = ( __int64 * ) g_malloc0 ( Number L ) ; * @@v3@@ = @@v2@@ ; @@v3@@ [ Number ] = @@a1@@ [ Number ] ; l2cap_init ( ( __int64 ) ( @@v3@@ + Number ) , @@v3@@ , Number ) ; * ( _BYTE * ) ( @@a1@@ [ Number ] + Number ) = Number ; ( * ( void ( __fastcall * * ) ( __int64 * ) ) ( @@a1@@ [ Number ] + Number ) ) ( @@v3@@ ) ; return __readfsqword ( Number ) ^ @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "__int64"}, "location": "r56"}, {"n": "v3", "t": {"T": 3, "t": "__int64"}, "location": "s16"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v4", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "l2cap_lmp_connection_complete", "code": "unsigned __int64 __fastcall l2cap_lmp_connection_complete ( __int64 @@a1@@ ) { __int64 @@v2@@ ; unsigned __int64 @@v3@@ ; @@v3@@ = __readfsqword ( Number ) ; if ( ! * ( _BYTE * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) { @@v2@@ = g_malloc0 ( Number L ) ; l2cap_init ( @@v2@@ , ( __int64 * ) @@a1@@ , Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; } return __readfsqword ( Number ) ^ @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}