//
// sub_6D51E8 from 0x6d51e8 to 0x6d52fc (276 bytes)
//
// 1 xrefs:
// > sub_6D5D40 @ 0x6d5dc0
//
// 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_6D51E8(int a1)
{
unsigned __int16 *v7; // [sp+8h] [bp-14h]
unsigned __int16 *v8; // [sp+Ch] [bp-10h]
unsigned __int16 *v9; // [sp+10h] [bp-Ch]
int v10; // [sp+14h] [bp-8h]
v7 = *(unsigned __int16 **)(a1 + 36);
v8 = *(unsigned __int16 **)(a1 + 40);
v9 = *(unsigned __int16 **)(a1 + 44);
v10 = 1 << *(_WORD *)(a1 + 24);
while ( v10-- > 0 )
{
if ( *v7++ <= 0xFFu && *v8++ <= 0xFFu && *v9++ <= 0xFFu )
continue;
return 16;
}
return 8;
}