{"type": "func", "start": 4297412320, "end": 4297412549, "name": "CommentCell::onLike", "pseudocode": "// \n// CommentCell::onLike from 0x100254ee0 to 0x100254fc5 (229 bytes)\n// \n// 1 xrefs:\n// > CommentCell::loadFromComment @ 0x100248fda\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 __fastcall CommentCell::onLike(CommentCell *a1, cocos2d::CCObject *a2)\n{\n  GJComment *m_comment; // rax\n  _BOOL8 m_accountComment; // rcx\n  LikeItemType v4; // r14d\n  int v5; // r15d\n  GameLevelManager *v6; // rax\n  int v7; // r8d\n  int m_userID; // r12d\n  GameManager *v9; // rax\n  GJComment *v10; // rax\n  int m_accountID; // r12d\n  GJAccountManager *v12; // rax\n  LikeItemLayer *v13; // rax\n\n  m_comment = a1->m_comment;\n  if ( m_comment )\n  {\n    m_accountComment = a1->m_accountComment;\n    v4 = m_accountComment + 2;\n    v5 = *(&m_comment->m_levelID + 2 * m_accountComment);\n    v6 = GameLevelManager::sharedState();\n    if ( !GameLevelManager::hasLikedItemFullCheck(v6, v4, a1->m_comment->m_commentID, v5, v7) )\n    {\n      m_userID = a1->m_comment->m_userID;\n      v9 = GameManager::sharedState();\n      if ( m_userID != v9->m_playerUserID.random - v9->m_playerUserID.seed )\n      {\n        v10 = a1->m_comment;\n        m_accountID = v10->m_accountID;\n        if ( m_accountID )\n        {\n          v12 = GJAccountManager::sharedState();\n          if ( m_accountID == v12->m_accountID - v12->m_unkInt1 )\n            return;\n          v10 = a1->m_comment;\n        }\n        v13 = LikeItemLayer::create(v4, v10->m_commentID, v5);\n        v13->m_likeDelegate = &a1->LikeItemDelegate;\n        ((void (__fastcall *)(LikeItemLayer *))v13->show)(v13);\n      }\n    }\n  }\n}", "assembly": "; \n; CommentCell::onLike from 0x100254ee0 to 0x100254fc5 (229 bytes)\n; \n; 1 xrefs:\n; > CommentCell::loadFromComment @ 0x100248fda\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    rbp                                                            ; +0x0, 0x100254ee0\nmov     rbp, rsp                                                       ; +0x1, 0x100254ee1\npush    r15                                                            ; +0x4, 0x100254ee4\npush    r14                                                            ; +0x6, 0x100254ee6\npush    r12                                                            ; +0x8, 0x100254ee8\npush    rbx                                                            ; +0xa, 0x100254eea\nmov     rax, [rdi+248h]                                                ; +0xb, 0x100254eeb\ntest    rax, rax                                                       ; +0x12, 0x100254ef2\njz      loc_100254F82                                                  ; +0x15, 0x100254ef5\nmov     rbx, rdi                                                       ; +0x1b, 0x100254efb\nmovzx   ecx, byte ptr [rdi+250h]                                       ; +0x1e, 0x100254efe\nlea     r14d, [rcx+2]                                                  ; +0x25, 0x100254f05\nmov     r15d, [rax+rcx*8+17Ch]                                         ; +0x29, 0x100254f09\ncall    GameLevelManager__sharedState                                  ; +0x31, 0x100254f11\nmov     rcx, [rbx+248h]                                                ; +0x36, 0x100254f16\nmov     edx, [rcx+170h]                                                ; +0x3d, 0x100254f1d\nmov     rdi, rax                                                       ; +0x43, 0x100254f23\nmov     esi, r14d                                                      ; +0x46, 0x100254f26\nmov     ecx, r15d                                                      ; +0x49, 0x100254f29\ncall    GameLevelManager__hasLikedItemFullCheck                        ; +0x4c, 0x100254f2c\ntest    al, al                                                         ; +0x51, 0x100254f31\njnz     short loc_100254F82                                            ; +0x53, 0x100254f33\nmov     rax, [rbx+248h]                                                ; +0x55, 0x100254f35\nmov     r12d, [rax+174h]                                               ; +0x5c, 0x100254f3c\ncall    GameManager__sharedState                                       ; +0x63, 0x100254f43\nmov     ecx, [rax+26Ch]                                                ; +0x68, 0x100254f48\nsub     ecx, [rax+270h]                                                ; +0x6e, 0x100254f4e\ncmp     r12d, ecx                                                      ; +0x74, 0x100254f54\njz      short loc_100254F82                                            ; +0x77, 0x100254f57\nmov     rax, [rbx+248h]                                                ; +0x79, 0x100254f59\nmov     r12d, [rax+184h]                                               ; +0x80, 0x100254f60\ntest    r12d, r12d                                                     ; +0x87, 0x100254f67\njz      short loc_100254F92                                            ; +0x8a, 0x100254f6a\ncall    GJAccountManager__sharedState                                  ; +0x8c, 0x100254f6c\nmov     ecx, [rax+160h]                                                ; +0x91, 0x100254f71\nsub     ecx, [rax+164h]                                                ; +0x97, 0x100254f77\ncmp     r12d, ecx                                                      ; +0x9d, 0x100254f7d\njnz     short loc_100254F8B                                            ; +0xa0, 0x100254f80\npop     rbx                                                            ; +0xa2, 0x100254f82\npop     r12                                                            ; +0xa3, 0x100254f83\npop     r14                                                            ; +0xa5, 0x100254f85\npop     r15                                                            ; +0xa7, 0x100254f87\npop     rbp                                                            ; +0xa9, 0x100254f89\nretn                                                                   ; +0xaa, 0x100254f8a\nmov     rax, [rbx+248h]                                                ; +0xab, 0x100254f8b\nmov     esi, [rax+170h]                                                ; +0xb2, 0x100254f92\nmov     edi, r14d                                                      ; +0xb8, 0x100254f98\nmov     edx, r15d                                                      ; +0xbb, 0x100254f9b\ncall    LikeItemLayer__create                                          ; +0xbe, 0x100254f9e\nadd     rbx, 228h                                                      ; +0xc3, 0x100254fa3\nmov     [rax+288h], rbx                                                ; +0xca, 0x100254faa\nmov     rcx, [rax]                                                     ; +0xd1, 0x100254fb1\nmov     rdi, rax                                                       ; +0xd4, 0x100254fb4\npop     rbx                                                            ; +0xd7, 0x100254fb7\npop     r12                                                            ; +0xd8, 0x100254fb8\npop     r14                                                            ; +0xda, 0x100254fba\npop     r15                                                            ; +0xdc, 0x100254fbc\npop     rbp                                                            ; +0xde, 0x100254fbe\njmp     qword ptr [rcx+508h]                                           ; +0xdf, 0x100254fbf", "xrefs": ["CommentCell::loadFromComment @ 0x100248fda"], "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"}