//
// cocos2d::CCParticleSystem::calculateWorldSpace from 0x10022870c to 0x10022875c (80 bytes)
//
// 2 xrefs:
// > cocos2d::CCParticleSystem::initParticle @ 0x1002280f4
// > cocos2d::CCParticleSystem::update @ 0x100228a18
//
// 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 11:01:11 +0000
//
double __fastcall cocos2d::CCParticleSystem::calculateWorldSpace(__int64 a1)
{
double v1; // x29
double v2; // x30
double result; // d0
double v5[5]; // [xsp+8h] [xbp-28h] BYREF
if ( *(_BYTE *)(a1 + 696) == 1 )
{
v5[3] = v1;
v5[4] = v2;
*(_BYTE *)(a1 + 696) = 0;
cocos2d::CCNode::convertToWorldSpace(v5, a1, &dbl_1009F4BC0);
return sub_10002630C((_QWORD *)(a1 + 700), v5);
}
return result;
}