//
// GJBaseGameLayer::updateZoom from 0x14033eac0 to 0x14033ec3f (383 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::resetCamera @ 0x140349864
// > LevelEditorLayer::onPlaytest @ 0x1403fe96c
// > EffectGameObject::triggerObject @ 0x140648e20
// > ??> @ 0x14091fcb8
//
// This function is hookable on this platform (idp: pc, 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 11:30:38 +0000
//
__int64 __fastcall GJBaseGameLayer::updateZoom(__int64 a1, float a2, float a3, int a4, int a5, int a6, int a7)
{
float v8; // xmm8_4
__int64 result; // rax
bool v10; // zf
_BYTE *v11; // rdx
int v12; // r8d
int v13; // [rsp+98h] [rbp+10h] BYREF
if ( a2 <= 0.0 )
a2 = 1.0;
v8 = fmaxf(0.40000001, fminf(3.0, a2));
*(float *)(a1 + 428) = v8;
if ( a3 <= 0.0 )
{
v13 = 14;
result = sub_140355080(a1 + 1064, &v13);
*(float *)(a1 + 424) = v8;
}
else
{
result = GJGameState::tweenValue(a1 + 424, *(float *)(a1 + 424), v8, 14, SLODWORD(a3), a4, a5, a6, a7);
}
v10 = *(_BYTE *)(a1 + 13085) == 0;
*(float *)(a1 + 756) = a3;
if ( v10 && *(_BYTE *)(a1 + 784) )
{
v11 = *(_BYTE **)(a1 + 3512);
v12 = 6;
if ( v11[2497] || v11[2498] || v11[2500] || v11[2508] )
{
v12 = 5;
}
else if ( v11[2499] )
{
v12 = 16;
}
else if ( v11[2502] )
{
v12 = 33;
}
return GJBaseGameLayer::updateDualGround(a1, (__int64)v11, v12);
}
return result;
}