{"type": "func", "start": 13423168, "end": 13423420, "name": "EditorSoundConfigInfoLayer::onLoad", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onLoad from 0xccd240 to 0xccd33c (252 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xdc288\n// > EditorSoundConfigInfoLayer::init @ 0xcd1518\n// > <???> @ 0x15469b0\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::onLoad(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[1] = 71;\n  v5[0] = 81;\n  *((_BYTE *)memcpy(v6, \"This will <cr>replace</c> your current sounds with this pack. Continue?\", 0x47u) + 71) = 0;\n  v3 = FLAlertLayer::create(\n         (__int64)this + 1032,\n         (cocos2d::CCLabelBMFont *)\"Load Sound Pack\",\n         (char *)v5,\n         (ButtonSprite *)\"Cancel\",\n         (ButtonSprite *)\"Load\",\n         380.0);\n  if ( (v5[0] & 1) != 0 )\n    operator delete(v6);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 7001);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onLoad from 0xccd240 to 0xccd33c (252 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xdc288\n; > EditorSoundConfigInfoLayer::init @ 0xcd1518\n; > <???> @ 0x15469b0\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, 0xccd240\nMOV             X29, SP                                                ; +0x4, 0xccd244\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xccd248\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xccd24c\nMOV             X20, X0                                                ; +0x10, 0xccd250\nMOV             X0, #0x50 ; 'P'; unsigned __int64                      ; +0x14, 0xccd254\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x18, 0xccd258\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x1c, 0xccd25c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xccd260\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x24, 0xccd264\nLDR             X1, [X1]                                               ; +0x28, 0xccd268\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x2c, 0xccd26c\nBL              _Znwm; operator new(ulong)                             ; +0x30, 0xccd270\nSTR             X0, [X29,#0x40+var_10]                                 ; +0x34, 0xccd274\nMOV             X4, #0x47 ; 'G'                                        ; +0x38, 0xccd278\nADRP            X1, #aThisWillCrRepl@PAGE; \"This will <cr>replace</c> your current \"... ; +0x3c, 0xccd27c\nMOV             X2, X4; size_t                                         ; +0x40, 0xccd280\nADD             X1, X1, #aThisWillCrRepl@PAGEOFF; \"This will <cr>replace</c> your current \"... ; +0x44, 0xccd284\nSTR             X4, [X29,#0x40+var_18]                                 ; +0x48, 0xccd288\nMOV             X4, #0x51 ; 'Q'                                        ; +0x4c, 0xccd28c\nSTR             X4, [X29,#0x40+var_20]                                 ; +0x50, 0xccd290\nBL              .memcpy                                                ; +0x54, 0xccd294\nSTRB            WZR, [X0,#0x47]                                        ; +0x58, 0xccd298\nLDR             S0, =0x43BE0000                                        ; +0x5c, 0xccd29c\nADRP            X1, #aLoadSoundPack@PAGE; \"Load Sound Pack\"            ; +0x60, 0xccd2a0\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x64, 0xccd2a4\nADRP            X4, #aLoad@PAGE; \"Load\"                                ; +0x68, 0xccd2a8\nADD             X0, X20, #0x408                                        ; +0x6c, 0xccd2ac\nADD             X1, X1, #aLoadSoundPack@PAGEOFF; \"Load Sound Pack\"     ; +0x70, 0xccd2b0\nADD             X2, X29, #0x40+var_20                                  ; +0x74, 0xccd2b4\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x78, 0xccd2b8\nADD             X4, X4, #aLoad@PAGEOFF; \"Load\"                         ; +0x7c, 0xccd2bc\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x80, 0xccd2c0\nMOV             X20, X0                                                ; +0x84, 0xccd2c4\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0x88, 0xccd2c8\nTBZ             W0, #0, loc_CCD2D8                                     ; +0x8c, 0xccd2cc\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x90, 0xccd2d0\nBL              _ZdlPv; operator delete(void *)                        ; +0x94, 0xccd2d4\nLDR             X2, [X20]                                              ; +0x98, 0xccd2d8\nMOV             X0, X20                                                ; +0x9c, 0xccd2dc\nMOV             W1, #0x1B59                                            ; +0xa0, 0xccd2e0\nLDR             X2, [X2,#0x48]                                         ; +0xa4, 0xccd2e4\nBLR             X2                                                     ; +0xa8, 0xccd2e8\nLDR             X1, [X20]                                              ; +0xac, 0xccd2ec\nMOV             X0, X20                                                ; +0xb0, 0xccd2f0\nLDR             X1, [X1,#0x520]                                        ; +0xb4, 0xccd2f4\nBLR             X1                                                     ; +0xb8, 0xccd2f8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xbc, 0xccd2fc\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xc0, 0xccd300\nLDR             X0, [X19]                                              ; +0xc4, 0xccd304\nCMP             X1, X0                                                 ; +0xc8, 0xccd308\nB.NE            loc_CCD31C                                             ; +0xcc, 0xccd30c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xd0, 0xccd310\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xd4, 0xccd314\nRET                                                                    ; +0xd8, 0xccd318\nBL              .__stack_chk_fail                                      ; +0xdc, 0xccd31c\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0xe0, 0xccd320\nMOV             X19, X0                                                ; +0xe4, 0xccd324\nTBZ             W1, #0, loc_CCD334                                     ; +0xe8, 0xccd328\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xec, 0xccd32c\nBL              _ZdlPv; operator delete(void *)                        ; +0xf0, 0xccd330\nMOV             X0, X19                                                ; +0xf4, 0xccd334\nBL              _Unwind_Resume                                         ; +0xf8, 0xccd338", "xrefs": ["<???> @ 0xdc288", "EditorSoundConfigInfoLayer::init @ 0xcd1518", "<???> @ 0x15469b0"], "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"}