{"type": "func", "start": 5370148944, "end": 5370149441, "name": "LevelListCell::onClick", "pseudocode": "// \n// LevelListCell::onClick from 0x14015f850 to 0x14015fa41 (497 bytes)\n// \n// 2 xrefs:\n// > LevelListCell::loadFromList @ 0x14015ea83\n// > <???> @ 0x140917c78\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:24 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nchar __fastcall LevelListCell::onClick(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 (__fastcall ***v3)(_QWORD, __int64, __int64, __int64, _QWORD); // rcx\n  __int64 v4; // r8\n  __int64 v5; // rdi\n  __int64 v6; // rcx\n  struct cocos2d::CCScene *v7; // rax\n  struct cocos2d::CCScene *v8; // rbx\n  __int64 v9; // rcx\n  cocos2d::CCDirector *v10; // rax\n  struct cocos2d::CCScene *v11; // rax\n  struct cocos2d::CCScene *v12; // rbx\n  __int64 v13; // rcx\n  cocos2d::CCDirector *v14; // rax\n  void *v16; // [rsp+40h] [rbp+8h]\n  void *v17; // [rsp+40h] [rbp+8h]\n  void *v18; // [rsp+40h] [rbp+8h]\n\n  if ( *(_BYTE *)(a1 + 568) )\n  {\n    v2 = *(_QWORD *)(a1 + 416);\n    v3 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(v2 + 624);\n    if ( v3 )\n    {\n      v4 = 28;\n      if ( *(_BYTE *)(a1 + 569) )\n        v4 = 39;\n      LOBYTE(v2) = (**v3)(v3, a1, v4, 1, 0);\n    }\n  }\n  else\n  {\n    v5 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v16 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v16);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v5 = qword_14090BFD0;\n    }\n    if ( (unsigned __int8)GameManager::getGameVariable(v5, \"0218\")\n      || (unsigned __int8)GameManager::getGameVariable(v5, \"0219\")\n      || (unsigned __int8)GameManager::getGameVariable(v5, \"0077\") )\n    {\n      if ( !qword_14090BFD0 )\n      {\n        v18 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager(v18);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      }\n      LOBYTE(v2) = GameManager::showParentalRestrictedAlert();\n    }\n    else\n    {\n      v6 = *(_QWORD *)(a1 + 560);\n      if ( *(_DWORD *)(v6 + 584) == 2 )\n      {\n        v7 = (struct cocos2d::CCScene *)LevelListLayer::scene(v6);\n        v8 = cocos2d::CCTransitionFade::create(0.5, v7);\n        v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);\n        LOBYTE(v2) = cocos2d::CCDirector::replaceScene(v10, v8);\n      }\n      else\n      {\n        if ( !*(_QWORD *)&qword_14090BFB0 )\n        {\n          v17 = operator new(0x690u);\n          *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v17);\n          (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        }\n        GameLevelManager::updateSavedLevelList(v6, *(_QWORD *)(a1 + 560));\n        v11 = (struct cocos2d::CCScene *)LevelListLayer::scene(*(_QWORD *)(a1 + 560));\n        v12 = cocos2d::CCTransitionFade::create(0.5, v11);\n        v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13);\n        LOBYTE(v2) = cocos2d::CCDirector::pushScene(v14, v12);\n      }\n    }\n  }\n  return v2;\n}", "assembly": "; \n; LevelListCell::onClick from 0x14015f850 to 0x14015fa41 (497 bytes)\n; \n; 2 xrefs:\n; > LevelListCell::loadFromList @ 0x14015ea83\n; > <???> @ 0x140917c78\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:24 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14015f850\npush    rdi                                                            ; +0x5, 0x14015f855\nsub     rsp, 30h                                                       ; +0x6, 0x14015f856\nmov     rbx, rcx                                                       ; +0xa, 0x14015f85a\ncmp     byte ptr [rcx+238h], 0                                         ; +0xd, 0x14015f85d\njz      short loc_14015F8B5                                            ; +0x14, 0x14015f864\nmov     rax, [rcx+1A0h]                                                ; +0x16, 0x14015f866\nmov     rcx, [rax+270h]                                                ; +0x1d, 0x14015f86d\ntest    rcx, rcx                                                       ; +0x24, 0x14015f874\njz      loc_14015FA36                                                  ; +0x27, 0x14015f877\nmov     eax, 27h ; '''                                                 ; +0x2d, 0x14015f87d\nmov     r8d, 1Ch                                                       ; +0x32, 0x14015f882\ncmp     byte ptr [rbx+239h], 0                                         ; +0x38, 0x14015f888\ncmovnz  r8d, eax                                                       ; +0x3f, 0x14015f88f\nmov     rax, [rcx]                                                     ; +0x43, 0x14015f893\nmov     [rsp+38h+var_18], 0                                            ; +0x46, 0x14015f896\nmov     r9d, 1                                                         ; +0x4f, 0x14015f89f\nmov     rdx, rbx                                                       ; +0x55, 0x14015f8a5\ncall    qword ptr [rax]                                                ; +0x58, 0x14015f8a8\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x5a, 0x14015f8aa\nadd     rsp, 30h                                                       ; +0x5f, 0x14015f8af\npop     rdi                                                            ; +0x63, 0x14015f8b3\nretn                                                                   ; +0x64, 0x14015f8b4\nmov     rdi, cs:qword_14090BFD0                                        ; +0x65, 0x14015f8b5\ntest    rdi, rdi                                                       ; +0x6c, 0x14015f8bc\njnz     short loc_14015F8F3                                            ; +0x6f, 0x14015f8bf\nmov     ecx, 6E8h; Size                                                ; +0x71, 0x14015f8c1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x76, 0x14015f8c6\nmov     [rsp+38h+arg_0], rax                                           ; +0x7b, 0x14015f8cb\nmov     rcx, rax                                                       ; +0x80, 0x14015f8d0\ncall    GameManager__GameManager                                       ; +0x83, 0x14015f8d3\nnop                                                                    ; +0x88, 0x14015f8d8\nmov     cs:qword_14090BFD0, rax                                        ; +0x89, 0x14015f8d9\nmov     rcx, [rax]                                                     ; +0x90, 0x14015f8e0\nmov     rdx, [rcx+48h]                                                 ; +0x93, 0x14015f8e3\nmov     rcx, rax                                                       ; +0x97, 0x14015f8e7\ncall    rdx                                                            ; +0x9a, 0x14015f8ea\nmov     rdi, cs:qword_14090BFD0                                        ; +0x9c, 0x14015f8ec\nlea     rdx, a0218; \"0218\"                                             ; +0xa3, 0x14015f8f3\nmov     rcx, rdi                                                       ; +0xaa, 0x14015f8fa\ncall    GameManager__getGameVariable                                   ; +0xad, 0x14015f8fd\ntest    al, al                                                         ; +0xb2, 0x14015f902\njnz     loc_14015F9FC                                                  ; +0xb4, 0x14015f904\nlea     rdx, a0219; \"0219\"                                             ; +0xba, 0x14015f90a\nmov     rcx, rdi                                                       ; +0xc1, 0x14015f911\ncall    GameManager__getGameVariable                                   ; +0xc4, 0x14015f914\ntest    al, al                                                         ; +0xc9, 0x14015f919\njnz     loc_14015F9FC                                                  ; +0xcb, 0x14015f91b\nlea     rdx, a0077; \"0077\"                                             ; +0xd1, 0x14015f921\nmov     rcx, rdi                                                       ; +0xd8, 0x14015f928\ncall    GameManager__getGameVariable                                   ; +0xdb, 0x14015f92b\ntest    al, al                                                         ; +0xe0, 0x14015f930\njnz     loc_14015F9FC                                                  ; +0xe2, 0x14015f932\nmov     rcx, [rbx+230h]                                                ; +0xe8, 0x14015f938\ncmp     dword ptr [rcx+248h], 2                                        ; +0xef, 0x14015f93f\njnz     short loc_14015F97E                                            ; +0xf6, 0x14015f946\ncall    LevelListLayer__scene                                          ; +0xf8, 0x14015f948\nmov     rdx, rax                                                       ; +0xfd, 0x14015f94d\nmovss   xmm0, cs:dword_140834F20                                       ; +0x100, 0x14015f950\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x108, 0x14015f958\nmov     rbx, rax                                                       ; +0x10e, 0x14015f95e\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x111, 0x14015f961\nmov     rcx, rax                                                       ; +0x117, 0x14015f967\nmov     rdx, rbx                                                       ; +0x11a, 0x14015f96a\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x11d, 0x14015f96d\nadd     rsp, 30h                                                       ; +0x122, 0x14015f972\npop     rdi                                                            ; +0x126, 0x14015f976\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x127, 0x14015f977\ncmp     cs:qword_14090BFB0, 0                                          ; +0x12e, 0x14015f97e\njnz     short loc_14015F9B3                                            ; +0x136, 0x14015f986\nmov     ecx, 690h; Size                                                ; +0x138, 0x14015f988\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x13d, 0x14015f98d\nmov     [rsp+38h+arg_0], rax                                           ; +0x142, 0x14015f992\nmov     rcx, rax                                                       ; +0x147, 0x14015f997\ncall    GameLevelManager__GameLevelManager                             ; +0x14a, 0x14015f99a\nnop                                                                    ; +0x14f, 0x14015f99f\nmov     cs:qword_14090BFB0, rax                                        ; +0x150, 0x14015f9a0\nmov     rcx, [rax]                                                     ; +0x157, 0x14015f9a7\nmov     rdx, [rcx+48h]                                                 ; +0x15a, 0x14015f9aa\nmov     rcx, rax                                                       ; +0x15e, 0x14015f9ae\ncall    rdx                                                            ; +0x161, 0x14015f9b1\nmov     rdx, [rbx+230h]                                                ; +0x163, 0x14015f9b3\ncall    GameLevelManager__updateSavedLevelList                         ; +0x16a, 0x14015f9ba\nmov     rcx, [rbx+230h]                                                ; +0x16f, 0x14015f9bf\ncall    LevelListLayer__scene                                          ; +0x176, 0x14015f9c6\nmov     rdx, rax                                                       ; +0x17b, 0x14015f9cb\nmovss   xmm0, cs:dword_140834F20                                       ; +0x17e, 0x14015f9ce\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x186, 0x14015f9d6\nmov     rbx, rax                                                       ; +0x18c, 0x14015f9dc\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x18f, 0x14015f9df\nmov     rcx, rax                                                       ; +0x195, 0x14015f9e5\nmov     rdx, rbx                                                       ; +0x198, 0x14015f9e8\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x19b, 0x14015f9eb\nadd     rsp, 30h                                                       ; +0x1a0, 0x14015f9f0\npop     rdi                                                            ; +0x1a4, 0x14015f9f4\njmp     cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x1a5, 0x14015f9f5\ncmp     cs:qword_14090BFD0, 0                                          ; +0x1ac, 0x14015f9fc\njnz     short loc_14015FA31                                            ; +0x1b4, 0x14015fa04\nmov     ecx, 6E8h; Size                                                ; +0x1b6, 0x14015fa06\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1bb, 0x14015fa0b\nmov     [rsp+38h+arg_0], rax                                           ; +0x1c0, 0x14015fa10\nmov     rcx, rax                                                       ; +0x1c5, 0x14015fa15\ncall    GameManager__GameManager                                       ; +0x1c8, 0x14015fa18\nnop                                                                    ; +0x1cd, 0x14015fa1d\nmov     cs:qword_14090BFD0, rax                                        ; +0x1ce, 0x14015fa1e\nmov     rcx, [rax]                                                     ; +0x1d5, 0x14015fa25\nmov     rdx, [rcx+48h]                                                 ; +0x1d8, 0x14015fa28\nmov     rcx, rax                                                       ; +0x1dc, 0x14015fa2c\ncall    rdx                                                            ; +0x1df, 0x14015fa2f\ncall    GameManager__showParentalRestrictedAlert                       ; +0x1e1, 0x14015fa31\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x1e6, 0x14015fa36\nadd     rsp, 30h                                                       ; +0x1eb, 0x14015fa3b\npop     rdi                                                            ; +0x1ef, 0x14015fa3f\nretn                                                                   ; +0x1f0, 0x14015fa40", "xrefs": ["LevelListCell::loadFromList @ 0x14015ea83", "<???> @ 0x140917c78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}