//
// cocos2d::CCGridAction::startWithTarget from 0x7b97d8 to 0x7b9864 (140 bytes)
//
// 4 xrefs:
// > cocos2d::CCSplitRows::startWithTarget @ 0x7c1768
// > cocos2d::CCSplitCols::startWithTarget @ 0x7c17a8
// > cocos2d::CCShuffleTiles::startWithTarget @ 0x7c21c2
// > cocos2d::CCTurnOffTiles::startWithTarget @ 0x7c281a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:14 +0000
//
int __fastcall cocos2d::CCGridAction::startWithTarget(cocos2d::CCGridAction *this, cocos2d::CCNode *a2)
{
int v3; // r0
int v4; // r4
int v5; // r6
int result; // r0
cocos2d::CCGridBase *v7; // r0
cocos2d::CCActionInterval::startWithTarget(this, a2);
v3 = (*(int (__fastcall **)(cocos2d::CCGridAction *))(*(_DWORD *)this + 64))(this);
v4 = *((_DWORD *)this + 14);
v5 = v3;
result = (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 304))(v4);
if ( !result )
goto LABEL_5;
if ( *(int *)(result + 56) <= 0 )
{
if ( *(_BYTE *)(result + 52) )
cocos2d::CCGridBase::setActive((cocos2d::CCGridBase *)result, 0);
LABEL_5:
(*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 308))(v4, v5);
v7 = (cocos2d::CCGridBase *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 304))(v4);
return cocos2d::CCGridBase::setActive(v7, 1);
}
if ( *(_BYTE *)(result + 52)
&& *(float *)(result + 60) == *((float *)this + 20)
&& *(float *)(result + 64) == *((float *)this + 21) )
{
return (*(int (__fastcall **)(int))(*(_DWORD *)result + 44))(result);
}
return result;
}