{"type": "func", "start": 4297318944, "end": 4297319135, "name": "CommentCell::onMoreOptions", "pseudocode": "// \n// CommentCell::onMoreOptions from 0x10023e220 to 0x10023e2df (191 bytes)\n// \n// 1 xrefs:\n// > CommentCell::loadFromComment @ 0x10022f311\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_DWORD *__fastcall CommentCell::onMoreOptions(__int64 a1, __int64 a2, __int64 a3, double a4)\n{\n  _DWORD *result; // rax\n  int v5; // r14d\n  __int64 v6; // rax\n  __int64 v7; // rdi\n  __int64 v8; // rdx\n  __int64 v9; // rax\n  __int64 v10; // rax\n\n  result = *(_DWORD **)(a1 + 584);\n  if ( result )\n  {\n    if ( *(_BYTE *)(a1 + 592) == 1 )\n    {\n      v5 = result[97];\n      v6 = GJAccountManager::sharedState(a1, a2);\n      if ( v5 == *(_DWORD *)(v6 + 352) - *(_DWORD *)(v6 + 356) )\n      {\n        v7 = *(_QWORD *)(a1 + 584);\n        goto LABEL_7;\n      }\n    }\n    *(_QWORD *)&a4 = GameManager::sharedState(a1, a2, a3).u64[0];\n    if ( *(_DWORD *)(v9 + 660) <= *(_DWORD *)(v9 + 664) )\n    {\n      v7 = *(_QWORD *)(a1 + 584);\n    }\n    else\n    {\n      *(_QWORD *)&a4 = GameManager::sharedState(a1, a2, v8).u64[0];\n      v7 = *(_QWORD *)(a1 + 584);\n      if ( *(_DWORD *)(v10 + 660) - *(_DWORD *)(v10 + 664) == *(_DWORD *)(v7 + 372) )\n      {\nLABEL_7:\n        result = (_DWORD *)CommentOptionsPopup::create(v7, 0, a4);\n        if ( !result )\n          return result;\n        return (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)result + 1312LL))(result);\n      }\n    }\n    result = (_DWORD *)CommentOptionsPopup::create(v7, (*(_DWORD *)(v7 + 436) & 0xFFFFFFFE) != 4, a4);\n    if ( result )\n      return (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)result + 1312LL))(result);\n  }\n  return result;\n}", "assembly": "; \n; CommentCell::onMoreOptions from 0x10023e220 to 0x10023e2df (191 bytes)\n; \n; 1 xrefs:\n; > CommentCell::loadFromComment @ 0x10022f311\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, 0x10023e220\nmov     rbp, rsp                                                       ; +0x1, 0x10023e221\npush    r14                                                            ; +0x4, 0x10023e224\npush    rbx                                                            ; +0x6, 0x10023e226\nmov     rax, [rdi+248h]                                                ; +0x7, 0x10023e227\ntest    rax, rax                                                       ; +0xe, 0x10023e22e\njz      short loc_10023E2A7                                            ; +0x11, 0x10023e231\nmov     rbx, rdi                                                       ; +0x13, 0x10023e233\ncmp     byte ptr [rdi+250h], 1                                         ; +0x16, 0x10023e236\njnz     short loc_10023E265                                            ; +0x1d, 0x10023e23d\nmov     r14d, [rax+184h]                                               ; +0x1f, 0x10023e23f\ncall    GJAccountManager__sharedState                                  ; +0x26, 0x10023e246\nmov     ecx, [rax+160h]                                                ; +0x2b, 0x10023e24b\nsub     ecx, [rax+164h]                                                ; +0x31, 0x10023e251\ncmp     r14d, ecx                                                      ; +0x37, 0x10023e257\njnz     short loc_10023E265                                            ; +0x3a, 0x10023e25a\nmov     rdi, [rbx+248h]                                                ; +0x3c, 0x10023e25c\njmp     short loc_10023E298                                            ; +0x43, 0x10023e263\ncall    GameManager__sharedState                                       ; +0x45, 0x10023e265\nmov     ecx, [rax+294h]                                                ; +0x4a, 0x10023e26a\ncmp     ecx, [rax+298h]                                                ; +0x50, 0x10023e270\njle     short loc_10023E2AC                                            ; +0x56, 0x10023e276\ncall    GameManager__sharedState                                       ; +0x58, 0x10023e278\nmov     ecx, [rax+294h]                                                ; +0x5d, 0x10023e27d\nsub     ecx, [rax+298h]                                                ; +0x63, 0x10023e283\nmov     rdi, [rbx+248h]                                                ; +0x69, 0x10023e289\ncmp     ecx, [rdi+174h]                                                ; +0x70, 0x10023e290\njnz     short loc_10023E2B3                                            ; +0x76, 0x10023e296\nxor     eax, eax                                                       ; +0x78, 0x10023e298\nmovzx   esi, al                                                        ; +0x7a, 0x10023e29a\ncall    CommentOptionsPopup__create                                    ; +0x7d, 0x10023e29d\ntest    rax, rax                                                       ; +0x82, 0x10023e2a2\njnz     short loc_10023E2CF                                            ; +0x85, 0x10023e2a5\npop     rbx                                                            ; +0x87, 0x10023e2a7\npop     r14                                                            ; +0x88, 0x10023e2a8\npop     rbp                                                            ; +0x8a, 0x10023e2aa\nretn                                                                   ; +0x8b, 0x10023e2ab\nmov     rdi, [rbx+248h]                                                ; +0x8c, 0x10023e2ac\nmov     eax, [rdi+1B4h]                                                ; +0x93, 0x10023e2b3\nand     eax, 0FFFFFFFEh                                                ; +0x99, 0x10023e2b9\ncmp     eax, 4                                                         ; +0x9c, 0x10023e2bc\nsetnz   al                                                             ; +0x9f, 0x10023e2bf\nmovzx   esi, al                                                        ; +0xa2, 0x10023e2c2\ncall    CommentOptionsPopup__create                                    ; +0xa5, 0x10023e2c5\ntest    rax, rax                                                       ; +0xaa, 0x10023e2ca\njz      short loc_10023E2A7                                            ; +0xad, 0x10023e2cd\nmov     rcx, [rax]                                                     ; +0xaf, 0x10023e2cf\nmov     rdi, rax                                                       ; +0xb2, 0x10023e2d2\npop     rbx                                                            ; +0xb5, 0x10023e2d5\npop     r14                                                            ; +0xb6, 0x10023e2d6\npop     rbp                                                            ; +0xb8, 0x10023e2d8\njmp     qword ptr [rcx+520h]                                           ; +0xb9, 0x10023e2d9", "xrefs": ["CommentCell::loadFromComment @ 0x10022f311"], "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"}