//
// PlayerObject::updateSwingFire from 0x100402f90 to 0x10040307f (239 bytes)
//
// 2 xrefs:
// > PlayerObject::flipGravity @ 0x1003f0b70
// > PlayerObject::toggleSwingMode @ 0x100404666
//
// This function is hookable on this platform (idp: pc, 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 12:30:03 +0000
//
__int64 __fastcall PlayerObject::updateSwingFire(__int64 a1)
{
char v1; // al
_BOOL8 v2; // rcx
_BOOL8 v3; // rdx
__int64 v4; // r12
__int64 v5; // r15
__int64 v6; // r14
__int64 v7; // rbx
_OWORD *v8; // r13
__int64 v9; // rax
__int64 v10; // rax
_OWORD *v11; // rax
v1 = *(_BYTE *)(a1 + 2423);
v2 = v1 != *(_BYTE *)(a1 + 2427);
v3 = v1 == *(_BYTE *)(a1 + 2427);
v4 = *(_QWORD *)(a1 + 8 * v3 + 1880);
v5 = *(_QWORD *)(a1 + 8 * v3 + 2216);
v6 = *(_QWORD *)(a1 + 8 * v2 + 1880);
v7 = *(_QWORD *)(a1 + 8 * v2 + 2216);
cocos2d::CCNode::stopAllActions(v4);
v8 = cocos2d::CCScaleTo::create((__m128)0x3D75C28Fu, 0.60000002 * *(float *)(v4 + 596), *(float *)(v4 + 596) * 1.5);
v9 = cocos2d::CCCallFunc::create(v4, PlayerFireBoostSprite::loopFireAnimation, 0);
v10 = sub_10039EB60((__int64)v8, v9, 0);
cocos2d::CCNode::runAction(v4, v10);
cocos2d::CCParticleSystem::resumeSystem(v5, COERCE_DOUBLE(1031127695));
cocos2d::CCNode::stopAllActions(v6);
v11 = cocos2d::CCScaleTo::create((__m128)0x3ECCCCCDu, 0.0099999998, 0.0099999998);
cocos2d::CCNode::runAction(v6, (__int64)v11);
return cocos2d::CCParticleSystem::stopSystem(v7);
}