//
// CustomSongWidget::onDelete from 0x4e2a50 to 0x4e2ad2 (130 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:51:02 +0000
//
int __fastcall CustomSongWidget::onDelete(int this, cocos2d::CCObject *a2)
{
int v2; // r5
int *v3; // r5
int v4[3]; // [sp+8h] [bp-10h] BYREF
v2 = this;
if ( *(_DWORD *)(this + 272) )
{
memset(v4, 0, sizeof(v4));
std::string::__init(v4, "Do you want to delete this song?", 0x28u);
v3 = FLAlertLayer::create(
v2 + 268,
(cocos2d::CCLabelBMFont *)"Delete Song",
(int)v4,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Delete",
300.0);
std::string::~string((int)v4);
(*(void (__fastcall **)(int *, int))(*v3 + 36))(v3, 2);
return (*(int (__fastcall **)(int *))(*v3 + 656))(v3);
}
return this;
}