{"type": "func", "start": 8138572, "end": 8138772, "name": "EditorUI::deleteTypeFromObjects", "pseudocode": "// \n// EditorUI::deleteTypeFromObjects from 0x7c2f4c to 0x7c3014 (200 bytes)\n// \n// 2 xrefs:\n// > EditorUI::spriteFromObjectString @ 0xbde1a8\n// > <???> @ 0xfdf90\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\ncocos2d::CCArray *__fastcall EditorUI::deleteTypeFromObjects(GJBaseGameLayer **this, int a2, cocos2d::CCArray *a3)\n{\n  unsigned int i; // w19\n  bool v7; // cf\n  unsigned int v8; // w1\n  cocos2d::CCArray *result; // x0\n  cocos2d::CCObject *v10; // x20\n  int v11; // w1\n  cocos2d::CCArray *StickyGroup; // x0\n\n  for ( i = 0; ; cocos2d::CCArray::removeObjectAtIndex(a3, i, 1) )\n  {\n    v7 = i >= (unsigned int)cocos2d::CCArray::count(a3);\n    v8 = i;\n    result = a3;\n    if ( v7 )\n      break;\n    while ( 1 )\n    {\n      v10 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(result, v8);\n      if ( *((_DWORD *)v10 + 257) == a2 )\n        break;\n      v7 = ++i >= (unsigned int)cocos2d::CCArray::count(a3);\n      v8 = i;\n      result = a3;\n      if ( v7 )\n        return result;\n    }\n    v11 = *((_DWORD *)v10 + 218);\n    if ( v11 > 0 )\n    {\n      StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup(*(this + 180), v11);\n      if ( StickyGroup )\n        cocos2d::CCArray::removeObject(StickyGroup, v10, 1);\n    }\n    EditorUI::deleteObject((EditorUI *)this, v10, 1);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::deleteTypeFromObjects from 0x7c2f4c to 0x7c3014 (200 bytes)\n; \n; 2 xrefs:\n; > EditorUI::spriteFromObjectString @ 0xbde1a8\n; > <???> @ 0xfdf90\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_40]!                                ; +0x0, 0x7c2f4c\nMOV             X29, SP                                                ; +0x4, 0x7c2f50\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0x7c2f54\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x7c2f58\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x7c2f5c\nMOV             W22, W1                                                ; +0x14, 0x7c2f60\nMOV             X23, X0                                                ; +0x18, 0x7c2f64\nMOV             X21, X2                                                ; +0x1c, 0x7c2f68\nMOV             W19, #0                                                ; +0x20, 0x7c2f6c\nMOV             X0, X21; this                                          ; +0x24, 0x7c2f70\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x7c2f74\nCMP             W19, W0                                                ; +0x2c, 0x7c2f78\nMOV             W1, W19; unsigned int                                  ; +0x30, 0x7c2f7c\nMOV             X0, X21; this                                          ; +0x34, 0x7c2f80\nB.CS            loc_7C2FB8                                             ; +0x38, 0x7c2f84\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0x7c2f88\nMOV             X20, X0                                                ; +0x40, 0x7c2f8c\nLDR             W0, [X0,#0x404]                                        ; +0x44, 0x7c2f90\nCMP             W0, W22                                                ; +0x48, 0x7c2f94\nB.EQ            loc_7C2FCC                                             ; +0x4c, 0x7c2f98\nMOV             X0, X21; this                                          ; +0x50, 0x7c2f9c\nADD             W19, W19, #1                                           ; +0x54, 0x7c2fa0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x58, 0x7c2fa4\nCMP             W19, W0                                                ; +0x5c, 0x7c2fa8\nMOV             W1, W19                                                ; +0x60, 0x7c2fac\nMOV             X0, X21                                                ; +0x64, 0x7c2fb0\nB.CC            loc_7C2F88                                             ; +0x68, 0x7c2fb4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x6c, 0x7c2fb8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x70, 0x7c2fbc\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x74, 0x7c2fc0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x78, 0x7c2fc4\nRET                                                                    ; +0x7c, 0x7c2fc8\nLDR             W1, [X20,#0x368]; int                                  ; +0x80, 0x7c2fcc\nCMP             W1, WZR                                                ; +0x84, 0x7c2fd0\nB.LE            loc_7C2FF0                                             ; +0x88, 0x7c2fd4\nLDR             X0, [X23,#0x5A0]; this                                 ; +0x8c, 0x7c2fd8\nBL              _ZN15GJBaseGameLayer14getStickyGroupEi; GJBaseGameLayer::getStickyGroup(int) ; +0x90, 0x7c2fdc\nMOV             X1, X20; cocos2d::CCObject *                           ; +0x94, 0x7c2fe0\nMOV             W2, #1; bool                                           ; +0x98, 0x7c2fe4\nCBZ             X0, loc_7C2FF0                                         ; +0x9c, 0x7c2fe8\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0xa0, 0x7c2fec\nMOV             X0, X23; this                                          ; +0xa4, 0x7c2ff0\nMOV             X1, X20; GameObject *                                  ; +0xa8, 0x7c2ff4\nMOV             W2, #1; bool                                           ; +0xac, 0x7c2ff8\nBL              _ZN8EditorUI12deleteObjectEP10GameObjectb; EditorUI::deleteObject(GameObject *,bool) ; +0xb0, 0x7c2ffc\nMOV             X0, X21; this                                          ; +0xb4, 0x7c3000\nMOV             W1, W19; unsigned int                                  ; +0xb8, 0x7c3004\nMOV             W2, #1; bool                                           ; +0xbc, 0x7c3008\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xc0, 0x7c300c\nB               loc_7C2F70                                             ; +0xc4, 0x7c3010", "xrefs": ["EditorUI::spriteFromObjectString @ 0xbde1a8", "<???> @ 0xfdf90"], "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"}