//
// MessageThreadsPage::isCovered from 0xc65364 to 0xc654cc (360 bytes)
//
// 2 xrefs:
// > MessageThreadsPage::onInboxPoll @ 0xc767f4
// > ??> @ 0x5a8f8
//
// 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:24 +0000
//
__int64 __fastcall MessageThreadsPage::isCovered(MessageThreadsPage *this)
{
__int64 v2; // x0
__int64 v3; // x19
MessageThreadsPage **v5; // x21
__int64 v6; // x22
unsigned __int64 v7; // x22
MessageThreadsPage *v8; // x19
v2 = cocos2d::CCDirector::sharedDirector(this);
v3 = *(_QWORD *)(v2 + 272);
if ( v3 && (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v3 + 488LL))(*(_QWORD *)(v2 + 272)) )
{
if ( v3 != (*(__int64 (__fastcall **)(MessageThreadsPage *))(*(_QWORD *)this + 512LL))(this) )
return 1;
if ( (*(__int64 (**)(void))(*(_QWORD *)v3 + 488LL))() )
{
if ( **(_DWORD **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3) + 56) )
{
v5 = *(MessageThreadsPage ***)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3) + 56)
+ 16LL);
v6 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3) + 56) + 16LL);
v7 = v6 + 8LL * **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3) + 56) - 8;
if ( (unsigned __int64)v5 <= v7 )
{
v8 = *v5;
if ( *v5 )
{
while ( v8 == this
|| (*(int (__fastcall **)(MessageThreadsPage *))(*(_QWORD *)v8 + 104LL))(v8) <= *((_DWORD *)this + 148)
|| _dynamic_cast(
v8,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'TextAlertPopup,
0) )
{
if ( v7 >= (unsigned __int64)++v5 )
{
v8 = *v5;
if ( *v5 )
continue;
}
return 0;
}
return 1;
}
}
}
}
}
return 0;
}