//
// LevelInfoLayer::onViewProfile from 0x499d94 to 0x499de0 (76 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:49:44 +0000
//
int __fastcall LevelInfoLayer::onViewProfile(int this, cocos2d::CCObject *a2)
{
int v2; // r4
int v3; // r5
GameManager *v4; // r0
bool v5; // r2
int v6; // r0
v2 = this;
v3 = *(unsigned __int8 *)(this + 356);
if ( !*(_BYTE *)(this + 356)
&& *(_DWORD *)(*(_DWORD *)(this + 364) + 416) - *(_DWORD *)(*(_DWORD *)(this + 364) + 420) > 0 )
{
v4 = (GameManager *)GameManager::sharedState((GameManager *)this);
GameManager::setGameVariable(v4, "0047", (_BYTE *)&dword_0 + 1);
v6 = ProfilePage::create(
(ProfilePage *)(*(_DWORD *)(*(_DWORD *)(v2 + 364) + 416) - *(_DWORD *)(*(_DWORD *)(v2 + 364) + 420)),
v3,
v5);
return (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 656))(v6);
}
return this;
}