//
// sub_6D92C4 from 0x6d92c4 to 0x6d93f0 (300 bytes)
//
// 3 xrefs:
// > sub_6DBD90 @ 0x6dbf58
// > sub_6DBD90 @ 0x6dbf5c
// > ??> @ 0x6dc000
//
// 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_6D92C4(double a1, int a2)
{
__int16 v2; // r3
char v3; // r3
__int16 *v7; // [sp+10h] [bp-14h]
char *i; // [sp+14h] [bp-10h]
v7 = *(__int16 **)(LODWORD(a1) + 12);
for ( i = (char *)HIDWORD(a1); a2-- > 0; ++i )
{
v2 = *v7++;
a1 = COERCE_DOUBLE(LogL16toY(v2));
if ( a1 > 0.0 )
{
if ( a1 < 1.0 )
v3 = (int)(sqrt(a1) * 256.0);
else
v3 = -1;
}
else
{
v3 = 0;
}
*i = v3;
}
return LODWORD(a1);
}