//
// cocos2d::CCGridAction::startWithTarget from 0x18002b480 to 0x18002b539 (185 bytes)
//
// 26 xrefs:
// > cocos2d::CCShuffleTiles::startWithTarget @ 0x18003b44e
// > cocos2d::CCSplitRows::startWithTarget @ 0x18003b6d9
// > cocos2d::CCTurnOffTiles::startWithTarget @ 0x18003b722
// > ??> @ 0x1800e84b0
// > ??> @ 0x1800e8538
// > ??> @ 0x1800e8818
// > ??> @ 0x1800e88a0
// > ??> @ 0x1800e8928
// > ??> @ 0x1800e89c0
// > ??> @ 0x1800e8a58
// > ??> @ 0x1800e8ae0
// > ??> @ 0x1800e8b68
// > ??> @ 0x1800e8bf0
// > ??> @ 0x1800e8c78
// > ??> @ 0x1800e8d00
// > ??> @ 0x1800ea0e8
// > ??> @ 0x1800ea280
// > ??> @ 0x1800ea310
// > ??> @ 0x1800ea430
// > ??> @ 0x1800ea4c8
// > ??> @ 0x1800ea560
// > ??> @ 0x1800ea5f8
// > ??> @ 0x1800ea720
// > ??> @ 0x1800ea7b0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801afb5c
//
// 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 cocos2d::CCGridAction::startWithTarget(cocos2d::CCGridAction *this, struct cocos2d::CCNode *a2)
{
__int64 v3; // rax
cocos2d::CCNode *m_pTarget; // rdi
__int64 v5; // rsi
cocos2d::CCGridBase *v6; // rax
bool m_bActive; // dl
cocos2d::CCGridBase *v8; // rax
cocos2d::CCActionInterval::startWithTarget(this, a2);
v3 = ((__int64 (__fastcall *)(cocos2d::CCGridAction *))this->getGrid)(this);
m_pTarget = this->m_pTarget;
v5 = v3;
v6 = (cocos2d::CCGridBase *)((__int64 (__fastcall *)(cocos2d::CCNode *))m_pTarget->getGrid)(m_pTarget);
if ( !v6 )
{
LABEL_9:
((void (__fastcall *)(cocos2d::CCNode *, __int64))m_pTarget->setGrid)(m_pTarget, v5);
v8 = (cocos2d::CCGridBase *)((__int64 (__fastcall *)(cocos2d::CCNode *))m_pTarget->getGrid)(m_pTarget);
cocos2d::CCGridBase::setActive(v8, 1);
return;
}
m_bActive = v6->m_bActive;
if ( v6->m_nReuseGrid <= 0 )
{
if ( m_bActive )
cocos2d::CCGridBase::setActive(v6, 0);
goto LABEL_9;
}
if ( m_bActive && v6->m_sGridSize.width == *((float *)this + 24) && v6->m_sGridSize.height == *((float *)this + 25) )
((void (__fastcall *)(cocos2d::CCGridBase *))v6->reuse)(v6);
}