{"type": "func", "start": 4343096, "end": 4343312, "name": "CommentCell::onLike", "pseudocode": "// \n// CommentCell::onLike from 0x424538 to 0x424610 (216 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:48:03 +0000\n// \n\nGJAccountManager *__fastcall CommentCell::onLike(CommentCell *this, cocos2d::CCObject *a2)\n{\n  GJAccountManager *v3; // r0\n  GJAccountManager *v4; // r0\n  GJAccountManager *result; // r0\n  _DWORD *v6; // r3\n  int v7; // r2\n  int v8; // r5\n  int v9; // r6\n  int v10; // r0\n  int v11; // r7\n  int v12; // r7\n  int *v13; // r0\n  int v14; // r3\n\n  v3 = (GJAccountManager *)GJAccountManager::sharedState(this);\n  if ( *((_DWORD *)v3 + 70) - *((_DWORD *)v3 + 71) <= 0 )\n  {\n    v4 = (GJAccountManager *)GJAccountManager::sharedState(v3);\n    return (GJAccountManager *)GJAccountManager::showAccountNeededAlert(v4, \"like <cg>comments</c>\");\n  }\n  v6 = *((_DWORD **)this + 109);\n  if ( !v6 )\n    goto LABEL_22;\n  v7 = v6[86];\n  if ( v7 == 3 )\n  {\n    v9 = 0;\n    v8 = 6;\n    goto LABEL_11;\n  }\n  if ( v7 == 4 )\n  {\n    v8 = 7;\n    goto LABEL_9;\n  }\n  if ( v7 != 5 )\n  {\nLABEL_22:\n    if ( *((_BYTE *)this + 440) )\n    {\n      v9 = v6[77];\n      v8 = 3;\n      goto LABEL_11;\n    }\n    v8 = 2;\n    goto LABEL_9;\n  }\n  v8 = 8;\nLABEL_9:\n  v9 = v6[75];\nLABEL_11:\n  v10 = GameLevelManager::sharedState(v3);\n  result = (GJAccountManager *)GameLevelManager::hasLikedItemFullCheck(\n                                 v10,\n                                 v8,\n                                 *(_DWORD *)(*((_DWORD *)this + 109) + 288),\n                                 v9);\n  if ( !result )\n  {\n    v11 = *(_DWORD *)(*((_DWORD *)this + 109) + 292);\n    result = (GJAccountManager *)GameManager::sharedState(nullptr);\n    if ( v11 != *((_DWORD *)result + 116) - *((_DWORD *)result + 117) )\n    {\n      v12 = *(_DWORD *)(*((_DWORD *)this + 109) + 308);\n      if ( !v12\n        || (result = (GJAccountManager *)GJAccountManager::sharedState(result),\n            v12 != *((_DWORD *)result + 70) - *((_DWORD *)result + 71)) )\n      {\n        v13 = (int *)LikeItemLayer::create(v8, *(_DWORD *)(*((_DWORD *)this + 109) + 288), v9);\n        v14 = *v13;\n        v13[133] = (int)this + 420;\n        return (GJAccountManager *)(*(int (**)(void))(v14 + 656))();\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CommentCell::onLike from 0x424538 to 0x424610 (216 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:48:03 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x424538\nMOV             R4, R0                                                 ; +0x4, 0x42453c\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x6, 0x42453e\nLDR.W           R3, [R0,#0x118]                                        ; +0xa, 0x424542\nLDR.W           R2, [R0,#0x11C]                                        ; +0xe, 0x424546\nSUBS            R3, R3, R2                                             ; +0x12, 0x42454a\nCMP             R3, #0                                                 ; +0x14, 0x42454c\nBGT             loc_424560                                             ; +0x16, 0x42454e\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x18, 0x424550\nLDR             R1, =(aLikeCgComments - 0x42455E); \"like <cg>comments</c>\" ; +0x1c, 0x424554\nPOP.W           {R4-R8,LR}                                             ; +0x1e, 0x424556\nADD             R1, PC; \"like <cg>comments</c>\"                        ; +0x22, 0x42455a\nB.W             _ZN16GJAccountManager22showAccountNeededAlertEPKc; GJAccountManager::showAccountNeededAlert(char const*) ; +0x24, 0x42455c\nLDR.W           R3, [R4,#0x1B4]                                        ; +0x28, 0x424560\nCBZ             R3, loc_4245D6                                         ; +0x2c, 0x424564\nLDR.W           R2, [R3,#0x158]                                        ; +0x2e, 0x424566\nCMP             R2, #3                                                 ; +0x32, 0x42456a\nBEQ             loc_424582                                             ; +0x34, 0x42456c\nCMP             R2, #4                                                 ; +0x36, 0x42456e\nBEQ             loc_42457A                                             ; +0x38, 0x424570\nCMP             R2, #5                                                 ; +0x3a, 0x424572\nBNE             loc_4245D6                                             ; +0x3c, 0x424574\nMOVS            R5, #8                                                 ; +0x3e, 0x424576\nB               loc_42457C                                             ; +0x40, 0x424578\nMOVS            R5, #7                                                 ; +0x42, 0x42457a\nLDR.W           R6, [R3,#0x12C]                                        ; +0x44, 0x42457c\nB               loc_424586                                             ; +0x48, 0x424580\nMOVS            R6, #0                                                 ; +0x4a, 0x424582\nMOVS            R5, #6                                                 ; +0x4c, 0x424584\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x4e, 0x424586\nLDR.W           R3, [R4,#0x1B4]                                        ; +0x52, 0x42458a\nMOV             R1, R5                                                 ; +0x56, 0x42458e\nLDR.W           R2, [R3,#0x120]                                        ; +0x58, 0x424590\nMOV             R3, R6                                                 ; +0x5c, 0x424594\nBL              _ZN16GameLevelManager21hasLikedItemFullCheckE12LikeItemTypeii; GameLevelManager::hasLikedItemFullCheck(LikeItemType,int,int) ; +0x5e, 0x424596\nCBNZ            R0, locret_42460C                                      ; +0x62, 0x42459a\nLDR.W           R3, [R4,#0x1B4]                                        ; +0x64, 0x42459c\nLDR.W           R7, [R3,#0x124]                                        ; +0x68, 0x4245a0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6c, 0x4245a4\nLDR.W           R3, [R0,#0x1D0]                                        ; +0x70, 0x4245a8\nLDR.W           R2, [R0,#0x1D4]                                        ; +0x74, 0x4245ac\nSUBS            R3, R3, R2                                             ; +0x78, 0x4245b0\nCMP             R7, R3                                                 ; +0x7a, 0x4245b2\nBEQ             locret_42460C                                          ; +0x7c, 0x4245b4\nLDR.W           R3, [R4,#0x1B4]                                        ; +0x7e, 0x4245b6\nLDR.W           R7, [R3,#0x134]                                        ; +0x82, 0x4245ba\nCBZ             R7, loc_4245E8                                         ; +0x86, 0x4245be\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x88, 0x4245c0\nLDR.W           R3, [R0,#0x118]                                        ; +0x8c, 0x4245c4\nLDR.W           R2, [R0,#0x11C]                                        ; +0x90, 0x4245c8\nSUBS            R3, R3, R2                                             ; +0x94, 0x4245cc\nCMP             R7, R3                                                 ; +0x96, 0x4245ce\nBNE             loc_4245E8                                             ; +0x98, 0x4245d0\nPOP.W           {R4-R8,PC}                                             ; +0x9a, 0x4245d2\nLDRB.W          R2, [R4,#0x1B8]                                        ; +0x9e, 0x4245d6\nCBZ             R2, loc_4245E4                                         ; +0xa2, 0x4245da\nLDR.W           R6, [R3,#0x134]                                        ; +0xa4, 0x4245dc\nMOVS            R5, #3                                                 ; +0xa8, 0x4245e0\nB               loc_424586                                             ; +0xaa, 0x4245e2\nMOVS            R5, #2                                                 ; +0xac, 0x4245e4\nB               loc_42457C                                             ; +0xae, 0x4245e6\nLDR.W           R3, [R4,#0x1B4]                                        ; +0xb0, 0x4245e8\nMOV             R0, R5                                                 ; +0xb4, 0x4245ec\nMOV             R2, R6                                                 ; +0xb6, 0x4245ee\nADD.W           R4, R4, #0x1A4                                         ; +0xb8, 0x4245f0\nLDR.W           R1, [R3,#0x120]                                        ; +0xbc, 0x4245f4\nBL              _ZN13LikeItemLayer6createE12LikeItemTypeii; LikeItemLayer::create(LikeItemType,int,int) ; +0xc0, 0x4245f8\nLDR             R3, [R0]                                               ; +0xc4, 0x4245fc\nSTR.W           R4, [R0,#0x214]                                        ; +0xc6, 0x4245fe\nPOP.W           {R4-R8,LR}                                             ; +0xca, 0x424602\nLDR.W           R3, [R3,#0x290]                                        ; +0xce, 0x424606\nBX              R3                                                     ; +0xd2, 0x42460a\nPOP.W           {R4-R8,PC}                                             ; +0xd4, 0x42460c", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}