{"type": "func", "start": 7887484, "end": 7887668, "name": "EditorSoundConfigInfoLayer::onDeleteServer", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onDeleteServer from 0x785a7c to 0x785b34 (184 bytes)\n// \n// 0 xrefs:\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\nint __fastcall EditorSoundConfigInfoLayer::onDeleteServer(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int *v5; // r5\n  int v6[3]; // [sp+8h] [bp-10h] BYREF\n\n  if ( EditorSoundConfigInfoLayer::isOwner(this) )\n  {\n    memset(v6, 0, sizeof(v6));\n    std::string::__init(v6, \"Are you sure you want to <cr>delete</c> this sound pack from the server?\", 0x48u);\n    v5 = FLAlertLayer::create(\n           (int)this + 720,\n           (cocos2d::CCLabelBMFont *)\"Delete Sound Pack\",\n           (int)v6,\n           (ButtonSprite *)\"Cancel\",\n           (ButtonSprite *)\"Delete\",\n           380.0);\n    std::string::~string((int)v6);\n    (*(void (__fastcall **)(int *, int))(*v5 + 36))(v5, 7002);\n    return (*(int (__fastcall **)(int *))(*v5 + 656))(v5);\n  }\n  else\n  {\n    std::string::basic_string(v6, *((_DWORD *)this + 187) + 324);\n    v3 = AdminActionConfirmPopup::createContentDelete(\n           (int)this + 724,\n           7002,\n           \"Delete Sound Pack\",\n           (unsigned __int8 *)v6,\n           9);\n    (*(void (__fastcall **)(int))(*(_DWORD *)v3 + 656))(v3);\n    return std::string::~string((int)v6);\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onDeleteServer from 0x785a7c to 0x785b34 (184 bytes)\n; \n; 0 xrefs:\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; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x785a7c\nSUB             SP, SP, #0x18                                          ; +0x2, 0x785a7e\nLDR             R6, =(__stack_chk_guard_ptr - 0x785A8A)                ; +0x4, 0x785a80\nMOV             R5, R0                                                 ; +0x6, 0x785a82\nADD             R4, SP, #0x18+var_10                                   ; +0x8, 0x785a84\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xa, 0x785a86\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xc, 0x785a88\nLDR             R3, [R6]                                               ; +0xe, 0x785a8a\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x10, 0x785a8c\nBL              _ZNK26EditorSoundConfigInfoLayer7isOwnerEv; EditorSoundConfigInfoLayer::isOwner(void) ; +0x12, 0x785a8e\nCBNZ            R0, loc_785AC8                                         ; +0x16, 0x785a92\nLDR.W           R1, [R5,#0x2EC]                                        ; +0x18, 0x785a94\nMOV             R0, R4                                                 ; +0x1c, 0x785a98\nADD.W           R1, R1, #0x144                                         ; +0x1e, 0x785a9a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x22, 0x785a9e\nLDR             R2, =(aDeleteSoundPac - 0x785AB4); \"Delete Sound Pack\" ; +0x26, 0x785aa2\nMOVS            R3, #9                                                 ; +0x28, 0x785aa4\nADD.W           R0, R5, #0x2D4                                         ; +0x2a, 0x785aa6\nSTR             R3, [SP,#0x18+var_18]                                  ; +0x2e, 0x785aaa\nMOVW            R1, #0x1B5A                                            ; +0x30, 0x785aac\nADD             R2, PC; \"Delete Sound Pack\"                            ; +0x34, 0x785ab0\nMOV             R3, R4                                                 ; +0x36, 0x785ab2\nBL              _ZN23AdminActionConfirmPopup19createContentDeleteEP26AdminActionConfirmDelegateiPKcRKNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEi; AdminActionConfirmPopup::createContentDelete(AdminActionConfirmDelegate *,int,char const*,std::string const&,int) ; +0x38, 0x785ab4\nLDR             R3, [R0]                                               ; +0x3c, 0x785ab8\nLDR.W           R3, [R3,#0x290]                                        ; +0x3e, 0x785aba\nBLX             R3                                                     ; +0x42, 0x785abe\nMOV             R0, R4                                                 ; +0x44, 0x785ac0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x46, 0x785ac2\nB               loc_785B24                                             ; +0x4a, 0x785ac6\nLDR             R1, =(aAreYouSureYouW_22 - 0x785AD4); \"Are you sure you want to <cr>delete</c>\"... ; +0x4c, 0x785ac8\nMOV             R0, R4                                                 ; +0x4e, 0x785aca\nMOVS            R2, #0x48 ; 'H'                                        ; +0x50, 0x785acc\nMOVS            R3, #0                                                 ; +0x52, 0x785ace\nADD             R1, PC; \"Are you sure you want to <cr>delete</c>\"...   ; +0x54, 0x785ad0\nSTR             R3, [SP,#0x18+var_10]                                  ; +0x56, 0x785ad2\nSTR             R3, [SP,#0x18+var_C]                                   ; +0x58, 0x785ad4\nSTR             R3, [SP,#0x18+var_8]                                   ; +0x5a, 0x785ad6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x5c, 0x785ad8\nLDR             R3, =(aDelete - 0x785AEA); \"Delete\"                    ; +0x60, 0x785adc\nADD.W           R0, R5, #0x2D0; int                                    ; +0x62, 0x785ade\nLDR             R1, =(aDeleteSoundPac - 0x785AF0); \"Delete Sound Pack\" ; +0x66, 0x785ae2\nMOV             R2, R4; int                                            ; +0x68, 0x785ae4\nADD             R3, PC; \"Delete\"                                       ; +0x6a, 0x785ae6\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x6c, 0x785ae8\nLDR             R3, flt_785B34                                         ; +0x6e, 0x785aea\nADD             R1, PC; \"Delete Sound Pack\"                            ; +0x70, 0x785aec\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x72, 0x785aee\nLDR             R3, =(aCancel - 0x785AF6); \"Cancel\"                    ; +0x74, 0x785af0\nADD             R3, PC; \"Cancel\"                                       ; +0x76, 0x785af2\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x78, 0x785af4\nMOV             R5, R0                                                 ; +0x7c, 0x785af8\nMOV             R0, R4                                                 ; +0x7e, 0x785afa\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x80, 0x785afc\nLDR             R3, [R5]                                               ; +0x84, 0x785b00\nMOV             R0, R5                                                 ; +0x86, 0x785b02\nMOVW            R1, #0x1B5A                                            ; +0x88, 0x785b04\nLDR             R3, [R3,#0x24]                                         ; +0x8c, 0x785b08\nBLX             R3                                                     ; +0x8e, 0x785b0a\nLDR             R3, [R5]                                               ; +0x90, 0x785b0c\nMOV             R0, R5                                                 ; +0x92, 0x785b0e\nLDR.W           R3, [R3,#0x290]                                        ; +0x94, 0x785b10\nBLX             R3                                                     ; +0x98, 0x785b14\nB               loc_785B24                                             ; +0x9a, 0x785b16\nB               loc_785B1A                                             ; +0x9c, 0x785b18\nMOV             R0, R4                                                 ; +0x9e, 0x785b1a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa0, 0x785b1c\nBL              __cxa_end_cleanup                                      ; +0xa4, 0x785b20\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xa8, 0x785b24\nLDR             R3, [R6]                                               ; +0xaa, 0x785b26\nCMP             R2, R3                                                 ; +0xac, 0x785b28\nBEQ             loc_785B30                                             ; +0xae, 0x785b2a\nBLX             __stack_chk_fail                                       ; +0xb0, 0x785b2c\nADD             SP, SP, #0x18                                          ; +0xb4, 0x785b30\nPOP             {R4-R6,PC}                                             ; +0xb6, 0x785b32", "xrefs": [], "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"}