//
// sub_8CB6C8 from 0x8cb6c8 to 0x8cb770 (168 bytes)
//
// 5 xrefs:
// > sub_8C7DD0 @ 0x8c7ff0
// > sub_8C7DD0 @ 0x8c8020
// > sub_8C7DD0 @ 0x8c8064
// > sub_8C7DD0 @ 0x8c8094
// > sub_8C7DD0 @ 0x8c83f0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:03 +0000
//
int __fastcall sub_8CB6C8(int a1, _DWORD *a2, int a3, unsigned __int16 a4, unsigned int a5)
{
if ( a3 )
{
if ( a5 > 0xFFFF )
return sub_8CC5A0(a1, a2, a3, a4, a5);
else
return sub_8CC384(a1, a2, a3, a4, (unsigned __int16)a5);
}
else
{
++*a2;
return 1;
}
}