//
// LevelFeatureLayer::onToggleEpic from 0x1005057a0 to 0x1005057ee (78 bytes)
//
// 1 xrefs:
// > LevelFeatureLayer::init @ 0x1005053fa
//
// 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 __fastcall LevelFeatureLayer::onToggleEpic(LevelFeatureLayer *a1, cocos2d::CCObject *a2)
{
bool m_epicOnly; // al
cocos2d::CCSprite *m_epicSprite; // rdi
_WORD v4[2]; // [rsp+Ch] [rbp-4h] BYREF
m_epicOnly = a1->m_epicOnly;
a1->m_epicOnly = !m_epicOnly;
m_epicSprite = a1->m_epicSprite;
if ( m_epicOnly )
{
memset(v4, 50, 3);
}
else
{
LOBYTE(v4[1]) = -1;
v4[0] = -1;
}
((void (__fastcall *)(cocos2d::CCSprite *, _WORD *))m_epicSprite->setColor)(m_epicSprite, v4);
}