{"type": "func", "start": 5369436160, "end": 5369436694, "name": "LevelCell::onClick", "pseudocode": "// \n// LevelCell::onClick from 0x1400b1800 to 0x1400b1a16 (534 bytes)\n// \n// 8 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x1400aea3d\n// > LevelCell::loadCustomLevelCell @ 0x1400aec4e\n// > LevelCell::loadCustomLevelCell @ 0x1400aecb3\n// > LevelCell::loadCustomLevelCell @ 0x1400aedc1\n// > LevelCell::loadCustomLevelCell @ 0x1400aeed3\n// > LevelCell::loadCustomLevelCell @ 0x1400aefcf\n// > LevelCell::loadLocalLevelCell @ 0x1400b1030\n// > <???> @ 0x1406c7a10\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=2\nvoid LevelCell::onClick(LevelCell *a1, cocos2d::CCObject *a2)\n{\n  int v4; // eax\n  int v5; // eax\n  int v6; // eax\n  __int64 v7; // r9\n  TableViewCellDelegate *m_cellDelegate; // rcx\n  __int64 v9; // rax\n  FLAlertLayer *v10; // rbx\n  GameLevelManager *v11; // rcx\n  __int128 v12; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v13; // [rsp+60h] [rbp-38h]\n  __int64 v14; // [rsp+68h] [rbp-30h]\n  _BYTE v15[40]; // [rsp+70h] [rbp-28h] BYREF\n  void *v16; // [rsp+A0h] [rbp+8h]\n\n  if ( a1->m_listType == Level4 && a2->getTag(a2) )\n  {\n    v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) - 1;\n    if ( v4 )\n    {\n      v5 = v4 - 1;\n      if ( v5 )\n      {\n        v6 = v5 - 1;\n        if ( v6 )\n        {\n          if ( v6 != 1 )\n            return;\n          v7 = 2;\n        }\n        else\n        {\n          v7 = 5;\n        }\n      }\n      else\n      {\n        v7 = 4;\n      }\n    }\n    else\n    {\n      v7 = 3;\n    }\n    m_cellDelegate = a1->m_tableView->m_cellDelegate;\n    if ( m_cellDelegate )\n      m_cellDelegate->cellPerformedAction(m_cellDelegate, a1, a1->m_listType, (CellAction)v7, nullptr);\n  }\n  else if ( a1->m_level->m_gameVersion <= 22 )\n  {\n    v11 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v16 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280(v16);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v11 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    GameLevelManager::gotoLevelPage(v11, a1->m_level);\n  }\n  else\n  {\n    v12 = 0;\n    *(_QWORD *)&v12 = sub_14003AA10(0x40u);\n    v13 = 54;\n    v14 = 63;\n    strcpy((char *)v12, \"Please update your application to download this level.\");\n    v9 = sub_14003BDB0((__int64)v15, (__int64)&v12);\n    v10 = FLAlertLayer::create(0, (int)\"Unavailable\", v9, (__int64)\"Close\", 0, 1132068864, 0, 0, 1065353216);\n    sub_14003A830((__int64)&v12);\n    v10->show(v10);\n  }\n}", "assembly": "; \n; LevelCell::onClick from 0x1400b1800 to 0x1400b1a16 (534 bytes)\n; \n; 8 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x1400aea3d\n; > LevelCell::loadCustomLevelCell @ 0x1400aec4e\n; > LevelCell::loadCustomLevelCell @ 0x1400aecb3\n; > LevelCell::loadCustomLevelCell @ 0x1400aedc1\n; > LevelCell::loadCustomLevelCell @ 0x1400aeed3\n; > LevelCell::loadCustomLevelCell @ 0x1400aefcf\n; > LevelCell::loadLocalLevelCell @ 0x1400b1030\n; > <???> @ 0x1406c7a10\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_8], rbx                                               ; +0x0, 0x1400b1800\npush    rdi                                                            ; +0x5, 0x1400b1805\nsub     rsp, 90h                                                       ; +0x6, 0x1400b1806\nmov     rdi, rdx                                                       ; +0xd, 0x1400b180d\nmov     rbx, rcx                                                       ; +0x10, 0x1400b1810\ncmp     dword ptr [rcx+228h], 1Fh                                      ; +0x13, 0x1400b1813\njnz     loc_1400B18A8                                                  ; +0x1a, 0x1400b181a\nmov     rax, [rdx]                                                     ; +0x20, 0x1400b1820\nmov     rcx, rdx                                                       ; +0x23, 0x1400b1823\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x1400b1826\ntest    eax, eax                                                       ; +0x29, 0x1400b1829\njz      short loc_1400B18A8                                            ; +0x2b, 0x1400b182b\nmov     rax, [rdi]                                                     ; +0x2d, 0x1400b182d\nmov     rcx, rdi                                                       ; +0x30, 0x1400b1830\ncall    qword ptr [rax+38h]                                            ; +0x33, 0x1400b1833\nsub     eax, 1                                                         ; +0x36, 0x1400b1836\njz      short loc_1400B1864                                            ; +0x39, 0x1400b1839\nsub     eax, 1                                                         ; +0x3b, 0x1400b183b\njz      short loc_1400B185C                                            ; +0x3e, 0x1400b183e\nsub     eax, 1                                                         ; +0x40, 0x1400b1840\njz      short loc_1400B1854                                            ; +0x43, 0x1400b1843\ncmp     eax, 1                                                         ; +0x45, 0x1400b1845\njnz     loc_1400B1A05                                                  ; +0x48, 0x1400b1848\nlea     r9d, [rax+1]                                                   ; +0x4e, 0x1400b184e\njmp     short loc_1400B186A                                            ; +0x52, 0x1400b1852\nmov     r9d, 5                                                         ; +0x54, 0x1400b1854\njmp     short loc_1400B186A                                            ; +0x5a, 0x1400b185a\nmov     r9d, 4                                                         ; +0x5c, 0x1400b185c\njmp     short loc_1400B186A                                            ; +0x62, 0x1400b1862\nmov     r9d, 3                                                         ; +0x64, 0x1400b1864\nmov     rax, [rbx+1A0h]                                                ; +0x6a, 0x1400b186a\nmov     rcx, [rax+260h]                                                ; +0x71, 0x1400b1871\ntest    rcx, rcx                                                       ; +0x78, 0x1400b1878\njz      loc_1400B1A05                                                  ; +0x7b, 0x1400b187b\nmov     rax, [rcx]                                                     ; +0x81, 0x1400b1881\nxor     edi, edi                                                       ; +0x84, 0x1400b1884\nmov     [rsp+98h+var_78], rdi                                          ; +0x86, 0x1400b1886\nmov     r8d, [rbx+228h]                                                ; +0x8b, 0x1400b188b\nmov     rdx, rbx                                                       ; +0x92, 0x1400b1892\ncall    qword ptr [rax]                                                ; +0x95, 0x1400b1895\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x97, 0x1400b1897\nadd     rsp, 90h                                                       ; +0x9f, 0x1400b189f\npop     rdi                                                            ; +0xa6, 0x1400b18a6\nretn                                                                   ; +0xa7, 0x1400b18a7\nmov     rax, [rbx+238h]                                                ; +0xa8, 0x1400b18a8\ncmp     dword ptr [rax+2ECh], 16h                                      ; +0xaf, 0x1400b18af\njle     loc_1400B19BB                                                  ; +0xb6, 0x1400b18b6\nxorps   xmm0, xmm0                                                     ; +0xbc, 0x1400b18bc\nmovups  [rsp+98h+var_48], xmm0                                         ; +0xbf, 0x1400b18bf\nxor     edi, edi                                                       ; +0xc4, 0x1400b18c4\nmov     [rsp+98h+var_38], rdi                                          ; +0xc6, 0x1400b18c6\nmov     [rsp+98h+var_30], 0Fh                                          ; +0xcb, 0x1400b18cb\nlea     ecx, [rdi+40h]                                                 ; +0xd4, 0x1400b18d4\ncall    sub_14003AA10                                                  ; +0xd7, 0x1400b18d7\nmov     rcx, rax                                                       ; +0xdc, 0x1400b18dc\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0xdf, 0x1400b18df\nmov     [rsp+98h+var_38], 36h ; '6'                                    ; +0xe4, 0x1400b18e4\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0xed, 0x1400b18ed\nmovups  xmm0, cs:xmmword_140546DB0                                     ; +0xf6, 0x1400b18f6\nmovups  xmmword ptr [rax], xmm0                                        ; +0xfd, 0x1400b18fd\nmovups  xmm1, cs:xmmword_140546DC0                                     ; +0x100, 0x1400b1900\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x107, 0x1400b1907\nmovups  xmm0, cs:xmmword_140546DD0                                     ; +0x10b, 0x1400b190b\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x112, 0x1400b1912\nmov     eax, cs:dword_140546DE0                                        ; +0x116, 0x1400b1916\nmov     [rcx+30h], eax                                                 ; +0x11c, 0x1400b191c\nmovzx   eax, cs:word_140546DE4                                         ; +0x11f, 0x1400b191f\nmov     [rcx+34h], ax                                                  ; +0x126, 0x1400b1926\nmov     [rcx+36h], dil                                                 ; +0x12a, 0x1400b192a\nlea     rax, [rsp+98h+var_48]                                          ; +0x12e, 0x1400b192e\nmov     [rsp+98h+arg_0], rax                                           ; +0x133, 0x1400b1933\nlea     rdx, [rsp+98h+var_48]                                          ; +0x13b, 0x1400b193b\nlea     rcx, [rsp+98h+var_28]                                          ; +0x140, 0x1400b1940\ncall    sub_14003BDB0                                                  ; +0x145, 0x1400b1945\nmovss   xmm0, cs:flt_140622C24                                         ; +0x14a, 0x1400b194a\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x152, 0x1400b1952\nxorps   xmm1, xmm1                                                     ; +0x158, 0x1400b1958\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x15b, 0x1400b195b\nmov     [rsp+98h+var_68], dil                                          ; +0x161, 0x1400b1961\nmovss   xmm0, cs:dword_140623410                                       ; +0x166, 0x1400b1966\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x16e, 0x1400b196e\nmov     [rsp+98h+var_78], rdi                                          ; +0x174, 0x1400b1974\nlea     r9, aClose; \"Close\"                                            ; +0x179, 0x1400b1979\nmov     r8, rax                                                        ; +0x180, 0x1400b1980\nlea     rdx, aUnavailable; \"Unavailable\"                               ; +0x183, 0x1400b1983\nxor     ecx, ecx                                                       ; +0x18a, 0x1400b198a\ncall    FLAlertLayer__create                                           ; +0x18c, 0x1400b198c\nmov     rbx, rax                                                       ; +0x191, 0x1400b1991\nlea     rcx, [rsp+98h+var_48]                                          ; +0x194, 0x1400b1994\ncall    sub_14003A830                                                  ; +0x199, 0x1400b1999\nmov     rdx, [rbx]                                                     ; +0x19e, 0x1400b199e\nmov     rcx, rbx                                                       ; +0x1a1, 0x1400b19a1\ncall    qword ptr [rdx+410h]                                           ; +0x1a4, 0x1400b19a4\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x1aa, 0x1400b19aa\nadd     rsp, 90h                                                       ; +0x1b2, 0x1400b19b2\npop     rdi                                                            ; +0x1b9, 0x1400b19b9\nretn                                                                   ; +0x1ba, 0x1400b19ba\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x1bb, 0x1400b19bb\ntest    rcx, rcx                                                       ; +0x1c2, 0x1400b19c2\njnz     short loc_1400B19F9                                            ; +0x1c5, 0x1400b19c5\nmov     ecx, 3D0h; Size                                                ; +0x1c7, 0x1400b19c7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1cc, 0x1400b19cc\nmov     [rsp+98h+arg_0], rax                                           ; +0x1d1, 0x1400b19d1\nmov     rcx, rax                                                       ; +0x1d9, 0x1400b19d9\ncall    sub_140141280                                                  ; +0x1dc, 0x1400b19dc\nnop                                                                    ; +0x1e1, 0x1400b19e1\nmov     cs:qword_1406C2EC0, rax                                        ; +0x1e2, 0x1400b19e2\nmov     rdx, [rax]                                                     ; +0x1e9, 0x1400b19e9\nmov     rcx, rax                                                       ; +0x1ec, 0x1400b19ec\ncall    qword ptr [rdx+48h]                                            ; +0x1ef, 0x1400b19ef\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x1f2, 0x1400b19f2\nmov     rdx, [rbx+238h]                                                ; +0x1f9, 0x1400b19f9\ncall    GameLevelManager__gotoLevelPage                                ; +0x200, 0x1400b1a00\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x205, 0x1400b1a05\nadd     rsp, 90h                                                       ; +0x20d, 0x1400b1a0d\npop     rdi                                                            ; +0x214, 0x1400b1a14\nretn                                                                   ; +0x215, 0x1400b1a15", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x1400aea3d", "LevelCell::loadCustomLevelCell @ 0x1400aec4e", "LevelCell::loadCustomLevelCell @ 0x1400aecb3", "LevelCell::loadCustomLevelCell @ 0x1400aedc1", "LevelCell::loadCustomLevelCell @ 0x1400aeed3", "LevelCell::loadCustomLevelCell @ 0x1400aefcf", "LevelCell::loadLocalLevelCell @ 0x1400b1030", "<???> @ 0x1406c7a10"], "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"}