{"type": "func", "start": 13427816, "end": 13428212, "name": "EditorSoundConfigInfoLayer::onDeleteServer", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onDeleteServer from 0xcce468 to 0xcce5f4 (396 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xb27e0\n// > EditorSoundConfigInfoLayer::init @ 0xcd2034\n// > <???> @ 0x1545180\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::onDeleteServer(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x0\n  char *v4; // x20\n  __int64 v5; // x1\n  __int64 v6; // x0\n  __int64 v8; // x20\n  __int64 v9; // [xsp+40h] [xbp+40h] BYREF\n  __int64 v10; // [xsp+48h] [xbp+48h]\n  void *v11; // [xsp+50h] [xbp+50h]\n\n  if ( EditorSoundConfigInfoLayer::isOwner(this) )\n  {\n    v9 = 0;\n    v10 = 0;\n    v11 = nullptr;\n    std::string::__init(&v9, \"Are you sure you want to <cr>delete</c> this sound pack from the server?\", 0x48u);\n    v8 = FLAlertLayer::create(\n           (__int64)this + 1032,\n           (cocos2d::CCLabelBMFont *)\"Delete Sound Pack\",\n           (char *)&v9,\n           (ButtonSprite *)\"Cancel\",\n           (ButtonSprite *)\"Delete\",\n           380.0);\n    if ( (v9 & 1) != 0 )\n      operator delete(v11);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 72LL))(v8, 7002);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);\n  }\n  else\n  {\n    v3 = *((_QWORD *)this + 136);\n    v9 = 0;\n    v4 = (char *)this + 1040;\n    v10 = 0;\n    v11 = nullptr;\n    if ( (*(_BYTE *)(v3 + 376) & 1) != 0 )\n    {\n      std::string::__init(&v9, *(void **)(v3 + 392), *(_QWORD *)(v3 + 384));\n    }\n    else\n    {\n      v5 = *(_QWORD *)(v3 + 384);\n      v9 = *(_QWORD *)(v3 + 376);\n      v10 = v5;\n      v11 = *(void **)(v3 + 392);\n    }\n    v6 = AdminActionConfirmPopup::createContentDelete((__int64)v4, 7002, \"Delete Sound Pack\", (char *)&v9, 9u);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);\n    if ( (v9 & 1) != 0 )\n      operator delete(v11);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onDeleteServer from 0xcce468 to 0xcce5f4 (396 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xb27e0\n; > EditorSoundConfigInfoLayer::init @ 0xcd2034\n; > <???> @ 0x1545180\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_60]!                                ; +0x0, 0xcce468\nMOV             X29, SP                                                ; +0x4, 0xcce46c\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0xcce470\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xcce474\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x10, 0xcce478\nMOV             X20, X0                                                ; +0x14, 0xcce47c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xcce480\nLDR             X1, [X1]                                               ; +0x1c, 0xcce484\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x20, 0xcce488\nBL              _ZNK26EditorSoundConfigInfoLayer7isOwnerEv; EditorSoundConfigInfoLayer::isOwner(void) ; +0x24, 0xcce48c\nUXTB            W0, W0                                                 ; +0x28, 0xcce490\nCBNZ            W0, loc_CCE528                                         ; +0x2c, 0xcce494\nLDR             X0, [X20,#0x440]                                       ; +0x30, 0xcce498\nADD             X3, X29, #0x60+var_20                                  ; +0x34, 0xcce49c\nSTR             XZR, [X29,#0x60+var_20]                                ; +0x38, 0xcce4a0\nADD             X20, X20, #0x410                                       ; +0x3c, 0xcce4a4\nSTR             XZR, [X29,#0x60+var_18]                                ; +0x40, 0xcce4a8\nADD             X2, X0, #0x178                                         ; +0x44, 0xcce4ac\nSTR             XZR, [X29,#0x60+var_10]                                ; +0x48, 0xcce4b0\nLDRB            W0, [X0,#0x178]                                        ; +0x4c, 0xcce4b4\nTBNZ            W0, #0, loc_CCE5A8                                     ; +0x50, 0xcce4b8\nLDP             X0, X1, [X2]                                           ; +0x54, 0xcce4bc\nSTP             X0, X1, [X29,#0x60+var_20]                             ; +0x58, 0xcce4c0\nLDR             X0, [X2,#0x10]                                         ; +0x5c, 0xcce4c4\nSTR             X0, [X29,#0x60+var_10]                                 ; +0x60, 0xcce4c8\nADRP            X2, #aDeleteSoundPac@PAGE; \"Delete Sound Pack\"         ; +0x64, 0xcce4cc\nMOV             X0, X20                                                ; +0x68, 0xcce4d0\nMOV             W1, #0x1B5A                                            ; +0x6c, 0xcce4d4\nADD             X2, X2, #aDeleteSoundPac@PAGEOFF; \"Delete Sound Pack\"  ; +0x70, 0xcce4d8\nMOV             W4, #9                                                 ; +0x74, 0xcce4dc\nBL              _ZN23AdminActionConfirmPopup19createContentDeleteEP26AdminActionConfirmDelegateiPKcRKNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEi; AdminActionConfirmPopup::createContentDelete(AdminActionConfirmDelegate *,int,char const*,std::string const&,int) ; +0x78, 0xcce4e0\nLDR             X1, [X0]                                               ; +0x7c, 0xcce4e4\nLDR             X1, [X1,#0x520]                                        ; +0x80, 0xcce4e8\nBLR             X1                                                     ; +0x84, 0xcce4ec\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0x88, 0xcce4f0\nTBNZ            W0, #0, loc_CCE51C                                     ; +0x8c, 0xcce4f4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x90, 0xcce4f8\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x94, 0xcce4fc\nLDR             X0, [X19]                                              ; +0x98, 0xcce500\nCMP             X1, X0                                                 ; +0x9c, 0xcce504\nB.NE            loc_CCE5D0                                             ; +0xa0, 0xcce508\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xa4, 0xcce50c\nLDR             X21, [SP,#0x60+var_40]                                 ; +0xa8, 0xcce510\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xac, 0xcce514\nRET                                                                    ; +0xb0, 0xcce518\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0xb4, 0xcce51c\nBL              _ZdlPv; operator delete(void *)                        ; +0xb8, 0xcce520\nB               loc_CCE4F8                                             ; +0xbc, 0xcce524\nADD             X21, X29, #0x60+var_20                                 ; +0xc0, 0xcce528\nADRP            X1, #aAreYouSureYouW_22@PAGE; \"Are you sure you want to <cr>delete</c>\"... ; +0xc4, 0xcce52c\nMOV             X0, X21                                                ; +0xc8, 0xcce530\nADD             X1, X1, #aAreYouSureYouW_22@PAGEOFF; \"Are you sure you want to <cr>delete</c>\"... ; +0xcc, 0xcce534\nMOV             X2, #0x48 ; 'H'                                        ; +0xd0, 0xcce538\nSTR             XZR, [X29,#0x60+var_20]                                ; +0xd4, 0xcce53c\nSTR             XZR, [X29,#0x60+var_18]                                ; +0xd8, 0xcce540\nSTR             XZR, [X29,#0x60+var_10]                                ; +0xdc, 0xcce544\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xe0, 0xcce548\nLDR             S0, =0x43BE0000                                        ; +0xe4, 0xcce54c\nADRP            X1, #aDeleteSoundPac@PAGE; \"Delete Sound Pack\"         ; +0xe8, 0xcce550\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0xec, 0xcce554\nADRP            X4, #aDelete@PAGE; \"Delete\"                            ; +0xf0, 0xcce558\nADD             X0, X20, #0x408                                        ; +0xf4, 0xcce55c\nADD             X1, X1, #aDeleteSoundPac@PAGEOFF; \"Delete Sound Pack\"  ; +0xf8, 0xcce560\nMOV             X2, X21                                                ; +0xfc, 0xcce564\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x100, 0xcce568\nADD             X4, X4, #aDelete@PAGEOFF; \"Delete\"                     ; +0x104, 0xcce56c\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x108, 0xcce570\nMOV             X20, X0                                                ; +0x10c, 0xcce574\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0x110, 0xcce578\nTBNZ            W0, #0, loc_CCE5C4                                     ; +0x114, 0xcce57c\nLDR             X2, [X20]                                              ; +0x118, 0xcce580\nMOV             X0, X20                                                ; +0x11c, 0xcce584\nMOV             W1, #0x1B5A                                            ; +0x120, 0xcce588\nLDR             X2, [X2,#0x48]                                         ; +0x124, 0xcce58c\nBLR             X2                                                     ; +0x128, 0xcce590\nLDR             X1, [X20]                                              ; +0x12c, 0xcce594\nMOV             X0, X20                                                ; +0x130, 0xcce598\nLDR             X1, [X1,#0x520]                                        ; +0x134, 0xcce59c\nBLR             X1                                                     ; +0x138, 0xcce5a0\nB               loc_CCE4F8                                             ; +0x13c, 0xcce5a4\nLDR             X1, [X2,#0x10]                                         ; +0x140, 0xcce5a8\nMOV             X0, X3                                                 ; +0x144, 0xcce5ac\nLDR             X2, [X2,#8]                                            ; +0x148, 0xcce5b0\nSTR             X3, [X29,#0x60+var_28]                                 ; +0x14c, 0xcce5b4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x150, 0xcce5b8\nLDR             X3, [X29,#0x60+var_28]                                 ; +0x154, 0xcce5bc\nB               loc_CCE4CC                                             ; +0x158, 0xcce5c0\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x15c, 0xcce5c4\nBL              _ZdlPv; operator delete(void *)                        ; +0x160, 0xcce5c8\nB               loc_CCE580                                             ; +0x164, 0xcce5cc\nBL              .__stack_chk_fail                                      ; +0x168, 0xcce5d0\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0x16c, 0xcce5d4\nMOV             X19, X0                                                ; +0x170, 0xcce5d8\nTBZ             W1, #0, loc_CCE5E8                                     ; +0x174, 0xcce5dc\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x178, 0xcce5e0\nBL              _ZdlPv; operator delete(void *)                        ; +0x17c, 0xcce5e4\nMOV             X0, X19                                                ; +0x180, 0xcce5e8\nBL              _Unwind_Resume                                         ; +0x184, 0xcce5ec\nB               loc_CCE5D4                                             ; +0x188, 0xcce5f0", "xrefs": ["<???> @ 0xb27e0", "EditorSoundConfigInfoLayer::init @ 0xcd2034", "<???> @ 0x1545180"], "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"}