{"type": "func", "start": 3371240, "end": 3371338, "name": "CommentCell::updateLabelValues", "pseudocode": "// \n// CommentCell::updateLabelValues from 0x3370e8 to 0x33714a (98 bytes)\n// \n// 2 xrefs:\n// > CommentCell::incrementLikes @ 0x337166\n// > CommentCell::incrementDislikes @ 0x337178\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::updateLabelValues(CommentCell *a1)\n{\n  cocos2d::CCLabelBMFont *m_likeLabel; // r5\n  const char *m_likeCount; // r6\n  void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r7\n  cocos2d::CCString *v5; // r0\n  const char *CString; // r0\n  cocos2d::CCSprite *m_iconSprite; // r4\n  void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r5\n  cocos2d::CCSpriteFrameCache *v9; // r0\n  const char *v10; // r1\n  cocos2d::CCSpriteFrame *v11; // r0\n\n  m_likeLabel = a1->m_likeLabel;\n  if ( m_likeLabel )\n  {\n    m_likeCount = (const char *)a1->m_comment->m_likeCount;\n    setString = m_likeLabel->setString;\n    v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", m_likeCount);\n    CString = cocos2d::CCString::getCString(v5);\n    setString(m_likeLabel, (const unsigned __int8 *)CString);\n    m_iconSprite = a1->m_iconSprite;\n    setDisplayFrame = m_iconSprite->setDisplayFrame;\n    v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    if ( (int)m_likeCount < 0 )\n      v10 = \"GJ_dislikesIcon_001.png\";\n    else\n      v10 = \"GJ_likesIcon_001.png\";\n    v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v10);\n    setDisplayFrame(m_iconSprite, v11);\n  }\n}", "assembly": "; \n; CommentCell::updateLabelValues from 0x3370e8 to 0x33714a (98 bytes)\n; \n; 2 xrefs:\n; > CommentCell::incrementLikes @ 0x337166\n; > CommentCell::incrementDislikes @ 0x337178\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.W          {R4-R8,LR}                                             ; +0x0, 0x3370e8\nMOV             R4, R0                                                 ; +0x4, 0x3370ec\nLDR.W           R5, [R0,#0x1A8]                                        ; +0x6, 0x3370ee\nCBZ             R5, locret_337146                                      ; +0xa, 0x3370f2\nLDR.W           R3, [R0,#0x1AC]                                        ; +0xc, 0x3370f4\nLDR             R0, =(aI - 0x337102); \"%i\"                             ; +0x10, 0x3370f8\nLDR.W           R6, [R3,#0x118]                                        ; +0x12, 0x3370fa\nADD             R0, PC; \"%i\"                                           ; +0x16, 0x3370fe\nLDR             R3, [R5]                                               ; +0x18, 0x337100\nMOV             R1, R6; char *                                         ; +0x1a, 0x337102\nLDR.W           R7, [R3,#0x1C8]                                        ; +0x1c, 0x337104\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x20, 0x337108\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x24, 0x33710c\nMOV             R1, R0                                                 ; +0x28, 0x337110\nMOV             R0, R5                                                 ; +0x2a, 0x337112\nBLX             R7                                                     ; +0x2c, 0x337114\nLDR.W           R4, [R4,#0x1A4]                                        ; +0x2e, 0x337116\nCMP             R6, #0                                                 ; +0x32, 0x33711a\nLDR             R3, [R4]                                               ; +0x34, 0x33711c\nLDR.W           R5, [R3,#0x23C]                                        ; +0x36, 0x33711e\nBLT             loc_33712E                                             ; +0x3a, 0x337122\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x3c, 0x337124\nLDR             R1, =(aGjLikesicon001 - 0x33712E); \"GJ_likesIcon_001.png\" ; +0x40, 0x337128\nADD             R1, PC; \"GJ_likesIcon_001.png\"                         ; +0x42, 0x33712a\nB               loc_337136                                             ; +0x44, 0x33712c\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x46, 0x33712e\nLDR             R1, =(aGjDislikesicon - 0x337138); \"GJ_dislikesIcon_001.png\" ; +0x4a, 0x337132\nADD             R1, PC; \"GJ_dislikesIcon_001.png\"                      ; +0x4c, 0x337134\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0x4e, 0x337136\nMOV             R3, R5                                                 ; +0x52, 0x33713a\nMOV             R1, R0                                                 ; +0x54, 0x33713c\nMOV             R0, R4                                                 ; +0x56, 0x33713e\nPOP.W           {R4-R8,LR}                                             ; +0x58, 0x337140\nBX              R3                                                     ; +0x5c, 0x337144\nPOP.W           {R4-R8,PC}                                             ; +0x5e, 0x337146", "xrefs": ["CommentCell::incrementLikes @ 0x337166", "CommentCell::incrementDislikes @ 0x337178"], "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"}