//
// random2d from 0x9f30d0 to 0x9f3154 (132 bytes)
//
// 5 xrefs:
// > randomRange @ 0x9f31a4
// > ShaderLayer::preGlitchShader @ 0x9f525c
// > ShaderLayer::preGlitchShader @ 0x9f5280
// > ShaderLayer::preGlitchShader @ 0x9f5384
// > ??> @ 0x70f08
//
// 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 random2d(float *a1)
{
float v2; // s0
cocos2d::CCPoint v4; // [xsp+20h] [xbp+20h] BYREF
cocos2d::CCPoint::CCPoint(&v4, 12.99, 4.1414);
v2 = sinf((float)(a1[1] * v4.y) + (float)(*a1 * v4.x)) * 43758.5453;
return v2 - floorf(v2);
}