//
// cocos2d::CCGridAction::startWithTarget from 0x1001ed4d0 to 0x1001ed58c (188 bytes)
//
// 25 xrefs:
// > cocos2d::CCShuffleTiles::startWithTarget @ 0x10089b3c4
// > cocos2d::CCTurnOffTiles::startWithTarget @ 0x10089c651
// > cocos2d::CCSplitRows::startWithTarget @ 0x10089d29e
// > cocos2d::CCSplitCols::startWithTarget @ 0x10089d64e
// > ??> @ 0x100ae0608
// > ??> @ 0x100ae06b8
// > ??> @ 0x100ae0768
// > ??> @ 0x100af6f90
// > ??> @ 0x100af7040
// > ??> @ 0x100af7100
// > ??> @ 0x100af71c0
// > ??> @ 0x100af7270
// > ??> @ 0x100af7320
// > ??> @ 0x100af73d0
// > ??> @ 0x100af7480
// > ??> @ 0x100af7530
// > ??> @ 0x100b18220
// > ??> @ 0x100ba8f38
// > ??> @ 0x100ba8ff0
// > ??> @ 0x100ba90c0
// > ??> @ 0x100ba9180
// > ??> @ 0x100ba9240
// > ??> @ 0x100ba9300
// > ??> @ 0x100ba93d8
// > ??> @ 0x100ba9490
//
// 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 12:26:32 +0000
//
__int64 __fastcall cocos2d::CCGridAction::startWithTarget(__int64 a1)
{
__int64 v1; // r15
__int64 v2; // r14
__int64 result; // rax
char v4; // cl
__int64 v5; // rax
cocos2d::CCActionInterval::startWithTarget(a1);
v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 128LL))(a1);
v2 = *(_QWORD *)(a1 + 64);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 608LL))(v2);
if ( !result )
{
LABEL_10:
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 616LL))(v2, v1);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 608LL))(v2);
return cocos2d::CCGridBase::setActive(v5, 1);
}
v4 = *(_BYTE *)(result + 56);
if ( *(int *)(result + 60) <= 0 )
{
if ( v4 )
cocos2d::CCGridBase::setActive(result, 0);
goto LABEL_10;
}
if ( v4 && *(float *)(result + 64) == *(float *)(a1 + 92) && *(float *)(result + 68) == *(float *)(a1 + 96) )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 88LL))(result);
return result;
}