//
// sub_CFB2E4 from 0xcfb2e4 to 0xcfb318 (52 bytes)
//
// 0 xrefs:
//
// 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_CFB2E4(__int64 a1, __int64 a2)
{
unsigned int v2; // w2
if ( !a1 )
return 0;
v2 = 0;
while ( 1 )
{
if ( *(_DWORD *)a1 == 1 )
++v2;
if ( a1 == a2 )
break;
a1 = *(_QWORD *)(a1 + 8);
}
return v2;
}