//
// SupportLayer::onRequestAccess from 0x1404c9880 to 0x1404c9961 (225 bytes)
//
// 2 xrefs:
// > SupportLayer::customSetup @ 0x1404c8b15
// > ??> @ 0x1406dd304
//
// 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
//
// Hidden C++ exception states: #wind=2
void SupportLayer::onRequestAccess(SupportLayer *a1, cocos2d::CCObject *a2)
{
UploadActionDelegate *v3; // rbx
GameLevelManager *v4; // rcx
UploadPopupDelegate *v5; // rcx
UploadActionPopup *v6; // rax
__int64 v7; // [rsp+20h] [rbp-28h] BYREF
__int64 v8; // [rsp+28h] [rbp-20h]
__int64 v9; // [rsp+30h] [rbp-18h]
__int64 v10; // [rsp+38h] [rbp-10h]
void *v11; // [rsp+50h] [rbp+8h]
v3 = &a1->UploadActionDelegate;
if ( !a1 )
v3 = nullptr;
v4 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v11 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v4 = (GameLevelManager *)qword_1406C2EC0;
}
v4->m_uploadActionDelegate = v3;
if ( GameLevelManager::requestUserAccess(v4) )
{
v9 = 10;
v10 = 15;
v7 = *(_QWORD *)"Loading...";
v8 = *(unsigned __int16 *)"..";
BYTE2(v8) = 0;
v5 = &a1->UploadPopupDelegate;
if ( !a1 )
v5 = nullptr;
v6 = (UploadActionPopup *)UploadActionPopup::create((__int64)v5, (__int64)&v7);
a1->m_uploadPopup = v6;
v6->show(v6);
}
}