//
// sub_62D38 from 0x62d38 to 0x62d78 (64 bytes)
//
// 3 xrefs:
// > sub_658D4 @ 0x65928
// > sub_6BF84 @ 0x6bfe8
// > sub_6C4D4 @ 0x6c51c
//
// 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
//
__int64 __fastcall sub_62D38(__int64 a1, _DWORD *a2)
{
int v2; // w8
_QWORD *v3; // x10
if ( !a2 )
return 31;
v2 = 0;
v3 = (_QWORD *)(a1 + 328);
while ( 1 )
{
v3 = (_QWORD *)*v3;
if ( v3 == (_QWORD *)(a1 + 328) )
break;
if ( *(_DWORD *)(v3[2] + 24LL) != 1010 )
++v2;
}
*a2 = v2;
return 0;
}