//
// CreateParticlePopup::onTogglePerfLog from 0x140432810 to 0x1404328c8 (184 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::init @ 0x14042dd8f
// > ??> @ 0x1406d9bcc
//
// 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
//
void CreateParticlePopup::onTogglePerfLog(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // rcx
bool GameVariable; // al
void *v5; // [rsp+30h] [rbp+8h]
void *v6; // [rsp+30h] [rbp+8h]
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
}
GameManager::toggleGameVariable((GameManager *)a1, "0178");
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
GameVariable = GameManager::getGameVariable(v3, "0178");
a1->m_perfLogEnabled = GameVariable;
a1->m_perfLogElapsed = 1.0;
a1->m_perfLogLabel->setVisible(a1->m_perfLogLabel, GameVariable);
}