//
// GameLevelManager::onGetLevelRateInfoCompleted from 0x4c22fc to 0x4c23b0 (180 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4db1ea
//
// 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:50:25 +0000
//
int __fastcall GameLevelManager::onGetLevelRateInfoCompleted(GameLevelManager *a1, unsigned __int8 *a2, int a3, int a4)
{
const char *v7; // r1
const char *v8; // r1
int SplitIntFromKey; // r9
_BOOL4 v10; // r10
int result; // r0
void (__fastcall ***v12)(_DWORD, int, GameLevelManager **); // r5
void (__fastcall *v13)(_DWORD, int, GameLevelManager **); // r6
GameLevelManager *v14; // [sp+0h] [bp-10h] BYREF
unsigned __int8 *v15; // [sp+4h] [bp-Ch]
int v16; // [sp+8h] [bp-8h]
int v17; // [sp+Ch] [bp-4h]
v14 = a1;
v15 = a2;
v16 = a3;
v17 = a4;
if ( (*(_BYTE *)a3 & 1) != 0 )
v7 = *(const char **)(a3 + 8);
else
v7 = (const char *)(a3 + 1);
GameLevelManager::removeDLFromActive(a1, v7);
if ( (*(_BYTE *)a3 & 1) != 0 )
v8 = *(const char **)(a3 + 8);
else
v8 = (const char *)(a3 + 1);
v14 = nullptr;
v15 = nullptr;
v16 = 0;
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v8, 1u);
std::string::__init((int *)&v14, "-1", 2u);
v10 = sub_4A9CC4(a2, (unsigned __int8 *)&v14);
result = std::string::~string((int)&v14);
v12 = *((void (__fastcall ****)(_DWORD, int, GameLevelManager **))a1 + 235);
if ( v10 )
{
if ( v12 )
return ((int (__fastcall *)(_DWORD, int, _DWORD))(*v12)[1])(v12, SplitIntFromKey, 0);
}
else if ( v12 )
{
v13 = **v12;
std::string::basic_string((int *)&v14, (int)a2);
v13(v12, SplitIntFromKey, &v14);
return std::string::~string((int)&v14);
}
return result;
}