//
// LevelInfoLayer::onViewProfile from 0x1002ac420 to 0x1002ac493 (115 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x1002aa68a
//
// This function is hookable on this platform (idp: pc, 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:27:59 +0000
//
__int64 __fastcall LevelInfoLayer::onViewProfile(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
double v4; // xmm0_8
__int64 v5; // rax
__int64 v6; // rax
if ( !*(_BYTE *)(a1 + 488) )
{
result = *(_QWORD *)(a1 + 504);
if ( *(_DWORD *)(result + 588) > *(_DWORD *)(result + 592) )
{
*(_QWORD *)&v4 = GameManager::sharedState(a1, a2, a3).u64[0];
GameManager::setGameVariable(v5, "0047", 1);
v6 = ProfilePage::create(
(unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 504) + 588LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 592LL)),
0);
return (*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v6 + 1312LL))(v6, v4);
}
}
return result;
}