//
// MessageThreadsPage::show from 0x1400d9130 to 0x1400d91bd (141 bytes)
//
// 2 xrefs:
// > ??> @ 0x14072d320
// > ??> @ 0x14091481c
//
// 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:26:27 +0000
//
__int64 __fastcall MessageThreadsPage::show(__int64 a1)
{
cocos2d::CCScene *v2; // rbx
int v3; // eax
v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 272);
if ( *(_QWORD *)(a1 + 568) )
{
v2 = *(cocos2d::CCScene **)(a1 + 568);
}
else
{
if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 105 )
v3 = cocos2d::CCScene::getHighestChildZ(v2) + 1;
else
v3 = 105;
*(_DWORD *)(a1 + 592) = v3;
}
if ( !*(_DWORD *)(a1 + 592) )
*(_DWORD *)(a1 + 592) = 105;
(*(void (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v2 + 456LL))(v2, a1);
return ThreadOpenHelper::showRulesOnce();
}