//
// sub_10031031C from 0x10031031c to 0x100310350 (52 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x10028cff4
//
// 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:03:12 +0000
//
__int64 __fastcall sub_10031031C(__int64 result, float a2, float a3)
{
float v3; // s2
float v4; // s1
v3 = *(float *)(result + 880);
if ( v3 > 1.0 )
{
if ( a3 <= 0.0 )
v4 = *(float *)(result + 880);
else
v4 = v3 / a3;
a2 = *(float *)(result + 872) + (float)((float)(a2 - *(float *)(result + 872)) / v4);
}
*(float *)(result + 872) = a2;
return result;
}