//
// GameLevelManager::onGetLevelRateInfoCompleted from 0x3c25f4 to 0x3c2690 (156 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x3d76b8
//
// 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 GameLevelManager::onGetLevelRateInfoCompleted(GameLevelManager *a1, int a2, const char **a3)
{
int SplitIntFromKey; // r7
_BOOL4 v7; // r9
int result; // r0
LevelRateInfoDelegate *m_levelRateInfoDelegate; // r5
void (__fastcall *rateInfoFinished)(LevelRateInfoDelegate *__hidden, int, std::string); // r9
char v11[4]; // [sp+8h] [bp-Ch] BYREF
GameLevelManager::removeDLFromActive(a1, *a3);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, *a3, 1);
sub_776584((int)v11, "-1");
v7 = sub_3BE0D8(a2, (int)v11);
result = sub_774008(v11);
m_levelRateInfoDelegate = a1->m_levelRateInfoDelegate;
if ( v7 )
{
if ( m_levelRateInfoDelegate )
return ((int (__fastcall *)(LevelRateInfoDelegate *, int, _DWORD))m_levelRateInfoDelegate->rateInfoFailed)(
m_levelRateInfoDelegate,
SplitIntFromKey,
0);
}
else if ( m_levelRateInfoDelegate )
{
rateInfoFinished = m_levelRateInfoDelegate->rateInfoFinished;
sub_775C20(v11, a2);
((void (__fastcall *)(LevelRateInfoDelegate *, int, char *))rateInfoFinished)(
m_levelRateInfoDelegate,
SplitIntFromKey,
v11);
return sub_774008(v11);
}
return result;
}