//
// sub_1004F540C from 0x1004f540c to 0x1004f550c (256 bytes)
//
// 1 xrefs:
// > MessageThreadsPage::init @ 0x1004f4ae8
//
// 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 11:06:47 +0000
//
void __fastcall sub_1004F540C(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
_QWORD *v4; // x0
__int64 v5; // x0
__int64 v6; // x1
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v8; // [xsp+17h] [xbp-29h]
void *v9[2]; // [xsp+18h] [xbp-28h] BYREF
char v10; // [xsp+2Fh] [xbp-11h]
v2 = GameLevelManager::sharedState();
if ( (unsigned int)sub_1000ADD00(v2, "threadInboxUpdate", 5.0) - 1 > 4 )
{
v5 = GameLevelManager::sharedState();
sub_1000AD8CC(v5, "threadInboxUpdate");
if ( (sub_1004F6674(a1) & 1) != 0 )
v6 = 0;
else
v6 = *(unsigned int *)(a1 + 832);
sub_1004F5C34(a1, v6, 0);
}
else
{
v3 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
sub_100009900(v9, "Already up to date");
sub_100009900(__p, "");
v4 = TextAlertPopup::create((__int64)v9, 150, (__int64)__p, 0.5, 0.6);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v4, 1000);
if ( v8 < 0 )
operator delete(__p[0]);
if ( v10 < 0 )
operator delete(v9[0]);
}
}