//
// CreateParticlePopup::onTogglePerfLog from 0x1405c8110 to 0x1405c81ce (190 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::init @ 0x1405c30b5
// > ??> @ 0x14092e34c
//
// 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 11:34:51 +0000
//
__int64 __fastcall CreateParticlePopup::onTogglePerfLog(__int64 a1)
{
__int64 v2; // rcx
bool GameVariable; // al
void *v5; // [rsp+30h] [rbp+8h]
void *v6; // [rsp+30h] [rbp+8h]
if ( !qword_14090BFD0 )
{
v5 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
GameManager::toggleGameVariable(a1, "0178");
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
GameVariable = GameManager::getGameVariable(v2, "0178");
*(_BYTE *)(a1 + 976) = GameVariable;
*(_DWORD *)(a1 + 980) = 1065353216;
return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 984) + 336LL))(
*(_QWORD *)(a1 + 984),
GameVariable);
}