{"type": "func", "start": 13423424, "end": 13423720, "name": "EditorSoundConfigInfoLayer::onMerge", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onMerge from 0xccd340 to 0xccd468 (296 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xa9b58\n// > EditorSoundConfigInfoLayer::init @ 0xcd15c0\n// > <???> @ 0x1544c80\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::onMerge(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(0x50u);\n  v5[0] = 81;\n  v5[1] = 69;\n  strcpy((char *)v6, \"This will <cy>merge</c> this pack into your current sounds. Continue?\");\n  v3 = FLAlertLayer::create(\n         (__int64)this + 1032,\n         (cocos2d::CCLabelBMFont *)\"Merge Sound Pack\",\n         (char *)v5,\n         (ButtonSprite *)\"Cancel\",\n         (ButtonSprite *)\"Merge\",\n         380.0);\n  if ( (v5[0] & 1) != 0 )\n    operator delete(v6);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 7006);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onMerge from 0xccd340 to 0xccd468 (296 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xa9b58\n; > EditorSoundConfigInfoLayer::init @ 0xcd15c0\n; > <???> @ 0x1544c80\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, 0xccd340\nMOV             X29, SP                                                ; +0x4, 0xccd344\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xccd348\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xccd34c\nMOV             X20, X0                                                ; +0x10, 0xccd350\nMOV             X0, #0x50 ; 'P'; unsigned __int64                      ; +0x14, 0xccd354\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x18, 0xccd358\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x1c, 0xccd35c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xccd360\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x24, 0xccd364\nLDR             X1, [X1]                                               ; +0x28, 0xccd368\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x2c, 0xccd36c\nBL              _Znwm; operator new(ulong)                             ; +0x30, 0xccd370\nMOV             X5, X0                                                 ; +0x34, 0xccd374\nADRP            X1, #aThisWillCyMerg@PAGE; \"This will <cy>merge</c> this pack into \"... ; +0x38, 0xccd378\nSTR             X5, [X29,#0x40+var_10]                                 ; +0x3c, 0xccd37c\nADD             X1, X1, #aThisWillCyMerg@PAGEOFF; \"This will <cy>merge</c> this pack into \"... ; +0x40, 0xccd380\nADRP            X4, #aMerge@PAGE; \"Merge\"                              ; +0x44, 0xccd384\nLDR             S0, =0x43BE0000                                        ; +0x48, 0xccd388\nADD             X0, X20, #0x408                                        ; +0x4c, 0xccd38c\nSTRB            WZR, [X5,#0x45]                                        ; +0x50, 0xccd390\nADD             X4, X4, #aMerge@PAGEOFF; \"Merge\"                       ; +0x54, 0xccd394\nLDR             W2, [X1,#(aThisWillCyMerg+0x40 - 0x11A3E88)]; \"inue?\"  ; +0x58, 0xccd398\nLDRB            W3, [X1,#(aThisWillCyMerg+0x44 - 0x11A3E88)]; \"?\"      ; +0x5c, 0xccd39c\nLDP             X12, X13, [X1]; \"This will <cy>merge</c> this pack into \"... ; +0x60, 0xccd3a0\nLDP             X8, X9, [X1,#(aThisWillCyMerg+0x10 - 0x11A3E88)]; \"rge</c> this pack into your current sou\"... ; +0x64, 0xccd3a4\nLDP             X6, X7, [X1,#(aThisWillCyMerg+0x20 - 0x11A3E88)]; \"k into your current sounds. Continue?\" ; +0x68, 0xccd3a8\nLDP             X10, X11, [X1,#(aThisWillCyMerg+0x30 - 0x11A3E88)]; \"ent sounds. Continue?\" ; +0x6c, 0xccd3ac\nMOV             X1, #0x51 ; 'Q'                                        ; +0x70, 0xccd3b0\nSTR             X1, [X29,#0x40+var_20]                                 ; +0x74, 0xccd3b4\nMOV             X1, #0x45 ; 'E'                                        ; +0x78, 0xccd3b8\nSTRB            W3, [X5,#0x44]                                         ; +0x7c, 0xccd3bc\nSTR             X1, [X29,#0x40+var_18]                                 ; +0x80, 0xccd3c0\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x84, 0xccd3c4\nADRP            X1, #aMergeSoundPack@PAGE; \"Merge Sound Pack\"          ; +0x88, 0xccd3c8\nSTR             W2, [X5,#0x40]                                         ; +0x8c, 0xccd3cc\nADD             X1, X1, #aMergeSoundPack@PAGEOFF; \"Merge Sound Pack\"   ; +0x90, 0xccd3d0\nADD             X2, X29, #0x40+var_20                                  ; +0x94, 0xccd3d4\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x98, 0xccd3d8\nSTP             X12, X13, [X5]                                         ; +0x9c, 0xccd3dc\nSTP             X8, X9, [X5,#0x10]                                     ; +0xa0, 0xccd3e0\nSTP             X6, X7, [X5,#0x20]                                     ; +0xa4, 0xccd3e4\nSTP             X10, X11, [X5,#0x30]                                   ; +0xa8, 0xccd3e8\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xac, 0xccd3ec\nMOV             X20, X0                                                ; +0xb0, 0xccd3f0\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0xb4, 0xccd3f4\nTBZ             W0, #0, loc_CCD404                                     ; +0xb8, 0xccd3f8\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xbc, 0xccd3fc\nBL              _ZdlPv; operator delete(void *)                        ; +0xc0, 0xccd400\nLDR             X2, [X20]                                              ; +0xc4, 0xccd404\nMOV             X0, X20                                                ; +0xc8, 0xccd408\nMOV             W1, #0x1B5E                                            ; +0xcc, 0xccd40c\nLDR             X2, [X2,#0x48]                                         ; +0xd0, 0xccd410\nBLR             X2                                                     ; +0xd4, 0xccd414\nLDR             X1, [X20]                                              ; +0xd8, 0xccd418\nMOV             X0, X20                                                ; +0xdc, 0xccd41c\nLDR             X1, [X1,#0x520]                                        ; +0xe0, 0xccd420\nBLR             X1                                                     ; +0xe4, 0xccd424\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe8, 0xccd428\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xec, 0xccd42c\nLDR             X0, [X19]                                              ; +0xf0, 0xccd430\nCMP             X1, X0                                                 ; +0xf4, 0xccd434\nB.NE            loc_CCD448                                             ; +0xf8, 0xccd438\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xfc, 0xccd43c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x100, 0xccd440\nRET                                                                    ; +0x104, 0xccd444\nBL              .__stack_chk_fail                                      ; +0x108, 0xccd448\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x10c, 0xccd44c\nMOV             X19, X0                                                ; +0x110, 0xccd450\nTBZ             W1, #0, loc_CCD460                                     ; +0x114, 0xccd454\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x118, 0xccd458\nBL              _ZdlPv; operator delete(void *)                        ; +0x11c, 0xccd45c\nMOV             X0, X19                                                ; +0x120, 0xccd460\nBL              _Unwind_Resume                                         ; +0x124, 0xccd464", "xrefs": ["<???> @ 0xa9b58", "EditorSoundConfigInfoLayer::init @ 0xcd15c0", "<???> @ 0x1544c80"], "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"}