{"type": "func", "start": 6842496, "end": 6842620, "name": "EditorUI::onSettings", "pseudocode": "// \n// EditorUI::onSettings from 0x686880 to 0x6868fc (124 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x6d5d8\n// > EditorUI::init @ 0x6bcf8c\n// > <???> @ 0x122b970\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 EditorUI::onSettings(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  LevelEditorLayer *m_editorLayer; // x1\n  GJGameLevel *m_level; // x2\n  LevelSettingsLayer *v5; // x2\n  LevelEditorLayer *v6; // x0\n  LevelSettingsDelegate *v7; // x1\n  LevelSettingsLayer_vtbl *v8; // x3\n\n  if ( !a1->m_isPaused )\n  {\n    m_editorLayer = a1->m_editorLayer;\n    m_level = m_editorLayer->m_level;\n    if ( !m_level || m_level->m_levelType == Editor )\n    {\n      v5 = LevelSettingsLayer::create(m_editorLayer->m_levelSettings, m_editorLayer);\n      v6 = a1->m_editorLayer;\n      v7 = nullptr;\n      if ( v6 )\n        v7 = &v6->LevelSettingsDelegate;\n      v8 = v5->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      v5->m_delegate = v7;\n      v8->show(v5);\n    }\n  }\n}", "assembly": "; \n; EditorUI::onSettings from 0x686880 to 0x6868fc (124 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x6d5d8\n; > EditorUI::init @ 0x6bcf8c\n; > <???> @ 0x122b970\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_20]!                                ; +0x0, 0x686880\nMOV             X29, SP                                                ; +0x4, 0x686884\nLDRB            W1, [X0,#0x598]                                        ; +0x8, 0x686888\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x68688c\nCBNZ            W1, loc_6868AC                                         ; +0x10, 0x686890\nLDR             X1, [X0,#0x4F8]; LevelSettingsObject *                 ; +0x14, 0x686894\nLDR             X2, [X1,#0x8A0]; LevelEditorLayer *                    ; +0x18, 0x686898\nCBZ             X2, loc_6868B8                                         ; +0x1c, 0x68689c\nLDR             W2, [X2,#0x364]                                        ; +0x20, 0x6868a0\nCMP             W2, #2                                                 ; +0x24, 0x6868a4\nB.EQ            loc_6868B8                                             ; +0x28, 0x6868a8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x2c, 0x6868ac\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x30, 0x6868b0\nRET                                                                    ; +0x34, 0x6868b4\nMOV             X19, X0                                                ; +0x38, 0x6868b8\nLDR             X0, [X1,#0xE08]; this                                  ; +0x3c, 0x6868bc\nBL              _ZN18LevelSettingsLayer6createEP19LevelSettingsObjectP16LevelEditorLayer; LevelSettingsLayer::create(LevelSettingsObject *,LevelEditorLayer *) ; +0x40, 0x6868c0\nMOV             X2, X0                                                 ; +0x44, 0x6868c4\nLDR             X0, [X19,#0x4F8]                                       ; +0x48, 0x6868c8\nMOV             X1, #0                                                 ; +0x4c, 0x6868cc\nCBZ             X0, loc_6868DC                                         ; +0x50, 0x6868d0\nADD             X1, X0, #3,LSL#12                                      ; +0x54, 0x6868d4\nADD             X1, X1, #0x780                                         ; +0x58, 0x6868d8\nLDR             X3, [X2]                                               ; +0x5c, 0x6868dc\nMOV             X0, X2                                                 ; +0x60, 0x6868e0\nSTR             X1, [X2,#0x338]                                        ; +0x64, 0x6868e4\nLDR             X1, [X3,#0x508]                                        ; +0x68, 0x6868e8\nBLR             X1                                                     ; +0x6c, 0x6868ec\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x70, 0x6868f0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x74, 0x6868f4\nRET                                                                    ; +0x78, 0x6868f8", "xrefs": ["<???> @ 0x6d5d8", "EditorUI::init @ 0x6bcf8c", "<???> @ 0x122b970"], "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"}