//
// sub_1009A4070 from 0x1009a4070 to 0x1009a4188 (280 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::onJumpRow @ 0x1009a1ac7
// > sub_1009A1F80 @ 0x1009a1fdb
//
// 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:39:18 +0000
//
void __fastcall sub_1009A4070(__int64 a1, int a2, int a3)
{
void *v4; // rax
__int64 v5; // rax
int v6; // esi
char *v7; // r14
unsigned int v8; // ebx
__int64 v9; // rbx
_BYTE *v10; // rax
char *v11; // rax
char *v12; // rbx
__int128 v13; // [rsp+8h] [rbp-48h] BYREF
void *v14; // [rsp+18h] [rbp-38h]
std::string v15[2]; // [rsp+20h] [rbp-30h] BYREF
if ( a2 == 7 )
{
v5 = GameManager::sharedState();
if ( (unsigned __int8)GameManager::offlineModeEnabled(v5) )
{
GameManager::sharedState();
GameManager::showParentalRestrictedAlert();
}
else
{
GameToolbox::intToString((size_t *)&v13, a3);
v12 = sub_1008EEE60(&v13, 0);
if ( (v13 & 1) != 0 )
operator delete(v14);
if ( v12 )
(*(void (__fastcall **)(char *))(*(_QWORD *)v12 + 1312LL))(v12);
}
}
else if ( a2 == 4 )
{
v4 = ProfilePage::create(a3, 0);
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 1312LL))(v4);
}
else
{
v6 = -a3;
if ( a3 > 0 )
v6 = a3;
GameToolbox::intToString((size_t *)v15, v6);
v7 = GJSearchObject::create_1(0, v15);
v8 = (unsigned int)a3 >> 31;
if ( (*(_BYTE *)&v15[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v15[0].__r_.__value_.__l.__data_);
*((_DWORD *)v7 + 108) = v8;
v9 = cocos2d::CCDirector::sharedDirector();
v10 = LevelBrowserLayer::scene((__int64)v7, (__int64)v15);
v11 = cocos2d::CCTransitionFade::create_1((__int64)v10, 0.5);
cocos2d::CCDirector::pushScene(v9, (_UNKNOWN **)v11);
}
}