{"type": "func", "start": 4297935464, "end": 4297935668, "name": "EditorOptionsLayer::onClose", "pseudocode": "// \n// EditorOptionsLayer::onClose from 0x1002d4a68 to 0x1002d4b34 (204 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1007df148\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 *v4; // x0\n  int IntGameVariable; // w21\n  GameManager *v6; // x0\n  GameManager *v7; // x0\n  GameManager *v8; // x0\n  GameManager *v9; // x0\n\n  v4 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v4, \"0049\");\n  v6 = GameManager::sharedState();\n  if ( *(_QWORD *)&a1->m_buttonsPerRow != __PAIR64__(GameManager::getIntGameVariable(v6, \"0050\"), IntGameVariable) )\n  {\n    v7 = GameManager::sharedState();\n    GameManager::setIntGameVariable(v7, \"0049\", a1->m_buttonsPerRow);\n    v8 = GameManager::sharedState();\n    GameManager::setIntGameVariable(v8, \"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    v9 = GameManager::sharedState();\n    LevelEditorLayer::updatePreviewParticles(v9->m_levelEditorLayer);\n  }\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; EditorOptionsLayer::onClose from 0x1002d4a68 to 0x1002d4b34 (204 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1007df148\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1002d4a68\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002d4a6c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002d4a70\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002d4a74\nMOV             X19, X1                                                ; +0x10, 0x1002d4a78\nMOV             X20, X0                                                ; +0x14, 0x1002d4a7c\nBL              GameManager__sharedState                               ; +0x18, 0x1002d4a80\nADRL            X1, a0049; \"0049\"                                      ; +0x1c, 0x1002d4a84\nBL              GameManager__getIntGameVariable                        ; +0x24, 0x1002d4a8c\nMOV             X21, X0                                                ; +0x28, 0x1002d4a90\nBL              GameManager__sharedState                               ; +0x2c, 0x1002d4a94\nADRL            X1, a0050; \"0050\"                                      ; +0x30, 0x1002d4a98\nBL              GameManager__getIntGameVariable                        ; +0x38, 0x1002d4aa0\nLDR             W8, [X20,#0x418]                                       ; +0x3c, 0x1002d4aa4\nCMP             W8, W21                                                ; +0x40, 0x1002d4aa8\nB.NE            loc_1002D4ABC                                          ; +0x44, 0x1002d4aac\nLDR             W8, [X20,#0x41C]                                       ; +0x48, 0x1002d4ab0\nCMP             W8, W0                                                 ; +0x4c, 0x1002d4ab4\nB.EQ            loc_1002D4B04                                          ; +0x50, 0x1002d4ab8\nBL              GameManager__sharedState                               ; +0x54, 0x1002d4abc\nLDR             W2, [X20,#0x418]                                       ; +0x58, 0x1002d4ac0\nADRL            X1, a0049; \"0049\"                                      ; +0x5c, 0x1002d4ac4\nBL              GameManager__setIntGameVariable                        ; +0x64, 0x1002d4acc\nBL              GameManager__sharedState                               ; +0x68, 0x1002d4ad0\nLDR             W2, [X20,#0x41C]                                       ; +0x6c, 0x1002d4ad4\nADRL            X1, a0050; \"0050\"                                      ; +0x70, 0x1002d4ad8\nBL              GameManager__setIntGameVariable                        ; +0x78, 0x1002d4ae0\nBL              GameManager__sharedState                               ; +0x7c, 0x1002d4ae4\nLDR             X8, [X0,#0x200]                                        ; +0x80, 0x1002d4ae8\nCBZ             X8, loc_1002D4B04                                      ; +0x84, 0x1002d4aec\nBL              GameManager__sharedState                               ; +0x88, 0x1002d4af0\nLDR             X8, [X0,#0x200]                                        ; +0x8c, 0x1002d4af4\nLDR             X8, [X8,#0x36A0]                                       ; +0x90, 0x1002d4af8\nMOV             W9, #1                                                 ; +0x94, 0x1002d4afc\nSTRB            W9, [X8,#0x589]                                        ; +0x98, 0x1002d4b00\nBL              GameManager__sharedState                               ; +0x9c, 0x1002d4b04\nLDR             X8, [X0,#0x200]                                        ; +0xa0, 0x1002d4b08\nCBZ             X8, loc_1002D4B1C                                      ; +0xa4, 0x1002d4b0c\nBL              GameManager__sharedState                               ; +0xa8, 0x1002d4b10\nLDR             X0, [X0,#0x200]                                        ; +0xac, 0x1002d4b14\nBL              LevelEditorLayer__updatePreviewParticles               ; +0xb0, 0x1002d4b18\nMOV             X0, X20                                                ; +0xb4, 0x1002d4b1c\nMOV             X1, X19                                                ; +0xb8, 0x1002d4b20\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xbc, 0x1002d4b24\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc0, 0x1002d4b28\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xc4, 0x1002d4b2c\nB               SetupTriggerPopup__onClose                             ; +0xc8, 0x1002d4b30", "xrefs": ["<???> @ 0x1007df148"], "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"}