//
// SupportLayer::onRequestAccess from 0x901c70 to 0x901d50 (224 bytes)
//
// 3 xrefs:
// > ??> @ 0x49bd0
// > SupportLayer::customSetup @ 0x902a70
// > ??> @ 0x1541718
//
// 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:57:07 +0000
//
__int64 __fastcall SupportLayer::onRequestAccess(SupportLayer *this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
GameLevelManager *v4; // x0
__int64 v6; // x0
char v7; // w1
__int64 v8[2]; // [xsp+30h] [xbp+30h] BYREF
void *v9; // [xsp+40h] [xbp+40h]
v3 = (GameLevelManager *)GameLevelManager::sharedState(_stack_chk_guard);
*((_QWORD *)v3 + 170) = (char *)this + 616;
v4 = (GameLevelManager *)GameLevelManager::sharedState(v3);
if ( (unsigned __int8)GameLevelManager::requestUserAccess(v4) )
{
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
std::string::__init(v8, "Loading...", 0xAu);
v6 = UploadActionPopup::create((char *)this + 624, v8);
v7 = v8[0];
*((_QWORD *)this + 79) = v6;
if ( (v7 & 1) != 0 )
{
operator delete(v9);
v6 = *((_QWORD *)this + 79);
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}
return _stack_chk_guard;
}