//
// GJBaseGameLayer::updateZoom from 0x5b9200 to 0x5b92d2 (210 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x468214
// > EffectGameObject::triggerObject @ 0x4f5332
// > GJBaseGameLayer::resetCamera @ 0x5b938c
//
// 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::updateZoom(
GJBaseGameLayer *this,
float a2,
float a3,
int a4,
float a5,
int a6,
int a7)
{
float v8; // s16
GJGameState *v10; // r0
PlayerObject *v11; // r5
int ActiveMode; // r0
v8 = a2;
if ( a2 > 0.0 )
{
if ( a2 >= 3.0 )
{
v8 = 3.0;
}
else if ( a2 <= 0.4 )
{
v8 = 0.4;
}
}
else
{
v8 = 1.0;
}
*((float *)this + 83) = v8;
v10 = (GJBaseGameLayer *)((char *)this + 328);
if ( a3 <= 0.0 )
{
GJGameState::stopTweenAction((unsigned int)v10, 0xEu);
*((float *)this + 82) = v8;
}
else
{
GJGameState::tweenValue(v10, *((float *)this + 82), v8, 0xEu, a3, a4, a5, a6, a7);
}
*((float *)this + 165) = a3;
if ( !*((_BYTE *)this + 10829) )
{
if ( *((_BYTE *)this + 688) )
{
v11 = *((PlayerObject **)this + 519);
ActiveMode = PlayerObject::getActiveMode(v11);
GJBaseGameLayer::updateDualGround(this, v11, ActiveMode, a3 == 0.0, a3);
}
}
}