//
// cocos2d::CCTwirl::initWithDuration from 0xd2e88c to 0xd2e8f8 (108 bytes)
//
// 4 xrefs:
// > cocos2d::CCTwirl::create @ 0xd2e9c4
// > cocos2d::CCTwirl::copyWithZone @ 0xd2ea80
// > cocos2d::CCTwirl::copyWithZone @ 0xd2eb6c
// > ??> @ 0xe0d70
//
// This function is hookable on this platform (idp: arm, 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 13:07:19 +0000
//
__int64 __fastcall cocos2d::CCTwirl::initWithDuration(
__int64 a1,
const cocos2d::CCSize *a2,
const cocos2d::CCPoint *a3,
int a4,
float a5,
float a6)
{
unsigned __int8 v9; // w0
unsigned int v10; // w19
v9 = cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)a1, a5, a2);
v10 = v9;
if ( v9 )
{
cocos2d::CCTwirl::setPosition((cocos2d::CCTwirl *)a1, a3);
*(_DWORD *)(a1 + 108) = a4;
*(float *)(a1 + 112) = a6;
*(float *)(a1 + 116) = 1.0;
}
return v10;
}