//
// MenuLayer::onMyProfile from 0x6ea648 to 0x6ea6a8 (96 bytes)
//
// 3 xrefs:
// > ??> @ 0xebf60
// > MenuLayer::init @ 0x6ebdc8
// > ??> @ 0x1547200
//
// 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 12:51:45 +0000
//
__int64 __fastcall MenuLayer::onMyProfile(MenuLayer *this, cocos2d::CCObject *a2)
{
__int64 v2; // x0
__int64 result; // x0
GameManager *v4; // x0
GJAccountManager *v5; // x0
__int64 v6; // x0
__int64 v7; // x0
v2 = GJAccountManager::sharedState(this);
result = (unsigned int)(*(_DWORD *)(v2 + 352) - *(_DWORD *)(v2 + 356));
if ( (int)result > 0 )
{
v4 = (GameManager *)GameManager::sharedState((GameManager *)result);
v5 = (GJAccountManager *)GameManager::setGameVariable(v4, "0048", 1);
v6 = GJAccountManager::sharedState(v5);
v7 = ProfilePage::create(
(ProfilePage *)(unsigned int)(*(_DWORD *)(v6 + 352) - *(_DWORD *)(v6 + 356)),
1,
*(_DWORD *)(v6 + 352));
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
}
return result;
}