//
// GameLevelManager::onRequestUserAccessCompleted from 0x3c3048 to 0x3c3108 (192 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x3d74ba
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int (__fastcall ***__fastcall GameLevelManager::onRequestUserAccessCompleted(
int a1,
const char **a2))(_DWORD, _DWORD, int)
{
cocos2d::CCDictionary *v2; // r9
_BOOL4 v5; // r8
int v6; // r0
int (__fastcall ***result)(_DWORD, _DWORD, int); // r0
int v8; // r4
GameManager *v9; // r0
_BYTE v10[4]; // [sp+8h] [bp-Ch] BYREF
v2 = *(cocos2d::CCDictionary **)(a1 + 448);
sub_776584((int)v10, "req_ua");
cocos2d::CCDictionary::removeObjectForKey(v2);
sub_774008(v10);
sub_776584((int)v10, "-1");
v5 = sub_3BE0D8((int)a2, (int)v10);
sub_774008(v10);
if ( v5 )
{
v6 = *(_DWORD *)(a1 + 536);
if ( v6 )
(*(void (__fastcall **)(int, _DWORD, int))(*(_DWORD *)v6 + 4))(v6, 0, 43);
}
result = (int (__fastcall ***)(_DWORD, _DWORD, int))atoi(*a2);
v8 = (int)result;
if ( result == (int (__fastcall ***)(_DWORD, _DWORD, int))((char *)&dword_60 + 3) )
{
GameManager::sharedState()->m_hasDRP = 1;
}
else
{
if ( (unsigned int)result - 1 > 1 )
return result;
v9 = GameManager::sharedState();
GameManager::setHasRatingPower(v9, v8);
}
result = *(int (__fastcall ****)(_DWORD, _DWORD, int))(a1 + 536);
if ( result )
return (int (__fastcall ***)(_DWORD, _DWORD, int))(**result)(result, 0, 43);
return result;
}