//
// LogL16toY from 0xc56470 to 0xc564c0 (80 bytes)
//
// 4 xrefs:
// > sub_C564D0 @ 0xc56524
// > sub_C56590 @ 0xc565bc
// > LogLuv32toXYZ @ 0xc57250
// > ??> @ 0xaace8
//
// 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
//
double __fastcall LogL16toY(__int16 a1)
{
double result; // d0
result = 0.0;
if ( (a1 & 0x7FFF) != 0 )
{
result = exp(((double)(a1 & 0x7FFF) + 0.5) * 0.00270760617 + -44.3614196);
if ( a1 < 0 )
return -result;
}
return result;
}