//
// LevelInfoLayer::onViewProfile from 0x1402feeb0 to 0x1402fef59 (169 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::init @ 0x1402f7bcf
// > ??> @ 0x1406d42ec
// > ??> @ 0x1406d42f8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void LevelInfoLayer::onViewProfile(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // rcx
ProfilePage *v4; // rax
void *v5; // [rsp+30h] [rbp+8h]
if ( !a1->m_isBusy && a1->m_level->m_accountID.random - a1->m_level->m_accountID.seed > 0 )
{
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
GameManager::setGameVariable(v3, "0047", 1);
v4 = ProfilePage::create(a1->m_level->m_accountID.random - a1->m_level->m_accountID.seed, 0);
v4->show(v4);
}
}