{"type": "func", "start": 5694352, "end": 5694534, "name": "CustomSFXWidget::deleteSFX", "pseudocode": "// \n// CustomSFXWidget::deleteSFX from 0x56e390 to 0x56e446 (182 bytes)\n// \n// 1 xrefs:\n// > CustomSFXWidget::FLAlert_Clicked @ 0x56e496\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 CustomSFXWidget::deleteSFX(CustomSFXWidget *a1)\n{\n  MusicDownloadManager *v2; // r0\n  FMODAudioEngine *v3; // r0\n  MusicDownloadManager *v4; // r0\n  cocos2d::CCLabelBMFont *m_errorLabel; // r0\n  cocos2d::CCLabelBMFont_vtbl *v6; // r3\n  char v7; // [sp+4h] [bp-Ch] BYREF\n  char v8[7]; // [sp+5h] [bp-Bh] BYREF\n\n  if ( a1->m_sfxObject )\n  {\n    v2 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::pathForSFX((MusicDownloadManager *)&v8[3], v2, a1->m_sfxObject->m_sfxID);\n    v3 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::stopAllEffects(v3);\n    v4 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::deleteSFX(v4, a1->m_sfxObject->m_sfxID);\n    CustomSFXWidget::updateSFXInfo(a1);\n    a1->m_errorLabel->setVisible(a1->m_errorLabel, 1);\n    m_errorLabel = a1->m_errorLabel;\n    v6 = m_errorLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v7 = -1;\n    strcpy(v8, \"d\");\n    v6->setColor(m_errorLabel, (const cocos2d::ccColor3B *)&v7);\n    a1->m_errorLabel->setString(a1->m_errorLabel, \"SFX Deleted\");\n    cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.4, 0.0);\n    sub_774008(&v8[3]);\n  }\n}", "assembly": "; \n; CustomSFXWidget::deleteSFX from 0x56e390 to 0x56e446 (182 bytes)\n; \n; 1 xrefs:\n; > CustomSFXWidget::FLAlert_Clicked @ 0x56e496\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\nPUSH            {R0-R6,LR}                                             ; +0x0, 0x56e390\nMOV             R4, R0                                                 ; +0x2, 0x56e392\nLDR             R3, =(__stack_chk_guard_ptr - 0x56E39A)                ; +0x4, 0x56e394\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x56e396\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x56e398\nLDR             R2, [R3]                                               ; +0xa, 0x56e39a\nMOV             R5, R3                                                 ; +0xc, 0x56e39c\nSTR             R2, [SP,#0x10+var_4]                                   ; +0xe, 0x56e39e\nLDR.W           R2, [R0,#0x110]                                        ; +0x10, 0x56e3a0\nCMP             R2, #0                                                 ; +0x14, 0x56e3a4\nBEQ             loc_56E436                                             ; +0x16, 0x56e3a6\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x18, 0x56e3a8\nLDR.W           R3, [R4,#0x110]                                        ; +0x1c, 0x56e3ac\nADD             R6, SP, #0x10+var_B+3                                  ; +0x20, 0x56e3b0\nLDR             R2, [R3,#0x34]                                         ; +0x22, 0x56e3b2\nMOV             R1, R0; int                                            ; +0x24, 0x56e3b4\nMOV             R0, R6; this                                           ; +0x26, 0x56e3b6\nBL              _ZN20MusicDownloadManager10pathForSFXEi; MusicDownloadManager::pathForSFX(int) ; +0x28, 0x56e3b8\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x2c, 0x56e3bc\nBL              _ZN15FMODAudioEngine14stopAllEffectsEv; FMODAudioEngine::stopAllEffects(void) ; +0x30, 0x56e3c0\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x34, 0x56e3c4\nLDR.W           R3, [R4,#0x110]                                        ; +0x38, 0x56e3c8\nLDR             R1, [R3,#0x34]; int                                    ; +0x3c, 0x56e3cc\nBL              _ZN20MusicDownloadManager9deleteSFXEi; MusicDownloadManager::deleteSFX(int) ; +0x3e, 0x56e3ce\nMOV             R0, R4; this                                           ; +0x42, 0x56e3d2\nBL              _ZN15CustomSFXWidget13updateSFXInfoEv; CustomSFXWidget::updateSFXInfo(void) ; +0x44, 0x56e3d4\nLDR.W           R0, [R4,#0x120]                                        ; +0x48, 0x56e3d8\nMOVS            R1, #1                                                 ; +0x4c, 0x56e3dc\nLDR             R3, [R0]                                               ; +0x4e, 0x56e3de\nLDR.W           R3, [R3,#0xA4]                                         ; +0x50, 0x56e3e0\nBLX             R3                                                     ; +0x54, 0x56e3e4\nLDR.W           R0, [R4,#0x120]                                        ; +0x56, 0x56e3e6\nMOVS            R2, #0xFF                                              ; +0x5a, 0x56e3ea\nADD             R1, SP, #0x10+var_C                                    ; +0x5c, 0x56e3ec\nLDR             R3, [R0]                                               ; +0x5e, 0x56e3ee\nSTRB.W          R2, [SP,#0x10+var_C]                                   ; +0x60, 0x56e3f0\nMOVS            R2, #0x64 ; 'd'                                        ; +0x64, 0x56e3f4\nSTRB.W          R2, [SP,#0x10+var_B]                                   ; +0x66, 0x56e3f6\nMOVS            R2, #0                                                 ; +0x6a, 0x56e3fa\nLDR.W           R3, [R3,#0x210]                                        ; +0x6c, 0x56e3fc\nSTRB.W          R2, [SP,#0x10+var_B+1]                                 ; +0x70, 0x56e400\nBLX             R3                                                     ; +0x74, 0x56e404\nLDR.W           R0, [R4,#0x120]                                        ; +0x76, 0x56e406\nLDR             R1, =(aSfxDeleted - 0x56E412); \"SFX Deleted\"           ; +0x7a, 0x56e40a\nLDR             R3, [R0]                                               ; +0x7c, 0x56e40c\nADD             R1, PC; \"SFX Deleted\"                                  ; +0x7e, 0x56e40e\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x80, 0x56e410\nBLX             R3                                                     ; +0x84, 0x56e414\nLDR.W           R0, [R4,#0x120]; this                                  ; +0x86, 0x56e416\nMOVS            R3, #0; float                                          ; +0x8a, 0x56e41a\nLDR             R1, flt_56E448; float                                  ; +0x8c, 0x56e41c\nLDR             R2, flt_56E44C; float                                  ; +0x8e, 0x56e41e\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x90, 0x56e420\nMOV             R0, R6                                                 ; +0x94, 0x56e424\nBL              sub_774008                                             ; +0x96, 0x56e426\nB               loc_56E436                                             ; +0x9a, 0x56e42a\nMOV             R0, R6                                                 ; +0x9c, 0x56e42c\nBL              sub_774008                                             ; +0x9e, 0x56e42e\nBL              __cxa_end_cleanup                                      ; +0xa2, 0x56e432\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xa6, 0x56e436\nLDR             R3, [R5]                                               ; +0xa8, 0x56e438\nCMP             R2, R3                                                 ; +0xaa, 0x56e43a\nBEQ             loc_56E442                                             ; +0xac, 0x56e43c\nBLX             __stack_chk_fail                                       ; +0xae, 0x56e43e\nADD             SP, SP, #0x10                                          ; +0xb2, 0x56e442\nPOP             {R4-R6,PC}                                             ; +0xb4, 0x56e444", "xrefs": ["CustomSFXWidget::FLAlert_Clicked @ 0x56e496"], "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"}