//
// cocos2d::extension::WebSocket::onUIThreadReceiveMessage from 0x5acb6c to 0x5acbe4 (120 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::extension::WebSocket::onUIThreadReceiveMessage(int a1, _DWORD *a2)
{
void **v3; // r4
int v4; // r0
int v5; // [sp+0h] [bp-8h] BYREF
_DWORD *v6; // [sp+4h] [bp-4h]
v5 = a1;
v6 = a2;
switch ( *a2 )
{
case 2:
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 32) + 8))(*(_DWORD *)(a1 + 32), a1);
break;
case 3:
v3 = (void **)a2[1];
(*(void (__fastcall **)(_DWORD, int, void **, int, int, _DWORD *))(**(_DWORD **)(a1 + 32) + 12))(
*(_DWORD *)(a1 + 32),
a1,
v3,
a1,
v5,
v6);
if ( *v3 )
{
operator delete[](*v3);
*v3 = nullptr;
}
operator delete(v3);
break;
case 4:
v4 = *(_DWORD *)(a1 + 32);
v5 = 1;
(*(void (__fastcall **)(int, int, int *))(*(_DWORD *)v4 + 20))(v4, a1, &v5);
break;
case 5:
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 32) + 16))(*(_DWORD *)(a1 + 32), a1);
break;
default:
return;
}
}