//
// cocos2d::CCGridAction::startWithTarget from 0x18002bb40 to 0x18002bbf9 (185 bytes)
//
// 26 xrefs:
// > cocos2d::CCShuffleTiles::startWithTarget @ 0x18003bb7e
// > cocos2d::CCSplitRows::startWithTarget @ 0x18003be09
// > cocos2d::CCTurnOffTiles::startWithTarget @ 0x18003be52
// > ??> @ 0x1800ee518
// > ??> @ 0x1800ee5a0
// > ??> @ 0x1800ee880
// > ??> @ 0x1800ee908
// > ??> @ 0x1800ee990
// > ??> @ 0x1800eea28
// > ??> @ 0x1800eeac0
// > ??> @ 0x1800eeb48
// > ??> @ 0x1800eebd0
// > ??> @ 0x1800eec58
// > ??> @ 0x1800eece0
// > ??> @ 0x1800eed68
// > ??> @ 0x1800f0148
// > ??> @ 0x1800f02e0
// > ??> @ 0x1800f0370
// > ??> @ 0x1800f0490
// > ??> @ 0x1800f0528
// > ??> @ 0x1800f05c0
// > ??> @ 0x1800f0658
// > ??> @ 0x1800f0780
// > ??> @ 0x1800f0810
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9c70
//
// This function is hookable on this platform (idp: pc, 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 11:21:31 +0000
//
void __fastcall cocos2d::CCGridAction::startWithTarget(cocos2d::CCGridAction *this, struct cocos2d::CCNode *a2)
{
__int64 v3; // rax
__int64 v4; // rdi
__int64 v5; // rsi
__int64 v6; // rax
char v7; // dl
cocos2d::CCGridBase *v8; // rax
cocos2d::CCActionInterval::startWithTarget(this, a2);
v3 = (*(__int64 (__fastcall **)(cocos2d::CCGridAction *))(*(_QWORD *)this + 120LL))(this);
v4 = *((_QWORD *)this + 8);
v5 = v3;
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 600LL))(v4);
if ( !v6 )
{
LABEL_9:
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 608LL))(v4, v5);
v8 = (cocos2d::CCGridBase *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 600LL))(v4);
cocos2d::CCGridBase::setActive(v8, 1);
return;
}
v7 = *(_BYTE *)(v6 + 56);
if ( *(int *)(v6 + 60) <= 0 )
{
if ( v7 )
cocos2d::CCGridBase::setActive((cocos2d::CCGridBase *)v6, 0);
goto LABEL_9;
}
if ( v7 && *(float *)(v6 + 64) == *((float *)this + 24) && *(float *)(v6 + 68) == *((float *)this + 25) )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 80LL))(v6);
}