//
// CreateParticlePopup::onTogglePerfLog from 0x100467f10 to 0x100467f6b (91 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x1004645a7
//
// 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:30:30 +0000
//
__int64 __fastcall CreateParticlePopup::onTogglePerfLog(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
unsigned __int8 GameVariable; // al
v1 = GameManager::sharedState();
GameManager::toggleGameVariable(v1, "0178");
v2 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v2, "0178");
*(_BYTE *)(a1 + 976) = GameVariable;
*(_DWORD *)(a1 + 980) = 1065353216;
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 984) + 344LL))(
*(_QWORD *)(a1 + 984),
GameVariable);
}