{"type": "func", "start": 7887072, "end": 7887216, "name": "EditorSoundConfigInfoLayer::deleteEditorSoundFailed", "pseudocode": "// \n// EditorSoundConfigInfoLayer::deleteEditorSoundFailed from 0x7858e0 to 0x785970 (144 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFailed @ 0x78598c\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::deleteEditorSoundFailed(EditorSoundConfigInfoLayer *this, int a2, int a3)\n{\n  int result; // r0\n  const char *v4; // r7\n  char *v5; // r8\n  size_t v6; // r0\n  int *v7; // r0\n  int v8[3]; // [sp+8h] [bp-10h] BYREF\n\n  result = *((_DWORD *)this + 187);\n  if ( !result || a2 == *(_DWORD *)(result + 264) )\n  {\n    if ( a3 == -21 )\n    {\n      v4 = \"Featured or popular sound packs cannot be deleted.\";\n      v5 = \"Cannot Delete\";\n    }\n    else\n    {\n      v4 = \"Could not delete this sound pack from the server.\";\n      v5 = \"Delete Failed\";\n    }\n    memset(v8, 0, sizeof(v8));\n    v6 = strlen(v4);\n    std::string::__init(v8, v4, v6);\n    v7 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)v5, (int)v8, (ButtonSprite *)\"OK\", nullptr);\n    (*(void (__fastcall **)(int *))(*v7 + 656))(v7);\n    return std::string::~string((int)v8);\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::deleteEditorSoundFailed from 0x7858e0 to 0x785970 (144 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFailed @ 0x78598c\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 - 0x7858EA)                ; +0x0, 0x7858e0\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x7858e2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x7858e6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x7858e8\nLDR.W           R0, [R0,#0x2EC]                                        ; +0xa, 0x7858ea\nSUB             SP, SP, #0x18                                          ; +0xe, 0x7858ee\nLDR             R4, [R3]                                               ; +0x10, 0x7858f0\nMOV             R6, R3                                                 ; +0x12, 0x7858f2\nSTR             R4, [SP,#0x18+var_4]                                   ; +0x14, 0x7858f4\nCBZ             R0, loc_785900                                         ; +0x16, 0x7858f6\nLDR.W           R3, [R0,#0x108]                                        ; +0x18, 0x7858f8\nCMP             R1, R3                                                 ; +0x1c, 0x7858fc\nBNE             loc_78595E                                             ; +0x1e, 0x7858fe\nADDS            R2, #0x15                                              ; +0x20, 0x785900\nBNE             loc_785952                                             ; +0x22, 0x785902\nLDR             R7, =(aFeaturedOrPopu - 0x78590E); \"Featured or popular sound packs cannot \"... ; +0x24, 0x785904\nLDR.W           R8, =(aCannotDelete - 0x785910); \"Cannot Delete\"       ; +0x26, 0x785906\nADD             R7, PC; \"Featured or popular sound packs cannot \"...   ; +0x2a, 0x78590a\nADD             R8, PC; \"Cannot Delete\"                                ; +0x2c, 0x78590c\nMOV             R0, R7; char *                                         ; +0x2e, 0x78590e\nMOVS            R4, #0                                                 ; +0x30, 0x785910\nSTR             R4, [SP,#0x18+var_10]                                  ; +0x32, 0x785912\nADD             R5, SP, #0x18+var_10                                   ; +0x34, 0x785914\nSTR             R4, [SP,#0x18+var_C]                                   ; +0x36, 0x785916\nSTR             R4, [SP,#0x18+var_8]                                   ; +0x38, 0x785918\nBLX             strlen                                                 ; +0x3a, 0x78591a\nMOV             R1, R7                                                 ; +0x3e, 0x78591e\nMOV             R2, R0                                                 ; +0x40, 0x785920\nMOV             R0, R5                                                 ; +0x42, 0x785922\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x44, 0x785924\nLDR             R3, =(aOk - 0x785936); \"OK\"                            ; +0x48, 0x785928\nSTR             R4, [SP,#0x18+var_18]                                  ; +0x4a, 0x78592a\nMOV             R0, R4                                                 ; +0x4c, 0x78592c\nMOV             R1, R8                                                 ; +0x4e, 0x78592e\nMOV             R2, R5                                                 ; +0x50, 0x785930\nADD             R3, PC; \"OK\"                                           ; +0x52, 0x785932\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0x54, 0x785934\nLDR             R3, [R0]                                               ; +0x58, 0x785938\nLDR.W           R3, [R3,#0x290]                                        ; +0x5a, 0x78593a\nBLX             R3                                                     ; +0x5e, 0x78593e\nMOV             R0, R5                                                 ; +0x60, 0x785940\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x62, 0x785942\nB               loc_78595E                                             ; +0x66, 0x785946\nMOV             R0, R5                                                 ; +0x68, 0x785948\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6a, 0x78594a\nBL              __cxa_end_cleanup                                      ; +0x6e, 0x78594e\nLDR             R7, =(aCouldNotDelete - 0x78595C); \"Could not delete this sound pack from t\"... ; +0x72, 0x785952\nLDR.W           R8, =(aDeleteFailed_0 - 0x78595E); \"Delete Failed\"     ; +0x74, 0x785954\nADD             R7, PC; \"Could not delete this sound pack from t\"...   ; +0x78, 0x785958\nADD             R8, PC; \"Delete Failed\"                                ; +0x7a, 0x78595a\nB               loc_78590E                                             ; +0x7c, 0x78595c\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x7e, 0x78595e\nLDR             R3, [R6]                                               ; +0x80, 0x785960\nCMP             R2, R3                                                 ; +0x82, 0x785962\nBEQ             loc_78596A                                             ; +0x84, 0x785964\nBLX             __stack_chk_fail                                       ; +0x86, 0x785966\nADD             SP, SP, #0x18                                          ; +0x8a, 0x78596a\nPOP.W           {R4-R8,PC}                                             ; +0x8c, 0x78596c", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFailed @ 0x78598c"], "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"}