//
// cocos2d::CCTiledGrid3DAction::create from 0x18002b770 to 0x18002b883 (275 bytes)
//
// 3 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9be0
// > ??> @ 0x1801b9bec
//
// 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
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCTiledGrid3DAction *__fastcall cocos2d::CCTiledGrid3DAction::create(
float a1,
const struct cocos2d::CCSize *a2)
{
_OWORD *v3; // rbx
bool (__fastcall *v4)(cocos2d::CCGridAction *__hidden, float, const struct cocos2d::CCSize *); // rdx
char v5; // al
cocos2d::CCAction *(__fastcall *v7)(cocos2d::CCAction *, char); // r8
v3 = (_OWORD *)sub_1800E4AC0(0x68u);
if ( v3 )
{
*v3 = 0;
v3[1] = 0;
v3[2] = 0;
v3[3] = 0;
v3[4] = 0;
v3[5] = 0;
*((_QWORD *)v3 + 12) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v3);
*((_DWORD *)v3 + 20) = 0;
*(_QWORD *)v3 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v3 + 6));
*(_QWORD *)v3 = &cocos2d::CCTiledGrid3DAction::`vftable';
}
else
{
v3 = nullptr;
}
if ( v3 )
{
v4 = *(bool (__fastcall **)(cocos2d::CCGridAction *__hidden, float, const struct cocos2d::CCSize *))(*(_QWORD *)v3 + 112LL);
if ( v4 == cocos2d::CCGridAction::initWithDuration )
{
if ( cocos2d::CCActionInterval::initWithDuration((cocos2d::CCActionInterval *)v3, a1) )
{
cocos2d::CCSize::operator=((_DWORD *)v3 + 24, a2);
v5 = 1;
}
else
{
v5 = 0;
}
}
else
{
v5 = ((__int64 (__fastcall *)(_OWORD *, bool (__fastcall *)(cocos2d::CCGridAction *__hidden, float, const struct cocos2d::CCSize *), const struct cocos2d::CCSize *))v4)(
v3,
v4,
a2);
}
if ( v5 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return (struct cocos2d::CCTiledGrid3DAction *)v3;
}
v7 = *(cocos2d::CCAction *(__fastcall **)(cocos2d::CCAction *, char))(*(_QWORD *)v3 + 8LL);
if ( v7 == sub_18002B120 )
sub_18002B120((cocos2d::CCAction *)v3, 1);
else
v7((cocos2d::CCAction *)v3, 1);
return nullptr;
}
return (struct cocos2d::CCTiledGrid3DAction *)v3;
}