//
// GJBaseGameLayer::updateScreenRotation from 0x5b68cc to 0x5b695e (146 bytes)
//
// 1 xrefs:
// > PlayLayer::updateScreenRotation @ 0x3fff66
//
// 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:53:38 +0000
//
void __fastcall GJBaseGameLayer::updateScreenRotation(
GJBaseGameLayer *this,
float a2,
float a3,
int a4,
float a5,
int a6,
float a7,
int a8,
int a9)
{
float v11; // s15
float v12; // r2
GJGameState *v13; // r0
if ( a3 == 0.0 )
v11 = a2;
else
v11 = a2 + *((float *)this + 178);
*((float *)this + 178) = v11;
if ( a4 )
{
*((_DWORD *)this + 177) = GJBaseGameLayer::convertToClosestDirection(*((GJBaseGameLayer **)this + 177), 180.0, a3);
*((_DWORD *)this + 178) = GJBaseGameLayer::convertToClosestDirection(*((GJBaseGameLayer **)this + 178), 180.0, v12);
}
v13 = (GJBaseGameLayer *)((char *)this + 328);
if ( a5 <= 0.0 )
{
GJGameState::stopTweenAction((unsigned int)v13, 0x11u);
*((float *)this + 177) = a2;
}
else
{
GJGameState::tweenValue(v13, *((float *)this + 177), *((float *)this + 178), 0x11u, a5, a6, a7, a8, a9);
}
}