//
// sub_1004F95D0 from 0x1004f95d0 to 0x1004f96e8 (280 bytes)
//
// 1 xrefs:
// > ThreadViewPopup::init @ 0x1004f8518
//
// 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:49 +0000
//
void __fastcall sub_1004F95D0(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
_QWORD *v4; // x0
__int64 v5; // x0
__int64 v6; // x2
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]
if ( (*(_BYTE *)(a1 + 1104) & 1) == 0 )
{
v2 = GameLevelManager::sharedState();
if ( (unsigned int)sub_1000ADD00(v2, "threadViewUpdate", 5.0) - 1 > 4 )
{
v5 = GameLevelManager::sharedState();
sub_1000AD8CC(v5, "threadViewUpdate");
if ( *(_BYTE *)(a1 + 789) == 1 )
v6 = *(_QWORD *)(a1 + 776);
else
v6 = 0;
if ( (unsigned int)sub_1004FAA54(a1, 0, v6) )
sub_1004FA9F4(a1);
}
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]);
}
}
}