//
// GJBaseGameLayer::updateZoom from 0x100298fe4 to 0x1002990c8 (228 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::resetCamera @ 0x10029f86c
// > LevelEditorLayer::onPlaytest @ 0x10040467c
// > EffectGameObject::triggerObject @ 0x10042c2f8
//
// 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 11:02:07 +0000
//
__int64 __fastcall GJBaseGameLayer::updateZoom(__int64 a1, int a2, int a3, int a4, float a5, float a6, float a7)
{
float v9; // s9
__int64 result; // x0
__int64 v11; // x20
int v12; // w2
int v13; // [xsp+Ch] [xbp-24h] BYREF
if ( a5 <= 0.0 )
a5 = 1.0;
v9 = fmaxf(fminf(a5, 3.0), 0.4);
*(float *)(a1 + 428) = v9;
if ( a6 <= 0.0 )
{
v13 = 14;
result = (__int64)sub_10001BB58((_QWORD *)(a1 + 1016), &v13);
*(float *)(a1 + 424) = v9;
}
else
{
result = sub_10027409C(a1 + 424, 14, a2, a3, a4, *(float *)(a1 + 424), v9, a6, a7);
}
*(float *)(a1 + 756) = a6;
if ( (*(_BYTE *)(a1 + 12605) & 1) == 0 && *(_BYTE *)(a1 + 784) == 1 )
{
v11 = *(_QWORD *)(a1 + 3256);
v12 = sub_1002C6310(v11);
return GJBaseGameLayer::updateDualGround(a1, v11, v12, a6 == 0.0);
}
return result;
}