//
// sub_6BBB08 from 0x6bbb08 to 0x6bbbb0 (168 bytes)
//
// 5 xrefs:
// > sub_6B8210 @ 0x6b8430
// > sub_6B8210 @ 0x6b8460
// > sub_6B8210 @ 0x6b84a4
// > sub_6B8210 @ 0x6b84d4
// > sub_6B8210 @ 0x6b8830
//
// 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_6BBB08(int a1, _DWORD *a2, int a3, unsigned __int16 a4, unsigned int a5)
{
if ( a3 )
{
if ( a5 > 0xFFFF )
return sub_6BC9E0(a1, a2, a3, a4, a5);
else
return sub_6BC7C4(a1, a2, a3, a4, (unsigned __int16)a5);
}
else
{
++*a2;
return 1;
}
}