//
// SetupMGTrigger::onEasing from 0x100509a40 to 0x100509af3 (179 bytes)
//
// 2 xrefs:
// > SetupMGTrigger::init @ 0x100508fa2
// > SetupMGTrigger::init @ 0x10050907d
//
// 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 SetupMGTrigger::onEasing(SetupMGTrigger *a1, cocos2d::CCObject *a2)
{
__int32 v2; // eax
int v3; // ecx
EasingType v4; // eax
EffectGameObject *m_gameObject; // rcx
unsigned int v6; // r14d
v2 = a1->m_mgEasingType + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1) - 1;
v3 = 0;
if ( v2 > 0 )
v3 = v2;
v4 = BackOut;
if ( v3 < 18 )
v4 = v3;
a1->m_mgEasingType = v4;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_easingType = v4;
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v6 = 0;
do
*(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v6++) + 1496) = a1->m_mgEasingType;
while ( v6 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
SetupMGTrigger::updateEasingLabel(a1);
SetupMGTrigger::toggleEasingRateVisibility(a1);
}