//
// GameLevelManager::onGetLevelRateInfoCompleted from 0x80dd74 to 0x80def0 (380 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85a770
// > ??> @ 0xebb88
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:48 +0000
//
__int64 __fastcall GameLevelManager::onGetLevelRateInfoCompleted(GameLevelManager *this, __int64 a2, char *a3)
{
const char *v5; // x3
const char *v6; // x1
unsigned int SplitIntFromKey; // w23
__int64 v8; // x0
void (__fastcall ***v10)(_QWORD, _QWORD, __int64 *); // x21
char v11; // w0
void (__fastcall *v12)(_QWORD, _QWORD, __int64 *); // x24
__int64 v13; // x0
__int64 v14; // x1
__int64 v16; // [xsp+50h] [xbp+50h] BYREF
__int64 v17; // [xsp+58h] [xbp+58h]
void *v18; // [xsp+60h] [xbp+60h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((const char **)a3 + 2);
GameLevelManager::removeDLFromActive(this, v5);
v6 = a3 + 1;
if ( (*a3 & 1) != 0 )
v6 = *((const char **)a3 + 2);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(this, v6, 1u);
v16 = 3222788;
v17 = 0;
v18 = nullptr;
if ( sub_7FEA60(a2, (__int64)&v16) )
{
v8 = *((_QWORD *)this + 183);
if ( v8 )
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v8 + 8LL))(v8, SplitIntFromKey, 0);
}
else
{
v10 = *((void (__fastcall ****)(_QWORD, _QWORD, __int64 *))this + 183);
if ( v10 )
{
v11 = *(_BYTE *)a2;
v12 = **v10;
v16 = 0;
v17 = 0;
v18 = nullptr;
if ( (v11 & 1) != 0 )
{
std::string::__init(&v16, *(void **)(a2 + 16), *(_QWORD *)(a2 + 8));
}
else
{
v13 = *(_QWORD *)a2;
v14 = *(_QWORD *)(a2 + 8);
v18 = *(void **)(a2 + 16);
v16 = v13;
v17 = v14;
}
v12(v10, SplitIntFromKey, &v16);
if ( (v16 & 1) != 0 )
operator delete(v18);
}
}
return _stack_chk_guard;
}