//
// PlayerObject::runBallRotation from 0x750270 to 0x75037c (268 bytes)
//
// 4 xrefs:
// > PlayerObject::runRotateAction @ 0x751428
// > PlayerObject::stopDashing @ 0x758cd4
// > PlayerObject::collidedWithSlopeInternal @ 0x75fd68
// > ??> @ 0xe2018
//
// 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:54 +0000
//
__int64 __fastcall PlayerObject::runBallRotation(__int64 this, float a2)
{
float v2; // s8
float v3; // s1
float v4; // s0
float v5; // s9
__int64 v6; // x19
int v7; // w20
int v8; // w0
int v9; // w1
float v10; // s0
if ( *(_BYTE *)(this + 2460) || *(_BYTE *)(this + 2832) )
return this;
v2 = 1.0;
v3 = *(float *)(this + 2472);
*(float *)(this + 1780) = a2;
*(_BYTE *)(this + 1640) = a2 != 1.0;
if ( v3 == 1.0 )
{
v4 = *(float *)(this + 2476);
if ( v4 == 0.7 )
{
LABEL_5:
v5 = 1.2406;
goto LABEL_6;
}
}
else
{
v4 = *(float *)(this + 2476);
v2 = 0.8;
if ( v4 == 0.7 )
goto LABEL_5;
}
if ( v4 == 1.1 )
{
v5 = 0.80424;
}
else if ( v4 == 1.3 )
{
v5 = 0.66577;
}
else if ( v4 == 1.6 )
{
v5 = 0.54094;
}
else
{
v5 = 1.0;
}
LABEL_6:
v6 = this;
v7 = PlayerObject::flipMod((PlayerObject *)this);
v8 = PlayerObject::reverseMod((PlayerObject *)v6);
v9 = *(unsigned __int8 *)(v6 + 2427);
v10 = (float)(120 * v7 * v8) / (float)((float)(v2 * 0.2) * v5);
*(float *)(v6 + 1776) = v10;
if ( v9 )
*(float *)(v6 + 1776) = -v10;
this = 1;
*(_BYTE *)(v6 + 1784) = 1;
return this;
}