//
// SupportLayer::onRequestAccess from 0x42c7dc to 0x42c84a (110 bytes)
//
// 0 xrefs:
//
// 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
//
void SupportLayer::onRequestAccess(SupportLayer *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // r0
std::string v4; // r2
UploadPopupDelegate v5; // [sp+8h] [bp-8h] BYREF
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
v3 = GameLevelManager::sharedState();
if ( GameLevelManager::requestUserAccess(v3) )
{
sub_776584((int)&v5, "Loading...");
a1->m_uploadPopup = (UploadActionPopup *)UploadActionPopup::create(
(UploadActionPopup *)&a1->UploadPopupDelegate,
&v5,
v4);
sub_774008(&v5);
a1->m_uploadPopup->show(a1->m_uploadPopup);
}
}