{"type": "func", "start": 5370090784, "end": 5370090883, "name": "OptionsCell::onToggleOption", "pseudocode": "// \n// OptionsCell::onToggleOption from 0x140151520 to 0x140151583 (99 bytes)\n// \n// 2 xrefs:\n// > OptionsCell::loadFromObject @ 0x14015146d\n// > <???> @ 0x140917840\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:17 +0000\n// \n\n__int64 __fastcall OptionsCell::onToggleOption(__int64 a1)\n{\n  __int64 v1; // rdx\n  void (__fastcall ***v3)(_QWORD); // rcx\n  __int64 result; // rax\n  __int64 (__fastcall ***v5)(_QWORD, __int64, __int64, __int64, _QWORD); // rcx\n\n  v1 = *(_QWORD *)(a1 + 560);\n  if ( v1 )\n  {\n    v3 = *(void (__fastcall ****)(_QWORD))(v1 + 96);\n    *(_BYTE *)(v1 + 60) = *(_BYTE *)(v1 + 60) == 0;\n    if ( v3 )\n      (**v3)(v3);\n    result = *(_QWORD *)(a1 + 416);\n    v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 624);\n    if ( v5 )\n      return (**v5)(v5, a1, 24, 1, 0);\n  }\n  return result;\n}", "assembly": "; \n; OptionsCell::onToggleOption from 0x140151520 to 0x140151583 (99 bytes)\n; \n; 2 xrefs:\n; > OptionsCell::loadFromObject @ 0x14015146d\n; > <???> @ 0x140917840\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:17 +0000\n; \npush    rbx                                                            ; +0x0, 0x140151520\nsub     rsp, 30h                                                       ; +0x2, 0x140151522\nmov     rdx, [rcx+230h]                                                ; +0x6, 0x140151526\nmov     rbx, rcx                                                       ; +0xd, 0x14015152d\ntest    rdx, rdx                                                       ; +0x10, 0x140151530\njz      short loc_14015157D                                            ; +0x13, 0x140151533\ncmp     byte ptr [rdx+3Ch], 0                                          ; +0x15, 0x140151535\nmov     rcx, [rdx+60h]                                                 ; +0x19, 0x140151539\nsetz    al                                                             ; +0x1d, 0x14015153d\nmov     [rdx+3Ch], al                                                  ; +0x20, 0x140151540\ntest    rcx, rcx                                                       ; +0x23, 0x140151543\njz      short loc_14015154D                                            ; +0x26, 0x140151546\nmov     rax, [rcx]                                                     ; +0x28, 0x140151548\ncall    qword ptr [rax]                                                ; +0x2b, 0x14015154b\nmov     rax, [rbx+1A0h]                                                ; +0x2d, 0x14015154d\nmov     rcx, [rax+270h]                                                ; +0x34, 0x140151554\ntest    rcx, rcx                                                       ; +0x3b, 0x14015155b\njz      short loc_14015157D                                            ; +0x3e, 0x14015155e\nmov     rax, [rcx]                                                     ; +0x40, 0x140151560\nmov     r9d, 1                                                         ; +0x43, 0x140151563\nmov     r8d, 18h                                                       ; +0x49, 0x140151569\nmov     [rsp+38h+var_18], 0                                            ; +0x4f, 0x14015156f\nmov     rdx, rbx                                                       ; +0x58, 0x140151578\ncall    qword ptr [rax]                                                ; +0x5b, 0x14015157b\nadd     rsp, 30h                                                       ; +0x5d, 0x14015157d\npop     rbx                                                            ; +0x61, 0x140151581\nretn                                                                   ; +0x62, 0x140151582", "xrefs": ["OptionsCell::loadFromObject @ 0x14015146d", "<???> @ 0x140917840"], "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"}