//
// LevelFeatureLayer::onToggleEpic from 0x950128 to 0x9501b4 (140 bytes)
//
// 3 xrefs:
// > ??> @ 0xbfea8
// > LevelFeatureLayer::init @ 0x951760
// > ??> @ 0x1545990
//
// This function is hookable on this platform (idp: arm, 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:57:22 +0000
//
__int64 __fastcall LevelFeatureLayer::onToggleEpic(LevelFeatureLayer *this, cocos2d::CCObject *a2)
{
__int64 v2; // x2
int v3; // w1
void (__fastcall *v4)(__int64, _BYTE *); // x3
_BYTE v6[8]; // [xsp+20h] [xbp+20h] BYREF
v2 = *((_QWORD *)this + 86);
v3 = *((unsigned __int8 *)this + 680) ^ 1;
*((_BYTE *)this + 680) ^= 1u;
v4 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 960LL);
if ( v3 )
{
v6[0] = -1;
v6[1] = -1;
v6[2] = -1;
}
else
{
memset(v6, 50, 3);
}
v4(v2, v6);
return _stack_chk_guard;
}