//
// LogL10fromY from 0xeccba8 to 0xeccc50 (168 bytes)
//
// 2 xrefs:
// > LogLuv24fromXYZ @ 0xecd2e8
// > ??> @ 0x9e110
//
// 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:11:38 +0000
//
__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);
}