{"type": "func", "start": 7886840, "end": 7887046, "name": "EditorSoundConfigInfoLayer::deleteEditorSoundFinished", "pseudocode": "// \n// EditorSoundConfigInfoLayer::deleteEditorSoundFinished from 0x7857f8 to 0x7858c6 (206 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x7858dc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:32 +0000\n// \n\ncocos2d::CCObject *__fastcall EditorSoundConfigInfoLayer::deleteEditorSoundFinished(cocos2d::CCObject *this, int a2)\n{\n  cocos2d::CCObject *v2; // r7\n  int v4; // r2\n  cocos2d::CCArray **v5; // r0\n  GJEditorSoundConfig *MyConfigForSoundID; // r0\n  GJEditorSoundConfig *v7; // r5\n  GJEditorSoundConfig *v8; // r0\n  unsigned int v9; // r0\n  cocos2d::CCDirector *v10; // r0\n  int v11; // r0\n  cocos2d::CCTouchDispatcher *v12; // r0\n  FLAlertLayer *v13; // r0\n  int *v14; // r0\n  int v15[3]; // [sp+8h] [bp-14h] BYREF\n\n  v2 = this;\n  v4 = *((_DWORD *)this + 187);\n  if ( !v4 || a2 == *(_DWORD *)(v4 + 264) )\n  {\n    v5 = (cocos2d::CCArray **)EditorSFXManager::sharedState(this);\n    MyConfigForSoundID = (GJEditorSoundConfig *)EditorSFXManager::getMyConfigForSoundID(v5, a2);\n    v7 = MyConfigForSoundID;\n    if ( MyConfigForSoundID )\n      GJEditorSoundConfig::clearServerState(MyConfigForSoundID);\n    v8 = *((GJEditorSoundConfig **)v2 + 187);\n    if ( v8 && v8 != v7 && *((_BYTE *)v8 + 272) )\n      v8 = (GJEditorSoundConfig *)GJEditorSoundConfig::clearServerState(v8);\n    v9 = EditorSFXManager::sharedState(v8);\n    v10 = (cocos2d::CCDirector *)EditorSFXManager::removeFavoriteConfig(v9, a2);\n    v11 = cocos2d::CCDirector::sharedDirector(v10);\n    v12 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 80))(v11);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v12, v2);\n    v13 = *((FLAlertLayer **)v2 + 189);\n    if ( v13 )\n      EditorSoundBrowserLayer::onConfigListChanged(v13);\n    memset(v15, 0, sizeof(v15));\n    std::string::__init(v15, \"Sound pack removed from the server.\", 0x23u);\n    v14 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Deleted\", (int)v15, (ButtonSprite *)\"OK\", nullptr);\n    (*(void (__fastcall **)(int *))(*v14 + 656))(v14);\n    std::string::~string((int)v15);\n    return (cocos2d::CCObject *)(*(int (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v2 + 684))(v2, 0);\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::deleteEditorSoundFinished from 0x7857f8 to 0x7858c6 (206 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x7858dc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:32 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x785800)                ; +0x0, 0x7857f8\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x7857fa\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x7857fc\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x7857fe\nSUB             SP, SP, #0x1C                                          ; +0x8, 0x785800\nMOV             R7, R0                                                 ; +0xa, 0x785802\nLDR             R2, [R3]                                               ; +0xc, 0x785804\nMOV             R4, R1                                                 ; +0xe, 0x785806\nMOV             R6, R3                                                 ; +0x10, 0x785808\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x12, 0x78580a\nLDR.W           R2, [R0,#0x2EC]                                        ; +0x14, 0x78580c\nCBZ             R2, loc_78581A                                         ; +0x18, 0x785810\nLDR.W           R3, [R2,#0x108]                                        ; +0x1a, 0x785812\nCMP             R1, R3                                                 ; +0x1e, 0x785816\nBNE             loc_7858B6                                             ; +0x20, 0x785818\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x22, 0x78581a\nMOV             R1, R4; int                                            ; +0x26, 0x78581e\nBL              _ZN16EditorSFXManager21getMyConfigForSoundIDEi; EditorSFXManager::getMyConfigForSoundID(int) ; +0x28, 0x785820\nMOV             R5, R0                                                 ; +0x2c, 0x785824\nCBZ             R0, loc_78582C                                         ; +0x2e, 0x785826\nBL              _ZN19GJEditorSoundConfig16clearServerStateEv; GJEditorSoundConfig::clearServerState(void) ; +0x30, 0x785828\nLDR.W           R0, [R7,#0x2EC]; this                                  ; +0x34, 0x78582c\nCBZ             R0, loc_78583E                                         ; +0x38, 0x785830\nCMP             R0, R5                                                 ; +0x3a, 0x785832\nBEQ             loc_78583E                                             ; +0x3c, 0x785834\nLDRB.W          R3, [R0,#0x110]                                        ; +0x3e, 0x785836\nCMP             R3, #0                                                 ; +0x42, 0x78583a\nBNE             loc_7858B0                                             ; +0x44, 0x78583c\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x46, 0x78583e\nMOV             R1, R4; int                                            ; +0x4a, 0x785842\nBL              _ZN16EditorSFXManager20removeFavoriteConfigEi; EditorSFXManager::removeFavoriteConfig(int) ; +0x4c, 0x785844\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x50, 0x785848\nLDR             R3, [R0]                                               ; +0x54, 0x78584c\nLDR             R3, [R3,#0x50]                                         ; +0x56, 0x78584e\nBLX             R3                                                     ; +0x58, 0x785850\nMOV             R1, R7; cocos2d::CCObject *                            ; +0x5a, 0x785852\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x5c, 0x785854\nLDR.W           R0, [R7,#0x2F4]; this                                  ; +0x60, 0x785858\nCBZ             R0, loc_785862                                         ; +0x64, 0x78585c\nBL              _ZN23EditorSoundBrowserLayer19onConfigListChangedEv; EditorSoundBrowserLayer::onConfigListChanged(void) ; +0x66, 0x78585e\nADD             R5, SP, #0x1C+var_14                                   ; +0x6a, 0x785862\nLDR             R1, =(aSoundPackRemov - 0x785870); \"Sound pack removed from the server.\" ; +0x6c, 0x785864\nMOVS            R2, #0x23 ; '#'                                        ; +0x6e, 0x785866\nMOVS            R4, #0                                                 ; +0x70, 0x785868\nMOV             R0, R5                                                 ; +0x72, 0x78586a\nADD             R1, PC; \"Sound pack removed from the server.\"          ; +0x74, 0x78586c\nSTR             R4, [SP,#0x1C+var_14]                                  ; +0x76, 0x78586e\nSTR             R4, [SP,#0x1C+var_10]                                  ; +0x78, 0x785870\nSTR             R4, [SP,#0x1C+var_C]                                   ; +0x7a, 0x785872\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x7c, 0x785874\nLDR             R1, =(aDeleted_1 - 0x785886); \"Deleted\"                ; +0x80, 0x785878\nMOV             R0, R4                                                 ; +0x82, 0x78587a\nLDR             R3, =(aOk - 0x785888); \"OK\"                            ; +0x84, 0x78587c\nMOV             R2, R5                                                 ; +0x86, 0x78587e\nSTR             R4, [SP,#0x1C+var_1C]                                  ; +0x88, 0x785880\nADD             R1, PC; \"Deleted\"                                      ; +0x8a, 0x785882\nADD             R3, PC; \"OK\"                                           ; +0x8c, 0x785884\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0x8e, 0x785886\nLDR             R3, [R0]                                               ; +0x92, 0x78588a\nLDR.W           R3, [R3,#0x290]                                        ; +0x94, 0x78588c\nBLX             R3                                                     ; +0x98, 0x785890\nMOV             R0, R5                                                 ; +0x9a, 0x785892\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9c, 0x785894\nLDR             R3, [R7]                                               ; +0xa0, 0x785898\nMOV             R0, R7                                                 ; +0xa2, 0x78589a\nMOV             R1, R4                                                 ; +0xa4, 0x78589c\nLDR.W           R3, [R3,#0x2AC]                                        ; +0xa6, 0x78589e\nBLX             R3                                                     ; +0xaa, 0x7858a2\nB               loc_7858B6                                             ; +0xac, 0x7858a4\nMOV             R0, R5                                                 ; +0xae, 0x7858a6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb0, 0x7858a8\nBL              __cxa_end_cleanup                                      ; +0xb4, 0x7858ac\nBL              _ZN19GJEditorSoundConfig16clearServerStateEv; GJEditorSoundConfig::clearServerState(void) ; +0xb8, 0x7858b0\nB               loc_78583E                                             ; +0xbc, 0x7858b4\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xbe, 0x7858b6\nLDR             R3, [R6]                                               ; +0xc0, 0x7858b8\nCMP             R2, R3                                                 ; +0xc2, 0x7858ba\nBEQ             loc_7858C2                                             ; +0xc4, 0x7858bc\nBLX             __stack_chk_fail                                       ; +0xc6, 0x7858be\nADD             SP, SP, #0x1C                                          ; +0xca, 0x7858c2\nPOP             {R4-R7,PC}                                             ; +0xcc, 0x7858c4", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x7858dc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}