//
// FriendsProfilePage::onSendMessage from 0xa51714 to 0xa517f8 (228 bytes)
//
// 3 xrefs:
// > ??> @ 0x849d0
// > FriendsProfilePage::mountVirtualRow @ 0xa500bc
// > ??> @ 0x1543768
//
// This function is hookable on this platform (idp: arm, 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 13:00:05 +0000
//
__int64 __fastcall FriendsProfilePage::onSendMessage(FriendsProfilePage *this, cocos2d::CCObject *a2)
{
__int64 v2; // x0
int v3; // w20
char v4; // w1
__int64 v5; // x2
__int64 v6; // x0
__int64 v7; // x1
__int64 v9; // [xsp+30h] [xbp+30h] BYREF
__int64 v10; // [xsp+38h] [xbp+38h]
void *v11; // [xsp+40h] [xbp+40h]
v2 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 640LL))(a2);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 376);
if ( v3 > 0 )
{
v4 = *(_BYTE *)(v2 + 320);
v9 = 0;
v5 = v2 + 320;
v10 = 0;
v11 = nullptr;
if ( (v4 & 1) != 0 )
{
std::string::__init(&v9, *(void **)(v2 + 336), *(_QWORD *)(v2 + 328));
}
else
{
v6 = *(_QWORD *)v5;
v7 = *(_QWORD *)(v5 + 8);
v11 = *(void **)(v5 + 16);
v9 = v6;
v10 = v7;
}
ThreadOpenHelper::check((unsigned int)v3, &v9);
if ( (v9 & 1) != 0 )
operator delete(v11);
}
}
return _stack_chk_guard;
}