//
// sub_1003102E8 from 0x1003102e8 to 0x10031031c (52 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x10028cfe4
//
// 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_1003102E8(__int64 result, float a2, float a3)
{
float v3; // s2
float v4; // s1
v3 = *(float *)(result + 876);
if ( v3 > 1.0 )
{
if ( a3 <= 0.0 )
v4 = *(float *)(result + 876);
else
v4 = v3 / a3;
a2 = *(float *)(result + 868) + (float)((float)(a2 - *(float *)(result + 868)) / v4);
}
*(float *)(result + 868) = a2;
return result;
}