//
// sub_6D9228 from 0x6d9228 to 0x6d92c4 (156 bytes)
//
// 3 xrefs:
// > sub_6DBD90 @ 0x6dbf44
// > sub_6DBD90 @ 0x6dbf48
// > ??> @ 0x6dbffc
//
// 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
//
int __fastcall sub_6D9228(double a1, int a2)
{
__int16 v2; // r3
float v3; // s15
__int16 *v7; // [sp+10h] [bp-Ch]
float *i; // [sp+14h] [bp-8h]
v7 = *(__int16 **)(LODWORD(a1) + 12);
for ( i = (float *)HIDWORD(a1); a2-- > 0; ++i )
{
v2 = *v7++;
a1 = COERCE_DOUBLE(LogL16toY(v2));
v3 = a1;
*i = v3;
}
return LODWORD(a1);
}