{"type": "func", "start": 4297413248, "end": 4297413415, "name": "CommentCell::incrementLikes", "pseudocode": "// \n// CommentCell::incrementLikes from 0x100255280 to 0x100255327 (167 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::incrementLikes(CommentCell *a1)\n{\n  char v1; // al\n  GJComment *m_comment; // rax\n  int m_likeCount; // r15d\n  cocos2d::CCLabelBMFont *m_likeLabel; // r14\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  cocos2d::CCSprite *m_iconSprite; // rbx\n  cocos2d::CCSpriteFrameCache *v8; // rax\n  const char *v9; // rsi\n  cocos2d::CCSpriteFrame *v10; // rax\n  char v11; // [rsp-8h] [rbp-20h]\n\n  v11 = v1;\n  m_comment = a1->m_comment;\n  m_likeCount = m_comment->m_likeCount;\n  m_comment->m_likeCount = m_likeCount + 1;\n  m_likeLabel = a1->m_likeLabel;\n  if ( m_likeLabel )\n  {\n    v5 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v11);\n    CString = cocos2d::CCString::getCString(v5);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_likeLabel->setString)(m_likeLabel, CString);\n    m_iconSprite = a1->m_iconSprite;\n    v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v9 = \"GJ_dislikesIcon_001.png\";\n    if ( m_likeCount >= -1 )\n      v9 = \"GJ_likesIcon_001.png\";\n    v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v9);\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_iconSprite->setDisplayFrame)(\n      m_iconSprite,\n      v10);\n  }\n}", "assembly": "; \n; CommentCell::incrementLikes from 0x100255280 to 0x100255327 (167 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, 0x100255280\nmov     rbp, rsp                                                       ; +0x1, 0x100255281\npush    r15                                                            ; +0x4, 0x100255284\npush    r14                                                            ; +0x6, 0x100255286\npush    rbx                                                            ; +0x8, 0x100255288\npush    rax; char                                                      ; +0x9, 0x100255289\nmov     rax, [rdi+248h]                                                ; +0xa, 0x10025528a\nmov     r15d, [rax+178h]                                               ; +0x11, 0x100255291\nlea     esi, [r15+1]                                                   ; +0x18, 0x100255298\nmov     [rax+178h], esi                                                ; +0x1c, 0x10025529c\nmov     r14, [rdi+240h]                                                ; +0x22, 0x1002552a2\ntest    r14, r14                                                       ; +0x29, 0x1002552a9\njz      short loc_10025531C                                            ; +0x2c, 0x1002552ac\nmov     rbx, rdi                                                       ; +0x2e, 0x1002552ae\nlea     rdi, aI; \"%i\"                                                  ; +0x31, 0x1002552b1\nxor     eax, eax                                                       ; +0x38, 0x1002552b8\ncall    sub_1007AB580                                                  ; +0x3a, 0x1002552ba\nmov     rdi, rax                                                       ; +0x3f, 0x1002552bf\ncall    cocos2d__CCString__getCString                                  ; +0x42, 0x1002552c2\nmov     rcx, [r14]                                                     ; +0x47, 0x1002552c7\nmov     rdi, r14                                                       ; +0x4a, 0x1002552ca\nmov     rsi, rax                                                       ; +0x4d, 0x1002552cd\ncall    qword ptr [rcx+390h]                                           ; +0x50, 0x1002552d0\nmov     rbx, [rbx+238h]                                                ; +0x56, 0x1002552d6\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x5d, 0x1002552dd\ncmp     r15d, 0FFFFFFFFh                                               ; +0x62, 0x1002552e2\nlea     rcx, aGjLikesicon001; \"GJ_likesIcon_001.png\"                   ; +0x66, 0x1002552e6\nlea     rsi, aGjDislikesicon; \"GJ_dislikesIcon_001.png\"                ; +0x6d, 0x1002552ed\ncmovge  rsi, rcx                                                       ; +0x74, 0x1002552f4\nmov     rdi, rax                                                       ; +0x78, 0x1002552f8\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x7b, 0x1002552fb\nmov     rcx, [rbx]                                                     ; +0x80, 0x100255300\nmov     rcx, [rcx+478h]                                                ; +0x83, 0x100255303\nmov     rdi, rbx                                                       ; +0x8a, 0x10025530a\nmov     rsi, rax                                                       ; +0x8d, 0x10025530d\nadd     rsp, 8                                                         ; +0x90, 0x100255310\npop     rbx                                                            ; +0x94, 0x100255314\npop     r14                                                            ; +0x95, 0x100255315\npop     r15                                                            ; +0x97, 0x100255317\npop     rbp                                                            ; +0x99, 0x100255319\njmp     rcx                                                            ; +0x9a, 0x10025531a\nadd     rsp, 8                                                         ; +0x9c, 0x10025531c\npop     rbx                                                            ; +0xa0, 0x100255320\npop     r14                                                            ; +0xa1, 0x100255321\npop     r15                                                            ; +0xa3, 0x100255323\npop     rbp                                                            ; +0xa5, 0x100255325\nretn                                                                   ; +0xa6, 0x100255326", "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"}