//
// SupportLayer::onRequestAccess from 0x1003840a0 to 0x10038412c (140 bytes)
//
// 1 xrefs:
// > SupportLayer::customSetup @ 0x1003826f5
//
// This function is hookable on this platform (idp: pc, 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:29:09 +0000
//
__int64 __fastcall SupportLayer::onRequestAccess(__int64 a1, double a2)
{
__int64 v2; // rax
__int64 result; // rax
char *v4; // rax
__int128 v5; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1360) = a1 + 616;
v2 = GameLevelManager::sharedState(a2);
result = GameLevelManager::requestUserAccess(v2);
if ( (_BYTE)result )
{
LOBYTE(v5) = 20;
strcpy((char *)&v5 + 1, "Loading...");
v4 = UploadActionPopup::create(a1 + 624, &v5);
*(_QWORD *)(a1 + 632) = v4;
if ( (v5 & 1) != 0 )
{
operator delete(__p);
v4 = *(char **)(a1 + 632);
}
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 1312LL))(v4);
}
return result;
}