//
// LevelInfoLayer::showUpdateAlert from 0x1002c3c90 to 0x1002c3d7d (237 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::onUpdate @ 0x1002c1914
// > LevelInfoLayer::levelUpdateFinished @ 0x1002c3c70
// > sub_1002C3DA0 @ 0x1002c3de7
//
// 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
//
void __fastcall LevelInfoLayer::showUpdateAlert(LevelInfoLayer *a1, UpdateResponse a2)
{
double v2; // xmm0_8
unsigned __int32 v3; // esi
const char *v4; // r14
size_t v5; // rax
size_t v6; // rbx
char *v7; // r15
size_t v8; // r12
__int64 v9; // rbx
_QWORD __dst[2]; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
v3 = a2 - 1;
if ( v3 > 2 )
return;
v4 = off_100906FE8[v3];
v5 = strlen(v4);
if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(v2);
v6 = v5;
if ( v5 >= 0x17 )
{
v8 = 26;
if ( (v5 | 7) != 0x17 )
v8 = (v5 | 7) + 1;
v7 = (char *)operator new(v8);
__p = v7;
__dst[0] = v8 + 1;
__dst[1] = v6;
}
else
{
LOBYTE(__dst[0]) = 2 * v5;
v7 = (char *)__dst + 1;
if ( !v5 )
goto LABEL_10;
}
memcpy(v7, v4, v6);
LABEL_10:
v7[v6] = 0;
v9 = FLAlertLayer::create_1(0, "Update", __dst, "OK", 0, 300.0);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1288LL))(v9);
}