//
// GJSongBrowser::onDeleteAll from 0x3f7488 to 0x3f752a (162 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:18 +0000
//
int __fastcall GJSongBrowser::onDeleteAll(GJSongBrowser *this, cocos2d::CCObject *a2)
{
const char *v3; // r4
_BYTE *v4; // r0
_DWORD *v5; // r3
int v6; // t1
int v7; // r6
int *v8; // r0
int v9; // r2
int *v10; // r4
_DWORD v12[2]; // [sp+8h] [bp-14h] BYREF
void *v13; // [sp+10h] [bp-Ch]
v3 = "Delete all downloaded custom songs?\n";
v4 = (_BYTE *)operator new(0x30u);
v12[0] = 49;
v12[1] = 36;
v5 = v4;
v13 = v4;
do
{
v6 = *(_DWORD *)v3;
v3 += 4;
*v5++ = v6;
}
while ( v3 != "" );
v4[36] = 0;
v7 = LOBYTE(v12[0]);
v8 = FLAlertLayer::create(
(int)this + 480,
(cocos2d::CCLabelBMFont *)"Delete All",
(int)v12,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Delete",
360.0);
v9 = v7 << 31;
v10 = v8;
if ( (v7 & 1) != 0 )
operator delete(v13);
(*(void (__fastcall **)(int *, int, int))(*v10 + 36))(v10, 1, v9);
return (*(int (__fastcall **)(int *))(*v10 + 656))(v10);
}