//
// sub_1004C8770 from 0x1004c8770 to 0x1004c87a7 (55 bytes)
//
// 0 xrefs:
//
// 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
//
char *__fastcall sub_1004C8770(int a1, int a2)
{
GameManager *v2; // rax
__int64 v3; // rcx
bool v4; // cf
__int64 v5; // rcx
__int64 v6; // rdx
v2 = GameManager::sharedState();
v3 = (unsigned int)(a2 + a1 - 1);
v4 = (unsigned int)v3 < 4;
v5 = 40 * v3 + 1252;
v6 = 1212;
if ( v4 )
v6 = v5;
return (char *)v2 + v6;
}