{"type": "func", "start": 3701224, "end": 3701320, "name": "EditorUI::deleteTypeFromObjects", "pseudocode": "// \n// EditorUI::deleteTypeFromObjects from 0x3879e8 to 0x387a48 (96 bytes)\n// \n// 1 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x387ae6\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 EditorUI::deleteTypeFromObjects(EditorUI *a1, int a2, cocos2d::CCArray *a3)\n{\n  unsigned int v6; // r4\n  GameObject *v7; // r0\n  GameObject *v8; // r5\n  int m_linkedGroup; // r1\n  cocos2d::CCArray *StickyGroup; // r0\n\n  v6 = 0;\n  while ( v6 < cocos2d::CCArray::count(a3) )\n  {\n    v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, v6);\n    v8 = v7;\n    if ( v7->m_objectID == a2 )\n    {\n      m_linkedGroup = v7->m_linkedGroup;\n      if ( m_linkedGroup > 0 )\n      {\n        StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, m_linkedGroup);\n        if ( StickyGroup )\n          cocos2d::CCArray::removeObject(StickyGroup, v8, 1);\n      }\n      EditorUI::deleteObject(a1, v8, 1);\n      cocos2d::CCArray::removeObjectAtIndex(a3, v6, 1);\n    }\n    else\n    {\n      ++v6;\n    }\n  }\n}", "assembly": "; \n; EditorUI::deleteTypeFromObjects from 0x3879e8 to 0x387a48 (96 bytes)\n; \n; 1 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x387ae6\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\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x3879e8\nMOV             R7, R0                                                 ; +0x4, 0x3879ec\nMOV             R8, R1                                                 ; +0x6, 0x3879ee\nMOV             R6, R2                                                 ; +0x8, 0x3879f0\nMOVS            R4, #0                                                 ; +0xa, 0x3879f2\nMOV             R0, R6; this                                           ; +0xc, 0x3879f4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xe, 0x3879f6\nCMP             R4, R0                                                 ; +0x12, 0x3879fa\nBCS             locret_387A44                                          ; +0x14, 0x3879fc\nMOV             R0, R6; this                                           ; +0x16, 0x3879fe\nMOV             R1, R4; unsigned int                                   ; +0x18, 0x387a00\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1a, 0x387a02\nLDR.W           R3, [R0,#0x374]                                        ; +0x1e, 0x387a06\nMOV             R5, R0                                                 ; +0x22, 0x387a0a\nCMP             R3, R8                                                 ; +0x24, 0x387a0c\nBNE             loc_387A40                                             ; +0x26, 0x387a0e\nLDR.W           R1, [R0,#0x2DC]; int                                   ; +0x28, 0x387a10\nCMP             R1, #0                                                 ; +0x2c, 0x387a14\nBLE             loc_387A2A                                             ; +0x2e, 0x387a16\nLDR.W           R0, [R7,#0x340]; this                                  ; +0x30, 0x387a18\nBL              _ZN15GJBaseGameLayer14getStickyGroupEi; GJBaseGameLayer::getStickyGroup(int) ; +0x34, 0x387a1c\nCBZ             R0, loc_387A2A                                         ; +0x38, 0x387a20\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x3a, 0x387a22\nMOVS            R2, #1; bool                                           ; +0x3c, 0x387a24\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x3e, 0x387a26\nMOV             R0, R7; this                                           ; +0x42, 0x387a2a\nMOV             R1, R5; GameObject *                                   ; +0x44, 0x387a2c\nMOVS            R2, #1; bool                                           ; +0x46, 0x387a2e\nBL              _ZN8EditorUI12deleteObjectEP10GameObjectb; EditorUI::deleteObject(GameObject *,bool) ; +0x48, 0x387a30\nMOV             R0, R6; this                                           ; +0x4c, 0x387a34\nMOV             R1, R4; unsigned int                                   ; +0x4e, 0x387a36\nMOVS            R2, #1; bool                                           ; +0x50, 0x387a38\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x52, 0x387a3a\nB               loc_3879F4                                             ; +0x56, 0x387a3e\nADDS            R4, #1                                                 ; +0x58, 0x387a40\nB               loc_3879F4                                             ; +0x5a, 0x387a42\nPOP.W           {R4-R8,PC}                                             ; +0x5c, 0x387a44", "xrefs": ["EditorUI::spriteFromObjectString @ 0x387ae6"], "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"}