{"type": "func", "start": 4297413424, "end": 4297413590, "name": "CommentCell::incrementDislikes", "pseudocode": "// \n// CommentCell::incrementDislikes from 0x100255330 to 0x1002553d6 (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::incrementDislikes(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 > 0 )\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::incrementDislikes from 0x100255330 to 0x1002553d6 (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, 0x100255330\nmov     rbp, rsp                                                       ; +0x1, 0x100255331\npush    r15                                                            ; +0x4, 0x100255334\npush    r14                                                            ; +0x6, 0x100255336\npush    rbx                                                            ; +0x8, 0x100255338\npush    rax; char                                                      ; +0x9, 0x100255339\nmov     rax, [rdi+248h]                                                ; +0xa, 0x10025533a\nmov     r15d, [rax+178h]                                               ; +0x11, 0x100255341\nlea     esi, [r15-1]                                                   ; +0x18, 0x100255348\nmov     [rax+178h], esi                                                ; +0x1c, 0x10025534c\nmov     r14, [rdi+240h]                                                ; +0x22, 0x100255352\ntest    r14, r14                                                       ; +0x29, 0x100255359\njz      short loc_1002553CB                                            ; +0x2c, 0x10025535c\nmov     rbx, rdi                                                       ; +0x2e, 0x10025535e\nlea     rdi, aI; \"%i\"                                                  ; +0x31, 0x100255361\nxor     eax, eax                                                       ; +0x38, 0x100255368\ncall    sub_1007AB580                                                  ; +0x3a, 0x10025536a\nmov     rdi, rax                                                       ; +0x3f, 0x10025536f\ncall    cocos2d__CCString__getCString                                  ; +0x42, 0x100255372\nmov     rcx, [r14]                                                     ; +0x47, 0x100255377\nmov     rdi, r14                                                       ; +0x4a, 0x10025537a\nmov     rsi, rax                                                       ; +0x4d, 0x10025537d\ncall    qword ptr [rcx+390h]                                           ; +0x50, 0x100255380\nmov     rbx, [rbx+238h]                                                ; +0x56, 0x100255386\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x5d, 0x10025538d\ntest    r15d, r15d                                                     ; +0x62, 0x100255392\nlea     rcx, aGjLikesicon001; \"GJ_likesIcon_001.png\"                   ; +0x65, 0x100255395\nlea     rsi, aGjDislikesicon; \"GJ_dislikesIcon_001.png\"                ; +0x6c, 0x10025539c\ncmovg   rsi, rcx                                                       ; +0x73, 0x1002553a3\nmov     rdi, rax                                                       ; +0x77, 0x1002553a7\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x7a, 0x1002553aa\nmov     rcx, [rbx]                                                     ; +0x7f, 0x1002553af\nmov     rcx, [rcx+478h]                                                ; +0x82, 0x1002553b2\nmov     rdi, rbx                                                       ; +0x89, 0x1002553b9\nmov     rsi, rax                                                       ; +0x8c, 0x1002553bc\nadd     rsp, 8                                                         ; +0x8f, 0x1002553bf\npop     rbx                                                            ; +0x93, 0x1002553c3\npop     r14                                                            ; +0x94, 0x1002553c4\npop     r15                                                            ; +0x96, 0x1002553c6\npop     rbp                                                            ; +0x98, 0x1002553c8\njmp     rcx                                                            ; +0x99, 0x1002553c9\nadd     rsp, 8                                                         ; +0x9b, 0x1002553cb\npop     rbx                                                            ; +0x9f, 0x1002553cf\npop     r14                                                            ; +0xa0, 0x1002553d0\npop     r15                                                            ; +0xa2, 0x1002553d2\npop     rbp                                                            ; +0xa4, 0x1002553d4\nretn                                                                   ; +0xa5, 0x1002553d5", "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"}