{"type": "func", "start": 9185588, "end": 9185796, "name": "EditorOptionsLayer::onClose", "pseudocode": "// \n// EditorOptionsLayer::onClose from 0x8c2934 to 0x8c2a04 (208 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x378f0\n// > <???> @ 0x11968f8\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 EditorOptionsLayer::onClose(EditorOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v4; // x0\n  int IntGameVariable; // w23\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 ( __PAIR64__(GameManager::getIntGameVariable(v6, \"0050\"), IntGameVariable) != *(_QWORD *)&a1->m_buttonsPerRow )\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 0x8c2934 to 0x8c2a04 (208 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x378f0\n; > <???> @ 0x11968f8\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             X29, X30, [SP,#var_40]!                                ; +0x0, 0x8c2934\nMOV             X29, SP                                                ; +0x4, 0x8c2938\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x8c293c\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0x8c2940\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x8c2944\nMOV             X19, X0                                                ; +0x14, 0x8c2948\nMOV             X22, X1                                                ; +0x18, 0x8c294c\nADRP            X21, #a0049@PAGE; \"0049\"                               ; +0x1c, 0x8c2950\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0x8c2954\nADRP            X20, #a0050@PAGE; \"0050\"                               ; +0x24, 0x8c2958\nADD             X1, X21, #a0049@PAGEOFF; \"0049\"                        ; +0x28, 0x8c295c\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x2c, 0x8c2960\nMOV             W23, W0                                                ; +0x30, 0x8c2964\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x8c2968\nADD             X1, X20, #a0050@PAGEOFF; \"0050\"                        ; +0x38, 0x8c296c\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x3c, 0x8c2970\nLDR             W1, [X19,#0x440]                                       ; +0x40, 0x8c2974\nCMP             W23, W1                                                ; +0x44, 0x8c2978\nB.EQ            loc_8C29F4                                             ; +0x48, 0x8c297c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4c, 0x8c2980\nLDR             W2, [X19,#0x440]; int                                  ; +0x50, 0x8c2984\nADD             X1, X21, #a0049@PAGEOFF; \"0049\"                        ; +0x54, 0x8c2988\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x58, 0x8c298c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x5c, 0x8c2990\nLDR             W2, [X19,#0x444]; int                                  ; +0x60, 0x8c2994\nADD             X1, X20, #a0050@PAGEOFF; \"0050\"                        ; +0x64, 0x8c2998\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x68, 0x8c299c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6c, 0x8c29a0\nLDR             X0, [X0,#0x1E0]; this                                  ; +0x70, 0x8c29a4\nCBZ             X0, loc_8C29C0                                         ; +0x74, 0x8c29a8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x78, 0x8c29ac\nLDR             X0, [X0,#0x1E0]                                        ; +0x7c, 0x8c29b0\nMOV             W1, #1                                                 ; +0x80, 0x8c29b4\nLDR             X0, [X0,#0x3880]; this                                 ; +0x84, 0x8c29b8\nSTRB            W1, [X0,#0x599]                                        ; +0x88, 0x8c29bc\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8c, 0x8c29c0\nLDR             X0, [X0,#0x1E0]; this                                  ; +0x90, 0x8c29c4\nCBZ             X0, loc_8C29D8                                         ; +0x94, 0x8c29c8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x98, 0x8c29cc\nLDR             X0, [X0,#0x1E0]; this                                  ; +0x9c, 0x8c29d0\nBL              _ZN16LevelEditorLayer22updatePreviewParticlesEv; LevelEditorLayer::updatePreviewParticles(void) ; +0xa0, 0x8c29d4\nMOV             X0, X19; this                                          ; +0xa4, 0x8c29d8\nMOV             X1, X22; cocos2d::CCObject *                           ; +0xa8, 0x8c29dc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xac, 0x8c29e0\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xb0, 0x8c29e4\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xb4, 0x8c29e8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0x8c29ec\nB               _ZN17SetupTriggerPopup7onCloseEPN7cocos2d8CCObjectE; SetupTriggerPopup::onClose(cocos2d::CCObject *) ; +0xbc, 0x8c29f0\nLDR             W1, [X19,#0x444]                                       ; +0xc0, 0x8c29f4\nCMP             W0, W1                                                 ; +0xc4, 0x8c29f8\nB.NE            loc_8C2980                                             ; +0xc8, 0x8c29fc\nB               loc_8C29C0                                             ; +0xcc, 0x8c2a00", "xrefs": ["<???> @ 0x378f0", "<???> @ 0x11968f8"], "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"}