//
// random2d from 0x6819c0 to 0x681a3a (122 bytes)
//
// 4 xrefs:
// > randomRange @ 0x681a80
// > ShaderLayer::preGlitchShader @ 0x683600
// > ShaderLayer::preGlitchShader @ 0x68361e
// > ShaderLayer::preGlitchShader @ 0x683714
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:02 +0000
//
float __fastcall random2d(float *a1)
{
float v2; // s16
float v4[2]; // [sp+4h] [bp-10h] 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);
}