{"type": "func", "start": 4728920, "end": 4729016, "name": "EditorUI::deleteTypeFromObjects", "pseudocode": "// \n// EditorUI::deleteTypeFromObjects from 0x482858 to 0x4828b8 (96 bytes)\n// \n// 1 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x6f4fb2\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\nunsigned int __fastcall EditorUI::deleteTypeFromObjects(GJBaseGameLayer **this, int a2, cocos2d::CCArray *a3)\n{\n  unsigned int v6; // r4\n  unsigned int result; // r0\n  int *v8; // r0\n  cocos2d::CCObject *v9; // r5\n  int v10; // r1\n  cocos2d::CCArray *StickyGroup; // r0\n\n  v6 = 0;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::count(a3);\n    if ( v6 >= result )\n      break;\n    v8 = (int *)cocos2d::CCArray::objectAtIndex(a3, v6);\n    v9 = (cocos2d::CCObject *)v8;\n    if ( v8[223] == a2 )\n    {\n      v10 = v8[185];\n      if ( v10 > 0 )\n      {\n        StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup(*(this + 236), v10);\n        if ( StickyGroup )\n          cocos2d::CCArray::removeObject(StickyGroup, v9, 1);\n      }\n      EditorUI::deleteObject((EditorUI *)this, v9, 1);\n      cocos2d::CCArray::removeObjectAtIndex(a3, v6, 1);\n    }\n    else\n    {\n      ++v6;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::deleteTypeFromObjects from 0x482858 to 0x4828b8 (96 bytes)\n; \n; 1 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x6f4fb2\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.W          {R4-R8,LR}                                             ; +0x0, 0x482858\nMOV             R7, R0                                                 ; +0x4, 0x48285c\nMOV             R8, R1                                                 ; +0x6, 0x48285e\nMOV             R6, R2                                                 ; +0x8, 0x482860\nMOVS            R4, #0                                                 ; +0xa, 0x482862\nMOV             R0, R6; this                                           ; +0xc, 0x482864\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xe, 0x482866\nCMP             R4, R0                                                 ; +0x12, 0x48286a\nBCS             locret_4828B4                                          ; +0x14, 0x48286c\nMOV             R0, R6; this                                           ; +0x16, 0x48286e\nMOV             R1, R4; unsigned int                                   ; +0x18, 0x482870\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1a, 0x482872\nLDR.W           R3, [R0,#0x37C]                                        ; +0x1e, 0x482876\nMOV             R5, R0                                                 ; +0x22, 0x48287a\nCMP             R3, R8                                                 ; +0x24, 0x48287c\nBNE             loc_4828B0                                             ; +0x26, 0x48287e\nLDR.W           R1, [R0,#0x2E4]; int                                   ; +0x28, 0x482880\nCMP             R1, #0                                                 ; +0x2c, 0x482884\nBLE             loc_48289A                                             ; +0x2e, 0x482886\nLDR.W           R0, [R7,#0x3B0]; this                                  ; +0x30, 0x482888\nBL              _ZN15GJBaseGameLayer14getStickyGroupEi; GJBaseGameLayer::getStickyGroup(int) ; +0x34, 0x48288c\nCBZ             R0, loc_48289A                                         ; +0x38, 0x482890\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x3a, 0x482892\nMOVS            R2, #1; bool                                           ; +0x3c, 0x482894\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x3e, 0x482896\nMOV             R0, R7; this                                           ; +0x42, 0x48289a\nMOV             R1, R5; GameObject *                                   ; +0x44, 0x48289c\nMOVS            R2, #1; bool                                           ; +0x46, 0x48289e\nBL              _ZN8EditorUI12deleteObjectEP10GameObjectb; EditorUI::deleteObject(GameObject *,bool) ; +0x48, 0x4828a0\nMOV             R0, R6; this                                           ; +0x4c, 0x4828a4\nMOV             R1, R4; unsigned int                                   ; +0x4e, 0x4828a6\nMOVS            R2, #1; bool                                           ; +0x50, 0x4828a8\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x52, 0x4828aa\nB               loc_482864                                             ; +0x56, 0x4828ae\nADDS            R4, #1                                                 ; +0x58, 0x4828b0\nB               loc_482864                                             ; +0x5a, 0x4828b2\nPOP.W           {R4-R8,PC}                                             ; +0x5c, 0x4828b4", "xrefs": ["EditorUI::spriteFromObjectString @ 0x6f4fb2"], "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"}