{"type": "func", "start": 7885524, "end": 7885720, "name": "EditorSoundConfigInfoLayer::onLocalDelete", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onLocalDelete from 0x7852d4 to 0x785398 (196 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\nEditorSFXManager *__fastcall EditorSoundConfigInfoLayer::onLocalDelete(EditorSFXManager *this, cocos2d::CCObject *a2)\n{\n  EditorSFXManager *v2; // r4\n  int v3; // r2\n  const char *v4; // r6\n  EditorSFXManager *v5; // r0\n  cocos2d::CCArray **v6; // r0\n  size_t v7; // r0\n  int *v8; // r4\n  int v9[3]; // [sp+8h] [bp-14h] BYREF\n\n  v2 = this;\n  v3 = *((_DWORD *)this + 187);\n  if ( v3 )\n  {\n    if ( *((_DWORD *)this + 188) == 2 && *(int *)(v3 + 268) > 0 )\n    {\n      v4 = \"Delete this sound pack from your device?\";\n    }\n    else\n    {\n      v5 = (EditorSFXManager *)EditorSFXManager::sharedState(this);\n      if ( v5\n        && (v6 = (cocos2d::CCArray **)EditorSFXManager::sharedState(v5),\n            EditorSFXManager::getFavoriteConfig(v6, *(_DWORD *)(*((_DWORD *)v2 + 187) + 264))) )\n      {\n        v4 = \"Remove this sound pack from your Favorites?\";\n      }\n      else\n      {\n        v4 = \"Discard the downloaded data and close?\";\n      }\n    }\n    memset(v9, 0, sizeof(v9));\n    v7 = strlen(v4);\n    std::string::__init(v9, v4, v7);\n    v8 = FLAlertLayer::create(\n           (int)v2 + 720,\n           (cocos2d::CCLabelBMFont *)\"Delete Sound Pack\",\n           (int)v9,\n           (ButtonSprite *)\"Cancel\",\n           (ButtonSprite *)\"Delete\",\n           380.0);\n    std::string::~string((int)v9);\n    (*(void (__fastcall **)(int *, int))(*v8 + 36))(v8, 7004);\n    return (EditorSFXManager *)(*(int (__fastcall **)(int *))(*v8 + 656))(v8);\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onLocalDelete from 0x7852d4 to 0x785398 (196 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; \nLDR             R3, =(__stack_chk_guard_ptr - 0x7852DC)                ; +0x0, 0x7852d4\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x7852d6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x7852d8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x7852da\nSUB             SP, SP, #0x1C                                          ; +0x8, 0x7852dc\nMOV             R4, R0                                                 ; +0xa, 0x7852de\nLDR             R2, [R3]                                               ; +0xc, 0x7852e0\nMOV             R7, R3                                                 ; +0xe, 0x7852e2\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x10, 0x7852e4\nLDR.W           R2, [R0,#0x2EC]                                        ; +0x12, 0x7852e6\nCMP             R2, #0                                                 ; +0x16, 0x7852ea\nBEQ             loc_785388                                             ; +0x18, 0x7852ec\nLDR.W           R3, [R0,#0x2F0]                                        ; +0x1a, 0x7852ee\nCMP             R3, #2                                                 ; +0x1e, 0x7852f2\nBNE             loc_785304                                             ; +0x20, 0x7852f4\nLDR.W           R3, [R2,#0x10C]                                        ; +0x22, 0x7852f6\nCMP             R3, #0                                                 ; +0x26, 0x7852fa\nBLE             loc_785304                                             ; +0x28, 0x7852fc\nLDR             R6, =(aDeleteThisSoun - 0x785304); \"Delete this sound pack from your device\"... ; +0x2a, 0x7852fe\nADD             R6, PC; \"Delete this sound pack from your device\"...   ; +0x2c, 0x785300\nB               loc_785322                                             ; +0x2e, 0x785302\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x30, 0x785304\nCBZ             R0, loc_78531E                                         ; +0x34, 0x785308\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x36, 0x78530a\nLDR.W           R3, [R4,#0x2EC]                                        ; +0x3a, 0x78530e\nLDR.W           R1, [R3,#0x108]; int                                   ; +0x3e, 0x785312\nBL              _ZN16EditorSFXManager17getFavoriteConfigEi; EditorSFXManager::getFavoriteConfig(int) ; +0x42, 0x785316\nCMP             R0, #0                                                 ; +0x46, 0x78531a\nBNE             loc_785382                                             ; +0x48, 0x78531c\nLDR             R6, =(aDiscardTheDown - 0x785324); \"Discard the downloaded data and close?\" ; +0x4a, 0x78531e\nADD             R6, PC; \"Discard the downloaded data and close?\"       ; +0x4c, 0x785320\nMOV             R0, R6; char *                                         ; +0x4e, 0x785322\nMOVS            R3, #0                                                 ; +0x50, 0x785324\nSTR             R3, [SP,#0x1C+var_14]                                  ; +0x52, 0x785326\nADD             R5, SP, #0x1C+var_14                                   ; +0x54, 0x785328\nSTR             R3, [SP,#0x1C+var_10]                                  ; +0x56, 0x78532a\nSTR             R3, [SP,#0x1C+var_C]                                   ; +0x58, 0x78532c\nBLX             strlen                                                 ; +0x5a, 0x78532e\nMOV             R1, R6                                                 ; +0x5e, 0x785332\nMOV             R2, R0                                                 ; +0x60, 0x785334\nMOV             R0, R5                                                 ; +0x62, 0x785336\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x64, 0x785338\nLDR             R3, =(aDelete - 0x785348); \"Delete\"                    ; +0x68, 0x78533c\nLDR             R1, =(aDeleteSoundPac - 0x78534E); \"Delete Sound Pack\" ; +0x6a, 0x78533e\nADD.W           R0, R4, #0x2D0; int                                    ; +0x6c, 0x785340\nADD             R3, PC; \"Delete\"                                       ; +0x70, 0x785344\nSTR             R3, [SP,#0x1C+var_1C]; int                             ; +0x72, 0x785346\nLDR             R3, flt_785398                                         ; +0x74, 0x785348\nADD             R1, PC; \"Delete Sound Pack\"                            ; +0x76, 0x78534a\nMOV             R2, R5; int                                            ; +0x78, 0x78534c\nSTR             R3, [SP,#0x1C+var_18]; float                           ; +0x7a, 0x78534e\nLDR             R3, =(aCancel - 0x785356); \"Cancel\"                    ; +0x7c, 0x785350\nADD             R3, PC; \"Cancel\"                                       ; +0x7e, 0x785352\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x80, 0x785354\nMOV             R4, R0                                                 ; +0x84, 0x785358\nMOV             R0, R5                                                 ; +0x86, 0x78535a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x88, 0x78535c\nLDR             R3, [R4]                                               ; +0x8c, 0x785360\nMOV             R0, R4                                                 ; +0x8e, 0x785362\nMOVW            R1, #0x1B5C                                            ; +0x90, 0x785364\nLDR             R3, [R3,#0x24]                                         ; +0x94, 0x785368\nBLX             R3                                                     ; +0x96, 0x78536a\nLDR             R3, [R4]                                               ; +0x98, 0x78536c\nMOV             R0, R4                                                 ; +0x9a, 0x78536e\nLDR.W           R3, [R3,#0x290]                                        ; +0x9c, 0x785370\nBLX             R3                                                     ; +0xa0, 0x785374\nB               loc_785388                                             ; +0xa2, 0x785376\nMOV             R0, R5                                                 ; +0xa4, 0x785378\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa6, 0x78537a\nBL              __cxa_end_cleanup                                      ; +0xaa, 0x78537e\nLDR             R6, =(aRemoveThisSoun - 0x785388); \"Remove this sound pack from your Favori\"... ; +0xae, 0x785382\nADD             R6, PC; \"Remove this sound pack from your Favori\"...   ; +0xb0, 0x785384\nB               loc_785322                                             ; +0xb2, 0x785386\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xb4, 0x785388\nLDR             R3, [R7]                                               ; +0xb6, 0x78538a\nCMP             R2, R3                                                 ; +0xb8, 0x78538c\nBEQ             loc_785394                                             ; +0xba, 0x78538e\nBLX             __stack_chk_fail                                       ; +0xbc, 0x785390\nADD             SP, SP, #0x1C                                          ; +0xc0, 0x785394\nPOP             {R4-R7,PC}                                             ; +0xc2, 0x785396", "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"}