//
// cocos2d::CCActionInterval::initWithDuration from 0xd32cdc to 0xd32d24 (72 bytes)
//
// 39 xrefs:
// > cocos2d::CCOrbitCamera::initWithDuration @ 0xd261b4
// > cocos2d::CCCardinalSplineTo::initWithDuration @ 0xd26fac
// > cocos2d::CCActionEase::initWithAction @ 0xd28c54
// > cocos2d::CCGridAction::initWithDuration @ 0xd2b2f4
// > cocos2d::CCAccelDeccelAmplitude::initWithAction @ 0xd2bd38
// > cocos2d::CCAccelAmplitude::initWithAction @ 0xd2be64
// > cocos2d::CCDeccelAmplitude::initWithAction @ 0xd2bf90
// > cocos2d::CCActionInterval::create @ 0xd32d80
// > cocos2d::CCActionInterval::copyWithZone @ 0xd32dc8
// > cocos2d::CCActionInterval::copyWithZone @ 0xd32e50
// > cocos2d::CCRotateTo::initWithDuration @ 0xd33190
// > cocos2d::CCSkewTo::initWithDuration @ 0xd331d0
// > cocos2d::CCSequence::initWithTwoActions @ 0xd33278
// > cocos2d::CCRepeat::initWithAction @ 0xd336f4
// > cocos2d::CCRotateTo::initWithDuration @ 0xd33af0
// > cocos2d::CCRotateBy::initWithDuration @ 0xd33c38
// > cocos2d::CCRotateBy::initWithDuration @ 0xd33cf4
// > cocos2d::CCMoveBy::initWithDuration @ 0xd33eb0
// > cocos2d::CCMoveTo::initWithDuration @ 0xd340f4
// > cocos2d::CCJumpBy::initWithDuration @ 0xd34568
// > cocos2d::CCBezierBy::initWithDuration @ 0xd349c8
// > cocos2d::CCBezierTo::initWithDuration @ 0xd34e0c
// > cocos2d::CCScaleTo::initWithDuration @ 0xd34f3c
// > cocos2d::CCScaleTo::initWithDuration @ 0xd34ffc
// > cocos2d::CCBlink::initWithDuration @ 0xd353b8
// > cocos2d::CCFadeIn::create @ 0xd35598
// > cocos2d::CCFadeOut::create @ 0xd35614
// > cocos2d::CCFadeTo::initWithDuration @ 0xd3564c
// > cocos2d::CCTintTo::initWithDuration @ 0xd357d8
// > cocos2d::CCTintBy::initWithDuration @ 0xd35998
// > cocos2d::CCDelayTime::create @ 0xd35bb8
// > cocos2d::CCSpawn::initWithTwoActions @ 0xd35c0c
// > cocos2d::CCReverseTime::initWithAction @ 0xd360e4
// > cocos2d::CCTargetedAction::initWithTarget @ 0xd3631c
// > cocos2d::CCAnimate::initWithAnimation @ 0xd36600
// > cocos2d::CCProgressTo::initWithDuration @ 0xd383ec
// > cocos2d::CCProgressFromTo::initWithDuration @ 0xd3857c
// > cocos2d::CCActionTween::initWithDuration @ 0xd3bc3c
// > ??> @ 0x65b48
//
// 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:21 +0000
//
__int64 __fastcall cocos2d::CCActionInterval::initWithDuration(cocos2d::CCActionInterval *this, float a2)
{
__int64 result; // x0
if ( a2 == 0.0 )
{
*((_BYTE *)this + 88) = 1;
*((_DWORD *)this + 20) = 872415232;
result = 1;
}
else
{
*((float *)this + 20) = a2;
result = 1;
*((_BYTE *)this + 88) = 1;
}
*((_DWORD *)this + 21) = 0;
return result;
}