//
// GJBaseGameLayer::updateZoom from 0x140235cf0 to 0x140235e72 (386 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::resetCamera @ 0x14023fc44
// > LevelEditorLayer::onPlaytest @ 0x1402dfdb2
// > EffectGameObject::triggerObject @ 0x1404a7354
// > ??> @ 0x1406ce088
//
// 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 GJBaseGameLayer::updateZoom(GJBaseGameLayer *a1, float a2, float a3, int a4, float a5, int a6, int a7)
{
float v8; // xmm6_4
float v9; // xmm0_4
bool v10; // zf
PlayerObject *m_player1; // rdx
int v12; // r8d
float v13; // [rsp+20h] [rbp-68h]
int v14; // [rsp+98h] [rbp+10h] BYREF
if ( a2 <= 0.0 )
a2 = 1.0;
v8 = 0.40000001;
v9 = fminf(3.0, a2);
if ( v9 >= 0.40000001 )
v8 = v9;
a1->m_gameState.m_targetCameraZoom = v8;
if ( a3 <= 0.0 )
{
v14 = 14;
sub_14024AC30(&a1->m_gameState.m_tweenActions, &v14);
a1->m_gameState.m_cameraZoom = v8;
}
else
{
GJGameState::tweenValue(&a1->m_gameState, a1->m_gameState.m_cameraZoom, v8, 14, a3, a4, a5, a6, a7);
}
v10 = !a1->m_skipArtReload;
a1->m_gameState.m_unkUint1 = a3;
if ( v10 && a1->m_gameState.m_unkBool7 )
{
m_player1 = a1->m_player1;
v12 = 6;
if ( m_player1->m_isShip || m_player1->m_isBird || m_player1->m_isDart || m_player1->m_isSwing )
{
v12 = 5;
}
else if ( m_player1->m_isBall )
{
v12 = 16;
}
else if ( m_player1->m_isSpider )
{
v12 = 33;
}
GJBaseGameLayer::updateDualGround(a1, m_player1, v12, a3 == 0.0, v13);
}
}