//
// sub_CFB6E from 0xcfb6e to 0xcfb94 (38 bytes)
//
// 2 xrefs:
// > sub_CFEB4 @ 0xd0180
// > sub_D02AC @ 0xd0408
//
// 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 sub_CFB6E()
{
int v0; // r0
int v1; // r2
signed int v2; // r0
int v3; // kr00_4
v0 = sub_CFB94();
v1 = 5;
v3 = 5 * v0;
v2 = 5 * v0 + ((unsigned int)((5 * v0) >> 31) >> 30);
if ( v3 / 4 > 5 )
v1 = v2 >> 2;
if ( v1 >= 8 )
LOBYTE(v1) = 8;
return (unsigned __int8)v1;
}