{"type": "func", "start": 13422876, "end": 13423164, "name": "EditorSoundConfigInfoLayer::onOverwrite", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onOverwrite from 0xccd11c to 0xccd23c (288 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xe3980\n// > EditorSoundConfigInfoLayer::init @ 0xcd1670\n// > <???> @ 0x1546d58\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::onOverwrite(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x20\n  _QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF\n  void *v6; // [xsp+30h] [xbp+30h]\n\n  v6 = (void *)operator new(0x40u);\n  v5[1] = 57;\n  v5[0] = 65;\n  strcpy((char *)v6, \"Replace this sound pack with your current sound settings?\");\n  v3 = FLAlertLayer::create(\n         (__int64)this + 1032,\n         (cocos2d::CCLabelBMFont *)\"Overwrite?\",\n         (char *)v5,\n         (ButtonSprite *)\"Cancel\",\n         (ButtonSprite *)\"Overwrite\",\n         380.0);\n  if ( (v5[0] & 1) != 0 )\n    operator delete(v6);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 7003);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onOverwrite from 0xccd11c to 0xccd23c (288 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xe3980\n; > EditorSoundConfigInfoLayer::init @ 0xcd1670\n; > <???> @ 0x1546d58\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_40]!                                ; +0x0, 0xccd11c\nMOV             X29, SP                                                ; +0x4, 0xccd120\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xccd124\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xccd128\nMOV             X20, X0                                                ; +0x10, 0xccd12c\nMOV             X0, #0x40 ; '@'; unsigned __int64                      ; +0x14, 0xccd130\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x18, 0xccd134\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x1c, 0xccd138\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xccd13c\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x24, 0xccd140\nLDR             X1, [X1]                                               ; +0x28, 0xccd144\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x2c, 0xccd148\nBL              _Znwm; operator new(ulong)                             ; +0x30, 0xccd14c\nMOV             X5, X0                                                 ; +0x34, 0xccd150\nADRP            X1, #aReplaceThisSou@PAGE; \"Replace this sound pack with your curre\"... ; +0x38, 0xccd154\nSTR             X5, [X29,#0x40+var_10]                                 ; +0x3c, 0xccd158\nADD             X1, X1, #aReplaceThisSou@PAGEOFF; \"Replace this sound pack with your curre\"... ; +0x40, 0xccd15c\nMOV             X2, #0x39 ; '9'                                        ; +0x44, 0xccd160\nLDR             S0, =0x43BE0000                                        ; +0x48, 0xccd164\nSTR             X2, [X29,#0x40+var_18]                                 ; +0x4c, 0xccd168\nADD             X0, X20, #0x408                                        ; +0x50, 0xccd16c\nADD             X2, X29, #0x40+var_20                                  ; +0x54, 0xccd170\nLDR             X3, [X1,#(aReplaceThisSou+0x30 - 0x11A3DD0)]; \"settings?\" ; +0x58, 0xccd174\nLDRB            W4, [X1,#(aReplaceThisSou+0x38 - 0x11A3DD0)]; \"?\"      ; +0x5c, 0xccd178\nLDP             X10, X11, [X1]; \"Replace this sound pack with your curre\"... ; +0x60, 0xccd17c\nLDP             X8, X9, [X1,#(aReplaceThisSou+0x10 - 0x11A3DD0)]; \"nd pack with your current sound setting\"... ; +0x64, 0xccd180\nLDP             X6, X7, [X1,#(aReplaceThisSou+0x20 - 0x11A3DD0)]; \"r current sound settings?\" ; +0x68, 0xccd184\nMOV             X1, #0x41 ; 'A'                                        ; +0x6c, 0xccd188\nSTR             X3, [X5,#0x30]                                         ; +0x70, 0xccd18c\nSTR             X1, [X29,#0x40+var_20]                                 ; +0x74, 0xccd190\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x78, 0xccd194\nADRP            X1, #aOverwrite@PAGE; \"Overwrite?\"                     ; +0x7c, 0xccd198\nSTRB            W4, [X5,#0x38]                                         ; +0x80, 0xccd19c\nADRP            X4, #aOverwrite_0@PAGE; \"Overwrite\"                    ; +0x84, 0xccd1a0\nADD             X1, X1, #aOverwrite@PAGEOFF; \"Overwrite?\"              ; +0x88, 0xccd1a4\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x8c, 0xccd1a8\nADD             X4, X4, #aOverwrite_0@PAGEOFF; \"Overwrite\"             ; +0x90, 0xccd1ac\nSTRB            WZR, [X5,#0x39]                                        ; +0x94, 0xccd1b0\nSTP             X10, X11, [X5]                                         ; +0x98, 0xccd1b4\nSTP             X8, X9, [X5,#0x10]                                     ; +0x9c, 0xccd1b8\nSTP             X6, X7, [X5,#0x20]                                     ; +0xa0, 0xccd1bc\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xa4, 0xccd1c0\nMOV             X20, X0                                                ; +0xa8, 0xccd1c4\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0xac, 0xccd1c8\nTBZ             W0, #0, loc_CCD1D8                                     ; +0xb0, 0xccd1cc\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xb4, 0xccd1d0\nBL              _ZdlPv; operator delete(void *)                        ; +0xb8, 0xccd1d4\nLDR             X2, [X20]                                              ; +0xbc, 0xccd1d8\nMOV             X0, X20                                                ; +0xc0, 0xccd1dc\nMOV             W1, #0x1B5B                                            ; +0xc4, 0xccd1e0\nLDR             X2, [X2,#0x48]                                         ; +0xc8, 0xccd1e4\nBLR             X2                                                     ; +0xcc, 0xccd1e8\nLDR             X1, [X20]                                              ; +0xd0, 0xccd1ec\nMOV             X0, X20                                                ; +0xd4, 0xccd1f0\nLDR             X1, [X1,#0x520]                                        ; +0xd8, 0xccd1f4\nBLR             X1                                                     ; +0xdc, 0xccd1f8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe0, 0xccd1fc\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xe4, 0xccd200\nLDR             X0, [X19]                                              ; +0xe8, 0xccd204\nCMP             X1, X0                                                 ; +0xec, 0xccd208\nB.NE            loc_CCD21C                                             ; +0xf0, 0xccd20c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xf4, 0xccd210\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xf8, 0xccd214\nRET                                                                    ; +0xfc, 0xccd218\nBL              .__stack_chk_fail                                      ; +0x100, 0xccd21c\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x104, 0xccd220\nMOV             X19, X0                                                ; +0x108, 0xccd224\nTBZ             W1, #0, loc_CCD234                                     ; +0x10c, 0xccd228\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x110, 0xccd22c\nBL              _ZdlPv; operator delete(void *)                        ; +0x114, 0xccd230\nMOV             X0, X19                                                ; +0x118, 0xccd234\nBL              _Unwind_Resume                                         ; +0x11c, 0xccd238", "xrefs": ["<???> @ 0xe3980", "EditorSoundConfigInfoLayer::init @ 0xcd1670", "<???> @ 0x1546d58"], "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"}