// // LogL10fromY from 0xc569e8 to 0xc56a90 (168 bytes) // // 2 xrefs: // > LogLuv24fromXYZ @ 0xc57128 // > @ 0x75ee8 // // 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 // __int64 __fastcall LogL10fromY(int a1, double a2) { unsigned int v2; // w1 double v4; // [xsp+10h] [xbp+10h] v2 = 1023; if ( a2 >= 15.742 ) return v2; v2 = 0; if ( a2 <= 0.00024283 ) return v2; if ( !a1 ) return (unsigned int)(int)((log(a2) * 1.44269504 + 12.0) * 64.0); v4 = log(a2); return (unsigned int)(int)((double)rand() * 4.65661288e-10 + (v4 * 1.44269504 + 12.0) * 64.0 - 0.5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source