//
// cocos2d::extension::WebSocket::send from 0x7b3192 to 0x7b3206 (116 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 result, unsigned __int8 *a2)
{
int v2; // r7
_DWORD *v4; // r6
int v5; // r5
int v6; // r0
int v7; // r0
char *v8; // r0
const char *v9; // r1
int v10; // r3
int v11; // r3
v2 = result;
if ( *(_DWORD *)(result + 4) == 1 )
{
v4 = (_DWORD *)operator new(8u);
*v4 = 0;
v4[1] = 0;
v5 = operator new(0xCu);
*(_DWORD *)v5 = 0;
*(_DWORD *)(v5 + 4) = 0;
*(_BYTE *)(v5 + 8) = 0;
v6 = *a2;
if ( (v6 & 1) != 0 )
v7 = *((_DWORD *)a2 + 1);
else
v7 = v6 >> 1;
v8 = (char *)operator new[](v7 + 1);
*(_DWORD *)v5 = v8;
if ( (*a2 & 1) != 0 )
v9 = *((const char **)a2 + 2);
else
v9 = (const char *)(a2 + 1);
strcpy(v8, v9);
v10 = *a2;
if ( (v10 & 1) != 0 )
v11 = *((_DWORD *)a2 + 1);
else
v11 = v10 >> 1;
*(_DWORD *)(v5 + 4) = v11;
v4[1] = v5;
return cocos2d::extension::WsThreadHelper::sendMessageToSubThread(*(_DWORD *)(v2 + 36), (int)v4);
}
return result;
}