{"type": "func", "start": 4297585040, "end": 4297585164, "name": "EditorPauseLayer::toggleGridOnTop", "pseudocode": "// \n// EditorPauseLayer::toggleGridOnTop from 0x10027f190 to 0x10027f20c (124 bytes)\n// \n// 0 xrefs:\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:42 +0000\n// \n\n__int64 __fastcall EditorPauseLayer::toggleGridOnTop(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rdx\n  double v7; // xmm0_8\n  __int64 v8; // rax\n  char GameVariable; // r14\n  __int64 v10; // rax\n  __int64 v11; // rdx\n\n  GameManager::sharedState(a1, a2, a3);\n  v5 = v4;\n  GameManager::toggleGameVariable(v4, \"0039\");\n  *(_QWORD *)&v7 = GameManager::sharedState(v5, \"0039\", v6).u64[0];\n  GameVariable = GameManager::getGameVariable(v8, \"0039\");\n  v10 = (*(__int64 (__fastcall **)(_QWORD, double))(**(_QWORD **)(*(_QWORD *)(a1 + 576) + 14288LL) + 512LL))(\n          *(_QWORD *)(*(_QWORD *)(a1 + 576) + 14288LL),\n          v7);\n  v11 = 4294965697LL;\n  if ( GameVariable )\n    v11 = 1399;\n  return (*(__int64 (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v10 + 592LL))(\n           v10,\n           *(_QWORD *)(*(_QWORD *)(a1 + 576) + 14288LL),\n           v11);\n}", "assembly": "; \n; EditorPauseLayer::toggleGridOnTop from 0x10027f190 to 0x10027f20c (124 bytes)\n; \n; 0 xrefs:\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:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x10027f190\nmov     rbp, rsp                                                       ; +0x1, 0x10027f191\npush    r14                                                            ; +0x4, 0x10027f194\npush    rbx                                                            ; +0x6, 0x10027f196\nmov     rbx, rdi                                                       ; +0x7, 0x10027f197\ncall    GameManager__sharedState                                       ; +0xa, 0x10027f19a\nlea     r14, a0039; \"0039\"                                             ; +0xf, 0x10027f19f\nmov     rdi, rax                                                       ; +0x16, 0x10027f1a6\nmov     rsi, r14                                                       ; +0x19, 0x10027f1a9\ncall    GameManager__toggleGameVariable                                ; +0x1c, 0x10027f1ac\ncall    GameManager__sharedState                                       ; +0x21, 0x10027f1b1\nmov     rdi, rax                                                       ; +0x26, 0x10027f1b6\nmov     rsi, r14                                                       ; +0x29, 0x10027f1b9\ncall    GameManager__getGameVariable                                   ; +0x2c, 0x10027f1bc\nmov     r14d, eax                                                      ; +0x31, 0x10027f1c1\nmov     rax, [rbx+240h]                                                ; +0x34, 0x10027f1c4\nmov     rdi, [rax+37D0h]                                               ; +0x3b, 0x10027f1cb\nmov     rax, [rdi]                                                     ; +0x42, 0x10027f1d2\ncall    qword ptr [rax+200h]                                           ; +0x45, 0x10027f1d5\nmov     rcx, [rbx+240h]                                                ; +0x4b, 0x10027f1db\nmov     rsi, [rcx+37D0h]                                               ; +0x52, 0x10027f1e2\ntest    r14b, r14b                                                     ; +0x59, 0x10027f1e9\nmov     ecx, 577h                                                      ; +0x5c, 0x10027f1ec\nmov     edx, 0FFFFF9C1h                                                ; +0x61, 0x10027f1f1\ncmovnz  edx, ecx                                                       ; +0x66, 0x10027f1f6\nmov     rcx, [rax]                                                     ; +0x69, 0x10027f1f9\nmov     rcx, [rcx+250h]                                                ; +0x6c, 0x10027f1fc\nmov     rdi, rax                                                       ; +0x73, 0x10027f203\npop     rbx                                                            ; +0x76, 0x10027f206\npop     r14                                                            ; +0x77, 0x10027f207\npop     rbp                                                            ; +0x79, 0x10027f209\njmp     rcx                                                            ; +0x7a, 0x10027f20a", "xrefs": [], "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"}