//
// sub_CFB6E from 0xcfb6e to 0xcfb94 (38 bytes)
//
// 2 xrefs:
// > sub_CFEB4 @ 0xd0180
// > sub_D02AC @ 0xd0408
//
// 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 11:41:58 +0000
//
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;
}