//
// cocos2d::extension::WebSocket::send from 0x7b3206 to 0x7b3258 (82 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:09 +0000
//
int __fastcall cocos2d::extension::WebSocket::send(int this, const unsigned __int8 *a2, unsigned int a3)
{
int v3; // r8
_DWORD *v6; // r5
int v7; // r4
void *v8; // r0
v3 = this;
if ( *(_DWORD *)(this + 4) == 1 )
{
v6 = (_DWORD *)operator new(8u);
*v6 = 1;
v6[1] = 0;
v7 = operator new(0xCu);
*(_DWORD *)v7 = 0;
*(_DWORD *)(v7 + 4) = 0;
*(_BYTE *)(v7 + 8) = 0;
v8 = (void *)operator new[](a3);
*(_DWORD *)v7 = v8;
memcpy(v8, a2, a3);
*(_DWORD *)(v7 + 4) = a3;
v6[1] = v7;
return cocos2d::extension::WsThreadHelper::sendMessageToSubThread(*(_DWORD *)(v3 + 36), (int)v6);
}
return this;
}