{"type": "func", "start": 8329888, "end": 8330620, "name": "EditLevelLayer::FLAlert_Clicked", "pseudocode": "// \n// EditLevelLayer::FLAlert_Clicked from 0x7f1aa0 to 0x7f1d7c (732 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::FLAlert_Clicked @ 0x7f1d80\n// > <???> @ 0xa93c0\n// > <???> @ 0x143c948\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:36 +0000\n// \n\n__int64 __fastcall EditLevelLayer::FLAlert_Clicked(GJGameLevel **this, FLAlertLayer *a2, unsigned __int8 a3)\n{\n  int v5; // w21\n  GameManager *v7; // x0\n  GameManager *v8; // x0\n  GameLevelManager *v9; // x0\n  GameLevelManager *v10; // x0\n  __int64 v11; // x23\n  __int64 v12; // x0\n  int v13; // w1\n  int v14; // w19\n  unsigned int v15; // w19\n  __int64 v16; // x1\n  int updated; // w19\n  __int64 v18; // x0\n  __int64 v19; // x0\n  char v20; // w1\n  __int64 v21; // [xsp+40h] [xbp+40h] BYREF\n  __int64 v22; // [xsp+48h] [xbp+48h]\n  void *v23; // [xsp+50h] [xbp+50h]\n\n  v5 = a3;\n  if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 4 && v5 )\n  {\n    EditLevelLayer::onDelete((EditLevelLayer *)this);\n  }\n  else if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 7 && v5 )\n  {\n    EditLevelLayer::onClone(this);\n  }\n  else if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 8 && v5 )\n  {\n    EditLevelLayer::onMoveToTop(this);\n  }\n  else if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 12 && v5 )\n  {\n    EditLevelLayer::onMoveToBottom(this);\n  }\n  else if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 10 )\n  {\n    EditLevelLayer::onShare((EditLevelLayer *)this, nullptr);\n  }\n  else\n  {\n    v7 = (GameManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2);\n    if ( (_DWORD)v7 == 5 )\n    {\n      if ( v5 )\n      {\n        v8 = (GameManager *)GameManager::sharedState(v7);\n        GameManager::openEditorGuide(v8);\n      }\n      else\n      {\n        EditLevelLayer::onEdit(this, nullptr);\n      }\n    }\n    else if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 9 && v5 )\n    {\n      v9 = (GameLevelManager *)EditLevelLayer::closeTextInputs(this);\n      v10 = (GameLevelManager *)GameLevelManager::sharedState(v9);\n      *((_QWORD *)v10 + 170) = this + 53;\n      v11 = GameLevelManager::sharedState(v10);\n      v12 = (__int64)*(this + 59);\n      v13 = *(_DWORD *)(v12 + 328);\n      v14 = *(_DWORD *)(v12 + 332);\n      v21 = 0;\n      v22 = 0;\n      v15 = v13 - v14;\n      v23 = nullptr;\n      if ( (*(_BYTE *)(v12 + 368) & 1) != 0 )\n      {\n        std::string::__init(&v21, *(void **)(v12 + 384), *(_QWORD *)(v12 + 376));\n      }\n      else\n      {\n        v16 = *(_QWORD *)(v12 + 376);\n        v21 = *(_QWORD *)(v12 + 368);\n        v22 = v16;\n        v23 = *(void **)(v12 + 384);\n      }\n      updated = (unsigned __int8)GameLevelManager::updateDescription(v11, v15, &v21);\n      if ( (v21 & 1) != 0 )\n        operator delete(v23);\n      if ( updated )\n      {\n        v18 = (__int64)*(this + 66);\n        if ( v18 )\n        {\n          *(_QWORD *)(v18 + 664) = 0;\n          *(this + 66) = nullptr;\n        }\n        v21 = 0;\n        v22 = 0;\n        v23 = nullptr;\n        std::string::__init(&v21, \"Updating description...\", 0x17u);\n        v19 = UploadActionPopup::create(this + 54, &v21);\n        v20 = v21;\n        *(this + 66) = (GJGameLevel *)v19;\n        if ( (v20 & 1) != 0 )\n        {\n          operator delete(v23);\n          v19 = (__int64)*(this + 66);\n        }\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v19 + 1312LL))(v19);\n      }\n    }\n    else if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 11 )\n    {\n      if ( v5 )\n        *((_BYTE *)this + 536) = 1;\n      else\n        GJGameLevel::clearPlatformerSave(*(this + 59));\n      EditLevelLayer::onPlay((EditLevelLayer *)this, nullptr);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditLevelLayer::FLAlert_Clicked from 0x7f1aa0 to 0x7f1d7c (732 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::FLAlert_Clicked @ 0x7f1d80\n; > <???> @ 0xa93c0\n; > <???> @ 0x143c948\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:36 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x7f1aa0\nMOV             X29, SP                                                ; +0x4, 0x7f1aa4\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x7f1aa8\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7f1aac\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x10, 0x7f1ab0\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x7f1ab4\nMOV             X19, X1                                                ; +0x18, 0x7f1ab8\nMOV             X22, X0                                                ; +0x1c, 0x7f1abc\nUXTB            W21, W2                                                ; +0x20, 0x7f1ac0\nMOV             X0, X1                                                 ; +0x24, 0x7f1ac4\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x7f1ac8\nLDR             X1, [X1]                                               ; +0x2c, 0x7f1acc\nLDR             X2, [X2]                                               ; +0x30, 0x7f1ad0\nLDR             X1, [X1,#0x40]                                         ; +0x34, 0x7f1ad4\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x38, 0x7f1ad8\nBLR             X1                                                     ; +0x3c, 0x7f1adc\nCMP             W0, #4                                                 ; +0x40, 0x7f1ae0\nB.NE            loc_7F1B1C                                             ; +0x44, 0x7f1ae4\nCBZ             W21, loc_7F1B1C                                        ; +0x48, 0x7f1ae8\nMOV             X0, X22; this                                          ; +0x4c, 0x7f1aec\nBL              _ZN14EditLevelLayer8onDeleteEv; EditLevelLayer::onDelete(void) ; +0x50, 0x7f1af0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x54, 0x7f1af4\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x58, 0x7f1af8\nLDR             X0, [X20]                                              ; +0x5c, 0x7f1afc\nCMP             X1, X0                                                 ; +0x60, 0x7f1b00\nB.NE            loc_7F1D58                                             ; +0x64, 0x7f1b04\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x68, 0x7f1b08\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x6c, 0x7f1b0c\nLDR             X23, [SP,#0x60+var_30]                                 ; +0x70, 0x7f1b10\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x74, 0x7f1b14\nRET                                                                    ; +0x78, 0x7f1b18\nLDR             X1, [X19]                                              ; +0x7c, 0x7f1b1c\nMOV             X0, X19                                                ; +0x80, 0x7f1b20\nLDR             X1, [X1,#0x40]                                         ; +0x84, 0x7f1b24\nBLR             X1                                                     ; +0x88, 0x7f1b28\nCMP             W0, #7                                                 ; +0x8c, 0x7f1b2c\nB.NE            loc_7F1B44                                             ; +0x90, 0x7f1b30\nCBZ             W21, loc_7F1B44                                        ; +0x94, 0x7f1b34\nMOV             X0, X22; this                                          ; +0x98, 0x7f1b38\nBL              _ZN14EditLevelLayer7onCloneEv; EditLevelLayer::onClone(void) ; +0x9c, 0x7f1b3c\nB               loc_7F1AF4                                             ; +0xa0, 0x7f1b40\nLDR             X1, [X19]                                              ; +0xa4, 0x7f1b44\nMOV             X0, X19                                                ; +0xa8, 0x7f1b48\nLDR             X1, [X1,#0x40]                                         ; +0xac, 0x7f1b4c\nBLR             X1                                                     ; +0xb0, 0x7f1b50\nCMP             W0, #8                                                 ; +0xb4, 0x7f1b54\nB.NE            loc_7F1B6C                                             ; +0xb8, 0x7f1b58\nCBZ             W21, loc_7F1B6C                                        ; +0xbc, 0x7f1b5c\nMOV             X0, X22; this                                          ; +0xc0, 0x7f1b60\nBL              _ZN14EditLevelLayer11onMoveToTopEv; EditLevelLayer::onMoveToTop(void) ; +0xc4, 0x7f1b64\nB               loc_7F1AF4                                             ; +0xc8, 0x7f1b68\nLDR             X1, [X19]                                              ; +0xcc, 0x7f1b6c\nMOV             X0, X19                                                ; +0xd0, 0x7f1b70\nLDR             X1, [X1,#0x40]                                         ; +0xd4, 0x7f1b74\nBLR             X1                                                     ; +0xd8, 0x7f1b78\nCMP             W0, #0xC                                               ; +0xdc, 0x7f1b7c\nB.NE            loc_7F1B94                                             ; +0xe0, 0x7f1b80\nCBZ             W21, loc_7F1B94                                        ; +0xe4, 0x7f1b84\nMOV             X0, X22; this                                          ; +0xe8, 0x7f1b88\nBL              _ZN14EditLevelLayer14onMoveToBottomEv; EditLevelLayer::onMoveToBottom(void) ; +0xec, 0x7f1b8c\nB               loc_7F1AF4                                             ; +0xf0, 0x7f1b90\nLDR             X1, [X19]                                              ; +0xf4, 0x7f1b94\nMOV             X0, X19                                                ; +0xf8, 0x7f1b98\nLDR             X1, [X1,#0x40]                                         ; +0xfc, 0x7f1b9c\nBLR             X1                                                     ; +0x100, 0x7f1ba0\nCMP             W0, #0xA                                               ; +0x104, 0x7f1ba4\nB.EQ            loc_7F1D1C                                             ; +0x108, 0x7f1ba8\nLDR             X1, [X19]                                              ; +0x10c, 0x7f1bac\nMOV             X0, X19                                                ; +0x110, 0x7f1bb0\nLDR             X1, [X1,#0x40]                                         ; +0x114, 0x7f1bb4\nBLR             X1                                                     ; +0x118, 0x7f1bb8\nCMP             W0, #5                                                 ; +0x11c, 0x7f1bbc\nB.NE            loc_7F1BD4                                             ; +0x120, 0x7f1bc0\nCBZ             W21, loc_7F1CCC                                        ; +0x124, 0x7f1bc4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x128, 0x7f1bc8\nBL              _ZN11GameManager15openEditorGuideEv; GameManager::openEditorGuide(void) ; +0x12c, 0x7f1bcc\nB               loc_7F1AF4                                             ; +0x130, 0x7f1bd0\nLDR             X1, [X19]                                              ; +0x134, 0x7f1bd4\nMOV             X0, X19                                                ; +0x138, 0x7f1bd8\nLDR             X1, [X1,#0x40]                                         ; +0x13c, 0x7f1bdc\nBLR             X1                                                     ; +0x140, 0x7f1be0\nCMP             W0, #9                                                 ; +0x144, 0x7f1be4\nB.NE            loc_7F1CDC                                             ; +0x148, 0x7f1be8\nCBZ             W21, loc_7F1CDC                                        ; +0x14c, 0x7f1bec\nMOV             X0, X22; this                                          ; +0x150, 0x7f1bf0\nADD             X21, X29, #0x60+var_20                                 ; +0x154, 0x7f1bf4\nBL              _ZN14EditLevelLayer15closeTextInputsEv; EditLevelLayer::closeTextInputs(void) ; +0x158, 0x7f1bf8\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x15c, 0x7f1bfc\nADD             X1, X22, #0x1A8                                        ; +0x160, 0x7f1c00\nSTR             X1, [X0,#0x550]                                        ; +0x164, 0x7f1c04\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x168, 0x7f1c08\nMOV             X23, X0                                                ; +0x16c, 0x7f1c0c\nLDR             X0, [X22,#0x1D8]                                       ; +0x170, 0x7f1c10\nADD             X2, X0, #0x170                                         ; +0x174, 0x7f1c14\nLDR             W1, [X0,#0x148]                                        ; +0x178, 0x7f1c18\nLDR             W19, [X0,#0x14C]                                       ; +0x17c, 0x7f1c1c\nSTR             XZR, [X29,#0x60+var_20]                                ; +0x180, 0x7f1c20\nSTR             XZR, [X29,#0x60+var_18]                                ; +0x184, 0x7f1c24\nSUB             W19, W1, W19                                           ; +0x188, 0x7f1c28\nSTR             XZR, [X29,#0x60+var_10]                                ; +0x18c, 0x7f1c2c\nLDRB            W0, [X0,#0x170]                                        ; +0x190, 0x7f1c30\nTBNZ            W0, #0, loc_7F1D2C                                     ; +0x194, 0x7f1c34\nLDP             X0, X1, [X2]                                           ; +0x198, 0x7f1c38\nSTP             X0, X1, [X29,#0x60+var_20]                             ; +0x19c, 0x7f1c3c\nLDR             X0, [X2,#0x10]                                         ; +0x1a0, 0x7f1c40\nSTR             X0, [X29,#0x60+var_10]                                 ; +0x1a4, 0x7f1c44\nMOV             X0, X23                                                ; +0x1a8, 0x7f1c48\nMOV             W1, W19                                                ; +0x1ac, 0x7f1c4c\nMOV             X2, X21                                                ; +0x1b0, 0x7f1c50\nBL              _ZN16GameLevelManager17updateDescriptionEiNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; GameLevelManager::updateDescription(int,std::string) ; +0x1b4, 0x7f1c54\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0x1b8, 0x7f1c58\nUXTB            W19, W0                                                ; +0x1bc, 0x7f1c5c\nTBNZ            W1, #0, loc_7F1D10                                     ; +0x1c0, 0x7f1c60\nCBZ             W19, loc_7F1AF4                                        ; +0x1c4, 0x7f1c64\nLDR             X0, [X22,#0x210]                                       ; +0x1c8, 0x7f1c68\nCBZ             X0, loc_7F1C78                                         ; +0x1cc, 0x7f1c6c\nSTR             XZR, [X0,#0x298]                                       ; +0x1d0, 0x7f1c70\nSTR             XZR, [X22,#0x210]                                      ; +0x1d4, 0x7f1c74\nADRP            X1, #aUpdatingDescri@PAGE; \"Updating description...\"   ; +0x1d8, 0x7f1c78\nMOV             X0, X21                                                ; +0x1dc, 0x7f1c7c\nADD             X1, X1, #aUpdatingDescri@PAGEOFF; \"Updating description...\" ; +0x1e0, 0x7f1c80\nMOV             X2, #0x17                                              ; +0x1e4, 0x7f1c84\nSTR             XZR, [X29,#0x60+var_20]                                ; +0x1e8, 0x7f1c88\nSTR             XZR, [X29,#0x60+var_18]                                ; +0x1ec, 0x7f1c8c\nSTR             XZR, [X29,#0x60+var_10]                                ; +0x1f0, 0x7f1c90\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x1f4, 0x7f1c94\nADD             X0, X22, #0x1B0                                        ; +0x1f8, 0x7f1c98\nMOV             X1, X21                                                ; +0x1fc, 0x7f1c9c\nBL              _ZN17UploadActionPopup6createEP19UploadPopupDelegateNSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE; UploadActionPopup::create(UploadPopupDelegate *,std::string) ; +0x200, 0x7f1ca0\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0x204, 0x7f1ca4\nSTR             X0, [X22,#0x210]                                       ; +0x208, 0x7f1ca8\nTBZ             W1, #0, loc_7F1CBC                                     ; +0x20c, 0x7f1cac\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x210, 0x7f1cb0\nBL              _ZdlPv; operator delete(void *)                        ; +0x214, 0x7f1cb4\nLDR             X0, [X22,#0x210]                                       ; +0x218, 0x7f1cb8\nLDR             X1, [X0]                                               ; +0x21c, 0x7f1cbc\nLDR             X1, [X1,#0x520]                                        ; +0x220, 0x7f1cc0\nBLR             X1                                                     ; +0x224, 0x7f1cc4\nB               loc_7F1AF4                                             ; +0x228, 0x7f1cc8\nMOV             X0, X22; this                                          ; +0x22c, 0x7f1ccc\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x230, 0x7f1cd0\nBL              _ZN14EditLevelLayer6onEditEPN7cocos2d8CCObjectE; EditLevelLayer::onEdit(cocos2d::CCObject *) ; +0x234, 0x7f1cd4\nB               loc_7F1AF4                                             ; +0x238, 0x7f1cd8\nLDR             X1, [X19]                                              ; +0x23c, 0x7f1cdc\nMOV             X0, X19                                                ; +0x240, 0x7f1ce0\nLDR             X1, [X1,#0x40]                                         ; +0x244, 0x7f1ce4\nBLR             X1                                                     ; +0x248, 0x7f1ce8\nCMP             W0, #0xB                                               ; +0x24c, 0x7f1cec\nB.NE            loc_7F1AF4                                             ; +0x250, 0x7f1cf0\nCBNZ            W21, loc_7F1D40                                        ; +0x254, 0x7f1cf4\nLDR             X0, [X22,#0x1D8]; this                                 ; +0x258, 0x7f1cf8\nBL              _ZN11GJGameLevel19clearPlatformerSaveEv; GJGameLevel::clearPlatformerSave(void) ; +0x25c, 0x7f1cfc\nMOV             X0, X22; this                                          ; +0x260, 0x7f1d00\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x264, 0x7f1d04\nBL              _ZN14EditLevelLayer6onPlayEPN7cocos2d8CCObjectE; EditLevelLayer::onPlay(cocos2d::CCObject *) ; +0x268, 0x7f1d08\nB               loc_7F1AF4                                             ; +0x26c, 0x7f1d0c\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x270, 0x7f1d10\nBL              _ZdlPv; operator delete(void *)                        ; +0x274, 0x7f1d14\nB               loc_7F1C64                                             ; +0x278, 0x7f1d18\nMOV             X0, X22; this                                          ; +0x27c, 0x7f1d1c\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x280, 0x7f1d20\nBL              _ZN14EditLevelLayer7onShareEPN7cocos2d8CCObjectE; EditLevelLayer::onShare(cocos2d::CCObject *) ; +0x284, 0x7f1d24\nB               loc_7F1AF4                                             ; +0x288, 0x7f1d28\nLDR             X1, [X2,#0x10]                                         ; +0x28c, 0x7f1d2c\nMOV             X0, X21                                                ; +0x290, 0x7f1d30\nLDR             X2, [X2,#8]                                            ; +0x294, 0x7f1d34\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x298, 0x7f1d38\nB               loc_7F1C48                                             ; +0x29c, 0x7f1d3c\nMOV             W1, #1                                                 ; +0x2a0, 0x7f1d40\nMOV             X0, X22; this                                          ; +0x2a4, 0x7f1d44\nSTRB            W1, [X22,#0x218]                                       ; +0x2a8, 0x7f1d48\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x2ac, 0x7f1d4c\nBL              _ZN14EditLevelLayer6onPlayEPN7cocos2d8CCObjectE; EditLevelLayer::onPlay(cocos2d::CCObject *) ; +0x2b0, 0x7f1d50\nB               loc_7F1AF4                                             ; +0x2b4, 0x7f1d54\nBL              .__stack_chk_fail                                      ; +0x2b8, 0x7f1d58\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0x2bc, 0x7f1d5c\nMOV             X19, X0                                                ; +0x2c0, 0x7f1d60\nTBZ             W1, #0, loc_7F1D70                                     ; +0x2c4, 0x7f1d64\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x2c8, 0x7f1d68\nBL              _ZdlPv; operator delete(void *)                        ; +0x2cc, 0x7f1d6c\nMOV             X0, X19                                                ; +0x2d0, 0x7f1d70\nBL              _Unwind_Resume                                         ; +0x2d4, 0x7f1d74\nB               loc_7F1D5C                                             ; +0x2d8, 0x7f1d78", "xrefs": ["`non-virtual thunk to'EditLevelLayer::FLAlert_Clicked @ 0x7f1d80", "<???> @ 0xa93c0", "<???> @ 0x143c948"], "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"}