{"type": "func", "start": 5371886192, "end": 5371886414, "name": "LevelListLayer::onLike", "pseudocode": "// \n// LevelListLayer::onLike from 0x140307a70 to 0x140307b4e (222 bytes)\n// \n// 2 xrefs:\n// > LevelListLayer::init @ 0x14030467b\n// > <???> @ 0x1406d4520\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\nvoid LevelListLayer::onLike(LevelListLayer *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_exiting )\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)4, a1->m_levelList->m_listID, 0);\n    v5->m_likeDelegate = &a1->LikeItemDelegate;\n    v5->show(v5);\n  }\n}", "assembly": "; \n; LevelListLayer::onLike from 0x140307a70 to 0x140307b4e (222 bytes)\n; \n; 2 xrefs:\n; > LevelListLayer::init @ 0x14030467b\n; > <???> @ 0x1406d4520\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, 0x140307a70\nsub     rsp, 20h                                                       ; +0x2, 0x140307a72\nmov     rbx, rcx                                                       ; +0x6, 0x140307a76\ncmp     byte ptr [rcx+398h], 0                                         ; +0x9, 0x140307a79\njnz     loc_140307B48                                                  ; +0x10, 0x140307a80\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x16, 0x140307a86\ntest    rdx, rdx                                                       ; +0x1d, 0x140307a8d\njnz     short loc_140307AC1                                            ; +0x20, 0x140307a90\nmov     ecx, 668h; Size                                                ; +0x22, 0x140307a92\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x140307a97\nmov     [rsp+28h+arg_0], rax                                           ; +0x2c, 0x140307a9c\nmov     rcx, rax                                                       ; +0x31, 0x140307aa1\ncall    sub_14017AB00                                                  ; +0x34, 0x140307aa4\nnop                                                                    ; +0x39, 0x140307aa9\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3a, 0x140307aaa\nmov     rdx, [rax]                                                     ; +0x41, 0x140307ab1\nmov     rcx, rax                                                       ; +0x44, 0x140307ab4\ncall    qword ptr [rdx+48h]                                            ; +0x47, 0x140307ab7\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x4a, 0x140307aba\nmov     eax, [rdx+28Ch]                                                ; +0x51, 0x140307ac1\ncmp     eax, [rdx+290h]                                                ; +0x57, 0x140307ac7\njnz     short loc_140307B0F                                            ; +0x5d, 0x140307acd\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x5f, 0x140307acf\ntest    rcx, rcx                                                       ; +0x66, 0x140307ad6\njnz     short loc_140307B0A                                            ; +0x69, 0x140307ad9\nmov     ecx, 3D0h; Size                                                ; +0x6b, 0x140307adb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x70, 0x140307ae0\nmov     [rsp+28h+arg_0], rax                                           ; +0x75, 0x140307ae5\nmov     rcx, rax                                                       ; +0x7a, 0x140307aea\ncall    sub_140141280                                                  ; +0x7d, 0x140307aed\nnop                                                                    ; +0x82, 0x140307af2\nmov     cs:qword_1406C2EC0, rax                                        ; +0x83, 0x140307af3\nmov     rdx, [rax]                                                     ; +0x8a, 0x140307afa\nmov     rcx, rax                                                       ; +0x8d, 0x140307afd\ncall    qword ptr [rdx+48h]                                            ; +0x90, 0x140307b00\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x93, 0x140307b03\ncall    GameLevelManager__updateUserScore                              ; +0x9a, 0x140307b0a\nmov     rdx, [rbx+368h]                                                ; +0x9f, 0x140307b0f\nxor     r8d, r8d                                                       ; +0xa6, 0x140307b16\nmov     edx, [rdx+158h]                                                ; +0xa9, 0x140307b19\nlea     ecx, [r8+4]                                                    ; +0xaf, 0x140307b1f\ncall    LikeItemLayer__create                                          ; +0xb3, 0x140307b23\nlea     rcx, [rbx+330h]                                                ; +0xb8, 0x140307b28\nmov     [rax+288h], rcx                                                ; +0xbf, 0x140307b2f\nmov     rdx, [rax]                                                     ; +0xc6, 0x140307b36\nmov     rcx, rax                                                       ; +0xc9, 0x140307b39\nadd     rsp, 20h                                                       ; +0xcc, 0x140307b3c\npop     rbx                                                            ; +0xd0, 0x140307b40\njmp     qword ptr [rdx+410h]                                           ; +0xd1, 0x140307b41\nadd     rsp, 20h                                                       ; +0xd8, 0x140307b48\npop     rbx                                                            ; +0xdc, 0x140307b4c\nretn                                                                   ; +0xdd, 0x140307b4d", "xrefs": ["LevelListLayer::init @ 0x14030467b", "<???> @ 0x1406d4520"], "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"}