{"type": "func", "start": 5371884880, "end": 5371885287, "name": "LevelListLayer::FLAlert_Clicked", "pseudocode": "// \n// LevelListLayer::FLAlert_Clicked from 0x140307550 to 0x1403076e7 (407 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140589718\n// > <???> @ 0x1406d44d8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=3\nvoid LevelListLayer::FLAlert_Clicked(LevelListLayer *a1, FLAlertLayer *a2, bool a3)\n{\n  int v6; // eax\n  int v7; // eax\n  GameLevelManager *v8; // rcx\n  __int64 v9; // rdx\n  GameLevelManager *v10; // rcx\n  void *v11; // [rsp+38h] [rbp+10h]\n  void *v12; // [rsp+38h] [rbp+10h]\n\n  v6 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) - 1001;\n  if ( v6 )\n  {\n    v7 = v6 - 3;\n    if ( v7 )\n    {\n      if ( v7 == 1 )\n      {\n        if ( a3 )\n          LevelListLayer::cloneList((LevelListLayer *)((char *)a1 - 552));\n      }\n      else\n      {\n        LevelBrowserLayer::FLAlert_Clicked(a1, a2, a3);\n      }\n    }\n    else if ( a3 && !LOBYTE(a1->m_pScriptTouchHandlerEntry) )\n    {\n      v8 = (GameLevelManager *)qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v11 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280((__int64)v11);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v8 = (GameLevelManager *)qword_1406C2EC0;\n      }\n      v8->m_levelListDeleteDelegate = (LevelListDeleteDelegate *)&a1->m_bRunning;\n      GameLevelManager::deleteServerLevelList(\n        v8,\n        (int)a1->LevelBrowserLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable[3].getPreviousPriority);\n      LOBYTE(v9) = 1;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_sInverse.ty + 320LL))(\n        *(_QWORD *)&a1->m_sInverse.ty,\n        v9);\n    }\n  }\n  else if ( a3 )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_fTransformY + 1024LL))(\n      *(_QWORD *)&a1->m_fTransformY,\n      0);\n    v10 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v12 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v12);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v10 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    GameLevelManager::deleteLevelList(\n      v10,\n      (GJLevelList *)a1->LevelBrowserLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable);\n    ((void (__fastcall *)(cocos2d::CCBlendProtocol *, _QWORD))a1[-1].LevelBrowserLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable[65].setBlendFunc)(\n      &a1[-1].cocos2d::CCBlendProtocol,\n      0);\n    LOBYTE(a1->m_pScriptTouchHandlerEntry) = 1;\n  }\n}", "assembly": "; \n; LevelListLayer::FLAlert_Clicked from 0x140307550 to 0x1403076e7 (407 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140589718\n; > <???> @ 0x1406d44d8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140307550\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140307555\npush    rdi                                                            ; +0xa, 0x14030755a\nsub     rsp, 20h                                                       ; +0xb, 0x14030755b\nmovzx   edi, r8b                                                       ; +0xf, 0x14030755f\nmov     rsi, rdx                                                       ; +0x13, 0x140307563\nmov     rbx, rcx                                                       ; +0x16, 0x140307566\nmov     rax, [rdx]                                                     ; +0x19, 0x140307569\nmov     rcx, rdx                                                       ; +0x1c, 0x14030756c\ncall    qword ptr [rax+38h]                                            ; +0x1f, 0x14030756f\nsub     eax, 3E9h                                                      ; +0x22, 0x140307572\njz      loc_14030765C                                                  ; +0x27, 0x140307577\nsub     eax, 3                                                         ; +0x2d, 0x14030757d\njz      short loc_1403075C9                                            ; +0x30, 0x140307580\ncmp     eax, 1                                                         ; +0x32, 0x140307582\njz      short loc_1403075A5                                            ; +0x35, 0x140307585\nmovzx   r8d, dil                                                       ; +0x37, 0x140307587\nmov     rdx, rsi                                                       ; +0x3b, 0x14030758b\nmov     rcx, rbx                                                       ; +0x3e, 0x14030758e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x41, 0x140307591\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x46, 0x140307596\nadd     rsp, 20h                                                       ; +0x4b, 0x14030759b\npop     rdi                                                            ; +0x4f, 0x14030759f\njmp     LevelBrowserLayer__FLAlert_Clicked                             ; +0x50, 0x1403075a0\ntest    dil, dil                                                       ; +0x55, 0x1403075a5\njz      loc_1403076D7                                                  ; +0x58, 0x1403075a8\nlea     rcx, [rbx-228h]                                                ; +0x5e, 0x1403075ae\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x65, 0x1403075b5\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6a, 0x1403075ba\nadd     rsp, 20h                                                       ; +0x6f, 0x1403075bf\npop     rdi                                                            ; +0x73, 0x1403075c3\njmp     LevelListLayer__cloneList                                      ; +0x74, 0x1403075c4\ntest    dil, dil                                                       ; +0x79, 0x1403075c9\njz      loc_1403076D7                                                  ; +0x7c, 0x1403075cc\ncmp     byte ptr [rbx+170h], 0                                         ; +0x82, 0x1403075d2\njnz     loc_1403076D7                                                  ; +0x89, 0x1403075d9\nlea     rdi, [rbx+110h]                                                ; +0x8f, 0x1403075df\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x96, 0x1403075e6\ntest    rcx, rcx                                                       ; +0x9d, 0x1403075ed\njnz     short loc_140307621                                            ; +0xa0, 0x1403075f0\nmov     ecx, 3D0h; Size                                                ; +0xa2, 0x1403075f2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa7, 0x1403075f7\nmov     [rsp+28h+arg_8], rax                                           ; +0xac, 0x1403075fc\nmov     rcx, rax                                                       ; +0xb1, 0x140307601\ncall    sub_140141280                                                  ; +0xb4, 0x140307604\nnop                                                                    ; +0xb9, 0x140307609\nmov     cs:qword_1406C2EC0, rax                                        ; +0xba, 0x14030760a\nmov     rdx, [rax]                                                     ; +0xc1, 0x140307611\nmov     rcx, rax                                                       ; +0xc4, 0x140307614\ncall    qword ptr [rdx+48h]                                            ; +0xc7, 0x140307617\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xca, 0x14030761a\nmov     [rcx+318h], rdi                                                ; +0xd1, 0x140307621\nmov     rdx, [rbx+140h]                                                ; +0xd8, 0x140307628\nmov     edx, [rdx+158h]                                                ; +0xdf, 0x14030762f\ncall    GameLevelManager__deleteServerLevelList                        ; +0xe5, 0x140307635\nmov     rcx, [rbx+0B8h]                                                ; +0xea, 0x14030763a\nmov     rax, [rcx]                                                     ; +0xf1, 0x140307641\nmov     dl, 1                                                          ; +0xf4, 0x140307644\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf6, 0x140307646\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xfb, 0x14030764b\nadd     rsp, 20h                                                       ; +0x100, 0x140307650\npop     rdi                                                            ; +0x104, 0x140307654\njmp     qword ptr [rax+140h]                                           ; +0x105, 0x140307655\ntest    dil, dil                                                       ; +0x10c, 0x14030765c\njz      short loc_1403076D7                                            ; +0x10f, 0x14030765f\nmov     rcx, [rbx+118h]                                                ; +0x111, 0x140307661\nmov     rax, [rcx]                                                     ; +0x118, 0x140307668\nxor     edx, edx                                                       ; +0x11b, 0x14030766b\ncall    qword ptr [rax+400h]                                           ; +0x11d, 0x14030766d\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x123, 0x140307673\ntest    rcx, rcx                                                       ; +0x12a, 0x14030767a\njnz     short loc_1403076AE                                            ; +0x12d, 0x14030767d\nmov     ecx, 3D0h; Size                                                ; +0x12f, 0x14030767f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x134, 0x140307684\nmov     [rsp+28h+arg_8], rax                                           ; +0x139, 0x140307689\nmov     rcx, rax                                                       ; +0x13e, 0x14030768e\ncall    sub_140141280                                                  ; +0x141, 0x140307691\nnop                                                                    ; +0x146, 0x140307696\nmov     cs:qword_1406C2EC0, rax                                        ; +0x147, 0x140307697\nmov     rdx, [rax]                                                     ; +0x14e, 0x14030769e\nmov     rcx, rax                                                       ; +0x151, 0x1403076a1\ncall    qword ptr [rdx+48h]                                            ; +0x154, 0x1403076a4\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x157, 0x1403076a7\nmov     rdx, [rbx+140h]                                                ; +0x15e, 0x1403076ae\ncall    GameLevelManager__deleteLevelList                              ; +0x165, 0x1403076b5\nmov     rax, [rbx-228h]                                                ; +0x16a, 0x1403076ba\nxor     edx, edx                                                       ; +0x171, 0x1403076c1\nlea     rcx, [rbx-228h]                                                ; +0x173, 0x1403076c3\ncall    qword ptr [rax+410h]                                           ; +0x17a, 0x1403076ca\nmov     byte ptr [rbx+170h], 1                                         ; +0x180, 0x1403076d0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x187, 0x1403076d7\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x18c, 0x1403076dc\nadd     rsp, 20h                                                       ; +0x191, 0x1403076e1\npop     rdi                                                            ; +0x195, 0x1403076e5\nretn                                                                   ; +0x196, 0x1403076e6", "xrefs": ["<???> @ 0x140589718", "<???> @ 0x1406d44d8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}