//
// LevelInfoLayer::onViewProfile from 0x7e5354 to 0x7e53c8 (116 bytes)
//
// 3 xrefs:
// > ??> @ 0x48eb0
// > LevelInfoLayer::init @ 0x7eaec4
// > ??> @ 0x15416a8
//
// 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:54:28 +0000
//
__int64 __fastcall LevelInfoLayer::onViewProfile(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
GameManager *v3; // x0
__int64 v4; // x0
if ( !*(_BYTE *)(this + 488)
&& *(_DWORD *)(*(_QWORD *)(this + 504) + 588LL) - *(_DWORD *)(*(_QWORD *)(this + 504) + 592LL) > 0 )
{
v2 = this;
v3 = (GameManager *)GameManager::sharedState((GameManager *)this);
GameManager::setGameVariable(v3, "0047", 1u);
v4 = ProfilePage::create(
(ProfilePage *)(unsigned int)(*(_DWORD *)(*(_QWORD *)(v2 + 504) + 588LL)
- *(_DWORD *)(*(_QWORD *)(v2 + 504) + 592LL)),
0,
*(_QWORD *)(v2 + 504));
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
return this;
}