//
// LevelFeatureLayer::onToggleEpic from 0x100504500 to 0x10050454e (78 bytes)
//
// 1 xrefs:
// > LevelFeatureLayer::init @ 0x10050415a
//
// 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:31:31 +0000
//
__int64 __fastcall LevelFeatureLayer::onToggleEpic(__int64 a1)
{
char v1; // al
__int64 v2; // rdi
_WORD v4[2]; // [rsp+Ch] [rbp-4h] BYREF
v1 = *(_BYTE *)(a1 + 680);
*(_BYTE *)(a1 + 680) = v1 ^ 1;
v2 = *(_QWORD *)(a1 + 688);
if ( v1 )
{
memset(v4, 50, 3);
}
else
{
LOBYTE(v4[1]) = -1;
v4[0] = -1;
}
return (*(__int64 (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v2 + 960LL))(v2, v4);
}