//
// MessageThreadsPage::onInboxPoll from 0x1400d7fe0 to 0x1400d8166 (390 bytes)
//
// 7 xrefs:
// > MessageThreadsPage::init @ 0x1400d5ca5
// > MessageThreadsPage::init @ 0x1400d5cbe
// > MessageThreadsPage::threadListFinished @ 0x1400d85c5
// > MessageThreadsPage::threadListFinished @ 0x1400d85e0
// > ??> @ 0x14089226c
// > ??> @ 0x14089227c
// > ??> @ 0x140914750
//
// 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
//
void __fastcall MessageThreadsPage::onInboxPoll(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rdi
_QWORD *v4; // r14
__int64 v5; // rbx
unsigned __int64 i; // rbp
__int64 v7; // rbx
int v8; // edi
if ( *(_QWORD *)(a1 + 688) && !*(_QWORD *)(a1 + 824) && (int)MessageThreadsPage::selectedCount(a1) <= 0 )
{
v3 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v2) + 272);
if ( v3 && (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 480LL))(v3) )
{
if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL))(a1) != v3 )
return;
if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 480LL))(v3) )
{
if ( **(_DWORD **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 480LL))(v3) + 56) )
{
v4 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 480LL))(v3) + 56) + 16LL);
v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 480LL))(v3) + 56) + 16LL);
for ( i = v5
+ 8
* (**(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 480LL))(v3) + 56) - 1LL);
(unsigned __int64)v4 <= i;
++v4 )
{
v7 = *v4;
if ( !*v4 )
break;
if ( v7 != a1 )
{
v8 = *(_DWORD *)(a1 + 592);
if ( (*(int (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 96LL))(*v4) > v8
&& !_RTDynamicCast(
v7,
0,
&cocos2d::CCNode `RTTI Type Descriptor',
&TextAlertPopup `RTTI Type Descriptor',
0) )
{
return;
}
}
}
}
}
}
if ( !*(_BYTE *)(a1 + 945) )
MessageThreadsPage::loadPage(a1, *(_DWORD *)(a1 + 840), 1);
}
}