//
// PlayerObject::updateStaticForce from 0x753738 to 0x753868 (304 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::teleportPlayer @ 0x9e5ed8
// > ??> @ 0x66b68
//
// 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 12:52:56 +0000
//
__int64 __fastcall PlayerObject::updateStaticForce(PlayerObject *this, float a2, float a3, unsigned __int8 a4)
{
_BOOL8 v6; // x0
int v7; // w0
float v9; // s2
unsigned __int64 v11; // [xsp+58h] [xbp+58h] BYREF
float v12; // [xsp+60h] [xbp+60h] BYREF
v6 = a3 == 0.0;
if ( (unsigned int)v6 <= a4 )
{
cocos2d::ccpForAngle((__int64 *)&v11, (cocos2d *)v6, a2 * 0.017453);
v9 = sqrtf((float)(*((float *)&v11 + 1) * *((float *)&v11 + 1)) + (float)(*(float *)&v11 * *(float *)&v11));
if ( v9 > 0.0 )
{
cocos2d::CCPoint::operator*(&v11, a3 / v9);
cocos2d::CCPoint::operator=(&v11, &v12);
if ( *((_BYTE *)this + 2427) )
v11 = __PAIR64__(v11, HIDWORD(v11));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, (const cocos2d::CCPoint *)&v11);
PlayerObject::updatePlayerForce((__int64)this, &v12, a4);
}
}
else
{
v7 = *((unsigned __int8 *)this + 2832);
*((_BYTE *)this + 2314) = 0;
*((_QWORD *)this + 299) = 0;
if ( v7 )
{
*((_QWORD *)this + 339) = 0;
*((_BYTE *)this + 2868) = 0;
}
}
return _stack_chk_guard;
}