{"type": "func", "start": 8314132, "end": 8314420, "name": "EditLevelLayer::confirmMoveToTop", "pseudocode": "// \n// EditLevelLayer::confirmMoveToTop from 0x7edd14 to 0x7ede34 (288 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xa9fa8\n// > EditLevelLayer::init @ 0x7f0c94\n// > <???> @ 0x1544cb8\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 12:54:33 +0000\n// \n\n__int64 __fastcall EditLevelLayer::confirmMoveToTop(EditLevelLayer *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] = 54;\n  v5[0] = 65;\n  strcpy((char *)v6, \"Move this level to the top of the created levels list?\");\n  v3 = FLAlertLayer::create(\n         (__int64)this + 416,\n         (cocos2d::CCLabelBMFont *)\"Move to Top\",\n         (char *)v5,\n         (ButtonSprite *)\"NO\",\n         (ButtonSprite *)\"YES\",\n         300.0);\n  if ( (v5[0] & 1) != 0 )\n    operator delete(v6);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 8);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditLevelLayer::confirmMoveToTop from 0x7edd14 to 0x7ede34 (288 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xa9fa8\n; > EditLevelLayer::init @ 0x7f0c94\n; > <???> @ 0x1544cb8\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 12:54:33 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7edd14\nMOV             X29, SP                                                ; +0x4, 0x7edd18\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x7edd1c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7edd20\nMOV             X20, X0                                                ; +0x10, 0x7edd24\nMOV             X0, #0x40 ; '@'; unsigned __int64                      ; +0x14, 0x7edd28\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x18, 0x7edd2c\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x1c, 0x7edd30\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x7edd34\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x24, 0x7edd38\nLDR             X1, [X1]                                               ; +0x28, 0x7edd3c\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x2c, 0x7edd40\nBL              _Znwm; operator new(ulong)                             ; +0x30, 0x7edd44\nMOV             X5, X0                                                 ; +0x34, 0x7edd48\nADRP            X1, #aMoveThisLevelT_2@PAGE; \"Move this level to the top of the creat\"... ; +0x38, 0x7edd4c\nSTR             X5, [X29,#0x40+var_10]                                 ; +0x3c, 0x7edd50\nADD             X1, X1, #aMoveThisLevelT_2@PAGEOFF; \"Move this level to the top of the creat\"... ; +0x40, 0x7edd54\nMOV             X2, #0x36 ; '6'                                        ; +0x44, 0x7edd58\nLDR             S0, =0x43960000                                        ; +0x48, 0x7edd5c\nSTR             X2, [X29,#0x40+var_18]                                 ; +0x4c, 0x7edd60\nADD             X0, X20, #0x1A0                                        ; +0x50, 0x7edd64\nADD             X2, X29, #0x40+var_20                                  ; +0x54, 0x7edd68\nLDR             W3, [X1,#(aMoveThisLevelT_2+0x30 - 0x11450E0)]; \" list?\" ; +0x58, 0x7edd6c\nLDRH            W4, [X1,#(aMoveThisLevelT_2+0x34 - 0x11450E0)]; \"t?\"   ; +0x5c, 0x7edd70\nLDP             X10, X11, [X1]; \"Move this level to the top of the creat\"... ; +0x60, 0x7edd74\nLDP             X8, X9, [X1,#(aMoveThisLevelT_2+0x10 - 0x11450E0)]; \"to the top of the created levels list?\" ; +0x64, 0x7edd78\nLDP             X6, X7, [X1,#(aMoveThisLevelT_2+0x20 - 0x11450E0)]; \"e created levels list?\" ; +0x68, 0x7edd7c\nMOV             X1, #0x41 ; 'A'                                        ; +0x6c, 0x7edd80\nSTR             W3, [X5,#0x30]                                         ; +0x70, 0x7edd84\nSTR             X1, [X29,#0x40+var_20]                                 ; +0x74, 0x7edd88\nADRP            X3, #aNo_0@PAGE; \"NO\"                                  ; +0x78, 0x7edd8c\nADRP            X1, #aMoveToTop@PAGE; \"Move to Top\"                    ; +0x7c, 0x7edd90\nSTRH            W4, [X5,#0x34]                                         ; +0x80, 0x7edd94\nADRP            X4, #aYes_0@PAGE; \"YES\"                                ; +0x84, 0x7edd98\nADD             X1, X1, #aMoveToTop@PAGEOFF; \"Move to Top\"             ; +0x88, 0x7edd9c\nADD             X3, X3, #aNo_0@PAGEOFF; \"NO\"                           ; +0x8c, 0x7edda0\nADD             X4, X4, #aYes_0@PAGEOFF; \"YES\"                         ; +0x90, 0x7edda4\nSTRB            WZR, [X5,#0x36]                                        ; +0x94, 0x7edda8\nSTP             X10, X11, [X5]                                         ; +0x98, 0x7eddac\nSTP             X8, X9, [X5,#0x10]                                     ; +0x9c, 0x7eddb0\nSTP             X6, X7, [X5,#0x20]                                     ; +0xa0, 0x7eddb4\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xa4, 0x7eddb8\nMOV             X20, X0                                                ; +0xa8, 0x7eddbc\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0xac, 0x7eddc0\nTBZ             W0, #0, loc_7EDDD0                                     ; +0xb0, 0x7eddc4\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xb4, 0x7eddc8\nBL              _ZdlPv; operator delete(void *)                        ; +0xb8, 0x7eddcc\nLDR             X2, [X20]                                              ; +0xbc, 0x7eddd0\nMOV             X0, X20                                                ; +0xc0, 0x7eddd4\nMOV             W1, #8                                                 ; +0xc4, 0x7eddd8\nLDR             X2, [X2,#0x48]                                         ; +0xc8, 0x7edddc\nBLR             X2                                                     ; +0xcc, 0x7edde0\nLDR             X1, [X20]                                              ; +0xd0, 0x7edde4\nMOV             X0, X20                                                ; +0xd4, 0x7edde8\nLDR             X1, [X1,#0x520]                                        ; +0xd8, 0x7eddec\nBLR             X1                                                     ; +0xdc, 0x7eddf0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe0, 0x7eddf4\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xe4, 0x7eddf8\nLDR             X0, [X19]                                              ; +0xe8, 0x7eddfc\nCMP             X1, X0                                                 ; +0xec, 0x7ede00\nB.NE            loc_7EDE14                                             ; +0xf0, 0x7ede04\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xf4, 0x7ede08\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xf8, 0x7ede0c\nRET                                                                    ; +0xfc, 0x7ede10\nBL              .__stack_chk_fail                                      ; +0x100, 0x7ede14\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x104, 0x7ede18\nMOV             X19, X0                                                ; +0x108, 0x7ede1c\nTBZ             W1, #0, loc_7EDE2C                                     ; +0x10c, 0x7ede20\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x110, 0x7ede24\nBL              _ZdlPv; operator delete(void *)                        ; +0x114, 0x7ede28\nMOV             X0, X19                                                ; +0x118, 0x7ede2c\nBL              _Unwind_Resume                                         ; +0x11c, 0x7ede30", "xrefs": ["<???> @ 0xa9fa8", "EditLevelLayer::init @ 0x7f0c94", "<???> @ 0x1544cb8"], "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"}