{"type": "func", "start": 4296084408, "end": 4296084632, "name": "CommentCell::onLike", "pseudocode": "// \n// CommentCell::onLike from 0x100110bb8 to 0x100110c98 (224 bytes)\n// \n// 1 xrefs:\n// > CommentCell::loadFromComment @ 0x100107138\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  LikeItemType v2; // w20\n  GJComment *m_comment; // x8\n  __int64 v4; // x9\n  int v6; // w21\n  GameLevelManager *v7; // x0\n  int v8; // w4\n  int m_userID; // w22\n  GameManager *v10; // x0\n  GJComment *v11; // x8\n  int m_accountID; // w22\n  GJAccountManager *v13; // x0\n  LikeItemLayer *v14; // x0\n\n  if ( a1->m_accountComment )\n    v2 = AccountComment;\n  else\n    v2 = 2;\n  m_comment = a1->m_comment;\n  v4 = 380;\n  if ( a1->m_accountComment )\n    v4 = 388;\n  if ( m_comment )\n  {\n    v6 = *(_DWORD *)((char *)&m_comment->__vftable + v4);\n    v7 = GameLevelManager::sharedState();\n    if ( !GameLevelManager::hasLikedItemFullCheck(v7, v2, a1->m_comment->m_commentID, v6, v8) )\n    {\n      m_userID = a1->m_comment->m_userID;\n      v10 = GameManager::sharedState();\n      if ( m_userID != v10->m_playerUserID.random - v10->m_playerUserID.seed )\n      {\n        v11 = a1->m_comment;\n        m_accountID = v11->m_accountID;\n        if ( m_accountID )\n        {\n          v13 = GJAccountManager::sharedState();\n          if ( m_accountID == v13->m_accountID - v13->m_unkInt1 )\n            return;\n          v11 = a1->m_comment;\n        }\n        v14 = LikeItemLayer::create(v2, v11->m_commentID, v6);\n        v14->m_likeDelegate = &a1->LikeItemDelegate;\n        ((void (__fastcall *)(LikeItemLayer *))v14->show)(v14);\n      }\n    }\n  }\n}", "assembly": "; \n; CommentCell::onLike from 0x100110bb8 to 0x100110c98 (224 bytes)\n; \n; 1 xrefs:\n; > CommentCell::loadFromComment @ 0x100107138\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100110bb8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100110bbc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100110bc0\nADD             X29, SP, #0x20                                         ; +0xc, 0x100110bc4\nLDRB            W8, [X0,#0x250]                                        ; +0x10, 0x100110bc8\nCMP             W8, #0                                                 ; +0x14, 0x100110bcc\nMOV             W8, #2                                                 ; +0x18, 0x100110bd0\nCINC            W20, W8, NE                                            ; +0x1c, 0x100110bd4\nLDR             X8, [X0,#0x248]                                        ; +0x20, 0x100110bd8\nMOV             W9, #0x17C                                             ; +0x24, 0x100110bdc\nMOV             W10, #0x184                                            ; +0x28, 0x100110be0\nCSEL            X9, X10, X9, NE                                        ; +0x2c, 0x100110be4\nCBZ             X8, loc_100110C54                                      ; +0x30, 0x100110be8\nMOV             X19, X0                                                ; +0x34, 0x100110bec\nLDR             W21, [X8,X9]                                           ; +0x38, 0x100110bf0\nBL              GameLevelManager__sharedState                          ; +0x3c, 0x100110bf4\nLDR             X8, [X19,#0x248]                                       ; +0x40, 0x100110bf8\nLDR             W2, [X8,#0x170]                                        ; +0x44, 0x100110bfc\nMOV             X1, X20                                                ; +0x48, 0x100110c00\nMOV             X3, X21                                                ; +0x4c, 0x100110c04\nBL              GameLevelManager__hasLikedItemFullCheck                ; +0x50, 0x100110c08\nTBNZ            W0, #0, loc_100110C54                                  ; +0x54, 0x100110c0c\nLDR             X8, [X19,#0x248]                                       ; +0x58, 0x100110c10\nLDR             W22, [X8,#0x174]                                       ; +0x5c, 0x100110c14\nBL              GameManager__sharedState                               ; +0x60, 0x100110c18\nLDR             W8, [X0,#0x26C]                                        ; +0x64, 0x100110c1c\nLDR             W9, [X0,#0x270]                                        ; +0x68, 0x100110c20\nSUB             W8, W8, W9                                             ; +0x6c, 0x100110c24\nCMP             W22, W8                                                ; +0x70, 0x100110c28\nB.EQ            loc_100110C54                                          ; +0x74, 0x100110c2c\nLDR             X8, [X19,#0x248]                                       ; +0x78, 0x100110c30\nLDR             W22, [X8,#0x184]                                       ; +0x7c, 0x100110c34\nCBZ             W22, loc_100110C68                                     ; +0x80, 0x100110c38\nBL              GJAccountManager__sharedState                          ; +0x84, 0x100110c3c\nLDR             W8, [X0,#0x160]                                        ; +0x88, 0x100110c40\nLDR             W9, [X0,#0x164]                                        ; +0x8c, 0x100110c44\nSUB             W8, W8, W9                                             ; +0x90, 0x100110c48\nCMP             W22, W8                                                ; +0x94, 0x100110c4c\nB.NE            loc_100110C64                                          ; +0x98, 0x100110c50\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x9c, 0x100110c54\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa0, 0x100110c58\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa4, 0x100110c5c\nRET                                                                    ; +0xa8, 0x100110c60\nLDR             X8, [X19,#0x248]                                       ; +0xac, 0x100110c64\nLDR             W1, [X8,#0x170]                                        ; +0xb0, 0x100110c68\nMOV             X0, X20                                                ; +0xb4, 0x100110c6c\nMOV             X2, X21                                                ; +0xb8, 0x100110c70\nBL              LikeItemLayer__create                                  ; +0xbc, 0x100110c74\nADD             X8, X19, #0x228                                        ; +0xc0, 0x100110c78\nSTR             X8, [X0,#0x288]                                        ; +0xc4, 0x100110c7c\nLDR             X8, [X0]                                               ; +0xc8, 0x100110c80\nLDR             X1, [X8,#0x508]                                        ; +0xcc, 0x100110c84\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xd0, 0x100110c88\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xd4, 0x100110c8c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xd8, 0x100110c90\nBR              X1                                                     ; +0xdc, 0x100110c94", "xrefs": ["CommentCell::loadFromComment @ 0x100107138"], "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"}