{"type": "func", "start": 5371848864, "end": 5371849092, "name": "LevelInfoLayer::onLike", "pseudocode": "// \n// LevelInfoLayer::onLike from 0x1402fe8a0 to 0x1402fe984 (228 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x1402f8446\n// > <???> @ 0x1406d4298\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 LevelInfoLayer::onLike(LevelInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rdx\n  GameLevelManager *v4; // rcx\n  LikeItemLayer *v5; // rax\n  void *v6; // [rsp+30h] [rbp+8h]\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  if ( !a1->m_isBusy )\n  {\n    v3 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v6 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v3 = qword_1406C2ED8;\n    }\n    if ( *(_DWORD *)(v3 + 652) == *(_DWORD *)(v3 + 656) )\n    {\n      v4 = (GameLevelManager *)qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v7 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280((__int64)v7);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v4 = (GameLevelManager *)qword_1406C2EC0;\n      }\n      GameLevelManager::updateUserScore(v4);\n    }\n    v5 = LikeItemLayer::create((LikeItemType)1, a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed, 0);\n    v5->m_likeDelegate = &a1->LikeItemDelegate;\n    v5->show(v5);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onLike from 0x1402fe8a0 to 0x1402fe984 (228 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x1402f8446\n; > <???> @ 0x1406d4298\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\npush    rbx                                                            ; +0x0, 0x1402fe8a0\nsub     rsp, 20h                                                       ; +0x2, 0x1402fe8a2\nmov     rbx, rcx                                                       ; +0x6, 0x1402fe8a6\ncmp     byte ptr [rcx+1E0h], 0                                         ; +0x9, 0x1402fe8a9\njnz     loc_1402FE97E                                                  ; +0x10, 0x1402fe8b0\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x16, 0x1402fe8b6\ntest    rdx, rdx                                                       ; +0x1d, 0x1402fe8bd\njnz     short loc_1402FE8F1                                            ; +0x20, 0x1402fe8c0\nmov     ecx, 668h; Size                                                ; +0x22, 0x1402fe8c2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x1402fe8c7\nmov     [rsp+28h+arg_0], rax                                           ; +0x2c, 0x1402fe8cc\nmov     rcx, rax                                                       ; +0x31, 0x1402fe8d1\ncall    sub_14017AB00                                                  ; +0x34, 0x1402fe8d4\nnop                                                                    ; +0x39, 0x1402fe8d9\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3a, 0x1402fe8da\nmov     rdx, [rax]                                                     ; +0x41, 0x1402fe8e1\nmov     rcx, rax                                                       ; +0x44, 0x1402fe8e4\ncall    qword ptr [rdx+48h]                                            ; +0x47, 0x1402fe8e7\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x4a, 0x1402fe8ea\nmov     eax, [rdx+28Ch]                                                ; +0x51, 0x1402fe8f1\ncmp     eax, [rdx+290h]                                                ; +0x57, 0x1402fe8f7\njnz     short loc_1402FE93F                                            ; +0x5d, 0x1402fe8fd\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x5f, 0x1402fe8ff\ntest    rcx, rcx                                                       ; +0x66, 0x1402fe906\njnz     short loc_1402FE93A                                            ; +0x69, 0x1402fe909\nmov     ecx, 3D0h; Size                                                ; +0x6b, 0x1402fe90b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x70, 0x1402fe910\nmov     [rsp+28h+arg_0], rax                                           ; +0x75, 0x1402fe915\nmov     rcx, rax                                                       ; +0x7a, 0x1402fe91a\ncall    sub_140141280                                                  ; +0x7d, 0x1402fe91d\nnop                                                                    ; +0x82, 0x1402fe922\nmov     cs:qword_1406C2EC0, rax                                        ; +0x83, 0x1402fe923\nmov     rdx, [rax]                                                     ; +0x8a, 0x1402fe92a\nmov     rcx, rax                                                       ; +0x8d, 0x1402fe92d\ncall    qword ptr [rdx+48h]                                            ; +0x90, 0x1402fe930\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x93, 0x1402fe933\ncall    GameLevelManager__updateUserScore                              ; +0x9a, 0x1402fe93a\nmov     rax, [rbx+1F0h]                                                ; +0x9f, 0x1402fe93f\nmov     edx, [rax+148h]                                                ; +0xa6, 0x1402fe946\nsub     edx, [rax+14Ch]                                                ; +0xac, 0x1402fe94c\nxor     r8d, r8d                                                       ; +0xb2, 0x1402fe952\nlea     ecx, [r8+1]                                                    ; +0xb5, 0x1402fe955\ncall    LikeItemLayer__create                                          ; +0xb9, 0x1402fe959\nlea     rcx, [rbx+1B0h]                                                ; +0xbe, 0x1402fe95e\nmov     [rax+288h], rcx                                                ; +0xc5, 0x1402fe965\nmov     rdx, [rax]                                                     ; +0xcc, 0x1402fe96c\nmov     rcx, rax                                                       ; +0xcf, 0x1402fe96f\nadd     rsp, 20h                                                       ; +0xd2, 0x1402fe972\npop     rbx                                                            ; +0xd6, 0x1402fe976\njmp     qword ptr [rdx+410h]                                           ; +0xd7, 0x1402fe977\nadd     rsp, 20h                                                       ; +0xde, 0x1402fe97e\npop     rbx                                                            ; +0xe2, 0x1402fe982\nretn                                                                   ; +0xe3, 0x1402fe983", "xrefs": ["LevelInfoLayer::init @ 0x1402f8446", "<???> @ 0x1406d4298"], "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"}