{"type": "func", "start": 5373274080, "end": 5373274132, "name": "LevelSettingsLayer::onOptionToggle", "pseudocode": "// \n// LevelSettingsLayer::onOptionToggle from 0x14045a7e0 to 0x14045a814 (52 bytes)\n// \n// 2 xrefs:\n// > LevelSettingsLayer::init @ 0x1404595c7\n// > <???> @ 0x140927c38\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:32:31 +0000\n// \n\nchar __fastcall LevelSettingsLayer::onOptionToggle(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  __int64 v4; // rcx\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  if ( v3 == 1 )\n  {\n    v4 = *(_QWORD *)(a1 + 816);\n    LOBYTE(v3) = *(_BYTE *)(v4 + 448) == 0;\n    *(_BYTE *)(v4 + 448) = v3;\n  }\n  return v3;\n}", "assembly": "; \n; LevelSettingsLayer::onOptionToggle from 0x14045a7e0 to 0x14045a814 (52 bytes)\n; \n; 2 xrefs:\n; > LevelSettingsLayer::init @ 0x1404595c7\n; > <???> @ 0x140927c38\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:32:31 +0000\n; \npush    rbx                                                            ; +0x0, 0x14045a7e0\nsub     rsp, 20h                                                       ; +0x2, 0x14045a7e2\nmov     rax, [rdx]                                                     ; +0x6, 0x14045a7e6\nmov     rbx, rcx                                                       ; +0x9, 0x14045a7e9\nmov     rcx, rdx                                                       ; +0xc, 0x14045a7ec\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x14045a7ef\ncmp     eax, 1                                                         ; +0x12, 0x14045a7f2\njnz     short loc_14045A80E                                            ; +0x15, 0x14045a7f5\nmov     rcx, [rbx+330h]                                                ; +0x17, 0x14045a7f7\ncmp     byte ptr [rcx+1C0h], 0                                         ; +0x1e, 0x14045a7fe\nsetz    al                                                             ; +0x25, 0x14045a805\nmov     [rcx+1C0h], al                                                 ; +0x28, 0x14045a808\nadd     rsp, 20h                                                       ; +0x2e, 0x14045a80e\npop     rbx                                                            ; +0x32, 0x14045a812\nretn                                                                   ; +0x33, 0x14045a813", "xrefs": ["LevelSettingsLayer::init @ 0x1404595c7", "<???> @ 0x140927c38"], "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"}