{"type": "func", "start": 4297713392, "end": 4297713617, "name": "EditorOptionsLayer::onClose", "pseudocode": "// \n// EditorOptionsLayer::onClose from 0x10029e6f0 to 0x10029e7d1 (225 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008feb80\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorOptionsLayer::onClose(EditorOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v2; // rax\n  int IntGameVariable; // r15d\n  GameManager *v4; // rax\n  int v5; // eax\n  GameManager *v6; // rax\n  GameManager *v7; // rax\n  GameManager *v8; // rax\n\n  v2 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v2, \"0049\");\n  v4 = GameManager::sharedState();\n  v5 = GameManager::getIntGameVariable(v4, \"0050\");\n  if ( a1->m_buttonsPerRow != IntGameVariable || a1->m_buttonRows != v5 )\n  {\n    v6 = GameManager::sharedState();\n    GameManager::setIntGameVariable(v6, \"0049\", a1->m_buttonsPerRow);\n    v7 = GameManager::sharedState();\n    GameManager::setIntGameVariable(v7, \"0050\", a1->m_buttonRows);\n    if ( GameManager::sharedState()->m_levelEditorLayer )\n      GameManager::sharedState()->m_levelEditorLayer->m_editorUI->m_reloadItems = 1;\n  }\n  if ( GameManager::sharedState()->m_levelEditorLayer )\n  {\n    v8 = GameManager::sharedState();\n    LevelEditorLayer::updatePreviewParticles(v8->m_levelEditorLayer);\n  }\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; EditorOptionsLayer::onClose from 0x10029e6f0 to 0x10029e7d1 (225 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008feb80\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10029e6f0\nmov     rbp, rsp                                                       ; +0x1, 0x10029e6f1\npush    r15                                                            ; +0x4, 0x10029e6f4\npush    r14                                                            ; +0x6, 0x10029e6f6\npush    rbx                                                            ; +0x8, 0x10029e6f8\npush    rax                                                            ; +0x9, 0x10029e6f9\nmov     rbx, rsi                                                       ; +0xa, 0x10029e6fa\nmov     r14, rdi                                                       ; +0xd, 0x10029e6fd\ncall    GameManager__sharedState                                       ; +0x10, 0x10029e700\nlea     rsi, a0049; \"0049\"                                             ; +0x15, 0x10029e705\nmov     rdi, rax                                                       ; +0x1c, 0x10029e70c\ncall    GameManager__getIntGameVariable                                ; +0x1f, 0x10029e70f\nmov     r15d, eax                                                      ; +0x24, 0x10029e714\ncall    GameManager__sharedState                                       ; +0x27, 0x10029e717\nlea     rsi, a0050; \"0050\"                                             ; +0x2c, 0x10029e71c\nmov     rdi, rax                                                       ; +0x33, 0x10029e723\ncall    GameManager__getIntGameVariable                                ; +0x36, 0x10029e726\ncmp     [r14+3ECh], r15d                                               ; +0x3b, 0x10029e72b\njnz     short loc_10029E73D                                            ; +0x42, 0x10029e732\ncmp     [r14+3F0h], eax                                                ; +0x44, 0x10029e734\njz      short loc_10029E79C                                            ; +0x4b, 0x10029e73b\ncall    GameManager__sharedState                                       ; +0x4d, 0x10029e73d\nmov     edx, [r14+3ECh]                                                ; +0x52, 0x10029e742\nlea     rsi, a0049; \"0049\"                                             ; +0x59, 0x10029e749\nmov     rdi, rax                                                       ; +0x60, 0x10029e750\ncall    GameManager__setIntGameVariable                                ; +0x63, 0x10029e753\ncall    GameManager__sharedState                                       ; +0x68, 0x10029e758\nmov     edx, [r14+3F0h]                                                ; +0x6d, 0x10029e75d\nlea     rsi, a0050; \"0050\"                                             ; +0x74, 0x10029e764\nmov     rdi, rax                                                       ; +0x7b, 0x10029e76b\ncall    GameManager__setIntGameVariable                                ; +0x7e, 0x10029e76e\ncall    GameManager__sharedState                                       ; +0x83, 0x10029e773\ncmp     qword ptr [rax+200h], 0                                        ; +0x88, 0x10029e778\njz      short loc_10029E79C                                            ; +0x90, 0x10029e780\ncall    GameManager__sharedState                                       ; +0x92, 0x10029e782\nmov     rax, [rax+200h]                                                ; +0x97, 0x10029e787\nmov     rax, [rax+3670h]                                               ; +0x9e, 0x10029e78e\nmov     byte ptr [rax+589h], 1                                         ; +0xa5, 0x10029e795\ncall    GameManager__sharedState                                       ; +0xac, 0x10029e79c\ncmp     qword ptr [rax+200h], 0                                        ; +0xb1, 0x10029e7a1\njz      short loc_10029E7BC                                            ; +0xb9, 0x10029e7a9\ncall    GameManager__sharedState                                       ; +0xbb, 0x10029e7ab\nmov     rdi, [rax+200h]                                                ; +0xc0, 0x10029e7b0\ncall    LevelEditorLayer__updatePreviewParticles                       ; +0xc7, 0x10029e7b7\nmov     rdi, r14                                                       ; +0xcc, 0x10029e7bc\nmov     rsi, rbx                                                       ; +0xcf, 0x10029e7bf\nadd     rsp, 8                                                         ; +0xd2, 0x10029e7c2\npop     rbx                                                            ; +0xd6, 0x10029e7c6\npop     r14                                                            ; +0xd7, 0x10029e7c7\npop     r15                                                            ; +0xd9, 0x10029e7c9\npop     rbp                                                            ; +0xdb, 0x10029e7cb\njmp     SetupTriggerPopup__onClose                                     ; +0xdc, 0x10029e7cc", "xrefs": ["<???> @ 0x1008feb80"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}