{"type": "func", "start": 4722808, "end": 4722888, "name": "EditorUI::onSettings", "pseudocode": "// \n// EditorUI::onSettings from 0x481078 to 0x4810c8 (80 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:49:22 +0000\n// \n\nint __fastcall EditorUI::onSettings(int this, cocos2d::CCObject *a2)\n{\n  int v2; // r4\n  int v3; // r3\n  EditorSFXManager *v4; // r0\n  LevelEditorLayer *v5; // r2\n  _DWORD *v6; // r0\n  int v7; // r3\n\n  v2 = this;\n  if ( !*(_BYTE *)(this + 1052) )\n  {\n    v3 = *(_DWORD *)(*(_DWORD *)(this + 944) + 1408);\n    if ( !v3 || *(_DWORD *)(v3 + 952) == 2 )\n    {\n      v4 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)this);\n      EditorSFXManager::playAction(v4, 220);\n      v6 = (_DWORD *)LevelSettingsLayer::create(\n                       *(LevelSettingsLayer **)(*(_DWORD *)(v2 + 944) + 2084),\n                       *(LevelSettingsObject **)(v2 + 944),\n                       v5);\n      v7 = *(_DWORD *)(v2 + 944);\n      if ( v7 )\n        v7 += 11688;\n      v6[153] = v7;\n      return (*(int (__fastcall **)(_DWORD *))(*v6 + 656))(v6);\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::onSettings from 0x481078 to 0x4810c8 (80 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:49:22 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x481078\nMOV             R4, R0                                                 ; +0x2, 0x48107a\nLDRB.W          R3, [R0,#0x41C]                                        ; +0x4, 0x48107c\nCBNZ            R3, locret_4810C6                                      ; +0x8, 0x481080\nLDR.W           R3, [R0,#0x3B0]                                        ; +0xa, 0x481082\nLDR.W           R3, [R3,#0x580]                                        ; +0xe, 0x481086\nCBZ             R3, loc_481094                                         ; +0x12, 0x48108a\nLDR.W           R3, [R3,#0x3B8]                                        ; +0x14, 0x48108c\nCMP             R3, #2                                                 ; +0x18, 0x481090\nBNE             locret_4810C6                                          ; +0x1a, 0x481092\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x1c, 0x481094\nMOVS            R1, #0xDC; int                                         ; +0x20, 0x481098\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x22, 0x48109a\nLDR.W           R1, [R4,#0x3B0]; LevelSettingsObject *                 ; +0x26, 0x48109e\nLDR.W           R0, [R1,#0x824]; this                                  ; +0x2a, 0x4810a2\nBL              _ZN18LevelSettingsLayer6createEP19LevelSettingsObjectP16LevelEditorLayer; LevelSettingsLayer::create(LevelSettingsObject *,LevelEditorLayer *) ; +0x2e, 0x4810a6\nLDR.W           R3, [R4,#0x3B0]                                        ; +0x32, 0x4810aa\nCBZ             R3, loc_4810B6                                         ; +0x36, 0x4810ae\nADD.W           R3, R3, #0x2D80                                        ; +0x38, 0x4810b0\nADDS            R3, #0x28 ; '('                                        ; +0x3c, 0x4810b4\nSTR.W           R3, [R0,#0x264]                                        ; +0x3e, 0x4810b6\nLDR             R3, [R0]                                               ; +0x42, 0x4810ba\nPOP.W           {R4,LR}                                                ; +0x44, 0x4810bc\nLDR.W           R3, [R3,#0x290]                                        ; +0x48, 0x4810c0\nBX              R3                                                     ; +0x4c, 0x4810c4\nPOP             {R4,PC}                                                ; +0x4e, 0x4810c6", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}