//
// cocos2d::CCTwirl::copyWithZone from 0x7bb7c4 to 0x7bb86c (168 bytes)
//
// 0 xrefs:
//
// 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:15 +0000
//
_DWORD *__fastcall cocos2d::CCTwirl::copyWithZone(cocos2d::CCTwirl *this, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // r6
_DWORD *v4; // r4
cocos2d::CCZone *v5; // r8
float v6; // r9
_BYTE v8[8]; // [sp+Ch] [bp-10h] BYREF
v3 = a2;
if ( a2 && (v4 = *(_DWORD **)a2) != nullptr )
{
v5 = nullptr;
}
else
{
v4 = (_DWORD *)operator new(0x6Cu);
memset(v4, 0, 0x6Cu);
cocos2d::CCGrid3DAction::CCGrid3DAction((cocos2d::CCGrid3DAction *)v4);
*v4 = &off_D033E0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 22));
v3 = (cocos2d::CCZone *)operator new(4u);
cocos2d::CCZone::CCZone(v3, (cocos2d::CCObject *)v4);
v5 = v3;
}
cocos2d::CCGridAction::copyWithZone(this, v3);
v6 = *((float *)this + 17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (cocos2d::CCTwirl *)((char *)this + 88));
cocos2d::CCTwirl::initWithDuration(
(cocos2d::CCGridAction *)v4,
v6,
(cocos2d::CCTwirl *)((char *)this + 80),
(const cocos2d::CCPoint *)v8,
*((_DWORD *)this + 24),
*((_DWORD *)this + 25));
if ( v5 )
operator delete(v5);
return v4;
}