//
// GJBaseGameLayer::updateScreenRotation from 0x9e36a8 to 0x9e3790 (232 bytes)
//
// 5 xrefs:
// > PlayLayer::updateScreenRotation @ 0x6f3d80
// > ??> @ 0xd1140
// > ??> @ 0x14289d8
// > ??> @ 0x1435f38
// > ??> @ 0x1475808
//
// 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:58:57 +0000
//
__int64 __fastcall GJBaseGameLayer::updateScreenRotation(
GJBaseGameLayer *this,
float a2,
char a3,
char a4,
float a5,
int a6,
float a7,
int a8,
int a9)
{
float v10; // s8
float v12; // s3
__int64 result; // x0
GJBaseGameLayer *v14; // x0
float v15; // s0
int v16; // [xsp+38h] [xbp+38h]
int v18; // [xsp+50h] [xbp+50h]
int v19; // [xsp+58h] [xbp+58h]
v10 = a2;
v12 = a7;
if ( a3 )
a2 = a2 + *((float *)this + 202);
*((float *)this + 202) = a2;
if ( a4 )
{
v16 = a9;
v18 = a8;
v19 = a6;
*((float *)this + 201) = GJBaseGameLayer::convertToClosestDirection(this, *((float *)this + 201), 180.0);
v15 = GJBaseGameLayer::convertToClosestDirection(v14, *((float *)this + 202), 180.0);
a9 = v16;
*((float *)this + 202) = v15;
a8 = v18;
v12 = a7;
a6 = v19;
}
if ( a5 > 0.0 )
return GJGameState::tweenValue(
(GJBaseGameLayer *)((char *)this + 424),
*((float *)this + 201),
*((float *)this + 202),
17,
a5,
a6,
v12,
a8,
a9);
result = GJGameState::stopTweenAction((GJBaseGameLayer *)((char *)this + 424), 17);
*((float *)this + 201) = v10;
return result;
}