//
// GameLevelManager::onAdminThreadActionCompleted from 0x811d10 to 0x811f54 (580 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85af48
// > ??> @ 0xe7d90
//
// 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:50 +0000
//
__int64 __fastcall GameLevelManager::onAdminThreadActionCompleted(__int64 a1, __int64 a2, char *a3)
{
char *v6; // x19
__int64 v7; // x24
size_t v8; // x0
unsigned __int64 v9; // x24
unsigned __int64 v10; // x19
unsigned int v11; // w22
unsigned int v12; // w24
_BOOL4 v13; // w19
__int64 v14; // x0
char *v16; // x26
char *v17; // x19
__int64 v18; // [xsp+50h] [xbp+50h] BYREF
__int64 v19; // [xsp+58h] [xbp+58h]
char *v20; // [xsp+60h] [xbp+60h]
v6 = a3 + 1;
v7 = *(_QWORD *)(a1 + 1088);
if ( (*a3 & 1) != 0 )
v6 = *((char **)a3 + 2);
v18 = 0;
v19 = 0;
v20 = nullptr;
v8 = strlen(v6);
std::string::__init(&v18, v6, v8);
cocos2d::CCDictionary::removeObjectForKey(v7, &v18);
if ( (v18 & 1) != 0 )
operator delete(v20);
v9 = std::string::find((__int64)a3, 0x5Fu, 0);
v10 = std::string::rfind((__int64)a3, 0x5Fu, 0xFFFFFFFFFFFFFFFFLL);
if ( v10 != -1 && v9 != -1 && v9 < v10 )
{
std::string::basic_string(&v18, (__int64)a3, v9 + 1, v10 - 1 - v9);
if ( (v18 & 1) != 0 )
{
v16 = v20;
v12 = atoi(v20);
operator delete(v16);
}
else
{
v12 = atoi((const char *)&v18 + 1);
}
std::string::basic_string(&v18, (__int64)a3, v10 + 1, 0xFFFFFFFFFFFFFFFFLL);
if ( (v18 & 1) != 0 )
{
v17 = v20;
v11 = atoi(v20);
operator delete(v17);
}
else
{
v11 = atoi((const char *)&v18 + 1);
}
}
else
{
v11 = 0;
v12 = 0;
}
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, &word_117CE08, 2u);
v13 = sub_7FEA60(a2, (__int64)&v18);
if ( (v18 & 1) != 0 )
operator delete(v20);
v14 = *(_QWORD *)(a1 + 1264);
if ( v13 )
{
if ( v14 )
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v14 + 72LL))(v14, v12, v11);
}
else if ( v14 )
{
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v14 + 64LL))(v14, v12, v11);
}
return _stack_chk_guard;
}