{"type": "func", "start": 5370105104, "end": 5370105614, "name": "CommentCell::onMoreOptions", "pseudocode": "// \n// CommentCell::onMoreOptions from 0x140154d10 to 0x140154f0e (510 bytes)\n// \n// 2 xrefs:\n// > CommentCell::loadFromComment @ 0x1401545b2\n// > <???> @ 0x14091790c\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 11:27:19 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall CommentCell::onMoreOptions(__int64 a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rdi\n  __int64 v4; // rax\n  int v5; // eax\n  char v6; // si\n  cocos2d::CCObject *v7; // rbx\n  int v8; // r9d\n  void (__fastcall *v9)(cocos2d::CCObject *); // rdx\n  void *v10; // [rsp+30h] [rbp+8h]\n\n  if ( *(_QWORD *)(a1 + 592) )\n  {\n    if ( *(_BYTE *)(a1 + 600) )\n    {\n      v2 = GJAccountManager::sharedState(a1);\n      v3 = *(cocos2d::CCObject **)(a1 + 592);\n      if ( *((_DWORD *)v3 + 101) == *(_DWORD *)(v2 + 360) - *(_DWORD *)(v2 + 364) )\n        goto LABEL_11;\n    }\n    v4 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v10 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\n    }\n    if ( *(_DWORD *)(v4 + 692) - *(_DWORD *)(v4 + 696) > 0\n      && (v3 = *(cocos2d::CCObject **)(a1 + 592), *(_DWORD *)(v4 + 692) - *(_DWORD *)(v4 + 696) == *((_DWORD *)v3 + 97))\n      || (v3 = *(cocos2d::CCObject **)(a1 + 592), v5 = *((_DWORD *)v3 + 115), v5 == 4)\n      || v5 == 5 )\n    {\nLABEL_11:\n      v6 = 0;\n    }\n    else\n    {\n      v6 = 1;\n    }\n    v7 = (cocos2d::CCObject *)operator new(0x3F0u);\n    SetupTriggerPopup::SetupTriggerPopup((__int64)v7);\n    *(_QWORD *)v7 = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 40) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 41) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 42) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 43) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 44) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 51) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 54) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 68) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 83) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 84) = &CommentOptionsPopup::`vftable';\n    *((_QWORD *)v7 + 125) = 0;\n    if ( CommentOptionsPopup::init((__int64)v7, v3, v6, v8) )\n    {\n      cocos2d::CCObject::autorelease(v7);\n      if ( v7 )\n      {\n        v9 = *(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v7 + 1064LL);\n        if ( (char *)v9 == (char *)SetupTriggerPopup::show )\n          SetupTriggerPopup::show(v7);\n        else\n          v9(v7);\n      }\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n    }\n  }\n}", "assembly": "; \n; CommentCell::onMoreOptions from 0x140154d10 to 0x140154f0e (510 bytes)\n; \n; 2 xrefs:\n; > CommentCell::loadFromComment @ 0x1401545b2\n; > <???> @ 0x14091790c\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 11:27:19 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140154d10\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140154d15\npush    rdi                                                            ; +0xa, 0x140154d1a\nsub     rsp, 20h                                                       ; +0xb, 0x140154d1b\nmov     rbx, rcx                                                       ; +0xf, 0x140154d1f\ncmp     qword ptr [rcx+250h], 0                                        ; +0x12, 0x140154d22\njz      loc_140154EFE                                                  ; +0x1a, 0x140154d2a\ncmp     byte ptr [rcx+258h], 0                                         ; +0x20, 0x140154d30\njz      short loc_140154D5C                                            ; +0x27, 0x140154d37\ncall    GJAccountManager__sharedState                                  ; +0x29, 0x140154d39\nmov     rdx, rax                                                       ; +0x2e, 0x140154d3e\nmov     rdi, [rbx+250h]                                                ; +0x31, 0x140154d41\nmov     eax, [rax+168h]                                                ; +0x38, 0x140154d48\nsub     eax, [rdx+16Ch]                                                ; +0x3e, 0x140154d4e\ncmp     [rdi+194h], eax                                                ; +0x44, 0x140154d54\njz      short loc_140154DD5                                            ; +0x4a, 0x140154d5a\nmov     rax, cs:qword_14090BFD0                                        ; +0x4c, 0x140154d5c\ntest    rax, rax                                                       ; +0x53, 0x140154d63\njnz     short loc_140154D9A                                            ; +0x56, 0x140154d66\nmov     ecx, 6E8h; Size                                                ; +0x58, 0x140154d68\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5d, 0x140154d6d\nmov     [rsp+28h+arg_0], rax                                           ; +0x62, 0x140154d72\nmov     rcx, rax                                                       ; +0x67, 0x140154d77\ncall    GameManager__GameManager                                       ; +0x6a, 0x140154d7a\nnop                                                                    ; +0x6f, 0x140154d7f\nmov     cs:qword_14090BFD0, rax                                        ; +0x70, 0x140154d80\nmov     rcx, [rax]                                                     ; +0x77, 0x140154d87\nmov     rdx, [rcx+48h]                                                 ; +0x7a, 0x140154d8a\nmov     rcx, rax                                                       ; +0x7e, 0x140154d8e\ncall    rdx                                                            ; +0x81, 0x140154d91\nmov     rax, cs:qword_14090BFD0                                        ; +0x83, 0x140154d93\nmov     ecx, [rax+2B4h]                                                ; +0x8a, 0x140154d9a\nsub     ecx, [rax+2B8h]                                                ; +0x90, 0x140154da0\ntest    ecx, ecx                                                       ; +0x96, 0x140154da6\njle     short loc_140154DB9                                            ; +0x98, 0x140154da8\nmov     rdi, [rbx+250h]                                                ; +0x9a, 0x140154daa\ncmp     ecx, [rdi+184h]                                                ; +0xa1, 0x140154db1\njz      short loc_140154DD5                                            ; +0xa7, 0x140154db7\nmov     rdi, [rbx+250h]                                                ; +0xa9, 0x140154db9\nmov     eax, [rdi+1CCh]                                                ; +0xb0, 0x140154dc0\ncmp     eax, 4                                                         ; +0xb6, 0x140154dc6\njz      short loc_140154DD5                                            ; +0xb9, 0x140154dc9\ncmp     eax, 5                                                         ; +0xbb, 0x140154dcb\njz      short loc_140154DD5                                            ; +0xbe, 0x140154dce\nmov     sil, 1                                                         ; +0xc0, 0x140154dd0\njmp     short loc_140154DD8                                            ; +0xc3, 0x140154dd3\nxor     sil, sil                                                       ; +0xc5, 0x140154dd5\nmov     ecx, 3F0h; Size                                                ; +0xc8, 0x140154dd8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xcd, 0x140154ddd\nmov     rbx, rax                                                       ; +0xd2, 0x140154de2\nmov     [rsp+28h+arg_0], rax                                           ; +0xd5, 0x140154de5\nmov     rcx, rax                                                       ; +0xda, 0x140154dea\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0xdd, 0x140154ded\nlea     rax, ??_7CommentOptionsPopup@@6B@; const CommentOptionsPopup::`vftable' ; +0xe2, 0x140154df2\nmov     [rbx], rax                                                     ; +0xe9, 0x140154df9\nlea     rax, ??_7CommentOptionsPopup@@6B@_0; const CommentOptionsPopup::`vftable' ; +0xec, 0x140154dfc\nmov     [rbx+140h], rax                                                ; +0xf3, 0x140154e03\nlea     rax, ??_7CommentOptionsPopup@@6B@_1; const CommentOptionsPopup::`vftable' ; +0xfa, 0x140154e0a\nmov     [rbx+148h], rax                                                ; +0x101, 0x140154e11\nlea     rax, ??_7CommentOptionsPopup@@6B@_2; const CommentOptionsPopup::`vftable' ; +0x108, 0x140154e18\nmov     [rbx+150h], rax                                                ; +0x10f, 0x140154e1f\nlea     rax, ??_7CommentOptionsPopup@@6B@_3; const CommentOptionsPopup::`vftable' ; +0x116, 0x140154e26\nmov     [rbx+158h], rax                                                ; +0x11d, 0x140154e2d\nlea     rax, ??_7CommentOptionsPopup@@6B@_4; const CommentOptionsPopup::`vftable' ; +0x124, 0x140154e34\nmov     [rbx+160h], rax                                                ; +0x12b, 0x140154e3b\nlea     rax, ??_7CommentOptionsPopup@@6B@_5; const CommentOptionsPopup::`vftable' ; +0x132, 0x140154e42\nmov     [rbx+198h], rax                                                ; +0x139, 0x140154e49\nlea     rax, ??_7CommentOptionsPopup@@6B@_6; const CommentOptionsPopup::`vftable' ; +0x140, 0x140154e50\nmov     [rbx+1B0h], rax                                                ; +0x147, 0x140154e57\nlea     rax, ??_7CommentOptionsPopup@@6B@_7; const CommentOptionsPopup::`vftable' ; +0x14e, 0x140154e5e\nmov     [rbx+220h], rax                                                ; +0x155, 0x140154e65\nlea     rax, ??_7CommentOptionsPopup@@6B@_8; const CommentOptionsPopup::`vftable' ; +0x15c, 0x140154e6c\nmov     [rbx+298h], rax                                                ; +0x163, 0x140154e73\nlea     rax, ??_7CommentOptionsPopup@@6B@_9; const CommentOptionsPopup::`vftable' ; +0x16a, 0x140154e7a\nmov     [rbx+2A0h], rax                                                ; +0x171, 0x140154e81\nmov     qword ptr [rbx+3E8h], 0                                        ; +0x178, 0x140154e88\nmovzx   r8d, sil                                                       ; +0x183, 0x140154e93\nmov     rdx, rdi                                                       ; +0x187, 0x140154e97\nmov     rcx, rbx                                                       ; +0x18a, 0x140154e9a\ncall    CommentOptionsPopup__init                                      ; +0x18d, 0x140154e9d\nmov     rcx, rbx                                                       ; +0x192, 0x140154ea2\ntest    al, al                                                         ; +0x195, 0x140154ea5\njz      short loc_140154EF3                                            ; +0x197, 0x140154ea7\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x199, 0x140154ea9\ntest    rbx, rbx                                                       ; +0x19f, 0x140154eaf\njz      short loc_140154EFE                                            ; +0x1a2, 0x140154eb2\nmov     rax, [rbx]                                                     ; +0x1a4, 0x140154eb4\nmov     rdx, [rax+428h]                                                ; +0x1a7, 0x140154eb7\nlea     rax, SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x1ae, 0x140154ebe\nmov     rcx, rbx                                                       ; +0x1b5, 0x140154ec5\ncmp     rdx, rax                                                       ; +0x1b8, 0x140154ec8\njnz     short loc_140154EE1                                            ; +0x1bb, 0x140154ecb\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1bd, 0x140154ecd\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x1c2, 0x140154ed2\nadd     rsp, 20h                                                       ; +0x1c7, 0x140154ed7\npop     rdi                                                            ; +0x1cb, 0x140154edb\njmp     SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x1cc, 0x140154edc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1d1, 0x140154ee1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x1d6, 0x140154ee6\nadd     rsp, 20h                                                       ; +0x1db, 0x140154eeb\npop     rdi                                                            ; +0x1df, 0x140154eef\njmp     rdx                                                            ; +0x1e0, 0x140154ef0\nmov     rax, [rbx]                                                     ; +0x1e3, 0x140154ef3\nmov     edx, 1                                                         ; +0x1e6, 0x140154ef6\ncall    qword ptr [rax+8]                                              ; +0x1eb, 0x140154efb\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1ee, 0x140154efe\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x1f3, 0x140154f03\nadd     rsp, 20h                                                       ; +0x1f8, 0x140154f08\npop     rdi                                                            ; +0x1fc, 0x140154f0c\nretn                                                                   ; +0x1fd, 0x140154f0d", "xrefs": ["CommentCell::loadFromComment @ 0x1401545b2", "<???> @ 0x14091790c"], "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"}