{"type": "func", "start": 4297413632, "end": 4297413798, "name": "CommentCell::updateLabelValues", "pseudocode": "// \n// CommentCell::updateLabelValues from 0x100255400 to 0x1002554a6 (166 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 __fastcall CommentCell::updateLabelValues(CommentCell *a1)\n{\n  char v1; // al\n  cocos2d::CCLabelBMFont *m_likeLabel; // rbx\n  int m_likeCount; // r14d\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  cocos2d::CCSprite *m_iconSprite; // rbx\n  cocos2d::CCSpriteFrameCache *v7; // rax\n  const char *v8; // rsi\n  cocos2d::CCSpriteFrame *v9; // rax\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_1007AB580(\"%i\", v1);\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    v8 = \"GJ_dislikesIcon_001.png\";\n    if ( m_likeCount >= 0 )\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 0x100255400 to 0x1002554a6 (166 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\npush    rbp                                                            ; +0x0, 0x100255400\nmov     rbp, rsp                                                       ; +0x1, 0x100255401\npush    r15                                                            ; +0x4, 0x100255404\npush    r14                                                            ; +0x6, 0x100255406\npush    rbx                                                            ; +0x8, 0x100255408\npush    rax; char                                                      ; +0x9, 0x100255409\nmov     rbx, [rdi+240h]                                                ; +0xa, 0x10025540a\ntest    rbx, rbx                                                       ; +0x11, 0x100255411\njz      loc_10025549B                                                  ; +0x14, 0x100255414\nmov     rax, [rdi+248h]                                                ; +0x1a, 0x10025541a\nmov     r14d, [rax+178h]                                               ; +0x21, 0x100255421\nlea     rax, aI; \"%i\"                                                  ; +0x28, 0x100255428\nmov     r15, rdi                                                       ; +0x2f, 0x10025542f\nmov     rdi, rax; __format                                             ; +0x32, 0x100255432\nmov     esi, r14d                                                      ; +0x35, 0x100255435\nxor     eax, eax                                                       ; +0x38, 0x100255438\ncall    sub_1007AB580                                                  ; +0x3a, 0x10025543a\nmov     rdi, rax                                                       ; +0x3f, 0x10025543f\ncall    cocos2d__CCString__getCString                                  ; +0x42, 0x100255442\nmov     rcx, [rbx]                                                     ; +0x47, 0x100255447\nmov     rdi, rbx                                                       ; +0x4a, 0x10025544a\nmov     rsi, rax                                                       ; +0x4d, 0x10025544d\ncall    qword ptr [rcx+390h]                                           ; +0x50, 0x100255450\nmov     rbx, [r15+238h]                                                ; +0x56, 0x100255456\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x5d, 0x10025545d\ntest    r14d, r14d                                                     ; +0x62, 0x100255462\nlea     rcx, aGjLikesicon001; \"GJ_likesIcon_001.png\"                   ; +0x65, 0x100255465\nlea     rsi, aGjDislikesicon; \"GJ_dislikesIcon_001.png\"                ; +0x6c, 0x10025546c\ncmovns  rsi, rcx                                                       ; +0x73, 0x100255473\nmov     rdi, rax                                                       ; +0x77, 0x100255477\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x7a, 0x10025547a\nmov     rcx, [rbx]                                                     ; +0x7f, 0x10025547f\nmov     rcx, [rcx+478h]                                                ; +0x82, 0x100255482\nmov     rdi, rbx                                                       ; +0x89, 0x100255489\nmov     rsi, rax                                                       ; +0x8c, 0x10025548c\nadd     rsp, 8                                                         ; +0x8f, 0x10025548f\npop     rbx                                                            ; +0x93, 0x100255493\npop     r14                                                            ; +0x94, 0x100255494\npop     r15                                                            ; +0x96, 0x100255496\npop     rbp                                                            ; +0x98, 0x100255498\njmp     rcx                                                            ; +0x99, 0x100255499\nadd     rsp, 8                                                         ; +0x9b, 0x10025549b\npop     rbx                                                            ; +0x9f, 0x10025549f\npop     r14                                                            ; +0xa0, 0x1002554a0\npop     r15                                                            ; +0xa2, 0x1002554a2\npop     rbp                                                            ; +0xa4, 0x1002554a4\nretn                                                                   ; +0xa5, 0x1002554a5", "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"}