//
// SupportLayer::onRequestAccess from 0x14066b010 to 0x14066b0f7 (231 bytes)
//
// 2 xrefs:
// > SupportLayer::customSetup @ 0x14066a262
// > ??> @ 0x140931fc4
//
// 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 11:35:52 +0000
//
// Hidden C++ exception states: #wind=2
char __fastcall SupportLayer::onRequestAccess(__int64 a1)
{
__int64 v2; // rbx
__int64 v3; // rcx
char result; // al
__int64 v5; // rcx
cocos2d::CCObject *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]
v2 = a1 + 616;
if ( !a1 )
v2 = 0;
v3 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v11 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v11);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v3 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v3 + 1488) = v2;
result = GameLevelManager::requestUserAccess(v3);
if ( result )
{
v9 = 10;
v10 = 15;
v7 = *(_QWORD *)"Loading...";
v8 = *(unsigned __int16 *)"..";
BYTE2(v8) = 0;
v5 = a1 + 624;
if ( !a1 )
v5 = 0;
v6 = UploadActionPopup::create(v5, (__int64)&v7);
*(_QWORD *)(a1 + 632) = v6;
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 1064LL))(v6);
}
return result;
}