//
// GJSongBrowser::onDeleteAll from 0x1403bdf80 to 0x1403be096 (278 bytes)
//
// 2 xrefs:
// > GJSongBrowser::customSetup @ 0x1403bdb04
// > ??> @ 0x140923f3c
//
// This function is hookable on this platform (idp: pc, 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:31:27 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJSongBrowser::onDeleteAll(__int64 a1)
{
int v1; // ebx
__int64 v2; // rax
cocos2d::CCObject *v3; // rbx
_BYTE v5[32]; // [rsp+50h] [rbp-58h] BYREF
__int128 v6; // [rsp+70h] [rbp-38h] BYREF
__int64 v7; // [rsp+80h] [rbp-28h]
__int64 v8; // [rsp+88h] [rbp-20h]
v1 = a1 + 608;
if ( !a1 )
v1 = 0;
v6 = 0;
*(_QWORD *)&v6 = sub_14003D460(0x30u);
v7 = 36;
v8 = 47;
strcpy((char *)v6, "Delete all downloaded custom songs?\n");
v2 = sub_14003F4F0((__int64)v5, (__int64)&v6);
v3 = FLAlertLayer::create(
v1,
(int)"Delete All",
v2,
(__int64)"Cancel",
(__int64)"Delete",
1135869952,
0,
0,
1065353216);
sub_14003D310((__int64)&v6);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 1);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);
}