//
// GameLevelManager::onGetLevelRateInfoCompleted from 0x100530e20 to 0x100530f54 (308 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x1005208cd
//
// This function is hookable on this platform (idp: pc, 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:31:50 +0000
//
void __fastcall GameLevelManager::onGetLevelRateInfoCompleted(__int64 a1, unsigned __int8 *a2, __int64 a3)
{
__int64 v5; // r14
__int64 v6; // rsi
char v7; // r14
const void *v8; // rdi
unsigned __int64 v9; // rax
unsigned __int64 v10; // r12
const void *v11; // r13
size_t v12; // rdx
bool v13; // r15
int v14; // eax
__int64 v15; // rdi
__int64 v16; // rbx
_WORD __s2[11]; // [rsp+1h] [rbp-6Fh] BYREF
__int64 v18; // [rsp+18h] [rbp-58h]
__int128 v19; // [rsp+20h] [rbp-50h] BYREF
void *__p; // [rsp+30h] [rbp-40h]
unsigned int SplitIntFromKey; // [rsp+44h] [rbp-2Ch]
if ( (*(_BYTE *)a3 & 1) != 0 )
{
v6 = *(_QWORD *)(a3 + 16);
v18 = a1;
GameLevelManager::removeDLFromActive(a1, v6);
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
}
else
{
v18 = a1;
GameLevelManager::removeDLFromActive(a1, a3 + 1);
if ( (*(_BYTE *)a3 & 1) != 0 )
{
LABEL_3:
v5 = *(_QWORD *)(a3 + 16);
goto LABEL_6;
}
}
v5 = a3 + 1;
LABEL_6:
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v5, 1);
strcpy((char *)__s2, "-1");
v7 = *a2;
v8 = a2 + 1;
v9 = *a2 >> 1;
v10 = *((_QWORD *)a2 + 1);
v11 = *((const void **)a2 + 2);
if ( (*a2 & 1) != 0 )
{
v8 = *((const void **)a2 + 2);
v9 = *((_QWORD *)a2 + 1);
}
v12 = 2;
if ( v9 < 2 )
v12 = v9;
v13 = v9 != 2;
v14 = memcmp(v8, __s2, v12);
v15 = *(_QWORD *)(v18 + 1464);
if ( v13 || v14 != 0 )
{
if ( v15 )
{
if ( (v7 & 1) != 0 )
{
v16 = *(_QWORD *)(v18 + 1464);
sub_10001AD30(&v19, v11, v10);
v15 = v16;
}
else
{
__p = *((void **)a2 + 2);
v19 = *(_OWORD *)a2;
}
(**(void (__fastcall ***)(__int64, _QWORD, __int128 *))v15)(v15, SplitIntFromKey, &v19);
if ( (v19 & 1) != 0 )
operator delete(__p);
}
}
else if ( v15 )
{
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v15 + 8LL))(v15, SplitIntFromKey, 0);
}
}