//
// sub_1004AA378 from 0x1004aa378 to 0x1004aa46c (244 bytes)
//
// 1 xrefs:
// > ClearPlatformerSavesPopup::init @ 0x1004aa23c
//
// 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:07 +0000
//
void __fastcall sub_1004AA378(__int64 a1)
{
char *v2; // x1
__int64 *v3; // x19
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v5; // [xsp+10h] [xbp-30h]
void *v6[2]; // [xsp+18h] [xbp-28h] BYREF
__int64 v7; // [xsp+28h] [xbp-18h]
if ( *(_BYTE *)(a1 + 672) )
v2 = "This will clear all platformer saves, including favorites.\nContinue?";
else
v2 = "This will clear platformer saves on all non-favorite levels.\nContinue?";
sub_100009900(v6, v2);
if ( SHIBYTE(v7) < 0 )
{
sub_1000097D0(__p, v6[0], (unsigned __int64)v6[1]);
}
else
{
*(_OWORD *)__p = *(_OWORD *)v6;
v5 = v7;
}
v3 = (__int64 *)FLAlertLayer::create_1(
a1 + 664,
(__int64)"Confirm",
(__int64)__p,
(__int64)"Cancel",
(__int64)"Delete",
380.0);
if ( SHIBYTE(v5) < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64 *, __int64))(*v3 + 72))(v3, 1);
ButtonSprite::updateBGImage(v3[77], (__int64)"GJ_button_06.png");
(*(void (__fastcall **)(__int64 *))(*v3 + 1312))(v3);
if ( SHIBYTE(v7) < 0 )
operator delete(v6[0]);
}