//
// sub_1400BD930 from 0x1400bd930 to 0x1400bd999 (105 bytes)
//
// 2 xrefs:
// > sub_1400BD2C0 @ 0x1400bd34d
// > LevelControlConfig::bindGlobalBinds @ 0x14044b496
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:26:17 +0000
//
__int64 __fastcall sub_1400BD930(__int64 *a1, __int64 *a2)
{
__int64 v2; // r10
__int64 **v3; // r9
__int64 *i; // rax
__int64 *j; // r9
v2 = 0;
while ( a1 != a2 )
{
v3 = (__int64 **)a1[2];
++v2;
if ( *((_BYTE *)v3 + 25) )
{
for ( i = (__int64 *)a1[1]; !*((_BYTE *)i + 25); i = (__int64 *)i[1] )
{
if ( a1 != (__int64 *)i[2] )
break;
a1 = i;
}
a1 = i;
}
else
{
a1 = (__int64 *)a1[2];
for ( j = *v3; !*((_BYTE *)j + 25); j = (__int64 *)*j )
a1 = j;
}
}
return v2;
}