{"type": "func", "start": 5369462272, "end": 5369462621, "name": "CommentCell::onLike", "pseudocode": "// \n// CommentCell::onLike from 0x1400b7e00 to 0x1400b7f5d (349 bytes)\n// \n// 2 xrefs:\n// > CommentCell::loadFromComment @ 0x1400b7931\n// > <???> @ 0x1406c7c14\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 CommentCell::onLike(CommentCell *a1, cocos2d::CCObject *a2)\n{\n  bool m_accountComment; // al\n  _BOOL8 v4; // rdi\n  bool v5; // zf\n  GJComment *m_comment; // rax\n  int m_levelID; // esi\n  GameLevelManager *v8; // rcx\n  __int64 v9; // rcx\n  GJComment *v10; // rdx\n  GJAccountManager *v11; // rax\n  LikeItemLayer *v12; // rax\n  int v13; // [rsp+20h] [rbp-8h]\n  void *v14; // [rsp+30h] [rbp+8h]\n  void *v15; // [rsp+30h] [rbp+8h]\n\n  m_accountComment = a1->m_accountComment;\n  v4 = m_accountComment;\n  v5 = !m_accountComment;\n  m_comment = a1->m_comment;\n  if ( v5 )\n    m_levelID = m_comment->m_levelID;\n  else\n    m_levelID = m_comment->m_accountID;\n  if ( m_comment )\n  {\n    v8 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v14 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280(v14);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v8 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    if ( !GameLevelManager::hasLikedItemFullCheck(\n            v8,\n            (LikeItemType)(v4 + 2),\n            a1->m_comment->m_commentID,\n            m_levelID,\n            v13) )\n    {\n      v9 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v15 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00(v15);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v9 = qword_1406C2ED8;\n      }\n      v10 = a1->m_comment;\n      if ( v10->m_userID != *(_DWORD *)(v9 + 652) - *(_DWORD *)(v9 + 656) )\n      {\n        if ( !v10->m_accountID\n          || (v11 = GJAccountManager::sharedState(),\n              v10 = a1->m_comment,\n              v10->m_accountID != v11->m_accountID - v11->m_unkInt1) )\n        {\n          v12 = LikeItemLayer::create((LikeItemType)(v4 + 2), v10->m_commentID, m_levelID);\n          v12->m_likeDelegate = &a1->LikeItemDelegate;\n          v12->show(v12);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; CommentCell::onLike from 0x1400b7e00 to 0x1400b7f5d (349 bytes)\n; \n; 2 xrefs:\n; > CommentCell::loadFromComment @ 0x1400b7931\n; > <???> @ 0x1406c7c14\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, 0x1400b7e00\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1400b7e05\npush    rdi                                                            ; +0xa, 0x1400b7e0a\nsub     rsp, 20h                                                       ; +0xb, 0x1400b7e0b\nmov     rbx, rcx                                                       ; +0xf, 0x1400b7e0f\nmovzx   eax, byte ptr [rcx+258h]                                       ; +0x12, 0x1400b7e12\nxor     edi, edi                                                       ; +0x19, 0x1400b7e19\ntest    al, al                                                         ; +0x1b, 0x1400b7e1b\nsetnz   dil                                                            ; +0x1d, 0x1400b7e1d\ntest    al, al                                                         ; +0x21, 0x1400b7e21\nmov     rax, [rcx+250h]                                                ; +0x23, 0x1400b7e23\njnz     short loc_1400B7E34                                            ; +0x2a, 0x1400b7e2a\nmov     esi, [rax+18Ch]                                                ; +0x2c, 0x1400b7e2c\njmp     short loc_1400B7E3A                                            ; +0x32, 0x1400b7e32\nmov     esi, [rax+194h]                                                ; +0x34, 0x1400b7e34\ntest    rax, rax                                                       ; +0x3a, 0x1400b7e3a\njz      loc_1400B7F4D                                                  ; +0x3d, 0x1400b7e3d\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x43, 0x1400b7e43\ntest    rcx, rcx                                                       ; +0x4a, 0x1400b7e4a\njnz     short loc_1400B7E7E                                            ; +0x4d, 0x1400b7e4d\nmov     ecx, 3D0h; Size                                                ; +0x4f, 0x1400b7e4f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x54, 0x1400b7e54\nmov     [rsp+28h+arg_0], rax                                           ; +0x59, 0x1400b7e59\nmov     rcx, rax                                                       ; +0x5e, 0x1400b7e5e\ncall    sub_140141280                                                  ; +0x61, 0x1400b7e61\nnop                                                                    ; +0x66, 0x1400b7e66\nmov     cs:qword_1406C2EC0, rax                                        ; +0x67, 0x1400b7e67\nmov     rdx, [rax]                                                     ; +0x6e, 0x1400b7e6e\nmov     rcx, rax                                                       ; +0x71, 0x1400b7e71\ncall    qword ptr [rdx+48h]                                            ; +0x74, 0x1400b7e74\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x77, 0x1400b7e77\nmov     r8, [rbx+250h]                                                 ; +0x7e, 0x1400b7e7e\nmov     r9d, esi                                                       ; +0x85, 0x1400b7e85\nmov     r8d, [r8+180h]                                                 ; +0x88, 0x1400b7e88\nlea     edx, [rdi+2]                                                   ; +0x8f, 0x1400b7e8f\ncall    GameLevelManager__hasLikedItemFullCheck                        ; +0x92, 0x1400b7e92\ntest    al, al                                                         ; +0x97, 0x1400b7e97\njnz     loc_1400B7F4D                                                  ; +0x99, 0x1400b7e99\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9f, 0x1400b7e9f\ntest    rcx, rcx                                                       ; +0xa6, 0x1400b7ea6\njnz     short loc_1400B7EDA                                            ; +0xa9, 0x1400b7ea9\nmov     ecx, 668h; Size                                                ; +0xab, 0x1400b7eab\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb0, 0x1400b7eb0\nmov     [rsp+28h+arg_0], rax                                           ; +0xb5, 0x1400b7eb5\nmov     rcx, rax                                                       ; +0xba, 0x1400b7eba\ncall    sub_14017AB00                                                  ; +0xbd, 0x1400b7ebd\nnop                                                                    ; +0xc2, 0x1400b7ec2\nmov     cs:qword_1406C2ED8, rax                                        ; +0xc3, 0x1400b7ec3\nmov     rdx, [rax]                                                     ; +0xca, 0x1400b7eca\nmov     rcx, rax                                                       ; +0xcd, 0x1400b7ecd\ncall    qword ptr [rdx+48h]                                            ; +0xd0, 0x1400b7ed0\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xd3, 0x1400b7ed3\nmov     rdx, [rbx+250h]                                                ; +0xda, 0x1400b7eda\nmov     eax, [rcx+28Ch]                                                ; +0xe1, 0x1400b7ee1\nsub     eax, [rcx+290h]                                                ; +0xe7, 0x1400b7ee7\ncmp     [rdx+184h], eax                                                ; +0xed, 0x1400b7eed\njz      short loc_1400B7F4D                                            ; +0xf3, 0x1400b7ef3\ncmp     dword ptr [rdx+194h], 0                                        ; +0xf5, 0x1400b7ef5\njz      short loc_1400B7F22                                            ; +0xfc, 0x1400b7efc\ncall    GJAccountManager__sharedState                                  ; +0xfe, 0x1400b7efe\nmov     r9, rax                                                        ; +0x103, 0x1400b7f03\nmov     rdx, [rbx+250h]                                                ; +0x106, 0x1400b7f06\nmov     eax, [rax+168h]                                                ; +0x10d, 0x1400b7f0d\nsub     eax, [r9+16Ch]                                                 ; +0x113, 0x1400b7f13\ncmp     [rdx+194h], eax                                                ; +0x11a, 0x1400b7f1a\njz      short loc_1400B7F4D                                            ; +0x120, 0x1400b7f20\nmov     r8d, esi                                                       ; +0x122, 0x1400b7f22\nmov     edx, [rdx+180h]                                                ; +0x125, 0x1400b7f25\nlea     ecx, [rdi+2]                                                   ; +0x12b, 0x1400b7f2b\ncall    LikeItemLayer__create                                          ; +0x12e, 0x1400b7f2e\nlea     rcx, [rbx+230h]                                                ; +0x133, 0x1400b7f33\nmov     [rax+288h], rcx                                                ; +0x13a, 0x1400b7f3a\nmov     rdx, [rax]                                                     ; +0x141, 0x1400b7f41\nmov     rcx, rax                                                       ; +0x144, 0x1400b7f44\ncall    qword ptr [rdx+410h]                                           ; +0x147, 0x1400b7f47\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x14d, 0x1400b7f4d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x152, 0x1400b7f52\nadd     rsp, 20h                                                       ; +0x157, 0x1400b7f57\npop     rdi                                                            ; +0x15b, 0x1400b7f5b\nretn                                                                   ; +0x15c, 0x1400b7f5c", "xrefs": ["CommentCell::loadFromComment @ 0x1400b7931", "<???> @ 0x1406c7c14"], "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"}