{"type": "func", "start": 4728830, "end": 4728920, "name": "EditorUI::deleteSmartBlocksFromObjects", "pseudocode": "// \n// EditorUI::deleteSmartBlocksFromObjects from 0x4827fe to 0x482858 (90 bytes)\n// \n// 3 xrefs:\n// > EditorUI::createPrefab @ 0x487208\n// > EditorUI::createSmartObjectsFromTemplate @ 0x4881d0\n// > EditorUI::spriteFromObjectString @ 0x6f4fa6\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::deleteSmartBlocksFromObjects(GJBaseGameLayer **this, cocos2d::CCArray *a2)\n{\n  unsigned int v4; // r4\n  unsigned int result; // r0\n  int *v6; // r0\n  cocos2d::CCObject *v7; // r5\n  int v8; // r1\n  cocos2d::CCArray *StickyGroup; // r0\n\n  v4 = 0;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::count(a2);\n    if ( v4 >= result )\n      break;\n    v6 = (int *)cocos2d::CCArray::objectAtIndex(a2, v4);\n    v7 = (cocos2d::CCObject *)v6;\n    if ( v6[271] == 5 )\n    {\n      v8 = v6[185];\n      if ( v8 > 0 )\n      {\n        StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup(*(this + 236), v8);\n        if ( StickyGroup )\n          cocos2d::CCArray::removeObject(StickyGroup, v7, 1);\n      }\n      EditorUI::deleteObject((EditorUI *)this, v7, 1);\n      cocos2d::CCArray::removeObjectAtIndex(a2, v4, 1);\n    }\n    else\n    {\n      ++v4;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::deleteSmartBlocksFromObjects from 0x4827fe to 0x482858 (90 bytes)\n; \n; 3 xrefs:\n; > EditorUI::createPrefab @ 0x487208\n; > EditorUI::createSmartObjectsFromTemplate @ 0x4881d0\n; > EditorUI::spriteFromObjectString @ 0x6f4fa6\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            {R3-R7,LR}                                             ; +0x0, 0x4827fe\nMOV             R7, R0                                                 ; +0x2, 0x482800\nMOV             R6, R1                                                 ; +0x4, 0x482802\nMOVS            R4, #0                                                 ; +0x6, 0x482804\nMOV             R0, R6; this                                           ; +0x8, 0x482806\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa, 0x482808\nCMP             R4, R0                                                 ; +0xe, 0x48280c\nBCS             locret_482856                                          ; +0x10, 0x48280e\nMOV             R0, R6; this                                           ; +0x12, 0x482810\nMOV             R1, R4; unsigned int                                   ; +0x14, 0x482812\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x16, 0x482814\nLDR.W           R3, [R0,#0x43C]                                        ; +0x1a, 0x482818\nMOV             R5, R0                                                 ; +0x1e, 0x48281c\nCMP             R3, #5                                                 ; +0x20, 0x48281e\nBNE             loc_482852                                             ; +0x22, 0x482820\nLDR.W           R1, [R0,#0x2E4]; int                                   ; +0x24, 0x482822\nCMP             R1, #0                                                 ; +0x28, 0x482826\nBLE             loc_48283C                                             ; +0x2a, 0x482828\nLDR.W           R0, [R7,#0x3B0]; this                                  ; +0x2c, 0x48282a\nBL              _ZN15GJBaseGameLayer14getStickyGroupEi; GJBaseGameLayer::getStickyGroup(int) ; +0x30, 0x48282e\nCBZ             R0, loc_48283C                                         ; +0x34, 0x482832\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x36, 0x482834\nMOVS            R2, #1; bool                                           ; +0x38, 0x482836\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x3a, 0x482838\nMOV             R0, R7; this                                           ; +0x3e, 0x48283c\nMOV             R1, R5; GameObject *                                   ; +0x40, 0x48283e\nMOVS            R2, #1; bool                                           ; +0x42, 0x482840\nBL              _ZN8EditorUI12deleteObjectEP10GameObjectb; EditorUI::deleteObject(GameObject *,bool) ; +0x44, 0x482842\nMOV             R0, R6; this                                           ; +0x48, 0x482846\nMOV             R1, R4; unsigned int                                   ; +0x4a, 0x482848\nMOVS            R2, #1; bool                                           ; +0x4c, 0x48284a\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x4e, 0x48284c\nB               loc_482806                                             ; +0x52, 0x482850\nADDS            R4, #1                                                 ; +0x54, 0x482852\nB               loc_482806                                             ; +0x56, 0x482854\nPOP             {R3-R7,PC}                                             ; +0x58, 0x482856", "xrefs": ["EditorUI::createPrefab @ 0x487208", "EditorUI::createSmartObjectsFromTemplate @ 0x4881d0", "EditorUI::spriteFromObjectString @ 0x6f4fa6"], "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"}