//
// GJBaseGameLayer::updateZoom from 0x1001fcf1c to 0x1001fd000 (228 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::resetCamera @ 0x100202aec
// > LevelEditorLayer::onPlaytest @ 0x100362ae8
// > EffectGameObject::triggerObject @ 0x100385d44
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJBaseGameLayer::updateZoom(GJBaseGameLayer *a1, float a2, float a3, int a4, float a5, int a6, int a7)
{
float v9; // s9
PlayerObject *m_player1; // x20
GameObjectType ActiveMode; // w2
int v12; // [xsp+Ch] [xbp-24h] BYREF
if ( a2 <= 0.0 )
a2 = 1.0;
v9 = fmaxf(fminf(a2, 3.0), 0.4);
a1->m_gameState.m_targetCameraZoom = v9;
if ( a3 <= 0.0 )
{
v12 = 14;
sub_10001B104(&a1->m_gameState.m_tweenActions.__table_.__bucket_list_.__ptr_.__value_, &v12);
a1->m_gameState.m_cameraZoom = v9;
}
else
{
GJGameState::tweenValue(&a1->m_gameState, a1->m_gameState.m_cameraZoom, v9, 14, a3, a4, a5, a6, a7);
}
a1->m_gameState.m_unkUint1 = a3;
if ( !a1->m_skipArtReload && a1->m_gameState.m_unkBool7 )
{
m_player1 = a1->m_player1;
ActiveMode = PlayerObject::getActiveMode(m_player1);
GJBaseGameLayer::updateDualGround(a1, m_player1, ActiveMode, a3 == 0.0, a3);
}
}