{"type": "func", "start": 4297319344, "end": 4297319579, "name": "CommentCell::likedItem", "pseudocode": "// \n// CommentCell::likedItem from 0x10023e3b0 to 0x10023e49b (235 bytes)\n// \n// 2 xrefs:\n// > sub_10023E600 @ 0x10023e60c\n// > <???> @ 0x100aeb398\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:27:17 +0000\n// \n\n__int64 __fastcall CommentCell::likedItem(_QWORD *a1, __int64 a2, int a3, char a4)\n{\n  __int64 result; // rax\n  int v5; // r14d\n  __int64 v6; // rbx\n  int v7; // r15d\n  __int64 v8; // rax\n  __int64 CString; // rax\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  const char *v12; // rsi\n  __int64 v13; // rax\n  char v14; // [rsp+0h] [rbp-20h]\n\n  result = a1[73];\n  if ( result && *(_DWORD *)(result + 368) == a3 )\n  {\n    v5 = *(_DWORD *)(result + 376);\n    if ( a4 )\n    {\n      *(_DWORD *)(result + 376) = v5 + 1;\n      v6 = a1[72];\n      v7 = -2;\n      if ( !v6 )\n        return result;\n    }\n    else\n    {\n      *(_DWORD *)(result + 376) = v5 - 1;\n      v6 = a1[72];\n      v7 = 0;\n      if ( !v6 )\n        return result;\n    }\n    v8 = sub_10088E820(\"%i\", v14);\n    CString = cocos2d::CCString::getCString(v8);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 928LL))(v6, CString);\n    v10 = a1[71];\n    v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v12 = \"GJ_dislikesIcon_001.png\";\n    if ( v5 > v7 )\n      v12 = \"GJ_likesIcon_001.png\";\n    v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, v12);\n    return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 1160LL))(v10, v13);\n  }\n  return result;\n}", "assembly": "; \n; CommentCell::likedItem from 0x10023e3b0 to 0x10023e49b (235 bytes)\n; \n; 2 xrefs:\n; > sub_10023E600 @ 0x10023e60c\n; > <???> @ 0x100aeb398\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:27:17 +0000\n; \npush    rbp                                                            ; +0x0, 0x10023e3b0\nmov     rbp, rsp                                                       ; +0x1, 0x10023e3b1\npush    r15                                                            ; +0x4, 0x10023e3b4\npush    r14                                                            ; +0x6, 0x10023e3b6\npush    r12                                                            ; +0x8, 0x10023e3b8\npush    rbx; char                                                      ; +0xa, 0x10023e3ba\nmov     rax, [rdi+248h]                                                ; +0xb, 0x10023e3bb\ntest    rax, rax                                                       ; +0x12, 0x10023e3c2\njz      loc_10023E492                                                  ; +0x15, 0x10023e3c5\ncmp     [rax+170h], edx                                                ; +0x1b, 0x10023e3cb\njnz     loc_10023E492                                                  ; +0x21, 0x10023e3d1\nmov     r14d, [rax+178h]                                               ; +0x27, 0x10023e3d7\ntest    cl, cl                                                         ; +0x2e, 0x10023e3de\njz      loc_10023E475                                                  ; +0x30, 0x10023e3e0\nlea     esi, [r14+1]                                                   ; +0x36, 0x10023e3e6\nmov     [rax+178h], esi                                                ; +0x3a, 0x10023e3ea\nmov     rbx, [rdi+240h]                                                ; +0x40, 0x10023e3f0\nmov     r15d, 0FFFFFFFEh                                               ; +0x47, 0x10023e3f7\ntest    rbx, rbx                                                       ; +0x4d, 0x10023e3fd\njz      loc_10023E492                                                  ; +0x50, 0x10023e400\nlea     rax, aI_14; \"%i\"                                               ; +0x56, 0x10023e406\nmov     r12, rdi                                                       ; +0x5d, 0x10023e40d\nmov     rdi, rax; __format                                             ; +0x60, 0x10023e410\nxor     eax, eax                                                       ; +0x63, 0x10023e413\ncall    sub_10088E820                                                  ; +0x65, 0x10023e415\nmov     rdi, rax                                                       ; +0x6a, 0x10023e41a\ncall    cocos2d__CCString__getCString                                  ; +0x6d, 0x10023e41d\nmov     rcx, [rbx]                                                     ; +0x72, 0x10023e422\nmov     rdi, rbx                                                       ; +0x75, 0x10023e425\nmov     rsi, rax                                                       ; +0x78, 0x10023e428\ncall    qword ptr [rcx+3A0h]                                           ; +0x7b, 0x10023e42b\nmov     rbx, [r12+238h]                                                ; +0x81, 0x10023e431\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x89, 0x10023e439\ncmp     r14d, r15d                                                     ; +0x8e, 0x10023e43e\nlea     rcx, aGjLikesicon001; \"GJ_likesIcon_001.png\"                   ; +0x91, 0x10023e441\nlea     rsi, aGjDislikesicon; \"GJ_dislikesIcon_001.png\"                ; +0x98, 0x10023e448\ncmovg   rsi, rcx                                                       ; +0x9f, 0x10023e44f\nmov     rdi, rax                                                       ; +0xa3, 0x10023e453\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0xa6, 0x10023e456\nmov     rcx, [rbx]                                                     ; +0xab, 0x10023e45b\nmov     rcx, [rcx+488h]                                                ; +0xae, 0x10023e45e\nmov     rdi, rbx                                                       ; +0xb5, 0x10023e465\nmov     rsi, rax                                                       ; +0xb8, 0x10023e468\npop     rbx                                                            ; +0xbb, 0x10023e46b\npop     r12                                                            ; +0xbc, 0x10023e46c\npop     r14                                                            ; +0xbe, 0x10023e46e\npop     r15                                                            ; +0xc0, 0x10023e470\npop     rbp                                                            ; +0xc2, 0x10023e472\njmp     rcx                                                            ; +0xc3, 0x10023e473\nlea     esi, [r14-1]                                                   ; +0xc5, 0x10023e475\nmov     [rax+178h], esi                                                ; +0xc9, 0x10023e479\nmov     rbx, [rdi+240h]                                                ; +0xcf, 0x10023e47f\nxor     r15d, r15d                                                     ; +0xd6, 0x10023e486\ntest    rbx, rbx                                                       ; +0xd9, 0x10023e489\njnz     loc_10023E406                                                  ; +0xdc, 0x10023e48c\npop     rbx                                                            ; +0xe2, 0x10023e492\npop     r12                                                            ; +0xe3, 0x10023e493\npop     r14                                                            ; +0xe5, 0x10023e495\npop     r15                                                            ; +0xe7, 0x10023e497\npop     rbp                                                            ; +0xe9, 0x10023e499\nretn                                                                   ; +0xea, 0x10023e49a", "xrefs": ["sub_10023E600 @ 0x10023e60c", "<???> @ 0x100aeb398"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}