//
// random2d from 0xb29ac8 to 0xb29b4c (132 bytes)
//
// 5 xrefs:
// > randomRange @ 0xb29b9c
// > ShaderLayer::preGlitchShader @ 0xb2bc8c
// > ShaderLayer::preGlitchShader @ 0xb2bcb0
// > ShaderLayer::preGlitchShader @ 0xb2bdb4
// > ??> @ 0x98110
//
// 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 13:01:40 +0000
//
float __fastcall random2d(float *a1)
{
float v2; // s0
float v4[2]; // [xsp+20h] [xbp+20h] BYREF
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v4, 12.99, 4.1414);
v2 = sinf((float)(a1[1] * v4[1]) + (float)(*a1 * v4[0])) * 43758.5453;
return v2 - floorf(v2);
}