//
// sub_CEEBE from 0xceebe to 0xceef0 (50 bytes)
//
// 2 xrefs:
// > sub_8129C @ 0x81434
// > sub_CEF24 @ 0xcef92
//
// 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_CEEBE(_DWORD *a1, int a2)
{
int result; // r0
if ( !a1[1] )
return a1[18];
if ( a2 <= -1 )
{
result = a1[18];
if ( (int)a1[22] >= 3 )
result += 32 * a1[24];
}
else if ( a1[13] > a2 )
{
return a1[18] + 32 * a2;
}
else
{
return 0;
}
return result;
}