//
// cocos2d::CCGridAction::startWithTarget from 0xd2b3d4 to 0xd2b4b4 (224 bytes)
//
// 26 xrefs:
// > cocos2d::CCSplitRows::startWithTarget @ 0xd3a18c
// > cocos2d::CCSplitCols::startWithTarget @ 0xd3a1f8
// > cocos2d::CCShuffleTiles::startWithTarget @ 0xd3a8f8
// > cocos2d::CCTurnOffTiles::startWithTarget @ 0xd3b400
// > ??> @ 0x78a48
// > ??> @ 0x15121d8
// > ??> @ 0x1512278
// > ??> @ 0x1512318
// > ??> @ 0x1512768
// > ??> @ 0x1512808
// > ??> @ 0x15128b8
// > ??> @ 0x1512968
// > ??> @ 0x1512a08
// > ??> @ 0x1512aa8
// > ??> @ 0x1512b48
// > ??> @ 0x1512be8
// > ??> @ 0x1512c88
// > ??> @ 0x1514928
// > ??> @ 0x1514c38
// > ??> @ 0x1514cd8
// > ??> @ 0x1514e18
// > ??> @ 0x1514ec8
// > ??> @ 0x1514f78
// > ??> @ 0x1515028
// > ??> @ 0x1515178
// > ??> @ 0x1515218
//
// This function is hookable on this platform (idp: arm, 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 13:07:17 +0000
//
__int64 __fastcall cocos2d::CCGridAction::startWithTarget(cocos2d::CCGridAction *this, cocos2d::CCNode *a2)
{
__int64 v3; // x0
__int64 v4; // x19
__int64 v5; // x21
__int64 result; // x0
cocos2d::CCGridBase *v7; // x0
cocos2d::CCActionInterval::startWithTarget(this, a2);
v3 = (*(__int64 (__fastcall **)(cocos2d::CCGridAction *))(*(_QWORD *)this + 128LL))(this);
v4 = *((_QWORD *)this + 8);
v5 = v3;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 608LL))(v4);
if ( !result )
{
LABEL_10:
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 616LL))(v4, v5);
v7 = (cocos2d::CCGridBase *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 608LL))(v4);
return cocos2d::CCGridBase::setActive(v7, 1);
}
if ( *(int *)(result + 60) <= 0 )
{
if ( *(_BYTE *)(result + 56) )
cocos2d::CCGridBase::setActive((cocos2d::CCGridBase *)result, 0);
goto LABEL_10;
}
if ( *(_BYTE *)(result + 56)
&& *(float *)(result + 64) == *((float *)this + 23)
&& *(float *)(result + 68) == *((float *)this + 24) )
{
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 88LL))(result);
}
return result;
}