//
// PlayerObject::runNormalRotation from 0x437054 to 0x43711a (198 bytes)
//
// 3 xrefs:
// > PlayerObject::runNormalRotation @ 0x43712a
// > PlayerObject::stopDashing @ 0x43bb84
// > PlayerObject::update @ 0x4493f8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:19 +0000
//
int __fastcall PlayerObject::runNormalRotation(PlayerObject *this, int a2, float a3)
{
int result; // r0
float v6; // s17
float v7; // s16
int v8; // r5
if ( a2
|| (result = PlayerObject::isFlying(this)) == 0
&& !*((_BYTE *)this + 1957)
&& !*((_BYTE *)this + 1958)
&& !*((_BYTE *)this + 1996)
&& (!*((_BYTE *)this + 2320)
|| *((_BYTE *)this + 2209)
|| *((_BYTE *)this + 2208)
|| *((_BYTE *)this + 2297)
|| *((_BYTE *)this + 2298)) )
{
v6 = 1.0;
v7 = 0.33333;
if ( *((float *)this + 502) == 1.0 )
v7 = 0.43333;
if ( *((_BYTE *)this + 1963) )
v6 = -1.0;
v8 = PlayerObject::flipMod(this);
result = PlayerObject::reverseMod(this) * 180 * v8;
*((float *)this + 368) = (float)((float)((float)((float)result * v6) * *((float *)this + 585)) * a3) / v7;
*((_BYTE *)this + 1480) = 1;
}
return result;
}