//
// LevelInfoLayer::showUpdateAlert from 0x7e5f04 to 0x7e6058 (340 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::levelUpdateFinished @ 0x7e60d8
// > LevelInfoLayer::onUpdate @ 0x7e7858
// > ??> @ 0x4fe58
//
// 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 12:54:28 +0000
//
__int64 __fastcall LevelInfoLayer::showUpdateAlert(__int64 a1, int a2)
{
size_t v3; // x20
const char *v4; // x1
char *v5; // x3
__int64 v6; // x20
const char *v7; // x1
char *v8; // x0
const char *v9; // [xsp+38h] [xbp+38h]
__int64 v10; // [xsp+40h] [xbp+40h] BYREF
__int64 v11; // [xsp+48h] [xbp+48h]
void *v12; // [xsp+50h] [xbp+50h]
if ( a2 == 2 )
{
v7 = "Update your application to update this level.";
goto LABEL_10;
}
if ( a2 == 3 )
{
v7 = "Level has been updated to the latest version.";
LABEL_10:
v9 = v7;
v3 = 45;
v8 = (char *)operator new(0x30u);
v4 = v9;
v5 = v8;
v12 = v8;
v11 = 45;
v10 = 49;
goto LABEL_6;
}
if ( a2 != 1 )
return _stack_chk_guard;
v10 = 40;
v11 = 0;
v3 = 20;
v12 = nullptr;
v4 = "Level is up to date.";
v5 = (char *)&v10 + 1;
LABEL_6:
*((_BYTE *)memcpy(v5, v4, v3) + v3) = 0;
v6 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Update", (char *)&v10, (ButtonSprite *)"OK", nullptr, 300.0);
if ( (v10 & 1) != 0 )
operator delete(v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
return _stack_chk_guard;
}