//
// MessageThreadsPage::onInboxPoll from 0xc767a8 to 0xc76820 (120 bytes)
//
// 4 xrefs:
// > ??> @ 0x1054a8
// > MessageThreadsPage::setInboxPoll @ 0xc65334
// > MessageThreadsPage::setInboxPoll @ 0xc65348
// > ??> @ 0x1547fc0
//
// This function is hookable on this platform (idp: arm, 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 13:05:33 +0000
//
__int64 __fastcall MessageThreadsPage::onInboxPoll(__int64 this, float a2)
{
__int64 v2; // x19
if ( *(_QWORD *)(this + 688) )
{
if ( (*(_BYTE *)(this + 808) & 1) != 0 )
{
if ( *(_QWORD *)(this + 816) )
return this;
}
else if ( *(_BYTE *)(this + 808) >> 1 )
{
return this;
}
v2 = this;
this = MessageThreadsPage::selectedCount((MessageThreadsPage *)this);
if ( (int)this <= 0 )
{
this = (unsigned __int8)MessageThreadsPage::isCovered((MessageThreadsPage *)v2);
if ( !(_BYTE)this )
{
this = *(unsigned __int8 *)(v2 + 929);
if ( !*(_BYTE *)(v2 + 929) )
return MessageThreadsPage::loadPage((MessageThreadsPage *)v2, *(_DWORD *)(v2 + 832), 1u);
}
}
}
return this;
}