//
// LevelInfoLayer::showUpdateAlert from 0x1402fbf70 to 0x1402fc05c (236 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::levelUpdateFinished @ 0x1402fbf44
// > LevelInfoLayer::onUpdate @ 0x1402feda1
// > ??> @ 0x1406d41a8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void LevelInfoLayer::showUpdateAlert(LevelInfoLayer *a1, UpdateResponse a2)
{
__int32 v2; // edx
__int32 v3; // edx
const char *v4; // rdx
size_t v5; // r8
__int64 v6; // rax
FLAlertLayer *v7; // rbx
__int128 v8; // [rsp+50h] [rbp-48h] BYREF
__int64 v9; // [rsp+60h] [rbp-38h]
__int64 v10; // [rsp+68h] [rbp-30h]
_BYTE v11[40]; // [rsp+70h] [rbp-28h] BYREF
v2 = a2 - 1;
if ( v2 )
{
v3 = v2 - 1;
if ( v3 )
{
if ( v3 != 1 )
return;
v4 = "Level has been updated to the latest version.";
}
else
{
v4 = "Update your application to update this level.";
}
}
else
{
v4 = "Level is up to date.";
}
v8 = 0;
v9 = 0;
v10 = 0;
v5 = -1;
do
++v5;
while ( v4[v5] );
sub_14003A930(&v8, v4, v5);
v6 = sub_14003BDB0((__int64)v11, (__int64)&v8);
v7 = FLAlertLayer::create(0, (int)"Update", v6, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216);
sub_14003A830((__int64)&v8);
v7->show(v7);
}