//
// PlayLayer::updateScreenRotation from 0x5cbfc4 to 0x5cc084 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x54738
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayLayer::updateScreenRotation(
PlayLayer *a1,
int a2,
bool a3,
bool a4,
float a5,
int a6,
float a7,
int a8,
int a9)
{
float v9; // s2
float v10; // s8
_BOOL4 v11; // w19
_BOOL4 v12; // w2
int v14; // w3
float v15; // s9
int v16; // [xsp+38h] [xbp+38h]
int v18; // [xsp+50h] [xbp+50h]
bool v20; // [xsp+60h] [xbp+60h]
PlayLayer *v21; // [xsp+68h] [xbp+68h]
v9 = a7;
v10 = (float)a2;
v11 = a3;
v12 = a4;
v14 = a6;
v15 = (float)a2;
if ( v11 )
v15 = v10 + a1->m_gameState.m_targetCameraAngle;
if ( v12 )
{
v16 = a9;
v18 = a8;
v20 = v12;
v21 = a1;
GJBaseGameLayer::convertToClosestDirection(v15, 180.0);
a9 = v16;
a8 = v18;
v9 = a7;
v14 = a6;
LOBYTE(v12) = v20;
a1 = v21;
}
if ( v15 != a1->m_gameState.m_targetCameraAngle )
a1->m_calculateTargetHeightOffset = 1;
GJBaseGameLayer::updateScreenRotation(a1, v10, v11, v12, a5, v14, v9, a8, a9);
}