{"type": "func", "start": 4299125884, "end": 4299126456, "name": "LevelEditorLayer::updateOptions", "pseudocode": "// \n// LevelEditorLayer::updateOptions from 0x1003f747c to 0x1003f76b8 (572 bytes)\n// \n// 4 xrefs:\n// > EditorUI::handleEditorAction @ 0x100162ba0\n// > EditorUI::toggleViewOption @ 0x10018957c\n// > LevelEditorLayer::init @ 0x1003f6794\n// > EditorPauseLayer::onResume @ 0x10044436c\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 11:04:34 +0000\n// \n\n__int64 __fastcall LevelEditorLayer::updateOptions(__int64 a1)\n{\n  _BYTE *v2; // x20\n  __int64 v3; // x0\n  bool GameVariable; // w0\n  __int64 v5; // x8\n  __int64 v6; // x0\n  __int64 v7; // x0\n  __int64 v8; // x0\n  __int64 v9; // x0\n  __int64 v10; // x0\n  __int64 v11; // x0\n  __int64 v12; // x0\n  __int64 v13; // x0\n  __int64 v14; // x0\n  __int64 v15; // x0\n  __int64 v16; // x0\n  __int64 v17; // x0\n  __int64 v18; // x0\n  __int64 v19; // x0\n  __int64 v20; // x0\n  __int64 v21; // x0\n  __int64 v22; // x0\n  __int64 v23; // x0\n  __int64 v24; // x0\n  __int64 v25; // x0\n  _BOOL4 v26; // w20\n  __int64 result; // x0\n  __int64 v28; // x0\n  __int64 v29; // x2\n\n  v2 = (_BYTE *)(a1 + 12288);\n  v3 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v3, \"0009\");\n  *(_BYTE *)(a1 + 1978) = GameVariable;\n  v5 = *(_QWORD *)(a1 + 3256);\n  if ( v5 )\n  {\n    *(_BYTE *)(v5 + 3052) = GameVariable;\n    *(_BYTE *)(*(_QWORD *)(a1 + 3264) + 3052LL) = GameVariable;\n  }\n  v6 = GameManager::sharedState();\n  v2[1712] = GameManager::getGameVariable(v6, \"0044\");\n  v7 = GameManager::sharedState();\n  v2[1552] = GameManager::getGameVariable(v7, \"0045\");\n  v8 = GameManager::sharedState();\n  v2[1555] = GameManager::getGameVariable(v8, \"0215\");\n  v9 = GameManager::sharedState();\n  v2[1557] = GameManager::getGameVariable(v9, \"0217\");\n  v10 = GameManager::sharedState();\n  v2[1713] = GameManager::getGameVariable(v10, \"0038\");\n  v11 = GameManager::sharedState();\n  v2[1716] = GameManager::getGameVariable(v11, \"0043\");\n  v12 = GameManager::sharedState();\n  v2[1717] = GameManager::getGameVariable(v12, \"0037\");\n  v13 = GameManager::sharedState();\n  v2[1718] = GameManager::getGameVariable(v13, \"0058\");\n  v14 = GameManager::sharedState();\n  v2[1719] = GameManager::getGameVariable(v14, \"0013\");\n  v15 = GameManager::sharedState();\n  v2[2009] = GameManager::getGameVariable(v15, \"0036\");\n  v16 = GameManager::sharedState();\n  v2[1720] = GameManager::getGameVariable(v16, \"0078\");\n  v17 = GameManager::sharedState();\n  v2[1721] = GameManager::getGameVariable(v17, \"0120\");\n  v18 = GameManager::sharedState();\n  v2[1714] = GameManager::getGameVariable(v18, \"0079\");\n  v19 = GameManager::sharedState();\n  v2[1715] = GameManager::getGameVariable(v19, \"0248\");\n  v20 = GameManager::sharedState();\n  v2[1722] = GameManager::getGameVariable(v20, \"0103\");\n  v2[1723] = 0;\n  v21 = GameManager::sharedState();\n  v2[1726] = GameManager::getGameVariable(v21, \"0158\");\n  v22 = GameManager::sharedState();\n  v2[881] = GameManager::getGameVariable(v22, \"0209\");\n  if ( *(_QWORD *)(a1 + 14248) )\n  {\n    EditorUI::updateGroupIDLabel();\n    EditorUI::updateStickyControls(*(_QWORD *)(a1 + 14248));\n    v23 = GameManager::sharedState();\n    *(_BYTE *)(*(_QWORD *)(a1 + 14248) + 691LL) = GameManager::getGameVariable(v23, \"0112\");\n  }\n  v24 = *(_QWORD *)(a1 + 3944);\n  if ( v24 )\n    (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v24 + 344LL))(v24, (v2[1720] & 1) == 0);\n  v25 = GameManager::sharedState();\n  v26 = GameManager::getGameVariable(v25, \"0039\");\n  result = *(_QWORD *)(a1 + 14288);\n  if ( result )\n  {\n    v28 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 512LL))(result);\n    if ( v26 )\n      v29 = 1399;\n    else\n      v29 = 4294965697LL;\n    return (*(__int64 (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v28 + 592LL))(\n             v28,\n             *(_QWORD *)(a1 + 14288),\n             v29);\n  }\n  return result;\n}", "assembly": "; \n; LevelEditorLayer::updateOptions from 0x1003f747c to 0x1003f76b8 (572 bytes)\n; \n; 4 xrefs:\n; > EditorUI::handleEditorAction @ 0x100162ba0\n; > EditorUI::toggleViewOption @ 0x10018957c\n; > LevelEditorLayer::init @ 0x1003f6794\n; > EditorPauseLayer::onResume @ 0x10044436c\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 11:04:34 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003f747c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003f7480\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003f7484\nMOV             X19, X0                                                ; +0xc, 0x1003f7488\nADD             X20, X0, #3,LSL#12                                     ; +0x10, 0x1003f748c\nBL              GameManager__sharedState                               ; +0x14, 0x1003f7490\nADRL            X1, a0009; \"0009\"                                      ; +0x18, 0x1003f7494\nBL              GameManager__getGameVariable                           ; +0x20, 0x1003f749c\nSTRB            W0, [X19,#0x7BA]                                       ; +0x24, 0x1003f74a0\nLDR             X8, [X19,#0xCB8]                                       ; +0x28, 0x1003f74a4\nCBZ             X8, loc_1003F74B8                                      ; +0x2c, 0x1003f74a8\nSTRB            W0, [X8,#0xBEC]                                        ; +0x30, 0x1003f74ac\nLDR             X8, [X19,#0xCC0]                                       ; +0x34, 0x1003f74b0\nSTRB            W0, [X8,#0xBEC]                                        ; +0x38, 0x1003f74b4\nBL              GameManager__sharedState                               ; +0x3c, 0x1003f74b8\nADRL            X1, a0044; \"0044\"                                      ; +0x40, 0x1003f74bc\nBL              GameManager__getGameVariable                           ; +0x48, 0x1003f74c4\nSTRB            W0, [X20,#0x6B0]                                       ; +0x4c, 0x1003f74c8\nBL              GameManager__sharedState                               ; +0x50, 0x1003f74cc\nADRL            X1, a0045; \"0045\"                                      ; +0x54, 0x1003f74d0\nBL              GameManager__getGameVariable                           ; +0x5c, 0x1003f74d8\nSTRB            W0, [X20,#0x610]                                       ; +0x60, 0x1003f74dc\nBL              GameManager__sharedState                               ; +0x64, 0x1003f74e0\nADRL            X1, a0215; \"0215\"                                      ; +0x68, 0x1003f74e4\nBL              GameManager__getGameVariable                           ; +0x70, 0x1003f74ec\nSTRB            W0, [X20,#0x613]                                       ; +0x74, 0x1003f74f0\nBL              GameManager__sharedState                               ; +0x78, 0x1003f74f4\nADRL            X1, a0217; \"0217\"                                      ; +0x7c, 0x1003f74f8\nBL              GameManager__getGameVariable                           ; +0x84, 0x1003f7500\nSTRB            W0, [X20,#0x615]                                       ; +0x88, 0x1003f7504\nBL              GameManager__sharedState                               ; +0x8c, 0x1003f7508\nADRL            X1, a0038; \"0038\"                                      ; +0x90, 0x1003f750c\nBL              GameManager__getGameVariable                           ; +0x98, 0x1003f7514\nSTRB            W0, [X20,#0x6B1]                                       ; +0x9c, 0x1003f7518\nBL              GameManager__sharedState                               ; +0xa0, 0x1003f751c\nADRL            X1, a0043; \"0043\"                                      ; +0xa4, 0x1003f7520\nBL              GameManager__getGameVariable                           ; +0xac, 0x1003f7528\nSTRB            W0, [X20,#0x6B4]                                       ; +0xb0, 0x1003f752c\nBL              GameManager__sharedState                               ; +0xb4, 0x1003f7530\nADRL            X1, a0037; \"0037\"                                      ; +0xb8, 0x1003f7534\nBL              GameManager__getGameVariable                           ; +0xc0, 0x1003f753c\nSTRB            W0, [X20,#0x6B5]                                       ; +0xc4, 0x1003f7540\nBL              GameManager__sharedState                               ; +0xc8, 0x1003f7544\nADRL            X1, a0058; \"0058\"                                      ; +0xcc, 0x1003f7548\nBL              GameManager__getGameVariable                           ; +0xd4, 0x1003f7550\nSTRB            W0, [X20,#0x6B6]                                       ; +0xd8, 0x1003f7554\nBL              GameManager__sharedState                               ; +0xdc, 0x1003f7558\nADRL            X1, a0013; \"0013\"                                      ; +0xe0, 0x1003f755c\nBL              GameManager__getGameVariable                           ; +0xe8, 0x1003f7564\nSTRB            W0, [X20,#0x6B7]                                       ; +0xec, 0x1003f7568\nBL              GameManager__sharedState                               ; +0xf0, 0x1003f756c\nADRL            X1, a0036; \"0036\"                                      ; +0xf4, 0x1003f7570\nBL              GameManager__getGameVariable                           ; +0xfc, 0x1003f7578\nSTRB            W0, [X20,#0x7D9]                                       ; +0x100, 0x1003f757c\nBL              GameManager__sharedState                               ; +0x104, 0x1003f7580\nADRL            X1, a0078; \"0078\"                                      ; +0x108, 0x1003f7584\nBL              GameManager__getGameVariable                           ; +0x110, 0x1003f758c\nSTRB            W0, [X20,#0x6B8]                                       ; +0x114, 0x1003f7590\nBL              GameManager__sharedState                               ; +0x118, 0x1003f7594\nADRL            X1, a0120; \"0120\"                                      ; +0x11c, 0x1003f7598\nBL              GameManager__getGameVariable                           ; +0x124, 0x1003f75a0\nSTRB            W0, [X20,#0x6B9]                                       ; +0x128, 0x1003f75a4\nBL              GameManager__sharedState                               ; +0x12c, 0x1003f75a8\nADRL            X1, a0079; \"0079\"                                      ; +0x130, 0x1003f75ac\nBL              GameManager__getGameVariable                           ; +0x138, 0x1003f75b4\nSTRB            W0, [X20,#0x6B2]                                       ; +0x13c, 0x1003f75b8\nBL              GameManager__sharedState                               ; +0x140, 0x1003f75bc\nADRL            X1, a0248; \"0248\"                                      ; +0x144, 0x1003f75c0\nBL              GameManager__getGameVariable                           ; +0x14c, 0x1003f75c8\nSTRB            W0, [X20,#0x6B3]                                       ; +0x150, 0x1003f75cc\nBL              GameManager__sharedState                               ; +0x154, 0x1003f75d0\nADRL            X1, a0103; \"0103\"                                      ; +0x158, 0x1003f75d4\nBL              GameManager__getGameVariable                           ; +0x160, 0x1003f75dc\nSTRB            W0, [X20,#0x6BA]                                       ; +0x164, 0x1003f75e0\nSTRB            WZR, [X20,#0x6BB]                                      ; +0x168, 0x1003f75e4\nBL              GameManager__sharedState                               ; +0x16c, 0x1003f75e8\nADRL            X1, a0158; \"0158\"                                      ; +0x170, 0x1003f75ec\nBL              GameManager__getGameVariable                           ; +0x178, 0x1003f75f4\nSTRB            W0, [X20,#0x6BE]                                       ; +0x17c, 0x1003f75f8\nBL              GameManager__sharedState                               ; +0x180, 0x1003f75fc\nADRL            X1, a0209; \"0209\"                                      ; +0x184, 0x1003f7600\nBL              GameManager__getGameVariable                           ; +0x18c, 0x1003f7608\nSTRB            W0, [X20,#0x371]                                       ; +0x190, 0x1003f760c\nLDR             X0, [X19,#0x37A8]                                      ; +0x194, 0x1003f7610\nCBZ             X0, loc_1003F763C                                      ; +0x198, 0x1003f7614\nBL              EditorUI__updateGroupIDLabel                           ; +0x19c, 0x1003f7618\nLDR             X0, [X19,#0x37A8]                                      ; +0x1a0, 0x1003f761c\nBL              EditorUI__updateStickyControls                         ; +0x1a4, 0x1003f7620\nBL              GameManager__sharedState                               ; +0x1a8, 0x1003f7624\nADRL            X1, a0112; \"0112\"                                      ; +0x1ac, 0x1003f7628\nBL              GameManager__getGameVariable                           ; +0x1b4, 0x1003f7630\nLDR             X8, [X19,#0x37A8]                                      ; +0x1b8, 0x1003f7634\nSTRB            W0, [X8,#0x2B3]                                        ; +0x1bc, 0x1003f7638\nLDR             X0, [X19,#0xF68]                                       ; +0x1c0, 0x1003f763c\nCBZ             X0, loc_1003F765C                                      ; +0x1c4, 0x1003f7640\nLDRB            W8, [X20,#0x6B8]                                       ; +0x1c8, 0x1003f7644\nLDR             X9, [X0]                                               ; +0x1cc, 0x1003f7648\nLDR             X9, [X9,#0x158]                                        ; +0x1d0, 0x1003f764c\nMOV             W10, #1                                                ; +0x1d4, 0x1003f7650\nBIC             W1, W10, W8                                            ; +0x1d8, 0x1003f7654\nBLR             X9                                                     ; +0x1dc, 0x1003f7658\nBL              GameManager__sharedState                               ; +0x1e0, 0x1003f765c\nADRL            X1, a0039; \"0039\"                                      ; +0x1e4, 0x1003f7660\nBL              GameManager__getGameVariable                           ; +0x1ec, 0x1003f7668\nMOV             X20, X0                                                ; +0x1f0, 0x1003f766c\nLDR             X0, [X19,#0x37D0]                                      ; +0x1f4, 0x1003f7670\nCBZ             X0, loc_1003F76AC                                      ; +0x1f8, 0x1003f7674\nLDR             X8, [X0]                                               ; +0x1fc, 0x1003f7678\nLDR             X8, [X8,#0x200]                                        ; +0x200, 0x1003f767c\nBLR             X8                                                     ; +0x204, 0x1003f7680\nLDR             X1, [X19,#0x37D0]                                      ; +0x208, 0x1003f7684\nCMP             W20, #0                                                ; +0x20c, 0x1003f7688\nMOV             W8, #0xFFFFF9C1                                        ; +0x210, 0x1003f768c\nMOV             W9, #0x577                                             ; +0x214, 0x1003f7690\nCSEL            W2, W9, W8, NE                                         ; +0x218, 0x1003f7694\nLDR             X8, [X0]                                               ; +0x21c, 0x1003f7698\nLDR             X3, [X8,#0x250]                                        ; +0x220, 0x1003f769c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x224, 0x1003f76a0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x228, 0x1003f76a4\nBR              X3                                                     ; +0x22c, 0x1003f76a8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x230, 0x1003f76ac\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x234, 0x1003f76b0\nRET                                                                    ; +0x238, 0x1003f76b4", "xrefs": ["EditorUI::handleEditorAction @ 0x100162ba0", "EditorUI::toggleViewOption @ 0x10018957c", "LevelEditorLayer::init @ 0x1003f6794", "EditorPauseLayer::onResume @ 0x10044436c"], "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"}