{"type": "func", "start": 4297318256, "end": 4297318593, "name": "CommentCell::onLike", "pseudocode": "// \n// CommentCell::onLike from 0x10023df70 to 0x10023e0c1 (337 bytes)\n// \n// 1 xrefs:\n// > CommentCell::loadFromComment @ 0x10022ee37\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\nvoid __fastcall CommentCell::onLike(__int64 a1, __int64 a2, double a3)\n{\n  __int64 v4; // rax\n  __int64 v5; // rax\n  int v6; // edx\n  __int64 v7; // rcx\n  unsigned int v8; // r14d\n  __int64 v9; // r14\n  unsigned int v10; // r15d\n  __int64 v11; // rax\n  __int64 v12; // rdx\n  __int64 v13; // rdi\n  __int64 v14; // rdx\n  int v15; // r12d\n  double v16; // xmm0_8\n  __int64 v17; // rax\n  __int64 v18; // rax\n  int v19; // r12d\n  __int64 v20; // rax\n  _QWORD *v21; // rax\n\n  v4 = GJAccountManager::sharedState(a1, a2);\n  if ( *(_DWORD *)(v4 + 352) <= *(_DWORD *)(v4 + 356) )\n  {\n    GJAccountManager::sharedState(a1, a2);\n    sub_1000A24A0();\n    return;\n  }\n  v5 = *(_QWORD *)(a1 + 584);\n  if ( !v5 )\n    goto LABEL_8;\n  v6 = *(_DWORD *)(v5 + 436);\n  if ( v6 == 3 )\n  {\n    v10 = 0;\n    v8 = 6;\n    goto LABEL_11;\n  }\n  v7 = 380;\n  if ( v6 == 4 )\n  {\n    v8 = 7;\n    goto LABEL_10;\n  }\n  if ( v6 == 5 )\n  {\n    v8 = 8;\n  }\n  else\n  {\nLABEL_8:\n    v9 = *(unsigned __int8 *)(a1 + 592);\n    v7 = 8 * v9 + 380;\n    v8 = v9 | 2;\n  }\nLABEL_10:\n  v10 = *(_DWORD *)(v5 + v7);\nLABEL_11:\n  v11 = GameLevelManager::sharedState(a3);\n  v12 = *(unsigned int *)(*(_QWORD *)(a1 + 584) + 368LL);\n  v13 = v11;\n  if ( !(unsigned __int8)GameLevelManager::hasLikedItemFullCheck(v11, v8, v12, v10) )\n  {\n    v15 = *(_DWORD *)(*(_QWORD *)(a1 + 584) + 372LL);\n    *(_QWORD *)&v16 = GameManager::sharedState(v13, v8, v14).u64[0];\n    if ( v15 != *(_DWORD *)(v17 + 660) - *(_DWORD *)(v17 + 664) )\n    {\n      v18 = *(_QWORD *)(a1 + 584);\n      v19 = *(_DWORD *)(v18 + 388);\n      if ( v19 )\n      {\n        v20 = GJAccountManager::sharedState(v13, v8);\n        if ( v19 == *(_DWORD *)(v20 + 352) - *(_DWORD *)(v20 + 356) )\n          return;\n        v18 = *(_QWORD *)(a1 + 584);\n      }\n      v21 = (_QWORD *)LikeItemLayer::create(v8, *(unsigned int *)(v18 + 368), v10, v16);\n      v21[84] = a1 + 552;\n      (*(void (__fastcall **)(_QWORD *))(*v21 + 1312LL))(v21);\n    }\n  }\n}", "assembly": "; \n; CommentCell::onLike from 0x10023df70 to 0x10023e0c1 (337 bytes)\n; \n; 1 xrefs:\n; > CommentCell::loadFromComment @ 0x10022ee37\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, 0x10023df70\nmov     rbp, rsp                                                       ; +0x1, 0x10023df71\npush    r15                                                            ; +0x4, 0x10023df74\npush    r14                                                            ; +0x6, 0x10023df76\npush    r12                                                            ; +0x8, 0x10023df78\npush    rbx                                                            ; +0xa, 0x10023df7a\nmov     rbx, rdi                                                       ; +0xb, 0x10023df7b\ncall    GJAccountManager__sharedState                                  ; +0xe, 0x10023df7e\nmov     ecx, [rax+160h]                                                ; +0x13, 0x10023df83\ncmp     ecx, [rax+164h]                                                ; +0x19, 0x10023df89\njle     short loc_10023DFC3                                            ; +0x1f, 0x10023df8f\nmov     rax, [rbx+248h]                                                ; +0x21, 0x10023df91\ntest    rax, rax                                                       ; +0x28, 0x10023df98\njz      short loc_10023DFDF                                            ; +0x2b, 0x10023df9b\nmov     edx, [rax+1B4h]                                                ; +0x2d, 0x10023df9d\ncmp     edx, 3                                                         ; +0x33, 0x10023dfa3\njz      loc_10023E079                                                  ; +0x36, 0x10023dfa6\nmov     ecx, 17Ch                                                      ; +0x3c, 0x10023dfac\ncmp     edx, 4                                                         ; +0x41, 0x10023dfb1\njz      short loc_10023DFF5                                            ; +0x44, 0x10023dfb4\ncmp     edx, 5                                                         ; +0x46, 0x10023dfb6\njnz     short loc_10023DFDF                                            ; +0x49, 0x10023dfb9\nmov     r14d, 8                                                        ; +0x4b, 0x10023dfbb\njmp     short loc_10023DFFB                                            ; +0x51, 0x10023dfc1\ncall    GJAccountManager__sharedState                                  ; +0x53, 0x10023dfc3\nlea     rsi, aLikeCgComments; \"like <cg>comments</c>\"                  ; +0x58, 0x10023dfc8\nmov     rdi, rax                                                       ; +0x5f, 0x10023dfcf\npop     rbx                                                            ; +0x62, 0x10023dfd2\npop     r12                                                            ; +0x63, 0x10023dfd3\npop     r14                                                            ; +0x65, 0x10023dfd5\npop     r15                                                            ; +0x67, 0x10023dfd7\npop     rbp                                                            ; +0x69, 0x10023dfd9\njmp     sub_1000A24A0                                                  ; +0x6a, 0x10023dfda\nmovzx   r14d, byte ptr [rbx+250h]                                      ; +0x6f, 0x10023dfdf\nlea     rcx, ds:17Ch[r14*8]                                            ; +0x77, 0x10023dfe7\nor      r14d, 2                                                        ; +0x7f, 0x10023dfef\njmp     short loc_10023DFFB                                            ; +0x83, 0x10023dff3\nmov     r14d, 7                                                        ; +0x85, 0x10023dff5\nmov     r15d, [rax+rcx]                                                ; +0x8b, 0x10023dffb\ncall    GameLevelManager__sharedState                                  ; +0x8f, 0x10023dfff\nmov     rcx, [rbx+248h]                                                ; +0x94, 0x10023e004\nmov     edx, [rcx+170h]                                                ; +0x9b, 0x10023e00b\nmov     rdi, rax                                                       ; +0xa1, 0x10023e011\nmov     esi, r14d                                                      ; +0xa4, 0x10023e014\nmov     ecx, r15d                                                      ; +0xa7, 0x10023e017\ncall    GameLevelManager__hasLikedItemFullCheck                        ; +0xaa, 0x10023e01a\ntest    al, al                                                         ; +0xaf, 0x10023e01f\njnz     short loc_10023E070                                            ; +0xb1, 0x10023e021\nmov     rax, [rbx+248h]                                                ; +0xb3, 0x10023e023\nmov     r12d, [rax+174h]                                               ; +0xba, 0x10023e02a\ncall    GameManager__sharedState                                       ; +0xc1, 0x10023e031\nmov     ecx, [rax+294h]                                                ; +0xc6, 0x10023e036\nsub     ecx, [rax+298h]                                                ; +0xcc, 0x10023e03c\ncmp     r12d, ecx                                                      ; +0xd2, 0x10023e042\njz      short loc_10023E070                                            ; +0xd5, 0x10023e045\nmov     rax, [rbx+248h]                                                ; +0xd7, 0x10023e047\nmov     r12d, [rax+184h]                                               ; +0xde, 0x10023e04e\ntest    r12d, r12d                                                     ; +0xe5, 0x10023e055\njz      short loc_10023E08E                                            ; +0xe8, 0x10023e058\ncall    GJAccountManager__sharedState                                  ; +0xea, 0x10023e05a\nmov     ecx, [rax+160h]                                                ; +0xef, 0x10023e05f\nsub     ecx, [rax+164h]                                                ; +0xf5, 0x10023e065\ncmp     r12d, ecx                                                      ; +0xfb, 0x10023e06b\njnz     short loc_10023E087                                            ; +0xfe, 0x10023e06e\npop     rbx                                                            ; +0x100, 0x10023e070\npop     r12                                                            ; +0x101, 0x10023e071\npop     r14                                                            ; +0x103, 0x10023e073\npop     r15                                                            ; +0x105, 0x10023e075\npop     rbp                                                            ; +0x107, 0x10023e077\nretn                                                                   ; +0x108, 0x10023e078\nxor     r15d, r15d                                                     ; +0x109, 0x10023e079\nmov     r14d, 6                                                        ; +0x10c, 0x10023e07c\njmp     loc_10023DFFF                                                  ; +0x112, 0x10023e082\nmov     rax, [rbx+248h]                                                ; +0x117, 0x10023e087\nmov     esi, [rax+170h]                                                ; +0x11e, 0x10023e08e\nmov     edi, r14d                                                      ; +0x124, 0x10023e094\nmov     edx, r15d                                                      ; +0x127, 0x10023e097\ncall    LikeItemLayer__create                                          ; +0x12a, 0x10023e09a\nadd     rbx, 228h                                                      ; +0x12f, 0x10023e09f\nmov     [rax+2A0h], rbx                                                ; +0x136, 0x10023e0a6\nmov     rcx, [rax]                                                     ; +0x13d, 0x10023e0ad\nmov     rdi, rax                                                       ; +0x140, 0x10023e0b0\npop     rbx                                                            ; +0x143, 0x10023e0b3\npop     r12                                                            ; +0x144, 0x10023e0b4\npop     r14                                                            ; +0x146, 0x10023e0b6\npop     r15                                                            ; +0x148, 0x10023e0b8\npop     rbp                                                            ; +0x14a, 0x10023e0ba\njmp     qword ptr [rcx+520h]                                           ; +0x14b, 0x10023e0bb", "xrefs": ["CommentCell::loadFromComment @ 0x10022ee37"], "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"}