//
// cocos2d::CCShuffleTiles::create from 0x18003aa00 to 0x18003aafe (254 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0e64
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCShuffleTiles *__fastcall cocos2d::CCShuffleTiles::create(
float a1,
struct cocos2d::CCSize *a2,
unsigned int a3)
{
cocos2d::CCGridAction *v5; // rax
cocos2d::CCGridAction *v6; // rbx
cocos2d::CCObject *(__stdcall *copyWithZone)(cocos2d::CCGridAction *__hidden, cocos2d::CCZone *); // rdx
v5 = (cocos2d::CCGridAction *)operator new(0x80u);
v6 = v5;
if ( v5 )
{
*(_OWORD *)&v5->__vftable = 0;
*(_OWORD *)&v5->cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = 0;
*(_OWORD *)&v5->m_uIndexInArray = 0;
*(_OWORD *)&v5->m_uOrderOfArrival = 0;
*(_OWORD *)&v5->m_pTarget = 0;
*(_OWORD *)&v5->m_fDuration = 0;
*(_OWORD *)&v5[1].__vftable = 0;
*(_OWORD *)&v5[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = 0;
cocos2d::CCAction::CCAction(v5);
v6->m_fDuration = 0.0;
v6->__vftable = (cocos2d::CCGridAction_vtbl *)&cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v6[1]);
v6->__vftable = (cocos2d::CCGridAction_vtbl *)&cocos2d::CCShuffleTiles::`vftable';
}
else
{
v6 = nullptr;
}
if ( !v6 )
return (struct cocos2d::CCShuffleTiles *)v6;
copyWithZone = v6->__vftable[1].copyWithZone;
if ( (char *)copyWithZone == (char *)cocos2d::CCShuffleTiles::initWithDuration )
{
if ( cocos2d::CCGridAction::initWithDuration(v6, a1, a2) )
{
v6[1].m_uID = a3;
*(_QWORD *)&v6[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = 0;
*(_QWORD *)&v6[1].m_uAutoReleaseCount = 0;
LABEL_9:
cocos2d::CCObject::autorelease(v6);
return (struct cocos2d::CCShuffleTiles *)v6;
}
}
else if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCGridAction *, cocos2d::CCObject *(__stdcall *)(cocos2d::CCGridAction *__hidden, cocos2d::CCZone *), struct cocos2d::CCSize *, _QWORD))copyWithZone)(
v6,
copyWithZone,
a2,
a3) )
{
goto LABEL_9;
}
cocos2d::CCObject::release(v6);
return nullptr;
}