//
// GJBaseGameLayer::updateCameraMode from 0x5b8ca8 to 0x5b8d44 (156 bytes)
//
// 3 xrefs:
// > CameraTriggerGameObject::triggerObject @ 0x4f564a
// > GJBaseGameLayer::playerWillSwitchMode @ 0x5b8f24
// > GJBaseGameLayer::toggleDualMode @ 0x5b91ba
//
// 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:40 +0000
//
void __fastcall GJBaseGameLayer::updateCameraMode(GJBaseGameLayer *this, EffectGameObject *a2, int a3)
{
int v3; // r3
int v4; // r4
float v5; // s13
float v6; // s12
float v7; // s14
float v8; // s15
v3 = *((unsigned __int8 *)a2 + 1564);
v4 = *((unsigned __int8 *)this + 689);
*((_BYTE *)this + 689) = v3;
*((_BYTE *)this + 690) = *((_BYTE *)a2 + 1576);
if ( *((_BYTE *)a2 + 1565) )
{
v5 = *((float *)a2 + 392);
*((float *)this + 156) = v5;
v6 = *((float *)a2 + 393);
if ( v5 < 1.0 )
{
v7 = 1.0;
}
else
{
v7 = 40.0;
if ( v5 <= 40.0 )
v7 = v5;
}
*((float *)this + 156) = v7;
if ( v6 < 0.0 )
{
v8 = 0.0;
}
else
{
v8 = 1.0;
if ( v6 <= 1.0 )
v8 = v6;
}
*((float *)this + 155) = v8;
}
if ( v4 != v3 )
{
if ( a3 )
GJBaseGameLayer::updateDualGround(this, *((PlayerObject **)this + 519), *((_DWORD *)this + 262), 0, 0.0);
}
}