// // random2d from 0x54b6d0 to 0x54b74a (122 bytes) // // 4 xrefs: // > randomRange @ 0x54b790 // > ShaderLayer::preGlitchShader @ 0x54d2e0 // > ShaderLayer::preGlitchShader @ 0x54d2fe // > ShaderLayer::preGlitchShader @ 0x54d3f4 // // 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; // s16 cocos2d::CCPoint v4; // [sp+4h] [bp-10h] 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); }
GD Web Decomp Icon

GD Web Decomp

Raw Source