//
// SupportLayer::onRequestAccess from 0x53993c to 0x5399b2 (118 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:13 +0000
//
int __fastcall SupportLayer::onRequestAccess(SupportLayer *this, cocos2d::CCObject *a2, int a3, int a4)
{
GameLevelManager *v5; // r0
GameLevelManager *v6; // r0
int result; // r0
SupportLayer *v8; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v9; // [sp+4h] [bp-Ch]
int v10; // [sp+8h] [bp-8h]
int v11; // [sp+Ch] [bp-4h]
v8 = this;
v9 = a2;
v10 = a3;
v11 = a4;
v5 = (GameLevelManager *)GameLevelManager::sharedState(this);
*((_DWORD *)v5 + 222) = (char *)this + 484;
v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);
result = GameLevelManager::requestUserAccess(v6);
if ( result )
{
v8 = nullptr;
v9 = nullptr;
v10 = 0;
std::string::__init((int *)&v8, "Loading...", 0xAu);
*((_DWORD *)this + 123) = UploadActionPopup::create((char *)this + 488, &v8);
std::string::~string((int)&v8);
return (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 123) + 656))(*((_DWORD *)this + 123));
}
return result;
}