//
// GJBaseGameLayer::updateCameraMode from 0x9e66d0 to 0x9e6778 (168 bytes)
//
// 4 xrefs:
// > CameraTriggerGameObject::triggerObject @ 0x898e14
// > GJBaseGameLayer::playerWillSwitchMode @ 0x9e6ae4
// > GJBaseGameLayer::toggleDualMode @ 0x9e6e00
// > ??> @ 0xd44d0
//
// 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:59:00 +0000
//
__int64 __fastcall GJBaseGameLayer::updateCameraMode(__int64 this, EffectGameObject *a2, char a3)
{
int v3; // w3
int v4; // w4
float v5; // s1
float v6; // s0
float v7; // s2
float v8; // s0
v3 = *((unsigned __int8 *)a2 + 1748);
v4 = *(unsigned __int8 *)(this + 785);
*(_BYTE *)(this + 785) = v3;
*(_BYTE *)(this + 786) = *((_BYTE *)a2 + 1760);
if ( *((_BYTE *)a2 + 1749) )
{
v5 = *((float *)a2 + 438);
v6 = 1.0;
*(float *)(this + 720) = v5;
v7 = *((float *)a2 + 439);
if ( v5 >= 1.0 && (v6 = 40.0, v5 <= 40.0) )
{
*(float *)(this + 720) = v5;
if ( v7 >= 0.0 )
{
LABEL_5:
v8 = 1.0;
if ( v7 <= 1.0 )
v8 = v7;
goto LABEL_7;
}
}
else
{
*(float *)(this + 720) = v6;
if ( v7 >= 0.0 )
goto LABEL_5;
}
v8 = 0.0;
LABEL_7:
*(float *)(this + 716) = v8;
}
if ( v4 != v3 )
{
if ( a3 )
return GJBaseGameLayer::updateDualGround(
(GJBaseGameLayer *)this,
*(PlayerObject **)(this + 3256),
*(_DWORD *)(this + 1256),
0,
0.0);
}
return this;
}