{"type": "func", "start": 13427052, "end": 13427408, "name": "EditorSoundConfigInfoLayer::deleteEditorSoundFinished", "pseudocode": "// \n// EditorSoundConfigInfoLayer::deleteEditorSoundFinished from 0xcce16c to 0xcce2d0 (356 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0xcce2d4\n// > <???> @ 0xe97b8\n// > <???> @ 0x14fee68\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:06:25 +0000\n// \n\n__int64 __fastcall EditorSoundConfigInfoLayer::deleteEditorSoundFinished(EditorSoundConfigInfoLayer *this, int a2)\n{\n  EditorSFXManager *v4; // x0\n  EditorSFXManager *v6; // x0\n  GJEditorSoundConfig *MyConfigForSoundID; // x0\n  GJEditorSoundConfig *v8; // x22\n  GJEditorSoundConfig *v9; // x0\n  EditorSFXManager *v10; // x0\n  cocos2d::CCArray *v11; // x0\n  __int64 v12; // x0\n  cocos2d::CCTouchDispatcher *v13; // x0\n  EditorSoundBrowserLayer *v14; // x0\n  __int64 v15; // x0\n  __int64 v16[2]; // [xsp+30h] [xbp+30h] BYREF\n  void *v17; // [xsp+40h] [xbp+40h]\n\n  v4 = *((EditorSFXManager **)this + 136);\n  if ( !v4 || (v4 = (EditorSFXManager *)*((unsigned int *)v4 + 79), (_DWORD)v4 == a2) )\n  {\n    v6 = (EditorSFXManager *)EditorSFXManager::sharedState(v4);\n    MyConfigForSoundID = (GJEditorSoundConfig *)EditorSFXManager::getMyConfigForSoundID(v6, a2);\n    v8 = MyConfigForSoundID;\n    if ( MyConfigForSoundID )\n      GJEditorSoundConfig::clearServerState(MyConfigForSoundID);\n    v9 = *((GJEditorSoundConfig **)this + 136);\n    if ( v8 != v9 && v9 && *((_BYTE *)v9 + 324) )\n      v9 = (GJEditorSoundConfig *)GJEditorSoundConfig::clearServerState(v9);\n    v10 = (EditorSFXManager *)EditorSFXManager::sharedState(v9);\n    v11 = EditorSFXManager::removeFavoriteConfig(v10, a2);\n    v12 = cocos2d::CCDirector::sharedDirector(v11);\n    v13 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 160LL))(v12);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v13, this);\n    v14 = *((EditorSoundBrowserLayer **)this + 138);\n    if ( v14 )\n      EditorSoundBrowserLayer::onConfigListChanged(v14);\n    v16[0] = 0;\n    v16[1] = 0;\n    v17 = nullptr;\n    std::string::__init(v16, \"Sound pack removed from the server.\", 0x23u);\n    v15 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Deleted\", (char *)v16, (ButtonSprite *)\"OK\", nullptr);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 1312LL))(v15);\n    if ( (v16[0] & 1) != 0 )\n      operator delete(v17);\n    (*(void (__fastcall **)(EditorSoundConfigInfoLayer *, _QWORD))(*(_QWORD *)this + 1368LL))(this, 0);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::deleteEditorSoundFinished from 0xcce16c to 0xcce2d0 (356 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0xcce2d4\n; > <???> @ 0xe97b8\n; > <???> @ 0x14fee68\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:06:25 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xcce16c\nMOV             X29, SP                                                ; +0x4, 0xcce170\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xcce174\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xcce178\nMOV             X20, X0                                                ; +0x10, 0xcce17c\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0xcce180\nMOV             W21, W1                                                ; +0x18, 0xcce184\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xcce188\nLDR             X0, [X0,#0x440]; this                                  ; +0x20, 0xcce18c\nLDR             X1, [X1]                                               ; +0x24, 0xcce190\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x28, 0xcce194\nCBZ             X0, loc_CCE1CC                                         ; +0x2c, 0xcce198\nLDR             W0, [X0,#0x13C]                                        ; +0x30, 0xcce19c\nCMP             W0, W21                                                ; +0x34, 0xcce1a0\nB.EQ            loc_CCE1CC                                             ; +0x38, 0xcce1a4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0xcce1a8\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x40, 0xcce1ac\nLDR             X0, [X19]                                              ; +0x44, 0xcce1b0\nCMP             X1, X0                                                 ; +0x48, 0xcce1b4\nB.NE            loc_CCE2B0                                             ; +0x4c, 0xcce1b8\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x50, 0xcce1bc\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x54, 0xcce1c0\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x58, 0xcce1c4\nRET                                                                    ; +0x5c, 0xcce1c8\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x60, 0xcce1cc\nMOV             W1, W21; int                                           ; +0x64, 0xcce1d0\nBL              _ZN16EditorSFXManager21getMyConfigForSoundIDEi; EditorSFXManager::getMyConfigForSoundID(int) ; +0x68, 0xcce1d4\nMOV             X22, X0                                                ; +0x6c, 0xcce1d8\nCBZ             X0, loc_CCE1E4                                         ; +0x70, 0xcce1dc\nBL              _ZN19GJEditorSoundConfig16clearServerStateEv; GJEditorSoundConfig::clearServerState(void) ; +0x74, 0xcce1e0\nLDR             X0, [X20,#0x440]; this                                 ; +0x78, 0xcce1e4\nCMP             X22, X0                                                ; +0x7c, 0xcce1e8\nB.EQ            loc_CCE1FC                                             ; +0x80, 0xcce1ec\nCBZ             X0, loc_CCE1FC                                         ; +0x84, 0xcce1f0\nLDRB            W1, [X0,#0x144]                                        ; +0x88, 0xcce1f4\nCBNZ            W1, loc_CCE29C                                         ; +0x8c, 0xcce1f8\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x90, 0xcce1fc\nMOV             W1, W21; int                                           ; +0x94, 0xcce200\nBL              _ZN16EditorSFXManager20removeFavoriteConfigEi; EditorSFXManager::removeFavoriteConfig(int) ; +0x98, 0xcce204\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x9c, 0xcce208\nLDR             X1, [X0]                                               ; +0xa0, 0xcce20c\nLDR             X1, [X1,#0xA0]                                         ; +0xa4, 0xcce210\nBLR             X1                                                     ; +0xa8, 0xcce214\nMOV             X1, X20; cocos2d::CCObject *                           ; +0xac, 0xcce218\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0xb0, 0xcce21c\nLDR             X0, [X20,#0x450]; this                                 ; +0xb4, 0xcce220\nCBZ             X0, loc_CCE22C                                         ; +0xb8, 0xcce224\nBL              _ZN23EditorSoundBrowserLayer19onConfigListChangedEv; EditorSoundBrowserLayer::onConfigListChanged(void) ; +0xbc, 0xcce228\nADD             X21, X29, #0x50+var_20                                 ; +0xc0, 0xcce22c\nADRP            X1, #aSoundPackRemov@PAGE; \"Sound pack removed from the server.\" ; +0xc4, 0xcce230\nMOV             X0, X21                                                ; +0xc8, 0xcce234\nADD             X1, X1, #aSoundPackRemov@PAGEOFF; \"Sound pack removed from the server.\" ; +0xcc, 0xcce238\nMOV             X2, #0x23 ; '#'                                        ; +0xd0, 0xcce23c\nSTR             XZR, [X29,#0x50+var_20]                                ; +0xd4, 0xcce240\nSTR             XZR, [X29,#0x50+var_18]                                ; +0xd8, 0xcce244\nSTR             XZR, [X29,#0x50+var_10]                                ; +0xdc, 0xcce248\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xe0, 0xcce24c\nADRP            X1, #aDeleted_0@PAGE; \"Deleted\"                        ; +0xe4, 0xcce250\nADRP            X3, #aOk@PAGE; \"OK\"                                    ; +0xe8, 0xcce254\nMOV             X0, #0                                                 ; +0xec, 0xcce258\nADD             X1, X1, #aDeleted_0@PAGEOFF; \"Deleted\"                 ; +0xf0, 0xcce25c\nMOV             X2, X21                                                ; +0xf4, 0xcce260\nADD             X3, X3, #aOk@PAGEOFF; \"OK\"                             ; +0xf8, 0xcce264\nMOV             X4, #0                                                 ; +0xfc, 0xcce268\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0x100, 0xcce26c\nLDR             X1, [X0]                                               ; +0x104, 0xcce270\nLDR             X1, [X1,#0x520]                                        ; +0x108, 0xcce274\nBLR             X1                                                     ; +0x10c, 0xcce278\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0x110, 0xcce27c\nTBNZ            W0, #0, loc_CCE2A4                                     ; +0x114, 0xcce280\nLDR             X2, [X20]                                              ; +0x118, 0xcce284\nMOV             X0, X20                                                ; +0x11c, 0xcce288\nMOV             X1, #0                                                 ; +0x120, 0xcce28c\nLDR             X2, [X2,#0x558]                                        ; +0x124, 0xcce290\nBLR             X2                                                     ; +0x128, 0xcce294\nB               loc_CCE1A8                                             ; +0x12c, 0xcce298\nBL              _ZN19GJEditorSoundConfig16clearServerStateEv; GJEditorSoundConfig::clearServerState(void) ; +0x130, 0xcce29c\nB               loc_CCE1FC                                             ; +0x134, 0xcce2a0\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x138, 0xcce2a4\nBL              _ZdlPv; operator delete(void *)                        ; +0x13c, 0xcce2a8\nB               loc_CCE284                                             ; +0x140, 0xcce2ac\nBL              .__stack_chk_fail                                      ; +0x144, 0xcce2b0\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0x148, 0xcce2b4\nMOV             X19, X0                                                ; +0x14c, 0xcce2b8\nTBZ             W1, #0, loc_CCE2C8                                     ; +0x150, 0xcce2bc\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x154, 0xcce2c0\nBL              _ZdlPv; operator delete(void *)                        ; +0x158, 0xcce2c4\nMOV             X0, X19                                                ; +0x15c, 0xcce2c8\nBL              _Unwind_Resume                                         ; +0x160, 0xcce2cc", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0xcce2d4", "<???> @ 0xe97b8", "<???> @ 0x14fee68"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}