//
// cocos2d::CCTwirl::create from 0x5b4eec to 0x5b4f72 (134 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCTwirl *cocos2d::CCTwirl::create(
float a1,
const cocos2d::CCSize *a2,
cocos2d::CCPoint a3,
unsigned int a4,
float a5)
{
float y; // r8
float x; // r9
int v9; // r4
float v11; // [sp+8h] [bp-10h]
cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF
cocos2d::CCPoint v13; // 0:r3.4,4:^0.4
y = a3.y;
x = a3.x;
v9 = operator new(0x6Cu);
memset((void *)v9, 0, 0x6Cu);
cocos2d::CCGrid3DAction::CCGrid3DAction((cocos2d::CCGrid3DAction *)v9);
*(_DWORD *)v9 = &off_A9FCD0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v9 + 88));
cocos2d::CCPoint::CCPoint(&v12, (const cocos2d::CCPoint *)LODWORD(x));
v13.y = y;
LODWORD(v13.x) = &v12;
if ( cocos2d::CCTwirl::initWithDuration((cocos2d::CCTwirl *)v9, a1, a2, v13, a4, v11) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
cocos2d::CCObject::release((cocos2d::CCObject *)v9);
return nullptr;
}
return (cocos2d::CCTwirl *)v9;
}