//
// limitCamera from 0x866ca4 to 0x866d10 (108 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::updateCamera @ 0x87e250
// > GJBaseGameLayer::updateCamera @ 0x87e2ec
// > GJBaseGameLayer::updateCamera @ 0x87e4e0
// > ??> @ 0x87f48
//
// 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
//
float *__fastcall limitCamera(float *result, float *a2, float *a3)
{
float v3; // s0
float v4; // s2
float v5; // s0
float v6; // s1
float v7; // s0
v3 = *a2;
v4 = *result;
if ( *a2 > 0.0 && v3 < v4 )
{
v4 = *a2;
*result = v3;
}
v5 = a2[1];
v6 = result[1];
if ( v5 > 0.0 && v5 < v6 )
{
v6 = a2[1];
result[1] = v5;
}
if ( *a3 > v4 )
*result = *a3;
v7 = a3[1];
if ( v7 > v6 )
result[1] = v7;
return result;
}