//
// MessageThreadsPage::dMessageThreadsPage from 0x100927d30 to 0x100927ea1 (369 bytes)
//
// 4 xrefs:
// > sub_100927EB0 @ 0x100927eb5
// > sub_100927EC0 @ 0x100927ecc
// > sub_100927EE0 @ 0x100927ee9
// > sub_100927F00 @ 0x100927f13
//
// 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:38:20 +0000
//
__int64 __fastcall MessageThreadsPage::dMessageThreadsPage(__int64 a1)
{
_DWORD *v2; // rax
_DWORD *v3; // rax
__int64 v4; // rax
_DWORD *v5; // rdi
_DWORD *v6; // rdi
*(_QWORD *)a1 = off_100BC1DF0;
*(_QWORD *)(a1 + 320) = off_100BC23A0;
*(_QWORD *)(a1 + 328) = &off_100BC2410;
*(_QWORD *)(a1 + 336) = off_100BC2428;
*(_QWORD *)(a1 + 344) = off_100BC2448;
*(_QWORD *)(a1 + 352) = off_100BC2470;
*(_QWORD *)(a1 + 408) = off_100BC24A0;
*(_QWORD *)(a1 + 432) = off_100BC2520;
*(_QWORD *)(a1 + 544) = off_100BC2540;
*(_QWORD *)(a1 + 664) = off_100BC2588;
*(_QWORD *)(a1 + 672) = &off_100BC2608;
*(_QWORD *)(a1 + 680) = off_100BC2620;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1264) == a1 + 664 )
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = 0;
v2 = cocos2d::CCNotificationCenter::sharedNotificationCenter();
cocos2d::CCNotificationCenter::removeObserver((__int64)v2, (unsigned int *)a1, "ThreadsChangedNotification");
v3 = cocos2d::CCNotificationCenter::sharedNotificationCenter();
cocos2d::CCNotificationCenter::removeObserver((__int64)v3, (unsigned int *)a1, "ThreadSelectionChangedNotification");
v4 = *(_QWORD *)(a1 + 784);
if ( v4 )
*(_QWORD *)(v4 + 584) = 0;
v5 = *(_DWORD **)(a1 + 800);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *(_DWORD **)(a1 + 880);
if ( v6 )
cocos2d::CCObject::release(v6);
if ( (*(_BYTE *)(a1 + 888) & 1) != 0 )
operator delete(*(void **)(a1 + 904));
if ( (*(_BYTE *)(a1 + 808) & 1) != 0 )
operator delete(*(void **)(a1 + 824));
return sub_1004936F0(a1);
}