{"type": "func", "start": 4296085092, "end": 4296085264, "name": "CommentCell::updateLabelValues", "pseudocode": "// \n// CommentCell::updateLabelValues from 0x100110e64 to 0x100110f10 (172 bytes)\n// \n// 2 xrefs:\n// > CommentCell::likedItem @ 0x100110e28\n// > sub_100110E30 @ 0x100110e5c\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::updateLabelValues(CommentCell *a1)\n{\n  cocos2d::CCLabelBMFont *m_likeLabel; // x20\n  int m_likeCount; // w21\n  cocos2d::CCString *v4; // x0\n  const char *CString; // x0\n  cocos2d::CCSprite *m_iconSprite; // x19\n  cocos2d::CCSpriteFrameCache *v7; // x0\n  const char *v8; // x1\n  cocos2d::CCSpriteFrame *v9; // x1\n\n  m_likeLabel = a1->m_likeLabel;\n  if ( m_likeLabel )\n  {\n    m_likeCount = a1->m_comment->m_likeCount;\n    v4 = (cocos2d::CCString *)sub_100268F4C(\"%i\", m_likeCount);\n    CString = cocos2d::CCString::getCString(v4);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_likeLabel->setString)(m_likeLabel, CString);\n    m_iconSprite = a1->m_iconSprite;\n    v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    if ( m_likeCount < 0 )\n      v8 = \"GJ_dislikesIcon_001.png\";\n    else\n      v8 = \"GJ_likesIcon_001.png\";\n    v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8);\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_iconSprite->setDisplayFrame)(\n      m_iconSprite,\n      v9);\n  }\n}", "assembly": "; \n; CommentCell::updateLabelValues from 0x100110e64 to 0x100110f10 (172 bytes)\n; \n; 2 xrefs:\n; > CommentCell::likedItem @ 0x100110e28\n; > sub_100110E30 @ 0x100110e5c\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100110e64\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100110e68\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100110e6c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100110e70\nADD             X29, SP, #0x30                                         ; +0x10, 0x100110e74\nLDR             X20, [X0,#0x240]                                       ; +0x14, 0x100110e78\nCBZ             X20, loc_100110EFC                                     ; +0x18, 0x100110e7c\nMOV             X19, X0                                                ; +0x1c, 0x100110e80\nLDR             X8, [X0,#0x248]                                        ; +0x20, 0x100110e84\nLDR             W21, [X8,#0x178]                                       ; +0x24, 0x100110e88\nSTR             X21, [SP,#0x30+var_30]                                 ; +0x28, 0x100110e8c\nADRL            X0, aI; \"%i\"                                           ; +0x2c, 0x100110e90\nBL              sub_100268F4C                                          ; +0x34, 0x100110e98\nBL              cocos2d__CCString__getCString                          ; +0x38, 0x100110e9c\nMOV             X1, X0                                                 ; +0x3c, 0x100110ea0\nLDR             X8, [X20]                                              ; +0x40, 0x100110ea4\nLDR             X8, [X8,#0x390]                                        ; +0x44, 0x100110ea8\nMOV             X0, X20                                                ; +0x48, 0x100110eac\nBLR             X8                                                     ; +0x4c, 0x100110eb0\nLDR             X19, [X19,#0x238]                                      ; +0x50, 0x100110eb4\nBL              cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache    ; +0x54, 0x100110eb8\nADRL            X8, aGjDislikesicon; \"GJ_dislikesIcon_001.png\"         ; +0x58, 0x100110ebc\nADRL            X9, aGjLikesicon001; \"GJ_likesIcon_001.png\"            ; +0x60, 0x100110ec4\nCMP             W21, #0                                                ; +0x68, 0x100110ecc\nCSEL            X1, X9, X8, GE                                         ; +0x6c, 0x100110ed0\nBL              cocos2d__CCSpriteFrameCache__spriteFrameByName         ; +0x70, 0x100110ed4\nMOV             X1, X0                                                 ; +0x74, 0x100110ed8\nLDR             X8, [X19]                                              ; +0x78, 0x100110edc\nLDR             X2, [X8,#0x478]                                        ; +0x7c, 0x100110ee0\nMOV             X0, X19                                                ; +0x80, 0x100110ee4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x84, 0x100110ee8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x88, 0x100110eec\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x8c, 0x100110ef0\nADD             SP, SP, #0x40 ; '@'                                    ; +0x90, 0x100110ef4\nBR              X2                                                     ; +0x94, 0x100110ef8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x98, 0x100110efc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x9c, 0x100110f00\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xa0, 0x100110f04\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa4, 0x100110f08\nRET                                                                    ; +0xa8, 0x100110f0c", "xrefs": ["CommentCell::likedItem @ 0x100110e28", "sub_100110E30 @ 0x100110e5c"], "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"}