{"type": "func", "start": 4299067824, "end": 4299067964, "name": "EditorUI::onUpdateDeleteFilter", "pseudocode": "// \n// EditorUI::onUpdateDeleteFilter from 0x1003e91b0 to 0x1003e923c (140 bytes)\n// \n// 1 xrefs:\n// > EditorUI::setupDeleteMenu @ 0x1003c7fe8\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 __fastcall EditorUI::onUpdateDeleteFilter(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  unsigned int v3; // w0\n  unsigned int v4; // w20\n  GameManager *v5; // x0\n  const char *v6; // x1\n  int m_objectID; // w2\n  GameObject *m_selectedObject; // x20\n\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  if ( v3 >= 3 )\n  {\n    if ( v3 != 3 )\n      goto LABEL_4;\n    m_selectedObject = a1->m_selectedObject;\n    v5 = GameManager::sharedState();\n    v6 = \"0005\";\n    if ( m_selectedObject )\n    {\n      GameManager::setIntGameVariable(v5, \"0005\", 3);\n      v5 = GameManager::sharedState();\n      m_objectID = m_selectedObject->m_objectID;\n      v6 = \"0006\";\n    }\n    else\n    {\n      m_objectID = 0;\n    }\n  }\n  else\n  {\n    v4 = v3;\n    v5 = GameManager::sharedState();\n    v6 = \"0005\";\n    m_objectID = v4;\n  }\n  GameManager::setIntGameVariable(v5, v6, m_objectID);\nLABEL_4:\n  EditorUI::updateDeleteButtons(a1);\n}", "assembly": "; \n; EditorUI::onUpdateDeleteFilter from 0x1003e91b0 to 0x1003e923c (140 bytes)\n; \n; 1 xrefs:\n; > EditorUI::setupDeleteMenu @ 0x1003c7fe8\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003e91b0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003e91b4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003e91b8\nMOV             X19, X0                                                ; +0xc, 0x1003e91bc\nLDR             X8, [X1]                                               ; +0x10, 0x1003e91c0\nLDR             X8, [X8,#0x40]                                         ; +0x14, 0x1003e91c4\nMOV             X0, X1                                                 ; +0x18, 0x1003e91c8\nBLR             X8                                                     ; +0x1c, 0x1003e91cc\nCMP             W0, #3                                                 ; +0x20, 0x1003e91d0\nB.CS            loc_1003E9200                                          ; +0x24, 0x1003e91d4\nMOV             X20, X0                                                ; +0x28, 0x1003e91d8\nBL              GameManager__sharedState                               ; +0x2c, 0x1003e91dc\nADRL            X1, a0005; \"0005\"                                      ; +0x30, 0x1003e91e0\nMOV             X2, X20                                                ; +0x38, 0x1003e91e8\nBL              GameManager__setIntGameVariable                        ; +0x3c, 0x1003e91ec\nMOV             X0, X19                                                ; +0x40, 0x1003e91f0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x44, 0x1003e91f4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x48, 0x1003e91f8\nB               EditorUI__updateDeleteButtons                          ; +0x4c, 0x1003e91fc\nB.NE            loc_1003E91F0                                          ; +0x50, 0x1003e9200\nLDR             X20, [X19,#0x520]                                      ; +0x54, 0x1003e9204\nBL              GameManager__sharedState                               ; +0x58, 0x1003e9208\nADRL            X1, a0005; \"0005\"                                      ; +0x5c, 0x1003e920c\nCBZ             X20, loc_1003E9234                                     ; +0x64, 0x1003e9214\nMOV             W2, #3                                                 ; +0x68, 0x1003e9218\nBL              GameManager__setIntGameVariable                        ; +0x6c, 0x1003e921c\nBL              GameManager__sharedState                               ; +0x70, 0x1003e9220\nLDR             W2, [X20,#0x404]                                       ; +0x74, 0x1003e9224\nADRL            X1, a0006; \"0006\"                                      ; +0x78, 0x1003e9228\nB               loc_1003E91EC                                          ; +0x80, 0x1003e9230\nMOV             W2, #0                                                 ; +0x84, 0x1003e9234\nB               loc_1003E91EC                                          ; +0x88, 0x1003e9238", "xrefs": ["EditorUI::setupDeleteMenu @ 0x1003c7fe8"], "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"}