{"type": "func", "start": 3701134, "end": 3701224, "name": "EditorUI::deleteSmartBlocksFromObjects", "pseudocode": "// \n// EditorUI::deleteSmartBlocksFromObjects from 0x38798e to 0x3879e8 (90 bytes)\n// \n// 3 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x387ada\n// > EditorUI::createPrefab @ 0x3a42bc\n// > EditorUI::createSmartObjectsFromTemplate @ 0x3a53de\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::deleteSmartBlocksFromObjects(EditorUI *a1, cocos2d::CCArray *a2)\n{\n  unsigned int v4; // r4\n  int v5; // r0\n  GameObject *v6; // r5\n  int v7; // r1\n  cocos2d::CCArray *StickyGroup; // r0\n\n  v4 = 0;\n  while ( v4 < cocos2d::CCArray::count(a2) )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(a2, v4);\n    v6 = (GameObject *)v5;\n    if ( *(_DWORD *)(v5 + 1076) == 5 )\n    {\n      v7 = *(_DWORD *)(v5 + 732);\n      if ( v7 > 0 )\n      {\n        StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, v7);\n        if ( StickyGroup )\n          cocos2d::CCArray::removeObject(StickyGroup, v6, 1);\n      }\n      EditorUI::deleteObject(a1, v6, 1);\n      cocos2d::CCArray::removeObjectAtIndex(a2, v4, 1);\n    }\n    else\n    {\n      ++v4;\n    }\n  }\n}", "assembly": "; \n; EditorUI::deleteSmartBlocksFromObjects from 0x38798e to 0x3879e8 (90 bytes)\n; \n; 3 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x387ada\n; > EditorUI::createPrefab @ 0x3a42bc\n; > EditorUI::createSmartObjectsFromTemplate @ 0x3a53de\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            {R3-R7,LR}                                             ; +0x0, 0x38798e\nMOV             R7, R0                                                 ; +0x2, 0x387990\nMOV             R6, R1                                                 ; +0x4, 0x387992\nMOVS            R4, #0                                                 ; +0x6, 0x387994\nMOV             R0, R6; this                                           ; +0x8, 0x387996\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa, 0x387998\nCMP             R4, R0                                                 ; +0xe, 0x38799c\nBCS             locret_3879E6                                          ; +0x10, 0x38799e\nMOV             R0, R6; this                                           ; +0x12, 0x3879a0\nMOV             R1, R4; unsigned int                                   ; +0x14, 0x3879a2\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x16, 0x3879a4\nLDR.W           R3, [R0,#0x434]                                        ; +0x1a, 0x3879a8\nMOV             R5, R0                                                 ; +0x1e, 0x3879ac\nCMP             R3, #5                                                 ; +0x20, 0x3879ae\nBNE             loc_3879E2                                             ; +0x22, 0x3879b0\nLDR.W           R1, [R0,#0x2DC]; int                                   ; +0x24, 0x3879b2\nCMP             R1, #0                                                 ; +0x28, 0x3879b6\nBLE             loc_3879CC                                             ; +0x2a, 0x3879b8\nLDR.W           R0, [R7,#0x340]; this                                  ; +0x2c, 0x3879ba\nBL              _ZN15GJBaseGameLayer14getStickyGroupEi; GJBaseGameLayer::getStickyGroup(int) ; +0x30, 0x3879be\nCBZ             R0, loc_3879CC                                         ; +0x34, 0x3879c2\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x36, 0x3879c4\nMOVS            R2, #1; bool                                           ; +0x38, 0x3879c6\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x3a, 0x3879c8\nMOV             R0, R7; this                                           ; +0x3e, 0x3879cc\nMOV             R1, R5; GameObject *                                   ; +0x40, 0x3879ce\nMOVS            R2, #1; bool                                           ; +0x42, 0x3879d0\nBL              _ZN8EditorUI12deleteObjectEP10GameObjectb; EditorUI::deleteObject(GameObject *,bool) ; +0x44, 0x3879d2\nMOV             R0, R6; this                                           ; +0x48, 0x3879d6\nMOV             R1, R4; unsigned int                                   ; +0x4a, 0x3879d8\nMOVS            R2, #1; bool                                           ; +0x4c, 0x3879da\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x4e, 0x3879dc\nB               loc_387996                                             ; +0x52, 0x3879e0\nADDS            R4, #1                                                 ; +0x54, 0x3879e2\nB               loc_387996                                             ; +0x56, 0x3879e4\nPOP             {R3-R7,PC}                                             ; +0x58, 0x3879e6", "xrefs": ["EditorUI::spriteFromObjectString @ 0x387ada", "EditorUI::createPrefab @ 0x3a42bc", "EditorUI::createSmartObjectsFromTemplate @ 0x3a53de"], "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"}