{"type": "func", "start": 8127844, "end": 8127988, "name": "EditorUI::onSettings", "pseudocode": "// \n// EditorUI::onSettings from 0x7c0564 to 0x7c05f4 (144 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x93ad8\n// > EditorUI::init @ 0x7cffdc\n// > <???> @ 0x1543fc0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:06 +0000\n// \n\n__int64 __fastcall EditorUI::onSettings(__int64 this, cocos2d::CCObject *a2)\n{\n  __int64 v2; // x1\n  __int64 v3; // x19\n  EditorSFXManager *v4; // x0\n  LevelEditorLayer *v5; // x2\n  __int64 *v6; // x2\n  __int64 v7; // x0\n  __int64 v8; // x1\n  __int64 v9; // x3\n\n  if ( !*(_BYTE *)(this + 1588) )\n  {\n    v2 = *(_QWORD *)(*(_QWORD *)(this + 1440) + 1936LL);\n    if ( !v2 || *(_DWORD *)(v2 + 1140) == 2 )\n    {\n      v3 = this;\n      v4 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)this);\n      EditorSFXManager::playAction(v4, 220);\n      v6 = (__int64 *)LevelSettingsLayer::create(\n                        *(LevelSettingsLayer **)(*(_QWORD *)(v3 + 1440) + 3272LL),\n                        *(LevelSettingsObject **)(v3 + 1440),\n                        v5);\n      v7 = *(_QWORD *)(v3 + 1440);\n      v8 = 0;\n      if ( v7 )\n        v8 = v7 + 13992;\n      v9 = *v6;\n      v6[106] = v8;\n      return (*(__int64 (__fastcall **)(__int64 *))(v9 + 1312))(v6);\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::onSettings from 0x7c0564 to 0x7c05f4 (144 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x93ad8\n; > EditorUI::init @ 0x7cffdc\n; > <???> @ 0x1543fc0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:06 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x7c0564\nMOV             X29, SP                                                ; +0x4, 0x7c0568\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x7c056c\nLDRB            W1, [X0,#0x634]                                        ; +0xc, 0x7c0570\nCBNZ            W1, loc_7C0590                                         ; +0x10, 0x7c0574\nLDR             X1, [X0,#0x5A0]                                        ; +0x14, 0x7c0578\nLDR             X1, [X1,#0x790]                                        ; +0x18, 0x7c057c\nCBZ             X1, loc_7C059C                                         ; +0x1c, 0x7c0580\nLDR             W1, [X1,#0x474]                                        ; +0x20, 0x7c0584\nCMP             W1, #2                                                 ; +0x24, 0x7c0588\nB.EQ            loc_7C059C                                             ; +0x28, 0x7c058c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x2c, 0x7c0590\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x30, 0x7c0594\nRET                                                                    ; +0x34, 0x7c0598\nMOV             X19, X0                                                ; +0x38, 0x7c059c\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x3c, 0x7c05a0\nMOV             W1, #0xDC; int                                         ; +0x40, 0x7c05a4\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x44, 0x7c05a8\nLDR             X0, [X19,#0x5A0]                                       ; +0x48, 0x7c05ac\nMOV             X1, X0; LevelSettingsObject *                          ; +0x4c, 0x7c05b0\nLDR             X0, [X0,#0xCC8]; this                                  ; +0x50, 0x7c05b4\nBL              _ZN18LevelSettingsLayer6createEP19LevelSettingsObjectP16LevelEditorLayer; LevelSettingsLayer::create(LevelSettingsObject *,LevelEditorLayer *) ; +0x54, 0x7c05b8\nMOV             X2, X0                                                 ; +0x58, 0x7c05bc\nLDR             X0, [X19,#0x5A0]                                       ; +0x5c, 0x7c05c0\nMOV             X1, #0                                                 ; +0x60, 0x7c05c4\nCBZ             X0, loc_7C05D4                                         ; +0x64, 0x7c05c8\nADD             X1, X0, #3,LSL#12                                      ; +0x68, 0x7c05cc\nADD             X1, X1, #0x6A8                                         ; +0x6c, 0x7c05d0\nLDR             X3, [X2]                                               ; +0x70, 0x7c05d4\nMOV             X0, X2                                                 ; +0x74, 0x7c05d8\nSTR             X1, [X2,#0x350]                                        ; +0x78, 0x7c05dc\nLDR             X1, [X3,#0x520]                                        ; +0x7c, 0x7c05e0\nBLR             X1                                                     ; +0x80, 0x7c05e4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x84, 0x7c05e8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x88, 0x7c05ec\nRET                                                                    ; +0x8c, 0x7c05f0", "xrefs": ["<???> @ 0x93ad8", "EditorUI::init @ 0x7cffdc", "<???> @ 0x1543fc0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}