//
// cocos2d::extension::WebSocket::onUIThreadReceiveMessage from 0x7b2bf0 to 0x7b2c68 (120 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:08 +0000
//
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 + 48) + 8))(*(_DWORD *)(a1 + 48), a1);
break;
case 3:
v3 = (void **)a2[1];
(*(void (__fastcall **)(_DWORD, int, void **, int, int, _DWORD *))(**(_DWORD **)(a1 + 48) + 12))(
*(_DWORD *)(a1 + 48),
a1,
v3,
a1,
v5,
v6);
if ( *v3 )
{
operator delete[](*v3);
*v3 = nullptr;
}
operator delete(v3);
break;
case 4:
v4 = *(_DWORD *)(a1 + 48);
v5 = 1;
(*(void (__fastcall **)(int, int, int *))(*(_DWORD *)v4 + 20))(v4, a1, &v5);
break;
case 5:
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 48) + 16))(*(_DWORD *)(a1 + 48), a1);
break;
default:
return;
}
}