//
// GameLevelManager::onUpdateLevelCompleted from 0x100524b30 to 0x100524bd1 (161 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x10051f770
//
// 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:45 +0000
//
void __fastcall GameLevelManager::onUpdateLevelCompleted(__int64 a1, __int128 *a2, __int128 *a3)
{
__int128 v4; // [rsp+0h] [rbp-50h] BYREF
void *v5; // [rsp+10h] [rbp-40h]
__int128 v6; // [rsp+20h] [rbp-30h] BYREF
void *__p; // [rsp+30h] [rbp-20h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v4, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
}
else
{
v5 = *((void **)a2 + 2);
v4 = *a2;
if ( (*(_BYTE *)a3 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(&v6, *((const void **)a3 + 2), *((_QWORD *)a3 + 1));
goto LABEL_6;
}
}
__p = *((void **)a3 + 2);
v6 = *a3;
LABEL_6:
sub_10055F180(a1, &v4, &v6, 1);
if ( (v6 & 1) != 0 )
operator delete(__p);
if ( (v4 & 1) != 0 )
operator delete(v5);
}