{"type": "func", "start": 3653824, "end": 3653890, "name": "EditorUI::onSettings", "pseudocode": "// \n// EditorUI::onSettings from 0x37c0c0 to 0x37c102 (66 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 EditorUI::onSettings(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  LevelEditorLayer *m_editorLayer; // r1\n  GJGameLevel *m_level; // r3\n  LevelSettingsLayer *v5; // r0\n  LevelEditorLayer *v6; // r3\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      if ( v6 )\n        v6 = (LevelEditorLayer *)((char *)v6 + 11756);\n      v5->m_delegate = (LevelSettingsDelegate *)v6;\n      v5->show(v5);\n    }\n  }\n}", "assembly": "; \n; EditorUI::onSettings from 0x37c0c0 to 0x37c102 (66 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\nLDRB.W          R3, [R0,#0x3BC]                                        ; +0x0, 0x37c0c0\nPUSH            {R4,LR}                                                ; +0x4, 0x37c0c4\nMOV             R4, R0                                                 ; +0x6, 0x37c0c6\nCBNZ            R3, locret_37C100                                      ; +0x8, 0x37c0c8\nLDR.W           R1, [R0,#0x340]; LevelSettingsObject *                 ; +0xa, 0x37c0ca\nLDR.W           R3, [R1,#0x608]                                        ; +0xe, 0x37c0ce\nCBZ             R3, loc_37C0DC                                         ; +0x12, 0x37c0d2\nLDR.W           R3, [R3,#0x2F8]                                        ; +0x14, 0x37c0d4\nCMP             R3, #2                                                 ; +0x18, 0x37c0d8\nBNE             locret_37C100                                          ; +0x1a, 0x37c0da\nLDR.W           R0, [R1,#0x8C0]; this                                  ; +0x1c, 0x37c0dc\nBL              _ZN18LevelSettingsLayer6createEP19LevelSettingsObjectP16LevelEditorLayer; LevelSettingsLayer::create(LevelSettingsObject *,LevelEditorLayer *) ; +0x20, 0x37c0e0\nLDR.W           R3, [R4,#0x340]                                        ; +0x24, 0x37c0e4\nCBZ             R3, loc_37C0F0                                         ; +0x28, 0x37c0e8\nADD.W           R3, R3, #0x2DC0                                        ; +0x2a, 0x37c0ea\nADDS            R3, #0x2C ; ','                                        ; +0x2e, 0x37c0ee\nSTR.W           R3, [R0,#0x250]                                        ; +0x30, 0x37c0f0\nLDR             R3, [R0]                                               ; +0x34, 0x37c0f4\nPOP.W           {R4,LR}                                                ; +0x36, 0x37c0f6\nLDR.W           R3, [R3,#0x284]                                        ; +0x3a, 0x37c0fa\nBX              R3                                                     ; +0x3e, 0x37c0fe\nPOP             {R4,PC}                                                ; +0x40, 0x37c100", "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"}