//
// PlayLayer::updateScreenRotation from 0x100083710 to 0x1000837f1 (225 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:20:03 +0000
//
__int64 __fastcall PlayLayer::updateScreenRotation(
__int64 a1,
int a2,
int a3,
unsigned __int8 a4,
unsigned int a5,
unsigned int a6,
double a7,
double a8,
unsigned int a9)
{
unsigned __int8 v14; // r12
double v15; // xmm0_8
__int64 v16; // r9
unsigned int v18; // [rsp+10h] [rbp-30h]
v14 = a3;
HIDWORD(v15) = 0;
*(float *)&v15 = (float)a2;
if ( !a3 )
{
v16 = a9;
if ( !a4 )
goto LABEL_3;
LABEL_7:
v18 = v16;
GJBaseGameLayer::convertToClosestDirection(v15, 180.0);
v16 = v18;
*(_QWORD *)&a7 = LODWORD(a7);
*(_QWORD *)&a8 = LODWORD(a8);
if ( *(float *)(a1 + 808) == *(float *)&v15 )
return GJBaseGameLayer::updateScreenRotation(a1, v14, a4, a5, a6, v16, (float)a2, a7, a8);
goto LABEL_4;
}
*(float *)&v15 = *(float *)&v15 + *(float *)(a1 + 808);
v16 = a9;
if ( a4 )
goto LABEL_7;
LABEL_3:
if ( *(float *)(a1 + 808) != *(float *)&v15 )
LABEL_4:
*(_BYTE *)(a1 + 12636) = 1;
return GJBaseGameLayer::updateScreenRotation(a1, v14, a4, a5, a6, v16, (float)a2, a7, a8);
}