//
// cocos2d::CCGridAction::startWithTarget from 0xab96cc to 0xab97ac (224 bytes)
//
// 26 xrefs:
// > cocos2d::CCSplitRows::startWithTarget @ 0xac828c
// > cocos2d::CCSplitCols::startWithTarget @ 0xac82f8
// > cocos2d::CCShuffleTiles::startWithTarget @ 0xac89f0
// > cocos2d::CCTurnOffTiles::startWithTarget @ 0xac94e8
// > ??> @ 0x57750
// > ??> @ 0x11fc8c8
// > ??> @ 0x11fc968
// > ??> @ 0x11fca08
// > ??> @ 0x11fce58
// > ??> @ 0x11fcef8
// > ??> @ 0x11fcfa8
// > ??> @ 0x11fd058
// > ??> @ 0x11fd0f8
// > ??> @ 0x11fd198
// > ??> @ 0x11fd238
// > ??> @ 0x11fd2d8
// > ??> @ 0x11fd378
// > ??> @ 0x11ff018
// > ??> @ 0x11ff328
// > ??> @ 0x11ff3c8
// > ??> @ 0x11ff508
// > ??> @ 0x11ff5b8
// > ??> @ 0x11ff668
// > ??> @ 0x11ff718
// > ??> @ 0x11ff868
// > ??> @ 0x11ff908
//
// 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 cocos2d::CCGridAction::startWithTarget(cocos2d::CCGridAction *a1, cocos2d::CCNode *a2)
{
cocos2d::CCGridBase *v3; // x0
cocos2d::CCNode *m_pTarget; // x19
cocos2d::CCGridBase *v5; // x21
cocos2d::CCGridBase *v6; // x0
cocos2d::CCGridBase *v7; // x0
cocos2d::CCActionInterval::startWithTarget(a1, a2);
v3 = a1->getGrid(a1);
m_pTarget = a1->m_pTarget;
v5 = v3;
v6 = m_pTarget->getGrid(m_pTarget);
if ( !v6 )
{
LABEL_10:
m_pTarget->setGrid(m_pTarget, v5);
v7 = m_pTarget->getGrid(m_pTarget);
cocos2d::CCGridBase::setActive(v7, 1);
return;
}
if ( v6->m_nReuseGrid <= 0 )
{
if ( v6->m_bActive )
cocos2d::CCGridBase::setActive(v6, 0);
goto LABEL_10;
}
if ( v6->m_bActive
&& v6->m_sGridSize.width == *((float *)&a1->m_bFirstTick + 1)
&& v6->m_sGridSize.height == *(float *)&a1[1].__vftable )
{
v6->reuse(v6);
}
}