{"type": "func", "start": 4726588, "end": 4726684, "name": "EditorUI::onUpdateDeleteFilter", "pseudocode": "// \n// EditorUI::onUpdateDeleteFilter from 0x481f3c to 0x481f9c (96 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:23 +0000\n// \n\nint __fastcall EditorUI::onUpdateDeleteFilter(EditorUI *this, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // r0\n  GameManager *v4; // r4\n  GameManager *v5; // r0\n  int v6; // r3\n  const char *v7; // r2\n  char *v8; // r1\n  int v9; // r5\n  GameManager *v10; // r0\n\n  v3 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  v4 = v3;\n  if ( (int)v3 >= 0 )\n  {\n    if ( (int)v3 <= 2 )\n    {\n      v5 = (GameManager *)GameManager::sharedState(v3);\n      v7 = (const char *)v4;\n      v8 = \"0005\";\n    }\n    else\n    {\n      if ( v3 != (GameManager *)((char *)&dword_0 + 3) )\n        return EditorUI::updateDeleteButtons(this);\n      v9 = *((_DWORD *)this + 249);\n      v5 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 3));\n      if ( v9 )\n      {\n        v10 = (GameManager *)GameManager::setIntGameVariable(v5, \"0005\", (_BYTE *)&dword_0 + 3, v6);\n        v5 = (GameManager *)GameManager::sharedState(v10);\n        v7 = *(const char **)(v9 + 892);\n        v8 = \"0006\";\n      }\n      else\n      {\n        v7 = nullptr;\n        v8 = \"0005\";\n      }\n    }\n    GameManager::setIntGameVariable(v5, v8, v7, v6);\n  }\n  return EditorUI::updateDeleteButtons(this);\n}", "assembly": "; \n; EditorUI::onUpdateDeleteFilter from 0x481f3c to 0x481f9c (96 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:23 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x481f3c\nMOV             R6, R0                                                 ; +0x2, 0x481f3e\nLDR             R3, [R1]                                               ; +0x4, 0x481f40\nMOV             R0, R1                                                 ; +0x6, 0x481f42\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x481f44\nBLX             R3                                                     ; +0xa, 0x481f46\nSUBS            R4, R0, #0                                             ; +0xc, 0x481f48\nBLT             loc_481F92                                             ; +0xe, 0x481f4a\nCMP             R4, #2                                                 ; +0x10, 0x481f4c\nBLE             loc_481F56                                             ; +0x12, 0x481f4e\nCMP             R4, #3                                                 ; +0x14, 0x481f50\nBEQ             loc_481F62                                             ; +0x16, 0x481f52\nB               loc_481F92                                             ; +0x18, 0x481f54\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1a, 0x481f56\nLDR             R1, =(a0005 - 0x481F62); \"0005\"                        ; +0x1e, 0x481f5a\nMOV             R2, R4                                                 ; +0x20, 0x481f5c\nADD             R1, PC; \"0005\"                                         ; +0x22, 0x481f5e\nB               loc_481F8E                                             ; +0x24, 0x481f60\nLDR.W           R5, [R6,#0x3E4]                                        ; +0x26, 0x481f62\nCBZ             R5, loc_481F84                                         ; +0x2a, 0x481f66\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2c, 0x481f68\nLDR             R1, =(a0005 - 0x481F74); \"0005\"                        ; +0x30, 0x481f6c\nMOV             R2, R4; int                                            ; +0x32, 0x481f6e\nADD             R1, PC; \"0005\"                                         ; +0x34, 0x481f70\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x36, 0x481f72\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x3a, 0x481f76\nLDR             R1, =(a0006 - 0x481F84); \"0006\"                        ; +0x3e, 0x481f7a\nLDR.W           R2, [R5,#0x37C]                                        ; +0x40, 0x481f7c\nADD             R1, PC; \"0006\"                                         ; +0x44, 0x481f80\nB               loc_481F8E                                             ; +0x46, 0x481f82\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x48, 0x481f84\nLDR             R1, =(a0005 - 0x481F90); \"0005\"                        ; +0x4c, 0x481f88\nMOV             R2, R5; int                                            ; +0x4e, 0x481f8a\nADD             R1, PC; \"0005\"                                         ; +0x50, 0x481f8c\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x52, 0x481f8e\nMOV             R0, R6; this                                           ; +0x56, 0x481f92\nPOP.W           {R4-R6,LR}                                             ; +0x58, 0x481f94\nB.W             _ZN8EditorUI19updateDeleteButtonsEv; EditorUI::updateDeleteButtons(void) ; +0x5c, 0x481f98", "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"}