//
// GJCompactUserCell::onSendMessage from 0x10023fec0 to 0x10023ff37 (119 bytes)
//
// 1 xrefs:
// > GJCompactUserCell::loadFromScore @ 0x100231c9f
//
// 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:27:17 +0000
//
void __fastcall GJCompactUserCell::onSendMessage(__int64 a1)
{
__int64 v1; // rax
int v2; // ebx
__int128 *v3; // rax
__int128 v4; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v1 = *(_QWORD *)(a1 + 552);
if ( v1 )
{
v2 = *(_DWORD *)(v1 + 376);
if ( v2 > 0 )
{
if ( (*(_BYTE *)(v1 + 320) & 1) != 0 )
{
sub_10001AD30(&v4, *(const void **)(v1 + 336), *(_QWORD *)(v1 + 328));
}
else
{
v3 = (__int128 *)(v1 + 320);
__p = *((void **)v3 + 2);
v4 = *v3;
}
ThreadOpenHelper::check((unsigned int)v2, &v4);
if ( (v4 & 1) != 0 )
operator delete(__p);
}
}
}