{"type": "func", "start": 3339816, "end": 3339968, "name": "CommentCell::onLike", "pseudocode": "// \n// CommentCell::onLike from 0x32f628 to 0x32f6c0 (152 bytes)\n// \n// 0 xrefs:\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 CommentCell::onLike(CommentCell *a1, cocos2d::CCObject *a2)\n{\n  GJComment *m_comment; // r3\n  int m_accountID; // r5\n  LikeItemType v5; // r6\n  GameLevelManager *v6; // r0\n  int m_userID; // r7\n  GameManager *v8; // r0\n  int v9; // r7\n  GJAccountManager *v10; // r0\n  LikeItemLayer *v11; // r0\n  LikeItemLayer_vtbl *v12; // r3\n  int savedregs; // [sp+0h] [bp+0h]\n\n  m_comment = a1->m_comment;\n  if ( a1->m_accountComment )\n  {\n    m_accountID = m_comment->m_accountID;\n    v5 = AccountComment;\n  }\n  else\n  {\n    m_accountID = m_comment->m_levelID;\n    v5 = 2;\n  }\n  if ( m_comment )\n  {\n    v6 = GameLevelManager::sharedState();\n    if ( !GameLevelManager::hasLikedItemFullCheck(v6, v5, a1->m_comment->m_commentID, m_accountID, savedregs) )\n    {\n      m_userID = a1->m_comment->m_userID;\n      v8 = GameManager::sharedState();\n      if ( m_userID != v8->m_playerUserID.random - v8->m_playerUserID.seed )\n      {\n        v9 = a1->m_comment->m_accountID;\n        if ( !v9 || (v10 = GJAccountManager::sharedState(), v9 != v10->m_accountID - v10->m_unkInt1) )\n        {\n          v11 = LikeItemLayer::create(v5, a1->m_comment->m_commentID, m_accountID);\n          v12 = v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n          v11->m_likeDelegate = &a1->LikeItemDelegate;\n          ((void (*)(void))v12->show)();\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; CommentCell::onLike from 0x32f628 to 0x32f6c0 (152 bytes)\n; \n; 0 xrefs:\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\nLDRB.W          R2, [R0,#0x1B0]                                        ; +0x0, 0x32f628\nPUSH.W          {R4-R8,LR}                                             ; +0x4, 0x32f62c\nMOV             R4, R0                                                 ; +0x8, 0x32f630\nLDR.W           R3, [R0,#0x1AC]                                        ; +0xa, 0x32f632\nCBNZ            R2, loc_32F690                                         ; +0xe, 0x32f636\nLDR.W           R5, [R3,#0x11C]                                        ; +0x10, 0x32f638\nMOVS            R6, #2                                                 ; +0x14, 0x32f63c\nCBZ             R3, locret_32F6BC                                      ; +0x16, 0x32f63e\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x18, 0x32f640\nLDR.W           R3, [R4,#0x1AC]                                        ; +0x1c, 0x32f644\nMOV             R1, R6                                                 ; +0x20, 0x32f648\nLDR.W           R2, [R3,#0x110]                                        ; +0x22, 0x32f64a\nMOV             R3, R5                                                 ; +0x26, 0x32f64e\nBL              _ZN16GameLevelManager21hasLikedItemFullCheckE12LikeItemTypeii; GameLevelManager::hasLikedItemFullCheck(LikeItemType,int,int) ; +0x28, 0x32f650\nCBNZ            R0, locret_32F6BC                                      ; +0x2c, 0x32f654\nLDR.W           R3, [R4,#0x1AC]                                        ; +0x2e, 0x32f656\nLDR.W           R7, [R3,#0x114]                                        ; +0x32, 0x32f65a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x36, 0x32f65e\nLDR.W           R3, [R0,#0x198]                                        ; +0x3a, 0x32f662\nLDR.W           R2, [R0,#0x19C]                                        ; +0x3e, 0x32f666\nSUBS            R3, R3, R2                                             ; +0x42, 0x32f66a\nCMP             R7, R3                                                 ; +0x44, 0x32f66c\nBEQ             locret_32F6BC                                          ; +0x46, 0x32f66e\nLDR.W           R3, [R4,#0x1AC]                                        ; +0x48, 0x32f670\nLDR.W           R7, [R3,#0x124]                                        ; +0x4c, 0x32f674\nCBZ             R7, loc_32F698                                         ; +0x50, 0x32f678\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x52, 0x32f67a\nLDR.W           R3, [R0,#0x110]                                        ; +0x56, 0x32f67e\nLDR.W           R2, [R0,#0x114]                                        ; +0x5a, 0x32f682\nSUBS            R3, R3, R2                                             ; +0x5e, 0x32f686\nCMP             R7, R3                                                 ; +0x60, 0x32f688\nBNE             loc_32F698                                             ; +0x62, 0x32f68a\nPOP.W           {R4-R8,PC}                                             ; +0x64, 0x32f68c\nLDR.W           R5, [R3,#0x124]                                        ; +0x68, 0x32f690\nMOVS            R6, #3                                                 ; +0x6c, 0x32f694\nB               loc_32F63E                                             ; +0x6e, 0x32f696\nLDR.W           R3, [R4,#0x1AC]                                        ; +0x70, 0x32f698\nMOV             R0, R6                                                 ; +0x74, 0x32f69c\nMOV             R2, R5                                                 ; +0x76, 0x32f69e\nADD.W           R4, R4, #0x19C                                         ; +0x78, 0x32f6a0\nLDR.W           R1, [R3,#0x110]                                        ; +0x7c, 0x32f6a4\nBL              _ZN13LikeItemLayer6createE12LikeItemTypeii; LikeItemLayer::create(LikeItemType,int,int) ; +0x80, 0x32f6a8\nLDR             R3, [R0]                                               ; +0x84, 0x32f6ac\nSTR.W           R4, [R0,#0x1FC]                                        ; +0x86, 0x32f6ae\nPOP.W           {R4-R8,LR}                                             ; +0x8a, 0x32f6b2\nLDR.W           R3, [R3,#0x284]                                        ; +0x8e, 0x32f6b6\nBX              R3                                                     ; +0x92, 0x32f6ba\nPOP.W           {R4-R8,PC}                                             ; +0x94, 0x32f6bc", "xrefs": [], "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"}