{"type": "func", "start": 4298052436, "end": 4298052652, "name": "CustomSFXWidget::deleteSFX", "pseudocode": "// \n// CustomSFXWidget::deleteSFX from 0x1002f1354 to 0x1002f142c (216 bytes)\n// \n// 1 xrefs:\n// > CustomSFXWidget::FLAlert_Clicked @ 0x1002f185c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall CustomSFXWidget::deleteSFX(CustomSFXWidget *a1)\n{\n  FMODAudioEngine *v2; // x0\n  MusicDownloadManager *v3; // x0\n  cocos2d::CCLabelBMFont *m_errorLabel; // x0\n  __int16 v5; // [xsp+4h] [xbp-2Ch] BYREF\n  char v6; // [xsp+6h] [xbp-2Ah]\n  std::string __p; // [xsp+8h] [xbp-28h] BYREF\n\n  if ( a1->m_sfxObject )\n  {\n    MusicDownloadManager::sharedState();\n    MusicDownloadManager::pathForSFX((unsigned int)a1->m_sfxObject->m_sfxID, &__p);\n    v2 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::stopAllEffects(v2);\n    v3 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::deleteSFX(v3, a1->m_sfxObject->m_sfxID);\n    CustomSFXWidget::updateSFXInfo(a1);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_errorLabel->setVisible)(a1->m_errorLabel, 1);\n    m_errorLabel = a1->m_errorLabel;\n    v6 = 0;\n    v5 = 25855;\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v5);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)(\n      a1->m_errorLabel,\n      \"SFX Deleted\");\n    cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.4, 0.0);\n    if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(__p.__r_.__value_.__l.__data_);\n  }\n}", "assembly": "; \n; CustomSFXWidget::deleteSFX from 0x1002f1354 to 0x1002f142c (216 bytes)\n; \n; 1 xrefs:\n; > CustomSFXWidget::FLAlert_Clicked @ 0x1002f185c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1002f1354\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1002f1358\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1002f135c\nADD             X29, SP, #0x30                                         ; +0xc, 0x1002f1360\nLDR             X8, [X0,#0x150]                                        ; +0x10, 0x1002f1364\nCBZ             X8, loc_1002F141C                                      ; +0x14, 0x1002f1368\nMOV             X19, X0                                                ; +0x18, 0x1002f136c\nBL              MusicDownloadManager__sharedState                      ; +0x1c, 0x1002f1370\nLDR             X8, [X19,#0x150]                                       ; +0x20, 0x1002f1374\nLDR             W1, [X8,#0x38]                                         ; +0x24, 0x1002f1378\nADD             X8, SP, #0x30+__p                                      ; +0x28, 0x1002f137c\nBL              MusicDownloadManager__pathForSFX                       ; +0x2c, 0x1002f1380\nBL              FMODAudioEngine__sharedEngine                          ; +0x30, 0x1002f1384\nBL              FMODAudioEngine__stopAllEffects                        ; +0x34, 0x1002f1388\nBL              MusicDownloadManager__sharedState                      ; +0x38, 0x1002f138c\nLDR             X8, [X19,#0x150]                                       ; +0x3c, 0x1002f1390\nLDR             W1, [X8,#0x38]                                         ; +0x40, 0x1002f1394\nBL              MusicDownloadManager__deleteSFX                        ; +0x44, 0x1002f1398\nMOV             X0, X19                                                ; +0x48, 0x1002f139c\nBL              CustomSFXWidget__updateSFXInfo                         ; +0x4c, 0x1002f13a0\nLDR             X0, [X19,#0x170]                                       ; +0x50, 0x1002f13a4\nLDR             X8, [X0]                                               ; +0x54, 0x1002f13a8\nLDR             X8, [X8,#0x148]                                        ; +0x58, 0x1002f13ac\nMOV             W1, #1                                                 ; +0x5c, 0x1002f13b0\nBLR             X8                                                     ; +0x60, 0x1002f13b4\nLDR             X0, [X19,#0x170]                                       ; +0x64, 0x1002f13b8\nSTRB            WZR, [SP,#0x30+var_2A]                                 ; +0x68, 0x1002f13bc\nMOV             W8, #0x64FF                                            ; +0x6c, 0x1002f13c0\nSTRH            W8, [SP,#0x30+var_2C]                                  ; +0x70, 0x1002f13c4\nLDR             X8, [X0]                                               ; +0x74, 0x1002f13c8\nLDR             X8, [X8,#0x420]                                        ; +0x78, 0x1002f13cc\nADD             X1, SP, #0x30+var_2C                                   ; +0x7c, 0x1002f13d0\nBLR             X8                                                     ; +0x80, 0x1002f13d4\nLDR             X0, [X19,#0x170]                                       ; +0x84, 0x1002f13d8\nLDR             X8, [X0]                                               ; +0x88, 0x1002f13dc\nLDR             X8, [X8,#0x390]                                        ; +0x8c, 0x1002f13e0\nADRL            X1, aSfxDeleted; \"SFX Deleted\"                         ; +0x90, 0x1002f13e4\nBLR             X8                                                     ; +0x98, 0x1002f13ec\nLDR             X0, [X19,#0x170]                                       ; +0x9c, 0x1002f13f0\nMOV             W8, #0x43660000                                        ; +0xa0, 0x1002f13f4\nFMOV            S0, W8                                                 ; +0xa4, 0x1002f13f8\nADRP            X8, #dword_10063537C@PAGE                              ; +0xa8, 0x1002f13fc\nLDR             S1, [X8,#dword_10063537C@PAGEOFF]                      ; +0xac, 0x1002f1400\nFMOV            S2, WZR                                                ; +0xb0, 0x1002f1404\nBL              cocos2d__CCLabelBMFont__limitLabelWidth                ; +0xb4, 0x1002f1408\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0xb8, 0x1002f140c\nTBZ             W8, #0x1F, loc_1002F141C                               ; +0xbc, 0x1002f1410\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0xc0, 0x1002f1414\nBL              __ZdlPv; operator delete(void *)                       ; +0xc4, 0x1002f1418\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc8, 0x1002f141c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xcc, 0x1002f1420\nADD             SP, SP, #0x40 ; '@'                                    ; +0xd0, 0x1002f1424\nRET                                                                    ; +0xd4, 0x1002f1428", "xrefs": ["CustomSFXWidget::FLAlert_Clicked @ 0x1002f185c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}