{"type": "func", "start": 4881556, "end": 4881700, "name": "EditorOptionsLayer::onClose", "pseudocode": "// \n// EditorOptionsLayer::onClose from 0x4a7c94 to 0x4a7d24 (144 bytes)\n// \n// 0 xrefs:\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; // r0\n  int IntGameVariable; // r6\n  GameManager *v6; // r0\n  int v7; // r0\n  GameManager *v8; // r0\n  GameManager *v9; // r0\n  GameManager *v10; // r0\n\n  v4 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v4, \"0049\");\n  v6 = GameManager::sharedState();\n  v7 = GameManager::getIntGameVariable(v6, \"0050\");\n  if ( a1->m_buttonsPerRow != IntGameVariable || a1->m_buttonRows != v7 )\n  {\n    v8 = GameManager::sharedState();\n    GameManager::setIntGameVariable(v8, \"0049\", a1->m_buttonsPerRow);\n    v9 = GameManager::sharedState();\n    GameManager::setIntGameVariable(v9, \"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    v10 = GameManager::sharedState();\n    LevelEditorLayer::updatePreviewParticles(v10->m_levelEditorLayer);\n  }\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; EditorOptionsLayer::onClose from 0x4a7c94 to 0x4a7d24 (144 bytes)\n; \n; 0 xrefs:\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            {R4-R6,LR}                                             ; +0x0, 0x4a7c94\nMOV             R4, R0                                                 ; +0x2, 0x4a7c96\nMOV             R5, R1                                                 ; +0x4, 0x4a7c98\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6, 0x4a7c9a\nLDR             R1, =(a0049 - 0x4A7CA4); \"0049\"                        ; +0xa, 0x4a7c9e\nADD             R1, PC; \"0049\"                                         ; +0xc, 0x4a7ca0\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0xe, 0x4a7ca2\nMOV             R6, R0                                                 ; +0x12, 0x4a7ca6\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x4a7ca8\nLDR             R1, =(a0050 - 0x4A7CB2); \"0050\"                        ; +0x18, 0x4a7cac\nADD             R1, PC; \"0050\"                                         ; +0x1a, 0x4a7cae\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x1c, 0x4a7cb0\nLDR.W           R3, [R4,#0x2F4]                                        ; +0x20, 0x4a7cb4\nCMP             R3, R6                                                 ; +0x24, 0x4a7cb8\nBNE             loc_4A7CC4                                             ; +0x26, 0x4a7cba\nLDR.W           R3, [R4,#0x2F8]                                        ; +0x28, 0x4a7cbc\nCMP             R3, R0                                                 ; +0x2c, 0x4a7cc0\nBEQ             loc_4A7D02                                             ; +0x2e, 0x4a7cc2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x30, 0x4a7cc4\nLDR             R1, =(a0049 - 0x4A7CD2); \"0049\"                        ; +0x34, 0x4a7cc8\nLDR.W           R2, [R4,#0x2F4]; int                                   ; +0x36, 0x4a7cca\nADD             R1, PC; \"0049\"                                         ; +0x3a, 0x4a7cce\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x3c, 0x4a7cd0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x40, 0x4a7cd4\nLDR             R1, =(a0050 - 0x4A7CE2); \"0050\"                        ; +0x44, 0x4a7cd8\nLDR.W           R2, [R4,#0x2F8]; int                                   ; +0x46, 0x4a7cda\nADD             R1, PC; \"0050\"                                         ; +0x4a, 0x4a7cde\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x4c, 0x4a7ce0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x50, 0x4a7ce4\nLDR.W           R3, [R0,#0x170]                                        ; +0x54, 0x4a7ce8\nCBZ             R3, loc_4A7D02                                         ; +0x58, 0x4a7cec\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x5a, 0x4a7cee\nMOVW            R3, #0x2E94                                            ; +0x5e, 0x4a7cf2\nLDR.W           R2, [R0,#0x170]                                        ; +0x62, 0x4a7cf6\nLDR             R3, [R2,R3]                                            ; +0x66, 0x4a7cfa\nMOVS            R2, #1                                                 ; +0x68, 0x4a7cfc\nSTRB.W          R2, [R3,#0x3BD]                                        ; +0x6a, 0x4a7cfe\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6e, 0x4a7d02\nLDR.W           R3, [R0,#0x170]                                        ; +0x72, 0x4a7d06\nCBZ             R3, loc_4A7D18                                         ; +0x76, 0x4a7d0a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x78, 0x4a7d0c\nLDR.W           R0, [R0,#0x170]; this                                  ; +0x7c, 0x4a7d10\nBL              _ZN16LevelEditorLayer22updatePreviewParticlesEv; LevelEditorLayer::updatePreviewParticles(void) ; +0x80, 0x4a7d14\nMOV             R0, R4; this                                           ; +0x84, 0x4a7d18\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x86, 0x4a7d1a\nPOP.W           {R4-R6,LR}                                             ; +0x88, 0x4a7d1c\nB.W             _ZN17SetupTriggerPopup7onCloseEPN7cocos2d8CCObjectE; SetupTriggerPopup::onClose(cocos2d::CCObject *) ; +0x8c, 0x4a7d20", "xrefs": [], "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"}