//
// MenuLayer::onMyProfile from 0x3f9578 to 0x3f95bc (68 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 11:47:19 +0000
//
GameManager *__fastcall MenuLayer::onMyProfile(MenuLayer *this, cocos2d::CCObject *a2)
{
GameManager *result; // r0
GameManager *v3; // r0
GJAccountManager *v4; // r0
int v5; // r0
bool v6; // r2
int v7; // r0
result = (GameManager *)GJAccountManager::sharedState(this);
if ( *((_DWORD *)result + 70) - *((_DWORD *)result + 71) > 0 )
{
v3 = (GameManager *)GameManager::sharedState(result);
v4 = (GJAccountManager *)GameManager::setGameVariable(v3, "0048", 1);
v5 = GJAccountManager::sharedState(v4);
v7 = ProfilePage::create((ProfilePage *)(*(_DWORD *)(v5 + 280) - *(_DWORD *)(v5 + 284)), 1, v6);
return (GameManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 656))(v7);
}
return result;
}