{"type": "func", "start": 5370073600, "end": 5370074387, "name": "LevelCell::onClick", "pseudocode": "// \n// LevelCell::onClick from 0x14014d200 to 0x14014d513 (787 bytes)\n// \n// 8 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x140149d0f\n// > LevelCell::loadCustomLevelCell @ 0x14014a2d6\n// > LevelCell::loadCustomLevelCell @ 0x14014a340\n// > LevelCell::loadCustomLevelCell @ 0x14014a460\n// > LevelCell::loadCustomLevelCell @ 0x14014a57c\n// > LevelCell::loadCustomLevelCell @ 0x14014a67e\n// > LevelCell::loadLocalLevelCell @ 0x14014cac2\n// > <???> @ 0x140917648\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:16 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall LevelCell::onClick(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 (__fastcall ***v5)(_QWORD, __int64, __int64, __int64, _QWORD); // rcx\n  __int64 v6; // r9\n  __int64 v7; // r8\n  int v8; // eax\n  int v9; // eax\n  __int64 v10; // rax\n  cocos2d::CCObject *v11; // rbx\n  __int64 v12; // rdi\n  _DWORD *v13; // rax\n  __int64 v14; // rcx\n  __int128 v15; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v16; // [rsp+60h] [rbp-38h]\n  __int64 v17; // [rsp+68h] [rbp-30h]\n  _BYTE v18[40]; // [rsp+70h] [rbp-28h] BYREF\n  void *v19; // [rsp+A0h] [rbp+8h]\n  void *v20; // [rsp+A0h] [rbp+8h]\n\n  if ( *(_BYTE *)(a1 + 576) )\n  {\n    result = *(_QWORD *)(a1 + 416);\n    v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 624);\n    if ( !v5 )\n      return result;\n    v6 = 1;\n    v7 = 37;\n    return (**v5)(v5, a1, v7, v6, 0);\n  }\n  if ( *(_DWORD *)(a1 + 552) == 29 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) )\n  {\n    v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) - 1;\n    if ( v8 )\n    {\n      v9 = v8 - 1;\n      if ( v9 )\n      {\n        result = (unsigned int)(v9 - 1);\n        if ( (_DWORD)result )\n        {\n          if ( (_DWORD)result != 1 )\n            return result;\n          v6 = 2;\n        }\n        else\n        {\n          v6 = 5;\n        }\n      }\n      else\n      {\n        v6 = 4;\n      }\n    }\n    else\n    {\n      v6 = 3;\n    }\n    result = *(_QWORD *)(a1 + 416);\n    v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 624);\n    if ( v5 )\n    {\nLABEL_28:\n      v7 = *(unsigned int *)(a1 + 552);\n      return (**v5)(v5, a1, v7, v6, 0);\n    }\n  }\n  else\n  {\n    if ( *(int *)(*(_QWORD *)(a1 + 568) + 864LL) > 22 )\n    {\n      v15 = 0;\n      *(_QWORD *)&v15 = sub_14003D460(0x40u);\n      v16 = 54;\n      v17 = 63;\n      strcpy((char *)v15, \"Please update your application to download this level.\");\n      v10 = sub_14003F4F0((__int64)v18, (__int64)&v15);\n      v11 = FLAlertLayer::create(0, (int)\"Unavailable\", v10, (__int64)\"Close\", 0, 1132068864, 0, 0, 1065353216);\n      sub_14003D310((__int64)&v15);\n      return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v11 + 1064LL))(v11);\n    }\n    if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 5\n      || (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 6 )\n    {\n      v6 = (unsigned int)((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) != 5) + 9;\n      result = *(_QWORD *)(a1 + 416);\n      v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 624);\n      if ( !v5 )\n        return result;\n      goto LABEL_28;\n    }\n    if ( *(int *)(*(_QWORD *)(a1 + 568) + 1412LL) <= 0 )\n    {\n      v14 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v20 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v20);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v14 = *(_QWORD *)&qword_14090BFB0;\n      }\n      return GameLevelManager::gotoLevelPage(v14, *(_QWORD *)(a1 + 568));\n    }\n    else\n    {\n      v12 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v19 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v19);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v12 = *(_QWORD *)&qword_14090BFB0;\n      }\n      v13 = LevelCell::recallLevel(a1);\n      return GameLevelManager::gotoLevelPage(v12, v13);\n    }\n  }\n  return result;\n}", "assembly": "; \n; LevelCell::onClick from 0x14014d200 to 0x14014d513 (787 bytes)\n; \n; 8 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x140149d0f\n; > LevelCell::loadCustomLevelCell @ 0x14014a2d6\n; > LevelCell::loadCustomLevelCell @ 0x14014a340\n; > LevelCell::loadCustomLevelCell @ 0x14014a460\n; > LevelCell::loadCustomLevelCell @ 0x14014a57c\n; > LevelCell::loadCustomLevelCell @ 0x14014a67e\n; > LevelCell::loadLocalLevelCell @ 0x14014cac2\n; > <???> @ 0x140917648\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:16 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14014d200\npush    rdi                                                            ; +0x5, 0x14014d205\nsub     rsp, 90h                                                       ; +0x6, 0x14014d206\nmov     rdi, rdx                                                       ; +0xd, 0x14014d20d\nmov     rbx, rcx                                                       ; +0x10, 0x14014d210\ncmp     byte ptr [rcx+240h], 0                                         ; +0x13, 0x14014d213\njz      short loc_14014D246                                            ; +0x1a, 0x14014d21a\nmov     rax, [rcx+1A0h]                                                ; +0x1c, 0x14014d21c\nmov     rcx, [rax+270h]                                                ; +0x23, 0x14014d223\ntest    rcx, rcx                                                       ; +0x2a, 0x14014d22a\njz      loc_14014D502                                                  ; +0x2d, 0x14014d22d\nxor     edi, edi                                                       ; +0x33, 0x14014d233\nmov     r9d, 1                                                         ; +0x35, 0x14014d235\nmov     r8d, 25h ; '%'                                                 ; +0x3b, 0x14014d23b\njmp     loc_14014D4F5                                                  ; +0x41, 0x14014d241\ncmp     dword ptr [rcx+228h], 1Dh                                      ; +0x46, 0x14014d246\njnz     short loc_14014D2B9                                            ; +0x4d, 0x14014d24d\nmov     rax, [rdx]                                                     ; +0x4f, 0x14014d24f\nmov     rcx, rdi                                                       ; +0x52, 0x14014d252\ncall    qword ptr [rax+38h]                                            ; +0x55, 0x14014d255\ntest    eax, eax                                                       ; +0x58, 0x14014d258\njz      short loc_14014D2B9                                            ; +0x5a, 0x14014d25a\nmov     rax, [rdi]                                                     ; +0x5c, 0x14014d25c\nmov     rcx, rdi                                                       ; +0x5f, 0x14014d25f\ncall    qword ptr [rax+38h]                                            ; +0x62, 0x14014d262\nsub     eax, 1                                                         ; +0x65, 0x14014d265\njz      short loc_14014D295                                            ; +0x68, 0x14014d268\nsub     eax, 1                                                         ; +0x6a, 0x14014d26a\njz      short loc_14014D28D                                            ; +0x6d, 0x14014d26d\nsub     eax, 1                                                         ; +0x6f, 0x14014d26f\njz      short loc_14014D285                                            ; +0x72, 0x14014d272\ncmp     eax, 1                                                         ; +0x74, 0x14014d274\njnz     loc_14014D502                                                  ; +0x77, 0x14014d277\nmov     r9d, 2                                                         ; +0x7d, 0x14014d27d\njmp     short loc_14014D29B                                            ; +0x83, 0x14014d283\nmov     r9d, 5                                                         ; +0x85, 0x14014d285\njmp     short loc_14014D29B                                            ; +0x8b, 0x14014d28b\nmov     r9d, 4                                                         ; +0x8d, 0x14014d28d\njmp     short loc_14014D29B                                            ; +0x93, 0x14014d293\nmov     r9d, 3                                                         ; +0x95, 0x14014d295\nmov     rax, [rbx+1A0h]                                                ; +0x9b, 0x14014d29b\nmov     rcx, [rax+270h]                                                ; +0xa2, 0x14014d2a2\ntest    rcx, rcx                                                       ; +0xa9, 0x14014d2a9\njz      loc_14014D502                                                  ; +0xac, 0x14014d2ac\nxor     edi, edi                                                       ; +0xb2, 0x14014d2b2\njmp     loc_14014D4EE                                                  ; +0xb4, 0x14014d2b4\nmov     rax, [rbx+238h]                                                ; +0xb9, 0x14014d2b9\ncmp     dword ptr [rax+360h], 16h                                      ; +0xc0, 0x14014d2c0\njle     loc_14014D3CD                                                  ; +0xc7, 0x14014d2c7\nxorps   xmm0, xmm0                                                     ; +0xcd, 0x14014d2cd\nmovups  [rsp+98h+var_48], xmm0                                         ; +0xd0, 0x14014d2d0\nxor     edi, edi                                                       ; +0xd5, 0x14014d2d5\nmov     [rsp+98h+var_38], rdi                                          ; +0xd7, 0x14014d2d7\nmov     [rsp+98h+var_30], rdi                                          ; +0xdc, 0x14014d2dc\nmov     ecx, 40h ; '@'                                                 ; +0xe1, 0x14014d2e1\ncall    sub_14003D460                                                  ; +0xe6, 0x14014d2e6\nmov     rdx, rax                                                       ; +0xeb, 0x14014d2eb\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0xee, 0x14014d2ee\nmov     [rsp+98h+var_38], 36h ; '6'                                    ; +0xf3, 0x14014d2f3\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0xfc, 0x14014d2fc\nmovups  xmm0, cs:xmmword_140739E48                                     ; +0x105, 0x14014d305\nmovups  xmmword ptr [rax], xmm0                                        ; +0x10c, 0x14014d30c\nmovups  xmm1, cs:xmmword_140739E58                                     ; +0x10f, 0x14014d30f\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x116, 0x14014d316\nmovups  xmm0, cs:xmmword_140739E68                                     ; +0x11a, 0x14014d31a\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x121, 0x14014d321\nmov     ecx, cs:dword_140739E78                                        ; +0x125, 0x14014d325\nmov     [rax+30h], ecx                                                 ; +0x12b, 0x14014d32b\nmovzx   eax, cs:word_140739E7C                                         ; +0x12e, 0x14014d32e\nmov     [rdx+34h], ax                                                  ; +0x135, 0x14014d335\nmov     [rdx+36h], dil                                                 ; +0x139, 0x14014d339\nlea     rax, [rsp+98h+var_48]                                          ; +0x13d, 0x14014d33d\nmov     [rsp+98h+arg_0], rax                                           ; +0x142, 0x14014d342\nlea     rdx, [rsp+98h+var_48]                                          ; +0x14a, 0x14014d34a\nlea     rcx, [rsp+98h+var_28]                                          ; +0x14f, 0x14014d34f\ncall    sub_14003F4F0                                                  ; +0x154, 0x14014d354\nmovss   xmm0, cs:flt_140835080                                         ; +0x159, 0x14014d359\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x161, 0x14014d361\nxorps   xmm1, xmm1                                                     ; +0x167, 0x14014d367\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x16a, 0x14014d36a\nmov     [rsp+98h+var_68], dil                                          ; +0x170, 0x14014d370\nmovss   xmm0, cs:dword_14083595C                                       ; +0x175, 0x14014d375\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x17d, 0x14014d37d\nmov     [rsp+98h+var_78], rdi                                          ; +0x183, 0x14014d383\nlea     r9, aClose; \"Close\"                                            ; +0x188, 0x14014d388\nmov     r8, rax                                                        ; +0x18f, 0x14014d38f\nlea     rdx, aUnavailable; \"Unavailable\"                               ; +0x192, 0x14014d392\nxor     ecx, ecx                                                       ; +0x199, 0x14014d399\ncall    FLAlertLayer__create                                           ; +0x19b, 0x14014d39b\nmov     rbx, rax                                                       ; +0x1a0, 0x14014d3a0\nlea     rcx, [rsp+98h+var_48]                                          ; +0x1a3, 0x14014d3a3\ncall    sub_14003D310                                                  ; +0x1a8, 0x14014d3a8\nmov     rcx, [rbx]                                                     ; +0x1ad, 0x14014d3ad\nmov     rdx, [rcx+428h]                                                ; +0x1b0, 0x14014d3b0\nmov     rcx, rbx                                                       ; +0x1b7, 0x14014d3b7\ncall    rdx                                                            ; +0x1ba, 0x14014d3ba\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x1bc, 0x14014d3bc\nadd     rsp, 90h                                                       ; +0x1c4, 0x14014d3c4\npop     rdi                                                            ; +0x1cb, 0x14014d3cb\nretn                                                                   ; +0x1cc, 0x14014d3cc\nmov     rax, [rdi]                                                     ; +0x1cd, 0x14014d3cd\nmov     rcx, rdi                                                       ; +0x1d0, 0x14014d3d0\ncall    qword ptr [rax+38h]                                            ; +0x1d3, 0x14014d3d3\ncmp     eax, 5                                                         ; +0x1d6, 0x14014d3d6\njz      loc_14014D4C2                                                  ; +0x1d9, 0x14014d3d9\nmov     rax, [rdi]                                                     ; +0x1df, 0x14014d3df\nmov     rcx, rdi                                                       ; +0x1e2, 0x14014d3e2\ncall    qword ptr [rax+38h]                                            ; +0x1e5, 0x14014d3e5\ncmp     eax, 6                                                         ; +0x1e8, 0x14014d3e8\njz      loc_14014D4C2                                                  ; +0x1eb, 0x14014d3eb\nmov     rax, [rbx+238h]                                                ; +0x1f1, 0x14014d3f1\ncmp     dword ptr [rax+584h], 0                                        ; +0x1f8, 0x14014d3f8\njle     short loc_14014D465                                            ; +0x1ff, 0x14014d3ff\nmov     rdi, cs:qword_14090BFB0                                        ; +0x201, 0x14014d401\ntest    rdi, rdi                                                       ; +0x208, 0x14014d408\njnz     short loc_14014D442                                            ; +0x20b, 0x14014d40b\nmov     ecx, 690h; Size                                                ; +0x20d, 0x14014d40d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x212, 0x14014d412\nmov     [rsp+98h+arg_0], rax                                           ; +0x217, 0x14014d417\nmov     rcx, rax                                                       ; +0x21f, 0x14014d41f\ncall    GameLevelManager__GameLevelManager                             ; +0x222, 0x14014d422\nnop                                                                    ; +0x227, 0x14014d427\nmov     cs:qword_14090BFB0, rax                                        ; +0x228, 0x14014d428\nmov     rcx, [rax]                                                     ; +0x22f, 0x14014d42f\nmov     rdx, [rcx+48h]                                                 ; +0x232, 0x14014d432\nmov     rcx, rax                                                       ; +0x236, 0x14014d436\ncall    rdx                                                            ; +0x239, 0x14014d439\nmov     rdi, cs:qword_14090BFB0                                        ; +0x23b, 0x14014d43b\nmov     rcx, rbx                                                       ; +0x242, 0x14014d442\ncall    LevelCell__recallLevel                                         ; +0x245, 0x14014d445\nmov     rdx, rax                                                       ; +0x24a, 0x14014d44a\nmov     rcx, rdi                                                       ; +0x24d, 0x14014d44d\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x250, 0x14014d450\nadd     rsp, 90h                                                       ; +0x258, 0x14014d458\npop     rdi                                                            ; +0x25f, 0x14014d45f\njmp     GameLevelManager__gotoLevelPage                                ; +0x260, 0x14014d460\nmov     rcx, cs:qword_14090BFB0                                        ; +0x265, 0x14014d465\ntest    rcx, rcx                                                       ; +0x26c, 0x14014d46c\njnz     short loc_14014D4A6                                            ; +0x26f, 0x14014d46f\nmov     ecx, 690h; Size                                                ; +0x271, 0x14014d471\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x276, 0x14014d476\nmov     [rsp+98h+arg_0], rax                                           ; +0x27b, 0x14014d47b\nmov     rcx, rax                                                       ; +0x283, 0x14014d483\ncall    GameLevelManager__GameLevelManager                             ; +0x286, 0x14014d486\nnop                                                                    ; +0x28b, 0x14014d48b\nmov     cs:qword_14090BFB0, rax                                        ; +0x28c, 0x14014d48c\nmov     rcx, [rax]                                                     ; +0x293, 0x14014d493\nmov     rdx, [rcx+48h]                                                 ; +0x296, 0x14014d496\nmov     rcx, rax                                                       ; +0x29a, 0x14014d49a\ncall    rdx                                                            ; +0x29d, 0x14014d49d\nmov     rcx, cs:qword_14090BFB0                                        ; +0x29f, 0x14014d49f\nmov     rdx, [rbx+238h]                                                ; +0x2a6, 0x14014d4a6\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x2ad, 0x14014d4ad\nadd     rsp, 90h                                                       ; +0x2b5, 0x14014d4b5\npop     rdi                                                            ; +0x2bc, 0x14014d4bc\njmp     GameLevelManager__gotoLevelPage                                ; +0x2bd, 0x14014d4bd\nmov     rax, [rdi]                                                     ; +0x2c2, 0x14014d4c2\nmov     rcx, rdi                                                       ; +0x2c5, 0x14014d4c5\ncall    qword ptr [rax+38h]                                            ; +0x2c8, 0x14014d4c8\nxor     edi, edi                                                       ; +0x2cb, 0x14014d4cb\nmov     r9d, edi                                                       ; +0x2cd, 0x14014d4cd\ncmp     eax, 5                                                         ; +0x2d0, 0x14014d4d0\nsetnz   r9b                                                            ; +0x2d3, 0x14014d4d3\nadd     r9d, 9                                                         ; +0x2d7, 0x14014d4d7\nmov     rax, [rbx+1A0h]                                                ; +0x2db, 0x14014d4db\nmov     rcx, [rax+270h]                                                ; +0x2e2, 0x14014d4e2\ntest    rcx, rcx                                                       ; +0x2e9, 0x14014d4e9\njz      short loc_14014D502                                            ; +0x2ec, 0x14014d4ec\nmov     r8d, [rbx+228h]                                                ; +0x2ee, 0x14014d4ee\nmov     [rsp+98h+var_78], rdi                                          ; +0x2f5, 0x14014d4f5\nmov     rax, [rcx]                                                     ; +0x2fa, 0x14014d4fa\nmov     rdx, rbx                                                       ; +0x2fd, 0x14014d4fd\ncall    qword ptr [rax]                                                ; +0x300, 0x14014d500\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x302, 0x14014d502\nadd     rsp, 90h                                                       ; +0x30a, 0x14014d50a\npop     rdi                                                            ; +0x311, 0x14014d511\nretn                                                                   ; +0x312, 0x14014d512", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x140149d0f", "LevelCell::loadCustomLevelCell @ 0x14014a2d6", "LevelCell::loadCustomLevelCell @ 0x14014a340", "LevelCell::loadCustomLevelCell @ 0x14014a460", "LevelCell::loadCustomLevelCell @ 0x14014a57c", "LevelCell::loadCustomLevelCell @ 0x14014a67e", "LevelCell::loadLocalLevelCell @ 0x14014cac2", "<???> @ 0x140917648"], "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"}