//
// cocos2d::extension::WebSocket::send from 0x18001a110 to 0x18001a1bb (171 bytes)
//
// 4 xrefs:
// > ??> @ 0x180031bb0
// > ??> @ 0x180031bc0
// > ??> @ 0x180032408
// > ??> @ 0x18004cc20
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:15:43 +0000
//
void __fastcall cocos2d::extension::WebSocket::send(
cocos2d::extension::WebSocket *this,
const unsigned __int8 *a2,
unsigned int a3)
{
__int64 v6; // rsi
__int64 v7; // rdi
void *v8; // rax
if ( *((_DWORD *)this + 2) == 1 )
{
v6 = sub_18001F040(0x10u);
*(_QWORD *)(v6 + 8) = 0;
*(_DWORD *)v6 = 1;
v7 = sub_18001F040(0x10u);
*(_QWORD *)v7 = 0;
*(_DWORD *)(v7 + 8) = 0;
*(_BYTE *)(v7 + 12) = 0;
v8 = (void *)sub_18001F33C(a3);
*(_QWORD *)v7 = v8;
memcpy(v8, a2, a3);
*(_DWORD *)(v7 + 8) = a3;
*(_QWORD *)(v6 + 8) = v7;
sub_180019620(*((_QWORD *)this + 11), v6);
}
}