{"type": "func", "start": 5369462688, "end": 5369462868, "name": "CommentCell::updateLabelValues", "pseudocode": "// \n// CommentCell::updateLabelValues from 0x1400b7fa0 to 0x1400b8054 (180 bytes)\n// \n// 5 xrefs:\n// > CommentCell::likedItem @ 0x1400b7f88\n// > CommentCell::likedItem @ 0x1400b7f93\n// > <???> @ 0x14066b77c\n// > <???> @ 0x14066b78c\n// > <???> @ 0x1406c7c20\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; // rbx\n  cocos2d::CCLabelProtocol_vtbl *v3; // rbx\n  int m_likeCount; // edi\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  cocos2d::CCSprite_vtbl *v7; // rbx\n  cocos2d::CCSpriteFrameCache *v8; // rax\n  const char *v9; // rdx\n  struct cocos2d::CCSpriteFrame *v10; // rax\n\n  m_likeLabel = a1->m_likeLabel;\n  if ( m_likeLabel )\n  {\n    v3 = m_likeLabel->cocos2d::CCLabelProtocol::__vftable;\n    m_likeCount = a1->m_comment->m_likeCount;\n    v5 = cocos2d::CCString::createWithFormat(\"%i\", m_likeCount);\n    CString = cocos2d::CCString::getCString(v5);\n    v3->setString(&a1->m_likeLabel->cocos2d::CCLabelProtocol, CString);\n    v7 = a1->m_iconSprite->__vftable;\n    v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    if ( m_likeCount < 0 )\n      v9 = \"GJ_dislikesIcon_001.png\";\n    else\n      v9 = \"GJ_likesIcon_001.png\";\n    v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v9);\n    v7->setDisplayFrame(a1->m_iconSprite, v10);\n  }\n}", "assembly": "; \n; CommentCell::updateLabelValues from 0x1400b7fa0 to 0x1400b8054 (180 bytes)\n; \n; 5 xrefs:\n; > CommentCell::likedItem @ 0x1400b7f88\n; > CommentCell::likedItem @ 0x1400b7f93\n; > <???> @ 0x14066b77c\n; > <???> @ 0x14066b78c\n; > <???> @ 0x1406c7c20\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400b7fa0\npush    rsi                                                            ; +0x5, 0x1400b7fa5\nsub     rsp, 20h                                                       ; +0x6, 0x1400b7fa6\nmov     rbx, [rcx+248h]                                                ; +0xa, 0x1400b7faa\nmov     rsi, rcx                                                       ; +0x11, 0x1400b7fb1\ntest    rbx, rbx                                                       ; +0x14, 0x1400b7fb4\njz      loc_1400B8049                                                  ; +0x17, 0x1400b7fb7\nmov     rax, [rcx+250h]                                                ; +0x1d, 0x1400b7fbd\nlea     rcx, aI_11; \"%i\"                                               ; +0x24, 0x1400b7fc4\nmov     rbx, [rbx+168h]                                                ; +0x2b, 0x1400b7fcb\nmov     [rsp+28h+arg_0], rdi                                           ; +0x32, 0x1400b7fd2\nmov     edi, [rax+188h]                                                ; +0x37, 0x1400b7fd7\nmov     edx, edi                                                       ; +0x3d, 0x1400b7fdd\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3f, 0x1400b7fdf\nmov     rcx, rax                                                       ; +0x45, 0x1400b7fe5\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x48, 0x1400b7fe8\nmov     rcx, [rsi+248h]                                                ; +0x4e, 0x1400b7fee\nmov     rdx, rax                                                       ; +0x55, 0x1400b7ff5\nadd     rcx, 168h                                                      ; +0x58, 0x1400b7ff8\ncall    qword ptr [rbx]                                                ; +0x5f, 0x1400b7fff\nmov     rbx, [rsi+240h]                                                ; +0x61, 0x1400b8001\ntest    edi, edi                                                       ; +0x68, 0x1400b8008\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x6a, 0x1400b800a\nmov     rbx, [rbx]                                                     ; +0x6f, 0x1400b800f\njs      short loc_1400B8023                                            ; +0x72, 0x1400b8012\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x74, 0x1400b8014\nlea     rdx, aGjLikesicon001; \"GJ_likesIcon_001.png\"                   ; +0x7a, 0x1400b801a\njmp     short loc_1400B8030                                            ; +0x81, 0x1400b8021\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x83, 0x1400b8023\nlea     rdx, aGjDislikesicon; \"GJ_dislikesIcon_001.png\"                ; +0x89, 0x1400b8029\nmov     rcx, rax                                                       ; +0x90, 0x1400b8030\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x93, 0x1400b8033\nmov     rcx, [rsi+240h]                                                ; +0x99, 0x1400b8039\nmov     rdx, rax                                                       ; +0xa0, 0x1400b8040\ncall    qword ptr [rbx+3E0h]                                           ; +0xa3, 0x1400b8043\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa9, 0x1400b8049\nadd     rsp, 20h                                                       ; +0xae, 0x1400b804e\npop     rsi                                                            ; +0xb2, 0x1400b8052\nretn                                                                   ; +0xb3, 0x1400b8053", "xrefs": ["CommentCell::likedItem @ 0x1400b7f88", "CommentCell::likedItem @ 0x1400b7f93", "<???> @ 0x14066b77c", "<???> @ 0x14066b78c", "<???> @ 0x1406c7c20"], "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"}