//
// LevelInfoLayer::onViewProfile from 0x100029c5c to 0x100029cd4 (120 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x100028048
//
// 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 10:57:27 +0000
//
__int64 __fastcall LevelInfoLayer::onViewProfile(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x0
if ( (*(_BYTE *)(result + 488) & 1) == 0 )
{
v1 = result;
if ( *(_DWORD *)(*(_QWORD *)(result + 504) + 588LL) > *(_DWORD *)(*(_QWORD *)(result + 504) + 592LL) )
{
v2 = GameManager::sharedState(result);
GameManager::setGameVariable(v2, "0047", 1);
v3 = ProfilePage::create(
(unsigned int)(*(_DWORD *)(*(_QWORD *)(v1 + 504) + 588LL) - *(_DWORD *)(*(_QWORD *)(v1 + 504) + 592LL)),
0);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
}
}
return result;
}