{"type": "func", "start": 4297625296, "end": 4297625521, "name": "EditorOptionsLayer::onClose", "pseudocode": "// \n// EditorOptionsLayer::onClose from 0x100288ed0 to 0x100288fb1 (225 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b061a0\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:46 +0000\n// \n\n__int64 __fastcall EditorOptionsLayer::onClose(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // rax\n  __int64 v5; // rdi\n  int v6; // eax\n  int v7; // r15d\n  __int64 v8; // rdx\n  __int64 v9; // rax\n  __int64 v10; // rdi\n  int v11; // eax\n  __int64 v12; // rdx\n  __int64 v13; // rax\n  __int64 v14; // rdi\n  __int64 v15; // rdx\n  __int64 v16; // rax\n  __int64 v17; // rdx\n  __int64 v18; // rax\n  __int64 v19; // rax\n  __int64 v20; // rdx\n  __int64 v21; // rax\n  __int64 v22; // rax\n  __int64 v23; // rdx\n\n  GameManager::sharedState(a1, a2, a3);\n  v5 = v4;\n  GameManager::getIntGameVariable(v4, \"0049\");\n  v7 = v6;\n  GameManager::sharedState(v5, \"0049\", v8);\n  v10 = v9;\n  GameManager::getIntGameVariable(v9, \"0050\");\n  if ( *(_DWORD *)(a1 + 1120) != v7 || *(_DWORD *)(a1 + 1124) != v11 )\n  {\n    GameManager::sharedState(v10, \"0050\", v12);\n    v14 = v13;\n    GameManager::setIntGameVariable(v13, \"0049\", *(unsigned int *)(a1 + 1120));\n    GameManager::sharedState(v14, \"0049\", v15);\n    v10 = v16;\n    GameManager::setIntGameVariable(v16, \"0050\", *(unsigned int *)(a1 + 1124));\n    GameManager::sharedState(v10, \"0050\", v17);\n    if ( *(_QWORD *)(v18 + 552) )\n    {\n      GameManager::sharedState(v10, \"0050\", v12);\n      *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(v19 + 552) + 14248LL) + 1591LL) = 1;\n    }\n  }\n  GameManager::sharedState(v10, \"0050\", v12);\n  if ( *(_QWORD *)(v21 + 552) )\n  {\n    GameManager::sharedState(v10, \"0050\", v20);\n    LevelEditorLayer::updatePreviewParticles(*(_QWORD *)(v22 + 552), (__int64)\"0050\", v23);\n  }\n  return SetupTriggerPopup::onClose(a1, a2, v20);\n}", "assembly": "; \n; EditorOptionsLayer::onClose from 0x100288ed0 to 0x100288fb1 (225 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b061a0\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:46 +0000\n; \npush    rbp                                                            ; +0x0, 0x100288ed0\nmov     rbp, rsp                                                       ; +0x1, 0x100288ed1\npush    r15                                                            ; +0x4, 0x100288ed4\npush    r14                                                            ; +0x6, 0x100288ed6\npush    rbx                                                            ; +0x8, 0x100288ed8\npush    rax                                                            ; +0x9, 0x100288ed9\nmov     rbx, rsi                                                       ; +0xa, 0x100288eda\nmov     r14, rdi                                                       ; +0xd, 0x100288edd\ncall    GameManager__sharedState                                       ; +0x10, 0x100288ee0\nlea     rsi, a0049; \"0049\"                                             ; +0x15, 0x100288ee5\nmov     rdi, rax                                                       ; +0x1c, 0x100288eec\ncall    GameManager__getIntGameVariable                                ; +0x1f, 0x100288eef\nmov     r15d, eax                                                      ; +0x24, 0x100288ef4\ncall    GameManager__sharedState                                       ; +0x27, 0x100288ef7\nlea     rsi, a0050; \"0050\"                                             ; +0x2c, 0x100288efc\nmov     rdi, rax                                                       ; +0x33, 0x100288f03\ncall    GameManager__getIntGameVariable                                ; +0x36, 0x100288f06\ncmp     [r14+460h], r15d                                               ; +0x3b, 0x100288f0b\njnz     short loc_100288F1D                                            ; +0x42, 0x100288f12\ncmp     [r14+464h], eax                                                ; +0x44, 0x100288f14\njz      short loc_100288F7C                                            ; +0x4b, 0x100288f1b\ncall    GameManager__sharedState                                       ; +0x4d, 0x100288f1d\nmov     edx, [r14+460h]                                                ; +0x52, 0x100288f22\nlea     rsi, a0049; \"0049\"                                             ; +0x59, 0x100288f29\nmov     rdi, rax                                                       ; +0x60, 0x100288f30\ncall    GameManager__setIntGameVariable                                ; +0x63, 0x100288f33\ncall    GameManager__sharedState                                       ; +0x68, 0x100288f38\nmov     edx, [r14+464h]                                                ; +0x6d, 0x100288f3d\nlea     rsi, a0050; \"0050\"                                             ; +0x74, 0x100288f44\nmov     rdi, rax                                                       ; +0x7b, 0x100288f4b\ncall    GameManager__setIntGameVariable                                ; +0x7e, 0x100288f4e\ncall    GameManager__sharedState                                       ; +0x83, 0x100288f53\ncmp     qword ptr [rax+228h], 0                                        ; +0x88, 0x100288f58\njz      short loc_100288F7C                                            ; +0x90, 0x100288f60\ncall    GameManager__sharedState                                       ; +0x92, 0x100288f62\nmov     rax, [rax+228h]                                                ; +0x97, 0x100288f67\nmov     rax, [rax+37A8h]                                               ; +0x9e, 0x100288f6e\nmov     byte ptr [rax+637h], 1                                         ; +0xa5, 0x100288f75\ncall    GameManager__sharedState                                       ; +0xac, 0x100288f7c\ncmp     qword ptr [rax+228h], 0                                        ; +0xb1, 0x100288f81\njz      short loc_100288F9C                                            ; +0xb9, 0x100288f89\ncall    GameManager__sharedState                                       ; +0xbb, 0x100288f8b\nmov     rdi, [rax+228h]                                                ; +0xc0, 0x100288f90\ncall    LevelEditorLayer__updatePreviewParticles                       ; +0xc7, 0x100288f97\nmov     rdi, r14                                                       ; +0xcc, 0x100288f9c\nmov     rsi, rbx                                                       ; +0xcf, 0x100288f9f\nadd     rsp, 8                                                         ; +0xd2, 0x100288fa2\npop     rbx                                                            ; +0xd6, 0x100288fa6\npop     r14                                                            ; +0xd7, 0x100288fa7\npop     r15                                                            ; +0xd9, 0x100288fa9\npop     rbp                                                            ; +0xdb, 0x100288fab\njmp     SetupTriggerPopup__onClose                                     ; +0xdc, 0x100288fac", "xrefs": ["<???> @ 0x100b061a0"], "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"}