{"type": "func", "start": 8134744, "end": 8134932, "name": "EditorUI::onUpdateDeleteFilter", "pseudocode": "// \n// EditorUI::onUpdateDeleteFilter from 0x7c2058 to 0x7c2114 (188 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x6acc0\n// > EditorUI::setupDeleteMenu @ 0xbdebf0\n// > EditorUI::setupDeleteMenu @ 0xbdec84\n// > EditorUI::setupDeleteMenu @ 0xbdecf8\n// > EditorUI::setupDeleteMenu @ 0xbdedfc\n// > <???> @ 0x1542a20\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:07 +0000\n// \n\n__int64 __fastcall EditorUI::onUpdateDeleteFilter(EditorUI *this, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // x0\n  __int64 v4; // x20\n  GameManager *v5; // x0\n  GameManager *v6; // x0\n  GameManager *v7; // x0\n  GameManager *v8; // x0\n  unsigned int v10; // [xsp+28h] [xbp+28h]\n\n  v3 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( ((unsigned int)v3 & 0x80000000) != 0 )\n    return EditorUI::updateDeleteButtons(this);\n  if ( (int)v3 > 2 )\n  {\n    if ( (_DWORD)v3 == 3 )\n    {\n      v4 = *((_QWORD *)this + 187);\n      v5 = (GameManager *)GameManager::sharedState(v3);\n      if ( v4 )\n      {\n        v6 = (GameManager *)GameManager::setIntGameVariable(v5, \"0005\", 3u);\n        v7 = (GameManager *)GameManager::sharedState(v6);\n        GameManager::setIntGameVariable(v7, \"0006\", *(_DWORD *)(v4 + 1028));\n      }\n      else\n      {\n        GameManager::setIntGameVariable(v5, \"0005\", 0);\n      }\n    }\n    return EditorUI::updateDeleteButtons(this);\n  }\n  v10 = (unsigned int)v3;\n  v8 = (GameManager *)GameManager::sharedState(v3);\n  GameManager::setIntGameVariable(v8, \"0005\", v10);\n  return EditorUI::updateDeleteButtons(this);\n}", "assembly": "; \n; EditorUI::onUpdateDeleteFilter from 0x7c2058 to 0x7c2114 (188 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x6acc0\n; > EditorUI::setupDeleteMenu @ 0xbdebf0\n; > EditorUI::setupDeleteMenu @ 0xbdec84\n; > EditorUI::setupDeleteMenu @ 0xbdecf8\n; > EditorUI::setupDeleteMenu @ 0xbdedfc\n; > <???> @ 0x1542a20\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:07 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7c2058\nMOV             X29, SP                                                ; +0x4, 0x7c205c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x7c2060\nMOV             X19, X0                                                ; +0xc, 0x7c2064\nMOV             X0, X1                                                 ; +0x10, 0x7c2068\nLDR             X1, [X1]                                               ; +0x14, 0x7c206c\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0x7c2070\nBLR             X1                                                     ; +0x1c, 0x7c2074\nMOV             W2, W0                                                 ; +0x20, 0x7c2078\nTBNZ            W2, #0x1F, loc_7C20C4                                  ; +0x24, 0x7c207c\nCMP             W2, #2                                                 ; +0x28, 0x7c2080\nB.LE            loc_7C20D4                                             ; +0x2c, 0x7c2084\nCMP             W2, #3                                                 ; +0x30, 0x7c2088\nB.NE            loc_7C20C4                                             ; +0x34, 0x7c208c\nLDR             X20, [X19,#0x5D8]                                      ; +0x38, 0x7c2090\nSTR             X2, [X29,#0x30+var_8]                                  ; +0x3c, 0x7c2094\nCBZ             X20, loc_7C20FC                                        ; +0x40, 0x7c2098\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x44, 0x7c209c\nLDR             X2, [X29,#0x30+var_8]; int                             ; +0x48, 0x7c20a0\nADRL            X1, a0005; \"0005\"                                      ; +0x4c, 0x7c20a4\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x54, 0x7c20ac\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x58, 0x7c20b0\nADRP            X1, #a0006@PAGE; \"0006\"                                ; +0x5c, 0x7c20b4\nLDR             W2, [X20,#0x404]; int                                  ; +0x60, 0x7c20b8\nADD             X1, X1, #a0006@PAGEOFF; \"0006\"                         ; +0x64, 0x7c20bc\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x68, 0x7c20c0\nMOV             X0, X19; this                                          ; +0x6c, 0x7c20c4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x70, 0x7c20c8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x74, 0x7c20cc\nB               _ZN8EditorUI19updateDeleteButtonsEv; EditorUI::updateDeleteButtons(void) ; +0x78, 0x7c20d0\nSTR             X2, [X29,#0x30+var_8]                                  ; +0x7c, 0x7c20d4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x80, 0x7c20d8\nLDR             X2, [X29,#0x30+var_8]; int                             ; +0x84, 0x7c20dc\nADRL            X1, a0005; \"0005\"                                      ; +0x88, 0x7c20e0\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x90, 0x7c20e8\nMOV             X0, X19; this                                          ; +0x94, 0x7c20ec\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x98, 0x7c20f0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x9c, 0x7c20f4\nB               _ZN8EditorUI19updateDeleteButtonsEv; EditorUI::updateDeleteButtons(void) ; +0xa0, 0x7c20f8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xa4, 0x7c20fc\nADRP            X1, #a0005@PAGE; \"0005\"                                ; +0xa8, 0x7c2100\nMOV             W2, #0; int                                            ; +0xac, 0x7c2104\nADD             X1, X1, #a0005@PAGEOFF; \"0005\"                         ; +0xb0, 0x7c2108\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0xb4, 0x7c210c\nB               loc_7C20C4                                             ; +0xb8, 0x7c2110", "xrefs": ["<???> @ 0x6acc0", "EditorUI::setupDeleteMenu @ 0xbdebf0", "EditorUI::setupDeleteMenu @ 0xbdec84", "EditorUI::setupDeleteMenu @ 0xbdecf8", "EditorUI::setupDeleteMenu @ 0xbdedfc", "<???> @ 0x1542a20"], "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"}