//
// GameLevelManager::getPageInfo from 0x6f2370 to 0x6f247c (268 bytes)
//
// 8 xrefs:
// > LevelBrowserLayer::loadPage @ 0x6e9c1c
// > InfoLayer::loadPage @ 0x7e343c
// > MessagesProfilePage::loadPage @ 0x8f2fcc
// > FRequestProfilePage::loadPage @ 0x8f53fc
// > ProfilePage::loadPage @ 0x8fed00
// > TopArtistsLayer::init @ 0x96629c
// > TopArtistsLayer::loadPage @ 0x966b20
// > ??> @ 0x6df08
//
// 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
//
const char *GameLevelManager::getPageInfo(GameLevelManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_pageInfo; // x21
cocos2d::CCString *v3; // x20
char *v4; // x0
unsigned int *v6; // x2
int v7; // w1
std::string v8; // [xsp+40h] [xbp+40h] BYREF
m_pageInfo = a1->m_pageInfo;
sub_D153B8((int)&v8, (char *)a2);
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(m_pageInfo, &v8);
v4 = (char *)v8.m_data.m_data - 24;
if ( (__int64 *)v8.m_data.m_data - 3 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v6 = (unsigned int *)((char *)v8.m_data.m_data - 8);
do
v7 = __ldaxr(v6);
while ( __stlxr(v7 - 1, v6) );
}
else
{
v7 = *((_DWORD *)v8.m_data.m_data - 2);
*((_DWORD *)v8.m_data.m_data - 2) = v7 - 1;
}
if ( v7 <= 0 )
operator delete(v4);
}
if ( v3 )
return cocos2d::CCString::getCString(v3);
else
return &byte_F288A0;
}