//
// sub_696E0 from 0x696e0 to 0x6975c (124 bytes)
//
// 5 xrefs:
// > sub_68674 @ 0x686f8
// > sub_694B8 @ 0x696b4
// > sub_8B300 @ 0x8b444
// > sub_97694 @ 0x97710
// > sub_A285C @ 0xa28e0
//
// 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_696E0(__int64 a1)
{
unsigned int i; // w20
__int64 v4; // [xsp+0h] [xbp-20h] BYREF
int v5; // [xsp+Ch] [xbp-14h] BYREF
v5 = 0;
if ( !(*(unsigned int (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 232LL))(a1, &v5) )
{
for ( i = 0; (int)i < v5; ++i )
{
if ( !(*(unsigned int (__fastcall **)(__int64, _QWORD, __int64 *))(*(_QWORD *)a1 + 240LL))(a1, i, &v4) )
*(_WORD *)(v4 + 50) = i;
}
}
return 0;
}