//
// GameLevelManager::onUnblockUserCompleted from 0x80e9dc to 0x80eb5c (384 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85cac8
// > ??> @ 0xb8720
//
// 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:49 +0000
//
__int64 __fastcall GameLevelManager::onUnblockUserCompleted(__int64 a1, __int64 a2, char *a3)
{
char *v5; // x19
size_t v6; // x0
__int64 v7; // x24
unsigned int SplitIntFromKey; // w19
_BOOL4 v9; // w22
__int64 v10; // x0
__int64 v12; // [xsp+40h] [xbp+40h] BYREF
__int64 v13; // [xsp+48h] [xbp+48h]
void *v14; // [xsp+50h] [xbp+50h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v12 = 0;
v13 = 0;
v14 = nullptr;
v6 = strlen(v5);
v7 = *(_QWORD *)(a1 + 1088);
std::string::__init(&v12, v5, v6);
cocos2d::CCDictionary::removeObjectForKey(v7, &v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey((GameLevelManager *)a1, v5, 1u);
v12 = 0;
v13 = 0;
v14 = nullptr;
std::string::__init(&v12, &word_117CE08, 2u);
v9 = sub_7FEA60(a2, (__int64)&v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
v10 = *(_QWORD *)(a1 + 1360);
if ( v9 )
{
if ( v10 )
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v10 + 8LL))(v10, SplitIntFromKey, 41);
}
else
{
if ( v10 )
(**(void (__fastcall ***)(__int64, _QWORD, __int64))v10)(v10, SplitIntFromKey, 41);
cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(a1 + 1120), (int)SplitIntFromKey);
GameLevelManager::removeUserFromList(a1, SplitIntFromKey, 1u);
}
return _stack_chk_guard;
}