{"type": "func", "start": 3821236, "end": 3822604, "name": "EditorUI::createSmartObjectsFromTemplate", "pseudocode": "// \n// EditorUI::createSmartObjectsFromTemplate from 0x3a4eb4 to 0x3a540c (1368 bytes)\n// \n// 2 xrefs:\n// > SetupSmartBlockLayer::onPasteTemplate @ 0x53d4c8\n// > SetupSmartBlockLayer::onCreate @ 0x53d590\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::createSmartObjectsFromTemplate(\n        EditorUI *a1,\n        GJSmartTemplate *a2,\n        cocos2d::CCArray *a3,\n        bool a4,\n        bool a5,\n        bool a6,\n        bool a7)\n{\n  cocos2d::CCArray *v9; // r0\n  unsigned int v10; // r5\n  GameObject *v11; // r0\n  SmartGameObject *v12; // r8\n  int v13; // r9\n  LevelEditorLayer *m_editorLayer; // r9\n  cocos2d::CCArray *v15; // r0\n  cocos2d::CCArray *v16; // r9\n  unsigned int i; // r8\n  int v18; // r11\n  unsigned int j; // r11\n  SmartGameObject *v20; // r0\n  SmartGameObject *v21; // r6\n  int v22; // r9\n  cocos2d::CCPoint v23; // r2\n  SmartGameObject *SmartNeighbor; // r9\n  cocos2d::CCPoint v25; // r2\n  cocos2d::CCPoint v26; // r2\n  cocos2d::CCPoint v27; // r2\n  cocos2d::CCPoint v28; // r2\n  cocos2d::CCPoint v29; // r2\n  SmartGameObject *v30; // r10\n  cocos2d::CCPoint v31; // r2\n  cocos2d::CCPoint v32; // r2\n  cocos2d::CCPoint v33; // r1\n  cocos2d::CCArray *v34; // r8\n  unsigned int k; // r5\n  cocos2d::CCDictElement *m_pElements; // r3\n  cocos2d::CCDictElement *next; // r5\n  cocos2d::CCObject *m_pObject; // r6\n  cocos2d::CCDictElement *v39; // r2\n  SmartGameObject *v40; // r0\n  EditorUI *v41; // r0\n  cocos2d::CCArray *v42; // r1\n  UndoObject *v43; // r0\n  unsigned int m; // r7\n  GameObject *v45; // r0\n  UndoObject *v46; // r0\n  const cocos2d::CCPoint *v47; // r0\n  float v48; // s16\n  bool v49; // [sp+0h] [bp-BCh]\n  cocos2d::CCArray *v50; // [sp+4h] [bp-B8h]\n  cocos2d::CCArray *v51; // [sp+4h] [bp-B8h]\n  cocos2d::CCArray *v52; // [sp+4h] [bp-B8h]\n  cocos2d::CCArray *v53; // [sp+4h] [bp-B8h]\n  cocos2d::CCArray *v54; // [sp+4h] [bp-B8h]\n  cocos2d::CCArray *v55; // [sp+4h] [bp-B8h]\n  cocos2d::CCArray *v56; // [sp+4h] [bp-B8h]\n  cocos2d::CCArray *v57; // [sp+4h] [bp-B8h]\n  SmartGameObject *v58; // [sp+1Ch] [bp-A0h]\n  cocos2d::CCArray *v59; // [sp+24h] [bp-98h]\n  cocos2d::CCDictionary *v60; // [sp+28h] [bp-94h]\n  cocos2d::CCArray *v61; // [sp+2Ch] [bp-90h]\n  cocos2d::CCArray *v62; // [sp+30h] [bp-8Ch]\n  _BOOL4 v64; // [sp+3Ch] [bp-80h]\n  SmartGameObject *v65; // [sp+40h] [bp-7Ch]\n  SmartGameObject *v66; // [sp+44h] [bp-78h]\n  SmartGameObject *v67; // [sp+48h] [bp-74h]\n  SmartGameObject *v68; // [sp+4Ch] [bp-70h]\n  SmartGameObject *v69; // [sp+50h] [bp-6Ch]\n  SmartGameObject *v70; // [sp+64h] [bp-58h]\n  int v71; // [sp+6Ch] [bp-50h] BYREF\n  char v72[4]; // [sp+70h] [bp-4Ch] BYREF\n  char v73[4]; // [sp+74h] [bp-48h] BYREF\n  cocos2d::CCPoint v74; // [sp+78h] [bp-44h] BYREF\n  cocos2d::CCPoint v75; // [sp+80h] [bp-3Ch] BYREF\n  cocos2d::CCRect v76; // [sp+88h] [bp-34h] BYREF\n  cocos2d::CCRect v77; // [sp+98h] [bp-24h] BYREF\n  int v78; // [sp+ACh] [bp-10h]\n  char v79; // [sp+B0h] [bp-Ch]\n  char v80; // [sp+B1h] [bp-Bh]\n  cocos2d::CCPoint v81; // 0:r3.4,4:^0.4\n  cocos2d::CCRect v82; // 0:r1.12,12:^0.4\n\n  v64 = a4;\n  if ( a3 && cocos2d::CCArray::count(a3) && a2 )\n  {\n    GJSmartTemplate::resetScannedPrefabs(a2);\n    EditorUI::deselectAll(a1);\n    v10 = 0;\n    v61 = (cocos2d::CCArray *)cocos2d::CCArray::create(v9);\n    v59 = (cocos2d::CCArray *)cocos2d::CCArray::create(v61);\n    v62 = (cocos2d::CCArray *)cocos2d::CCArray::create(v59);\n    v60 = cocos2d::CCDictionary::create();\n    while ( v10 < cocos2d::CCArray::count(a3) )\n    {\n      v11 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, v10);\n      v12 = (SmartGameObject *)v11;\n      if ( (unsigned int)(v11->m_objectID - 2896) <= 1 )\n        GameObject::determineSlopeDirection(v11);\n      if ( v64 )\n      {\n        v13 = (int)v12->getPosition(v12);\n        GJSmartTemplate::offsetForObject(&v77.origin, v12);\n        cocos2d::CCPoint::operator+(&v75, v13, &v77);\n        cocos2d::CCRect::CCRect(&v76, v75.x - 37.5, v75.y - 37.5, 75.0, 75.0);\n        m_editorLayer = a1->m_editorLayer;\n        cocos2d::CCRect::CCRect(&v77, &v76);\n        LODWORD(v82.origin.x) = &v77;\n        LODWORD(v82.origin.y) = 1;\n        v15 = LevelEditorLayer::objectsInRect(m_editorLayer, v82, (bool)v50);\n        v16 = v15;\n        if ( v15 )\n        {\n          if ( cocos2d::CCArray::count(v15) )\n          {\n            for ( i = 0; i < cocos2d::CCArray::count(v16); ++i )\n            {\n              v18 = cocos2d::CCArray::objectAtIndex(v16, i);\n              if ( *(_DWORD *)(v18 + 1076) == 5 && !cocos2d::CCArray::containsObject(a3, (cocos2d::CCObject *)v18) )\n              {\n                cocos2d::CCArray::addObject(a3, (cocos2d::CCObject *)v18);\n                cocos2d::CCDictionary::setObject(v60, (cocos2d::CCObject *)v18, *(_DWORD *)(v18 + 772));\n                (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v18 + 36))(v18, *(unsigned __int8 *)(v18 + 1159));\n                *(_BYTE *)(v18 + 1159) = 1;\n              }\n            }\n          }\n        }\n      }\n      ++v10;\n    }\n    for ( j = 0; j < cocos2d::CCArray::count(a3); ++j )\n    {\n      v20 = (SmartGameObject *)cocos2d::CCArray::objectAtIndex(a3, j);\n      v21 = v20;\n      if ( v20->m_referenceOnly )\n      {\n        if ( !cocos2d::CCDictionary::objectForKey(v60, v20->m_uniqueID) )\n          cocos2d::CCArray::addObject(v59, v21);\n      }\n      else\n      {\n        v22 = (int)v20->getPosition(v20);\n        GJSmartTemplate::offsetForObject(&v77.origin, v21);\n        cocos2d::CCPoint::operator+(&v74, v22, &v77);\n        cocos2d::CCPoint::CCPoint(&v77.origin, &v74);\n        LODWORD(v23.x) = &v77;\n        LODWORD(v23.y) = 1;\n        SmartNeighbor = EditorUI::getSmartNeighbor(a1, v21, v23, (GJSmartDirection)a3, v50);\n        cocos2d::CCPoint::CCPoint(&v77.origin, &v74);\n        LODWORD(v25.x) = &v77;\n        LODWORD(v25.y) = 2;\n        v65 = EditorUI::getSmartNeighbor(a1, v21, v25, (GJSmartDirection)a3, v51);\n        cocos2d::CCPoint::CCPoint(&v77.origin, &v74);\n        LODWORD(v26.x) = &v77;\n        LODWORD(v26.y) = 3;\n        v66 = EditorUI::getSmartNeighbor(a1, v21, v26, (GJSmartDirection)a3, v52);\n        cocos2d::CCPoint::CCPoint(&v77.origin, &v74);\n        LODWORD(v27.x) = &v77;\n        LODWORD(v27.y) = 4;\n        v67 = EditorUI::getSmartNeighbor(a1, v21, v27, (GJSmartDirection)a3, v53);\n        cocos2d::CCPoint::CCPoint(&v77.origin, &v74);\n        LODWORD(v28.x) = &v77;\n        LODWORD(v28.y) = 5;\n        v68 = EditorUI::getSmartNeighbor(a1, v21, v28, (GJSmartDirection)a3, v54);\n        cocos2d::CCPoint::CCPoint(&v77.origin, &v74);\n        LODWORD(v29.x) = &v77;\n        LODWORD(v29.y) = 6;\n        v30 = EditorUI::getSmartNeighbor(a1, v21, v29, (GJSmartDirection)a3, v55);\n        cocos2d::CCPoint::CCPoint(&v77.origin, &v74);\n        LODWORD(v31.x) = &v77;\n        LODWORD(v31.y) = 7;\n        v69 = EditorUI::getSmartNeighbor(a1, v21, v31, (GJSmartDirection)a3, v56);\n        cocos2d::CCPoint::CCPoint(&v77.origin, &v74);\n        LODWORD(v32.x) = &v77;\n        LODWORD(v32.y) = 8;\n        v70 = EditorUI::getSmartNeighbor(a1, v21, v32, (GJSmartDirection)a3, v57);\n        cocos2d::CCPoint::CCPoint(&v77.origin, &v74);\n        LODWORD(v33.x) = &v77;\n        LODWORD(v33.y) = v21;\n        GJSmartTemplate::keyFromNeighbors(\n          (GJSmartTemplate *)&v71,\n          v33,\n          SmartNeighbor,\n          v65,\n          v66,\n          v67,\n          v68,\n          v30,\n          v69,\n          v70,\n          v58);\n        sub_775C20(v72, &v71);\n        GJSmartTemplate::scanForPrefab((GJSmartTemplate *)&v77, (std::string)a2);\n        sub_774008(v72);\n        if ( LODWORD(v77.origin.x) )\n        {\n          cocos2d::CCArray::addObject(v62, v21);\n          sub_775C20(v73, &v77.size);\n          sub_775D40(&v21->m_baseFrame, v73);\n          sub_774008(v73);\n          if ( !a7 )\n          {\n            sub_775C20(&v75, LODWORD(v77.origin.x) + 56);\n            v34 = EditorUI::pasteObjects(a1, &v75, 0, 1);\n            sub_774008(&v75);\n            if ( v34 )\n            {\n              if ( cocos2d::CCArray::count(v34) )\n              {\n                v47 = v21->getPosition(v21);\n                cocos2d::CCPoint::CCPoint(&v75, v47);\n                cocos2d::CCPoint::CCPoint(&v76.origin, &v75);\n                EditorUI::repositionObjectsToCenter(a1, v34, (cocos2d::CCPoint)(unsigned int)&v76, v49);\n                if ( v80 )\n                  EditorUI::flipObjectsY(a1, v34);\n                if ( v79 )\n                  EditorUI::flipObjectsX(a1, v34);\n                if ( v78 > 0 )\n                {\n                  v48 = (float)-v78;\n                  cocos2d::CCPoint::CCPoint(&v76.origin, (const cocos2d::CCPoint *)&flt_AC5D38);\n                  LODWORD(v81.x) = &v76;\n                  EditorUI::rotateObjects(a1, v34, v48, v81);\n                }\n                cocos2d::CCPoint::CCPoint(&v76.origin, &v75);\n                EditorUI::repositionObjectsToCenter(a1, v34, (cocos2d::CCPoint)(unsigned int)&v76, SLOBYTE(v81.y));\n                EditorUI::deleteSmartBlocksFromObjects(a1, v34);\n                cocos2d::CCArray::addObjectsFromArray(v61, v34);\n                cocos2d::CCArray::addObject(v59, v21);\n              }\n            }\n          }\n        }\n        else\n        {\n          sub_776584((int)&v76, (char *)&unk_939830);\n          sub_775D40(&v21->m_baseFrame, &v76);\n          sub_774008(&v76);\n        }\n        sub_774008(&v77.size);\n        sub_774008(&v77.origin.y);\n        sub_774008(&v71);\n      }\n    }\n    if ( v64 && v60 )\n    {\n      m_pElements = v60->m_pElements;\n      if ( m_pElements )\n        next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n      else\n        next = nullptr;\n      while ( m_pElements )\n      {\n        m_pObject = m_pElements->m_pObject;\n        HIBYTE(m_pObject[22].m_nTag) = m_pObject->getTag(m_pObject) != 0;\n        if ( next )\n          v39 = (cocos2d::CCDictElement *)next->hh.next;\n        else\n          v39 = nullptr;\n        m_pElements = next;\n        next = v39;\n      }\n    }\n    EditorUI::deselectAll(a1);\n    if ( a6 )\n    {\n      for ( k = 0; k < cocos2d::CCArray::count(v62); ++k )\n      {\n        v40 = (SmartGameObject *)cocos2d::CCArray::objectAtIndex(v62, k);\n        v40->m_referenceOnly = 1;\n        SmartGameObject::updateSmartFrame(v40);\n      }\n    }\n    else if ( !a5 )\n    {\n      v43 = UndoObject::createWithArray(v59, DeleteMulti);\n      LevelEditorLayer::addToUndoList(a1->m_editorLayer, v43, 0);\n      for ( m = 0; m < cocos2d::CCArray::count(v59); ++m )\n      {\n        v45 = (GameObject *)cocos2d::CCArray::objectAtIndex(v59, m);\n        EditorUI::deleteObject(a1, v45, 1);\n      }\n      v42 = v61;\n      v41 = a1;\n      goto LABEL_52;\n    }\n    v41 = a1;\n    v42 = a3;\nLABEL_52:\n    EditorUI::selectObjects(v41, v42, 1);\n    v46 = UndoObject::createWithArray(v61, Paste);\n    LevelEditorLayer::addToUndoList(a1->m_editorLayer, v46, 0);\n    EditorUI::updateButtons(a1);\n    EditorUI::updateSpecialUIElements(a1);\n  }\n}", "assembly": "; \n; EditorUI::createSmartObjectsFromTemplate from 0x3a4eb4 to 0x3a540c (1368 bytes)\n; \n; 2 xrefs:\n; > SetupSmartBlockLayer::onPasteTemplate @ 0x53d4c8\n; > SetupSmartBlockLayer::onCreate @ 0x53d590\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-R11,LR}                                            ; +0x0, 0x3a4eb4\nMOV             R4, R0                                                 ; +0x4, 0x3a4eb8\nVPUSH           {D8}                                                   ; +0x6, 0x3a4eba\nMOV             R7, R2                                                 ; +0xa, 0x3a4ebe\nSUB             SP, SP, #0xBC; float                                   ; +0xc, 0x3a4ec0\nSTR             R3, [SP,#0xBC+var_80]                                  ; +0xe, 0x3a4ec2\nLDRB.W          R3, [SP,#0xBC+arg_0]                                   ; +0x10, 0x3a4ec4\nSTR             R1, [SP,#0xBC+var_88]                                  ; +0x14, 0x3a4ec8\nSTR             R3, [SP,#0xBC+var_84]                                  ; +0x16, 0x3a4eca\nLDRB.W          R3, [SP,#0xBC+arg_8]                                   ; +0x18, 0x3a4ecc\nSTR             R3, [SP,#0xBC+var_68]                                  ; +0x1c, 0x3a4ed0\nLDR             R3, =(__stack_chk_guard_ptr - 0x3A4ED8)                ; +0x1e, 0x3a4ed2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x20, 0x3a4ed4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x22, 0x3a4ed6\nSTR             R3, [SP,#0xBC+var_64]                                  ; +0x24, 0x3a4ed8\nLDR             R1, [R3]                                               ; +0x26, 0x3a4eda\nSTR             R1, [SP,#0xBC+var_8]                                   ; +0x28, 0x3a4edc\nCMP             R2, #0                                                 ; +0x2a, 0x3a4ede\nBEQ.W           loc_3A53F4                                             ; +0x2c, 0x3a4ee0\nMOV             R0, R2; this                                           ; +0x30, 0x3a4ee4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x32, 0x3a4ee6\nCMP             R0, #0                                                 ; +0x36, 0x3a4eea\nBEQ.W           loc_3A53F4                                             ; +0x38, 0x3a4eec\nLDR             R3, [SP,#0xBC+var_88]                                  ; +0x3c, 0x3a4ef0\nCMP             R3, #0                                                 ; +0x3e, 0x3a4ef2\nBEQ.W           loc_3A53F4                                             ; +0x40, 0x3a4ef4\nLDR             R0, [SP,#0xBC+var_88]; this                            ; +0x44, 0x3a4ef8\nADD             R6, SP, #0xBC+var_24                                   ; +0x46, 0x3a4efa\nBL              _ZN15GJSmartTemplate19resetScannedPrefabsEv; GJSmartTemplate::resetScannedPrefabs(void) ; +0x48, 0x3a4efc\nMOV             R0, R4; this                                           ; +0x4c, 0x3a4f00\nBL              _ZN8EditorUI11deselectAllEv; EditorUI::deselectAll(void) ; +0x4e, 0x3a4f02\nVLDR            S16, =37.5                                             ; +0x52, 0x3a4f06\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x56, 0x3a4f0a\nMOVS            R5, #0                                                 ; +0x5a, 0x3a4f0e\nVLDR            S17, =75.0                                             ; +0x5c, 0x3a4f10\nSTR             R0, [SP,#0xBC+var_90]                                  ; +0x60, 0x3a4f14\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x62, 0x3a4f16\nSTR             R0, [SP,#0xBC+var_98]                                  ; +0x66, 0x3a4f1a\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x68, 0x3a4f1c\nSTR             R0, [SP,#0xBC+var_8C]                                  ; +0x6c, 0x3a4f20\nBL              _ZN7cocos2d12CCDictionary6createEv; cocos2d::CCDictionary::create(void) ; +0x6e, 0x3a4f22\nSTR             R0, [SP,#0xBC+var_94]                                  ; +0x72, 0x3a4f26\nMOV             R0, R7; this                                           ; +0x74, 0x3a4f28\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x76, 0x3a4f2a\nCMP             R5, R0                                                 ; +0x7a, 0x3a4f2e\nBCS             loc_3A5014                                             ; +0x7c, 0x3a4f30\nMOV             R0, R7; this                                           ; +0x7e, 0x3a4f32\nMOV             R1, R5; unsigned int                                   ; +0x80, 0x3a4f34\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x82, 0x3a4f36\nLDR.W           R3, [R0,#0x374]                                        ; +0x86, 0x3a4f3a\nMOV             R8, R0                                                 ; +0x8a, 0x3a4f3e\nSUB.W           R3, R3, #0xB50                                         ; +0x8c, 0x3a4f40\nCMP             R3, #1                                                 ; +0x90, 0x3a4f44\nBLS.W           loc_3A5346                                             ; +0x92, 0x3a4f46\nLDR             R3, [SP,#0xBC+var_80]                                  ; +0x96, 0x3a4f4a\nCMP             R3, #0                                                 ; +0x98, 0x3a4f4c\nBEQ             loc_3A5010                                             ; +0x9a, 0x3a4f4e\nLDR.W           R3, [R8]                                               ; +0x9c, 0x3a4f50\nMOV             R0, R8                                                 ; +0xa0, 0x3a4f54\nLDR             R3, [R3,#0x60]                                         ; +0xa2, 0x3a4f56\nBLX             R3                                                     ; +0xa4, 0x3a4f58\nMOV             R1, R8                                                 ; +0xa6, 0x3a4f5a\nADD.W           R8, SP, #0xBC+var_34                                   ; +0xa8, 0x3a4f5c\nMOV             R9, R0                                                 ; +0xac, 0x3a4f60\nMOV             R0, R6                                                 ; +0xae, 0x3a4f62\nBL              _ZN15GJSmartTemplate15offsetForObjectEP15SmartGameObject; GJSmartTemplate::offsetForObject(SmartGameObject *) ; +0xb0, 0x3a4f64\nMOV             R1, R9                                                 ; +0xb4, 0x3a4f68\nADD             R0, SP, #0xBC+var_3C                                   ; +0xb6, 0x3a4f6a\nMOV             R2, R6                                                 ; +0xb8, 0x3a4f6c\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xba, 0x3a4f6e\nVLDR            S15, [SP,#0xBC+var_3C]                                 ; +0xbe, 0x3a4f72\nLDR             R3, flt_3A522C; float                                  ; +0xc2, 0x3a4f76\nMOV             R0, R8; this                                           ; +0xc4, 0x3a4f78\nVSTR            S17, [SP,#0xBC+var_BC]                                 ; +0xc6, 0x3a4f7a\nVSUB.F32        S15, S15, S16                                          ; +0xca, 0x3a4f7e\nVMOV            R1, S15; float                                         ; +0xce, 0x3a4f82\nVLDR            S15, [SP,#0xBC+var_38]                                 ; +0xd2, 0x3a4f86\nVSUB.F32        S15, S15, S16                                          ; +0xd6, 0x3a4f8a\nVMOV            R2, S15; float                                         ; +0xda, 0x3a4f8e\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xde, 0x3a4f92\nLDR.W           R9, [R4,#0x340]                                        ; +0xe2, 0x3a4f96\nMOV             R1, R8; cocos2d::CCRect *                              ; +0xe6, 0x3a4f9a\nMOV             R0, R6; this                                           ; +0xe8, 0x3a4f9c\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0xea, 0x3a4f9e\nMOV             R1, R6                                                 ; +0xee, 0x3a4fa2\nMOV             R0, R9                                                 ; +0xf0, 0x3a4fa4\nMOVS            R2, #1                                                 ; +0xf2, 0x3a4fa6\nBL              _ZN16LevelEditorLayer13objectsInRectEN7cocos2d6CCRectEb; LevelEditorLayer::objectsInRect(cocos2d::CCRect,bool) ; +0xf4, 0x3a4fa8\nMOV             R9, R0                                                 ; +0xf8, 0x3a4fac\nCBZ             R0, loc_3A5010                                         ; +0xfa, 0x3a4fae\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xfc, 0x3a4fb0\nCBZ             R0, loc_3A5010                                         ; +0x100, 0x3a4fb4\nMOV.W           R8, #0                                                 ; +0x102, 0x3a4fb6\nMOV.W           R10, #1                                                ; +0x106, 0x3a4fba\nMOV             R0, R9; this                                           ; +0x10a, 0x3a4fbe\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x10c, 0x3a4fc0\nCMP             R8, R0                                                 ; +0x110, 0x3a4fc4\nBCS             loc_3A5010                                             ; +0x112, 0x3a4fc6\nMOV             R0, R9; this                                           ; +0x114, 0x3a4fc8\nMOV             R1, R8; unsigned int                                   ; +0x116, 0x3a4fca\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x118, 0x3a4fcc\nLDR.W           R3, [R0,#0x434]                                        ; +0x11c, 0x3a4fd0\nMOV             R11, R0                                                ; +0x120, 0x3a4fd4\nCMP             R3, #5                                                 ; +0x122, 0x3a4fd6\nBNE             loc_3A500A                                             ; +0x124, 0x3a4fd8\nMOV             R0, R7; this                                           ; +0x126, 0x3a4fda\nMOV             R1, R11; cocos2d::CCObject *                           ; +0x128, 0x3a4fdc\nBL              _ZNK7cocos2d7CCArray14containsObjectEPNS_8CCObjectE; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x12a, 0x3a4fde\nCBNZ            R0, loc_3A500A                                         ; +0x12e, 0x3a4fe2\nMOV             R0, R7; this                                           ; +0x130, 0x3a4fe4\nMOV             R1, R11; cocos2d::CCObject *                           ; +0x132, 0x3a4fe6\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x134, 0x3a4fe8\nLDR             R0, [SP,#0xBC+var_94]; this                            ; +0x138, 0x3a4fec\nMOV             R1, R11; cocos2d::CCObject *                           ; +0x13a, 0x3a4fee\nLDR.W           R2, [R11,#0x304]; int                                  ; +0x13c, 0x3a4ff0\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0x140, 0x3a4ff4\nLDR.W           R3, [R11]                                              ; +0x144, 0x3a4ff8\nMOV             R0, R11                                                ; +0x148, 0x3a4ffc\nLDRB.W          R1, [R11,#0x487]                                       ; +0x14a, 0x3a4ffe\nLDR             R3, [R3,#0x24]                                         ; +0x14e, 0x3a5002\nBLX             R3                                                     ; +0x150, 0x3a5004\nSTRB.W          R10, [R11,#0x487]                                      ; +0x152, 0x3a5006\nADD.W           R8, R8, #1                                             ; +0x156, 0x3a500a\nB               loc_3A4FBE                                             ; +0x15a, 0x3a500e\nADDS            R5, #1                                                 ; +0x15c, 0x3a5010\nB               loc_3A4F28                                             ; +0x15e, 0x3a5012\nLDR             R3, =(unk_939830 - 0x3A5020)                           ; +0x160, 0x3a5014\nADD             R5, SP, #0xBC+var_24                                   ; +0x162, 0x3a5016\nMOV.W           R11, #0                                                ; +0x164, 0x3a5018\nADD             R3, PC; unk_939830                                     ; +0x168, 0x3a501c\nSTR             R3, [SP,#0xBC+var_60]                                  ; +0x16a, 0x3a501e\nLDR             R3, =(flt_AC5D38 - 0x3A5026)                           ; +0x16c, 0x3a5020\nADD             R3, PC; flt_AC5D38                                     ; +0x16e, 0x3a5022\nSTR             R3, [SP,#0xBC+var_5C]                                  ; +0x170, 0x3a5024\nMOV             R0, R7; this                                           ; +0x172, 0x3a5026\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x174, 0x3a5028\nCMP             R11, R0                                                ; +0x178, 0x3a502c\nBCS.W           loc_3A523C                                             ; +0x17a, 0x3a502e\nMOV             R0, R7; this                                           ; +0x17e, 0x3a5032\nMOV             R1, R11; unsigned int                                  ; +0x180, 0x3a5034\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x182, 0x3a5036\nLDRB.W          R3, [R0,#0x487]                                        ; +0x186, 0x3a503a\nMOV             R6, R0                                                 ; +0x18a, 0x3a503e\nCMP             R3, #0                                                 ; +0x18c, 0x3a5040\nBNE.W           loc_3A5208                                             ; +0x18e, 0x3a5042\nLDR             R3, [R0]                                               ; +0x192, 0x3a5046\nADD.W           R8, SP, #0xBC+var_44                                   ; +0x194, 0x3a5048\nLDR             R3, [R3,#0x60]                                         ; +0x198, 0x3a504c\nBLX             R3                                                     ; +0x19a, 0x3a504e\nMOV             R1, R6                                                 ; +0x19c, 0x3a5050\nMOV             R9, R0                                                 ; +0x19e, 0x3a5052\nMOV             R0, R5                                                 ; +0x1a0, 0x3a5054\nBL              _ZN15GJSmartTemplate15offsetForObjectEP15SmartGameObject; GJSmartTemplate::offsetForObject(SmartGameObject *) ; +0x1a2, 0x3a5056\nMOV             R0, R8                                                 ; +0x1a6, 0x3a505a\nMOV             R1, R9                                                 ; +0x1a8, 0x3a505c\nMOV             R2, R5                                                 ; +0x1aa, 0x3a505e\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x1ac, 0x3a5060\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x1b0, 0x3a5064\nMOV             R0, R5; this                                           ; +0x1b2, 0x3a5066\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1b4, 0x3a5068\nMOV             R2, R5                                                 ; +0x1b8, 0x3a506c\nMOVS            R3, #1                                                 ; +0x1ba, 0x3a506e\nMOV             R1, R6                                                 ; +0x1bc, 0x3a5070\nSTR             R7, [SP,#0xBC+var_BC]                                  ; +0x1be, 0x3a5072\nMOV             R0, R4                                                 ; +0x1c0, 0x3a5074\nBL              _ZN8EditorUI16getSmartNeighborEP15SmartGameObjectN7cocos2d7CCPointE16GJSmartDirectionPNS2_7CCArrayE; EditorUI::getSmartNeighbor(SmartGameObject *,cocos2d::CCPoint,GJSmartDirection,cocos2d::CCArray *) ; +0x1c2, 0x3a5076\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x1c6, 0x3a507a\nMOV             R9, R0                                                 ; +0x1c8, 0x3a507c\nMOV             R0, R5; this                                           ; +0x1ca, 0x3a507e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1cc, 0x3a5080\nMOV             R2, R5                                                 ; +0x1d0, 0x3a5084\nMOVS            R3, #2                                                 ; +0x1d2, 0x3a5086\nMOV             R1, R6                                                 ; +0x1d4, 0x3a5088\nSTR             R7, [SP,#0xBC+var_BC]                                  ; +0x1d6, 0x3a508a\nMOV             R0, R4                                                 ; +0x1d8, 0x3a508c\nBL              _ZN8EditorUI16getSmartNeighborEP15SmartGameObjectN7cocos2d7CCPointE16GJSmartDirectionPNS2_7CCArrayE; EditorUI::getSmartNeighbor(SmartGameObject *,cocos2d::CCPoint,GJSmartDirection,cocos2d::CCArray *) ; +0x1da, 0x3a508e\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x1de, 0x3a5092\nSTR             R0, [SP,#0xBC+var_7C]                                  ; +0x1e0, 0x3a5094\nMOV             R0, R5; this                                           ; +0x1e2, 0x3a5096\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1e4, 0x3a5098\nMOV             R2, R5                                                 ; +0x1e8, 0x3a509c\nMOVS            R3, #3                                                 ; +0x1ea, 0x3a509e\nMOV             R1, R6                                                 ; +0x1ec, 0x3a50a0\nSTR             R7, [SP,#0xBC+var_BC]                                  ; +0x1ee, 0x3a50a2\nMOV             R0, R4                                                 ; +0x1f0, 0x3a50a4\nBL              _ZN8EditorUI16getSmartNeighborEP15SmartGameObjectN7cocos2d7CCPointE16GJSmartDirectionPNS2_7CCArrayE; EditorUI::getSmartNeighbor(SmartGameObject *,cocos2d::CCPoint,GJSmartDirection,cocos2d::CCArray *) ; +0x1f2, 0x3a50a6\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x1f6, 0x3a50aa\nSTR             R0, [SP,#0xBC+var_78]                                  ; +0x1f8, 0x3a50ac\nMOV             R0, R5; this                                           ; +0x1fa, 0x3a50ae\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1fc, 0x3a50b0\nMOV             R2, R5                                                 ; +0x200, 0x3a50b4\nMOVS            R3, #4                                                 ; +0x202, 0x3a50b6\nMOV             R1, R6                                                 ; +0x204, 0x3a50b8\nSTR             R7, [SP,#0xBC+var_BC]                                  ; +0x206, 0x3a50ba\nMOV             R0, R4                                                 ; +0x208, 0x3a50bc\nBL              _ZN8EditorUI16getSmartNeighborEP15SmartGameObjectN7cocos2d7CCPointE16GJSmartDirectionPNS2_7CCArrayE; EditorUI::getSmartNeighbor(SmartGameObject *,cocos2d::CCPoint,GJSmartDirection,cocos2d::CCArray *) ; +0x20a, 0x3a50be\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x20e, 0x3a50c2\nSTR             R0, [SP,#0xBC+var_74]                                  ; +0x210, 0x3a50c4\nMOV             R0, R5; this                                           ; +0x212, 0x3a50c6\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x214, 0x3a50c8\nMOV             R2, R5                                                 ; +0x218, 0x3a50cc\nMOVS            R3, #5                                                 ; +0x21a, 0x3a50ce\nMOV             R1, R6                                                 ; +0x21c, 0x3a50d0\nSTR             R7, [SP,#0xBC+var_BC]                                  ; +0x21e, 0x3a50d2\nMOV             R0, R4                                                 ; +0x220, 0x3a50d4\nBL              _ZN8EditorUI16getSmartNeighborEP15SmartGameObjectN7cocos2d7CCPointE16GJSmartDirectionPNS2_7CCArrayE; EditorUI::getSmartNeighbor(SmartGameObject *,cocos2d::CCPoint,GJSmartDirection,cocos2d::CCArray *) ; +0x222, 0x3a50d6\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x226, 0x3a50da\nSTR             R0, [SP,#0xBC+var_70]                                  ; +0x228, 0x3a50dc\nMOV             R0, R5; this                                           ; +0x22a, 0x3a50de\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x22c, 0x3a50e0\nMOV             R2, R5                                                 ; +0x230, 0x3a50e4\nMOVS            R3, #6                                                 ; +0x232, 0x3a50e6\nMOV             R1, R6                                                 ; +0x234, 0x3a50e8\nSTR             R7, [SP,#0xBC+var_BC]                                  ; +0x236, 0x3a50ea\nMOV             R0, R4                                                 ; +0x238, 0x3a50ec\nBL              _ZN8EditorUI16getSmartNeighborEP15SmartGameObjectN7cocos2d7CCPointE16GJSmartDirectionPNS2_7CCArrayE; EditorUI::getSmartNeighbor(SmartGameObject *,cocos2d::CCPoint,GJSmartDirection,cocos2d::CCArray *) ; +0x23a, 0x3a50ee\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x23e, 0x3a50f2\nMOV             R10, R0                                                ; +0x240, 0x3a50f4\nMOV             R0, R5; this                                           ; +0x242, 0x3a50f6\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x244, 0x3a50f8\nMOV             R2, R5                                                 ; +0x248, 0x3a50fc\nMOVS            R3, #7                                                 ; +0x24a, 0x3a50fe\nMOV             R1, R6                                                 ; +0x24c, 0x3a5100\nSTR             R7, [SP,#0xBC+var_BC]                                  ; +0x24e, 0x3a5102\nMOV             R0, R4                                                 ; +0x250, 0x3a5104\nBL              _ZN8EditorUI16getSmartNeighborEP15SmartGameObjectN7cocos2d7CCPointE16GJSmartDirectionPNS2_7CCArrayE; EditorUI::getSmartNeighbor(SmartGameObject *,cocos2d::CCPoint,GJSmartDirection,cocos2d::CCArray *) ; +0x252, 0x3a5106\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x256, 0x3a510a\nSTR             R0, [SP,#0xBC+var_6C]                                  ; +0x258, 0x3a510c\nMOV             R0, R5; this                                           ; +0x25a, 0x3a510e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x25c, 0x3a5110\nMOV             R2, R5                                                 ; +0x260, 0x3a5114\nMOVS            R3, #8                                                 ; +0x262, 0x3a5116\nMOV             R1, R6                                                 ; +0x264, 0x3a5118\nSTR             R7, [SP,#0xBC+var_BC]                                  ; +0x266, 0x3a511a\nMOV             R0, R4                                                 ; +0x268, 0x3a511c\nBL              _ZN8EditorUI16getSmartNeighborEP15SmartGameObjectN7cocos2d7CCPointE16GJSmartDirectionPNS2_7CCArrayE; EditorUI::getSmartNeighbor(SmartGameObject *,cocos2d::CCPoint,GJSmartDirection,cocos2d::CCArray *) ; +0x26a, 0x3a511e\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x26e, 0x3a5122\nADD.W           R8, SP, #0xBC+var_50                                   ; +0x270, 0x3a5124\nSTR             R0, [SP,#0xBC+var_58]                                  ; +0x274, 0x3a5128\nMOV             R0, R5; this                                           ; +0x276, 0x3a512a\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x278, 0x3a512c\nLDR             R3, [SP,#0xBC+var_7C]                                  ; +0x27c, 0x3a5130\nMOV             R0, R8                                                 ; +0x27e, 0x3a5132\nMOV             R1, R5                                                 ; +0x280, 0x3a5134\nSTR.W           R10, [SP,#0xBC+var_AC]                                 ; +0x282, 0x3a5136\nMOV             R2, R6                                                 ; +0x286, 0x3a513a\nSTR             R3, [SP,#0xBC+var_BC]                                  ; +0x288, 0x3a513c\nLDR             R3, [SP,#0xBC+var_78]                                  ; +0x28a, 0x3a513e\nSTR             R3, [SP,#0xBC+var_B8]                                  ; +0x28c, 0x3a5140\nLDR             R3, [SP,#0xBC+var_74]                                  ; +0x28e, 0x3a5142\nSTR             R3, [SP,#0xBC+var_B4]                                  ; +0x290, 0x3a5144\nLDR             R3, [SP,#0xBC+var_70]                                  ; +0x292, 0x3a5146\nSTR             R3, [SP,#0xBC+var_B0]                                  ; +0x294, 0x3a5148\nLDR             R3, [SP,#0xBC+var_6C]                                  ; +0x296, 0x3a514a\nSTR             R3, [SP,#0xBC+var_A8]                                  ; +0x298, 0x3a514c\nLDR             R3, [SP,#0xBC+var_58]                                  ; +0x29a, 0x3a514e\nSTR             R3, [SP,#0xBC+var_A4]                                  ; +0x29c, 0x3a5150\nMOV             R3, R9                                                 ; +0x29e, 0x3a5152\nADD.W           R9, SP, #0xBC+var_4C                                   ; +0x2a0, 0x3a5154\nBL              _ZN15GJSmartTemplate16keyFromNeighborsEN7cocos2d7CCPointEP15SmartGameObjectS3_S3_S3_S3_S3_S3_S3_S3_; GJSmartTemplate::keyFromNeighbors(cocos2d::CCPoint,SmartGameObject *,SmartGameObject *,SmartGameObject *,SmartGameObject *,SmartGameObject *,SmartGameObject *,SmartGameObject *,SmartGameObject *,SmartGameObject *) ; +0x2a4, 0x3a5158\nMOV             R1, R8                                                 ; +0x2a8, 0x3a515c\nMOV             R0, R9                                                 ; +0x2aa, 0x3a515e\nBL              sub_775C20                                             ; +0x2ac, 0x3a5160\nMOV             R0, R5                                                 ; +0x2b0, 0x3a5164\nLDR             R1, [SP,#0xBC+var_88]                                  ; +0x2b2, 0x3a5166\nMOV             R2, R9                                                 ; +0x2b4, 0x3a5168\nBL              _ZN15GJSmartTemplate13scanForPrefabESs; GJSmartTemplate::scanForPrefab(std::string) ; +0x2b6, 0x3a516a\nADD             R0, SP, #0xBC+var_4C                                   ; +0x2ba, 0x3a516e\nBL              sub_774008                                             ; +0x2bc, 0x3a5170\nLDR             R3, [SP,#0xBC+var_24]                                  ; +0x2c0, 0x3a5174\nCBZ             R3, loc_3A51D6                                         ; +0x2c2, 0x3a5176\nLDR             R0, [SP,#0xBC+var_8C]; this                            ; +0x2c4, 0x3a5178\nMOV             R1, R6; cocos2d::CCObject *                            ; +0x2c6, 0x3a517a\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2c8, 0x3a517c\nADD.W           R8, SP, #0xBC+var_48                                   ; +0x2cc, 0x3a5180\nADD             R1, SP, #0xBC+var_1C                                   ; +0x2d0, 0x3a5184\nMOV             R0, R8                                                 ; +0x2d2, 0x3a5186\nBL              sub_775C20                                             ; +0x2d4, 0x3a5188\nADD.W           R0, R6, #0x488                                         ; +0x2d8, 0x3a518c\nMOV             R1, R8                                                 ; +0x2dc, 0x3a5190\nBL              sub_775D40                                             ; +0x2de, 0x3a5192\nADD             R0, SP, #0xBC+var_48                                   ; +0x2e2, 0x3a5196\nBL              sub_774008                                             ; +0x2e4, 0x3a5198\nLDR             R3, [SP,#0xBC+var_68]                                  ; +0x2e8, 0x3a519c\nCBNZ            R3, loc_3A51F4                                         ; +0x2ea, 0x3a519e\nADD.W           R8, SP, #0xBC+var_3C                                   ; +0x2ec, 0x3a51a0\nLDR             R1, [SP,#0xBC+var_24]                                  ; +0x2f0, 0x3a51a4\nMOV             R0, R8                                                 ; +0x2f2, 0x3a51a6\nADDS            R1, #0x38 ; '8'                                        ; +0x2f4, 0x3a51a8\nBL              sub_775C20                                             ; +0x2f6, 0x3a51aa\nMOV             R0, R4; int                                            ; +0x2fa, 0x3a51ae\nMOV             R1, R8; int                                            ; +0x2fc, 0x3a51b0\nMOVS            R2, #0                                                 ; +0x2fe, 0x3a51b2\nMOVS            R3, #1                                                 ; +0x300, 0x3a51b4\nBL              _ZN8EditorUI12pasteObjectsESsbb; EditorUI::pasteObjects(std::string,bool,bool) ; +0x302, 0x3a51b6\nMOV             R8, R0                                                 ; +0x306, 0x3a51ba\nADD             R0, SP, #0xBC+var_3C                                   ; +0x308, 0x3a51bc\nBL              sub_774008                                             ; +0x30a, 0x3a51be\nCMP.W           R8, #0                                                 ; +0x30e, 0x3a51c2\nBEQ             loc_3A51F4                                             ; +0x312, 0x3a51c6\nMOV             R0, R8; this                                           ; +0x314, 0x3a51c8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x316, 0x3a51ca\nCMP             R0, #0                                                 ; +0x31a, 0x3a51ce\nBNE.W           loc_3A534C                                             ; +0x31c, 0x3a51d0\nB               loc_3A51F4                                             ; +0x320, 0x3a51d4\nADD.W           R8, SP, #0xBC+var_34                                   ; +0x322, 0x3a51d6\nLDR             R1, [SP,#0xBC+var_60]; char *                          ; +0x326, 0x3a51da\nADD             R2, SP, #0xBC+var_3C                                   ; +0x328, 0x3a51dc\nMOV             R0, R8; int                                            ; +0x32a, 0x3a51de\nBL              sub_776584                                             ; +0x32c, 0x3a51e0\nADD.W           R0, R6, #0x488                                         ; +0x330, 0x3a51e4\nMOV             R1, R8                                                 ; +0x334, 0x3a51e8\nBL              sub_775D40                                             ; +0x336, 0x3a51ea\nADD             R0, SP, #0xBC+var_34                                   ; +0x33a, 0x3a51ee\nBL              sub_774008                                             ; +0x33c, 0x3a51f0\nADD             R0, SP, #0xBC+var_1C                                   ; +0x340, 0x3a51f4\nBL              sub_774008                                             ; +0x342, 0x3a51f6\nADD             R0, SP, #0xBC+var_20                                   ; +0x346, 0x3a51fa\nBL              sub_774008                                             ; +0x348, 0x3a51fc\nADD             R0, SP, #0xBC+var_50                                   ; +0x34c, 0x3a5200\nBL              sub_774008                                             ; +0x34e, 0x3a5202\nB               loc_3A521C                                             ; +0x352, 0x3a5206\nLDR             R0, [SP,#0xBC+var_94]; this                            ; +0x354, 0x3a5208\nLDR.W           R1, [R6,#0x304]; int                                   ; +0x356, 0x3a520a\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x35a, 0x3a520e\nCBNZ            R0, loc_3A521C                                         ; +0x35e, 0x3a5212\nLDR             R0, [SP,#0xBC+var_98]; this                            ; +0x360, 0x3a5214\nMOV             R1, R6; cocos2d::CCObject *                            ; +0x362, 0x3a5216\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x364, 0x3a5218\nADD.W           R11, R11, #1                                           ; +0x368, 0x3a521c\nB               loc_3A5026                                             ; +0x36c, 0x3a5220\nALIGN 4                                                                ; +0x36e, 0x3a5222\nDCFS 37.5                                                              ; +0x370, 0x3a5224\nDCFS 75.0                                                              ; +0x374, 0x3a5228\nDCFS 75.0                                                              ; +0x378, 0x3a522c\nDCD __stack_chk_guard_ptr - 0x3A4ED8                                   ; +0x37c, 0x3a5230\nDCD unk_939830 - 0x3A5020                                              ; +0x380, 0x3a5234\nDCD flt_AC5D38 - 0x3A5026                                              ; +0x384, 0x3a5238\nLDR             R3, [SP,#0xBC+var_80]                                  ; +0x388, 0x3a523c\nCBNZ            R3, loc_3A5254                                         ; +0x38a, 0x3a523e\nMOV             R0, R4; this                                           ; +0x38c, 0x3a5240\nBL              _ZN8EditorUI11deselectAllEv; EditorUI::deselectAll(void) ; +0x38e, 0x3a5242\nLDRB.W          R3, [SP,#0xBC+arg_4]                                   ; +0x392, 0x3a5246\nCMP             R3, #0                                                 ; +0x396, 0x3a524a\nBEQ             loc_3A52B6                                             ; +0x398, 0x3a524c\nMOVS            R5, #0                                                 ; +0x39a, 0x3a524e\nMOVS            R6, #1                                                 ; +0x39c, 0x3a5250\nB               loc_3A5292                                             ; +0x39e, 0x3a5252\nLDR             R3, [SP,#0xBC+var_94]                                  ; +0x3a0, 0x3a5254\nCMP             R3, #0                                                 ; +0x3a2, 0x3a5256\nBEQ             loc_3A5240                                             ; +0x3a4, 0x3a5258\nLDR             R3, [R3,#0x34]                                         ; +0x3a6, 0x3a525a\nCBZ             R3, loc_3A5264                                         ; +0x3a8, 0x3a525c\nLDR.W           R5, [R3,#0x110]                                        ; +0x3aa, 0x3a525e\nB               loc_3A5288                                             ; +0x3ae, 0x3a5262\nMOV             R5, R3                                                 ; +0x3b0, 0x3a5264\nB               loc_3A5288                                             ; +0x3b2, 0x3a5266\nLDR.W           R6, [R3,#0x104]                                        ; +0x3b4, 0x3a5268\nLDR             R3, [R6]                                               ; +0x3b8, 0x3a526c\nMOV             R0, R6                                                 ; +0x3ba, 0x3a526e\nLDR             R3, [R3,#0x20]                                         ; +0x3bc, 0x3a5270\nBLX             R3                                                     ; +0x3be, 0x3a5272\nADDS            R0, #0                                                 ; +0x3c0, 0x3a5274\nIT NE                                                                  ; +0x3c2, 0x3a5276\nMOVNE           R0, #1                                                 ; +0x3c4, 0x3a5278\nSTRB.W          R0, [R6,#0x487]                                        ; +0x3c6, 0x3a527a\nCBZ             R5, loc_3A528E                                         ; +0x3ca, 0x3a527e\nLDR.W           R2, [R5,#0x110]                                        ; +0x3cc, 0x3a5280\nMOV             R3, R5                                                 ; +0x3d0, 0x3a5284\nMOV             R5, R2                                                 ; +0x3d2, 0x3a5286\nCMP             R3, #0                                                 ; +0x3d4, 0x3a5288\nBNE             loc_3A5268                                             ; +0x3d6, 0x3a528a\nB               loc_3A5240                                             ; +0x3d8, 0x3a528c\nMOV             R2, R5                                                 ; +0x3da, 0x3a528e\nB               loc_3A5284                                             ; +0x3dc, 0x3a5290\nLDR             R0, [SP,#0xBC+var_8C]; this                            ; +0x3de, 0x3a5292\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3e0, 0x3a5294\nCMP             R5, R0                                                 ; +0x3e4, 0x3a5298\nBCS             loc_3A52B0                                             ; +0x3e6, 0x3a529a\nMOV             R1, R5; unsigned int                                   ; +0x3e8, 0x3a529c\nLDR             R0, [SP,#0xBC+var_8C]; this                            ; +0x3ea, 0x3a529e\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3ec, 0x3a52a0\nADDS            R5, #1                                                 ; +0x3f0, 0x3a52a4\nSTRB.W          R6, [R0,#0x487]                                        ; +0x3f2, 0x3a52a6\nBL              _ZN15SmartGameObject16updateSmartFrameEv; SmartGameObject::updateSmartFrame(void) ; +0x3f6, 0x3a52aa\nB               loc_3A5292                                             ; +0x3fa, 0x3a52ae\nMOV             R0, R4                                                 ; +0x3fc, 0x3a52b0\nMOV             R1, R7                                                 ; +0x3fe, 0x3a52b2\nB               loc_3A52F6                                             ; +0x400, 0x3a52b4\nLDR             R3, [SP,#0xBC+var_84]                                  ; +0x402, 0x3a52b6\nCMP             R3, #0                                                 ; +0x404, 0x3a52b8\nBNE             loc_3A52B0                                             ; +0x406, 0x3a52ba\nMOVS            R1, #4                                                 ; +0x408, 0x3a52bc\nLDR             R0, [SP,#0xBC+var_98]                                  ; +0x40a, 0x3a52be\nBL              _ZN10UndoObject15createWithArrayEPN7cocos2d7CCArrayE11UndoCommand; UndoObject::createWithArray(cocos2d::CCArray *,UndoCommand) ; +0x40c, 0x3a52c0\nLDR             R2, [SP,#0xBC+var_84]; bool                            ; +0x410, 0x3a52c4\nMOV             R1, R0; UndoObject *                                   ; +0x412, 0x3a52c6\nLDR.W           R0, [R4,#0x340]; this                                  ; +0x414, 0x3a52c8\nBL              _ZN16LevelEditorLayer13addToUndoListEP10UndoObjectb; LevelEditorLayer::addToUndoList(UndoObject *,bool) ; +0x418, 0x3a52cc\nLDR             R7, [SP,#0xBC+var_84]                                  ; +0x41c, 0x3a52d0\nLDR             R0, [SP,#0xBC+var_98]; this                            ; +0x41e, 0x3a52d2\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x420, 0x3a52d4\nCMP             R7, R0                                                 ; +0x424, 0x3a52d8\nBCS             loc_3A52F2                                             ; +0x426, 0x3a52da\nMOV             R1, R7; unsigned int                                   ; +0x428, 0x3a52dc\nLDR             R0, [SP,#0xBC+var_98]; this                            ; +0x42a, 0x3a52de\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x42c, 0x3a52e0\nMOVS            R2, #1; bool                                           ; +0x430, 0x3a52e4\nADDS            R7, #1                                                 ; +0x432, 0x3a52e6\nMOV             R1, R0; GameObject *                                   ; +0x434, 0x3a52e8\nMOV             R0, R4; this                                           ; +0x436, 0x3a52ea\nBL              _ZN8EditorUI12deleteObjectEP10GameObjectb; EditorUI::deleteObject(GameObject *,bool) ; +0x438, 0x3a52ec\nB               loc_3A52D2                                             ; +0x43c, 0x3a52f0\nLDR             R1, [SP,#0xBC+var_90]; cocos2d::CCArray *              ; +0x43e, 0x3a52f2\nMOV             R0, R4; this                                           ; +0x440, 0x3a52f4\nMOVS            R2, #1; bool                                           ; +0x442, 0x3a52f6\nBL              _ZN8EditorUI13selectObjectsEPN7cocos2d7CCArrayEb; EditorUI::selectObjects(cocos2d::CCArray *,bool) ; +0x444, 0x3a52f8\nLDR             R0, [SP,#0xBC+var_90]                                  ; +0x448, 0x3a52fc\nMOVS            R1, #3                                                 ; +0x44a, 0x3a52fe\nBL              _ZN10UndoObject15createWithArrayEPN7cocos2d7CCArrayE11UndoCommand; UndoObject::createWithArray(cocos2d::CCArray *,UndoCommand) ; +0x44c, 0x3a5300\nMOVS            R2, #0; bool                                           ; +0x450, 0x3a5304\nMOV             R1, R0; UndoObject *                                   ; +0x452, 0x3a5306\nLDR.W           R0, [R4,#0x340]; this                                  ; +0x454, 0x3a5308\nBL              _ZN16LevelEditorLayer13addToUndoListEP10UndoObjectb; LevelEditorLayer::addToUndoList(UndoObject *,bool) ; +0x458, 0x3a530c\nMOV             R0, R4; this                                           ; +0x45c, 0x3a5310\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x45e, 0x3a5312\nMOV             R0, R4; this                                           ; +0x462, 0x3a5316\nBL              _ZN8EditorUI23updateSpecialUIElementsEv; EditorUI::updateSpecialUIElements(void) ; +0x464, 0x3a5318\nB               loc_3A53F4                                             ; +0x468, 0x3a531c\nMOV             R0, R9                                                 ; +0x46a, 0x3a531e\nB               loc_3A5336                                             ; +0x46c, 0x3a5320\nB               loc_3A5326                                             ; +0x46e, 0x3a5322\nB               loc_3A5326                                             ; +0x470, 0x3a5324\nMOV             R0, R8                                                 ; +0x472, 0x3a5326\nBL              sub_774008                                             ; +0x474, 0x3a5328\nB               loc_3A532E                                             ; +0x478, 0x3a532c\nADD             R0, SP, #0xBC+var_1C                                   ; +0x47a, 0x3a532e\nBL              sub_774008                                             ; +0x47c, 0x3a5330\nADD             R0, SP, #0xBC+var_20                                   ; +0x480, 0x3a5334\nBL              sub_774008                                             ; +0x482, 0x3a5336\nB               loc_3A533C                                             ; +0x486, 0x3a533a\nADD             R0, SP, #0xBC+var_50                                   ; +0x488, 0x3a533c\nBL              sub_774008                                             ; +0x48a, 0x3a533e\nBL              __cxa_end_cleanup                                      ; +0x48e, 0x3a5342\nBL              _ZN10GameObject23determineSlopeDirectionEv; GameObject::determineSlopeDirection(void) ; +0x492, 0x3a5346\nB               loc_3A4F4A                                             ; +0x496, 0x3a534a\nLDR             R3, [R6]                                               ; +0x498, 0x3a534c\nMOV             R0, R6                                                 ; +0x49a, 0x3a534e\nLDR             R3, [R3,#0x60]                                         ; +0x49c, 0x3a5350\nBLX             R3                                                     ; +0x49e, 0x3a5352\nADD.W           R9, SP, #0xBC+var_3C                                   ; +0x4a0, 0x3a5354\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x4a4, 0x3a5358\nMOV             R0, R9; this                                           ; +0x4a6, 0x3a535a\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x4a8, 0x3a535c\nADD.W           R10, SP, #0xBC+var_34                                  ; +0x4ac, 0x3a5360\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x4b0, 0x3a5364\nMOV             R0, R10; this                                          ; +0x4b2, 0x3a5366\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x4b4, 0x3a5368\nMOV             R0, R4                                                 ; +0x4b8, 0x3a536c\nMOV             R1, R8                                                 ; +0x4ba, 0x3a536e\nMOV             R2, R10                                                ; +0x4bc, 0x3a5370\nMOVS            R3, #0                                                 ; +0x4be, 0x3a5372\nBL              _ZN8EditorUI25repositionObjectsToCenterEPN7cocos2d7CCArrayENS0_7CCPointEb; EditorUI::repositionObjectsToCenter(cocos2d::CCArray *,cocos2d::CCPoint,bool) ; +0x4c0, 0x3a5374\nLDRB.W          R3, [SP,#0xBC+var_B]                                   ; +0x4c4, 0x3a5378\nCBNZ            R3, loc_3A5386                                         ; +0x4c8, 0x3a537c\nLDRB.W          R3, [SP,#0xBC+var_C]                                   ; +0x4ca, 0x3a537e\nCBZ             R3, loc_3A5398                                         ; +0x4ce, 0x3a5382\nB               loc_3A5390                                             ; +0x4d0, 0x3a5384\nMOV             R0, R4; this                                           ; +0x4d2, 0x3a5386\nMOV             R1, R8; cocos2d::CCArray *                             ; +0x4d4, 0x3a5388\nBL              _ZN8EditorUI12flipObjectsYEPN7cocos2d7CCArrayE; EditorUI::flipObjectsY(cocos2d::CCArray *) ; +0x4d6, 0x3a538a\nB               loc_3A537E                                             ; +0x4da, 0x3a538e\nMOV             R0, R4; this                                           ; +0x4dc, 0x3a5390\nMOV             R1, R8; cocos2d::CCArray *                             ; +0x4de, 0x3a5392\nBL              _ZN8EditorUI12flipObjectsXEPN7cocos2d7CCArrayE; EditorUI::flipObjectsX(cocos2d::CCArray *) ; +0x4e0, 0x3a5394\nLDR             R3, [SP,#0xBC+var_10]                                  ; +0x4e4, 0x3a5398\nCMP             R3, #0                                                 ; +0x4e6, 0x3a539a\nBLE             loc_3A53C2                                             ; +0x4e8, 0x3a539c\nNEGS            R3, R3                                                 ; +0x4ea, 0x3a539e\nADD.W           R9, SP, #0xBC+var_34                                   ; +0x4ec, 0x3a53a0\nLDR             R1, [SP,#0xBC+var_5C]; cocos2d::CCPoint *              ; +0x4f0, 0x3a53a4\nVMOV            S15, R3                                                ; +0x4f2, 0x3a53a6\nMOV             R0, R9; this                                           ; +0x4f6, 0x3a53aa\nVCVT.F32.S32    S16, S15                                               ; +0x4f8, 0x3a53ac\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x4fc, 0x3a53b0\nMOV             R0, R4                                                 ; +0x500, 0x3a53b4\nMOV             R1, R8                                                 ; +0x502, 0x3a53b6\nVMOV            R2, S16                                                ; +0x504, 0x3a53b8\nMOV             R3, R9                                                 ; +0x508, 0x3a53bc\nBL              _ZN8EditorUI13rotateObjectsEPN7cocos2d7CCArrayEfNS0_7CCPointE; EditorUI::rotateObjects(cocos2d::CCArray *,float,cocos2d::CCPoint) ; +0x50a, 0x3a53be\nADD.W           R9, SP, #0xBC+var_34                                   ; +0x50e, 0x3a53c2\nADD             R1, SP, #0xBC+var_3C; cocos2d::CCPoint *               ; +0x512, 0x3a53c6\nMOV             R0, R9; this                                           ; +0x514, 0x3a53c8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x516, 0x3a53ca\nMOV             R0, R4                                                 ; +0x51a, 0x3a53ce\nMOV             R1, R8                                                 ; +0x51c, 0x3a53d0\nMOV             R2, R9                                                 ; +0x51e, 0x3a53d2\nMOVS            R3, #0                                                 ; +0x520, 0x3a53d4\nBL              _ZN8EditorUI25repositionObjectsToCenterEPN7cocos2d7CCArrayENS0_7CCPointEb; EditorUI::repositionObjectsToCenter(cocos2d::CCArray *,cocos2d::CCPoint,bool) ; +0x522, 0x3a53d6\nMOV             R0, R4; this                                           ; +0x526, 0x3a53da\nMOV             R1, R8; cocos2d::CCArray *                             ; +0x528, 0x3a53dc\nBL              _ZN8EditorUI28deleteSmartBlocksFromObjectsEPN7cocos2d7CCArrayE; EditorUI::deleteSmartBlocksFromObjects(cocos2d::CCArray *) ; +0x52a, 0x3a53de\nLDR             R0, [SP,#0xBC+var_90]; this                            ; +0x52e, 0x3a53e2\nMOV             R1, R8; cocos2d::CCArray *                             ; +0x530, 0x3a53e4\nBL              _ZN7cocos2d7CCArray19addObjectsFromArrayEPS0_; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray*) ; +0x532, 0x3a53e6\nLDR             R0, [SP,#0xBC+var_98]; this                            ; +0x536, 0x3a53ea\nMOV             R1, R6; cocos2d::CCObject *                            ; +0x538, 0x3a53ec\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x53a, 0x3a53ee\nB               loc_3A51F4                                             ; +0x53e, 0x3a53f2\nLDR             R3, [SP,#0xBC+var_64]                                  ; +0x540, 0x3a53f4\nLDR             R2, [SP,#0xBC+var_8]                                   ; +0x542, 0x3a53f6\nLDR             R3, [R3]                                               ; +0x544, 0x3a53f8\nCMP             R2, R3                                                 ; +0x546, 0x3a53fa\nBEQ             loc_3A5402                                             ; +0x548, 0x3a53fc\nBLX             __stack_chk_fail                                       ; +0x54a, 0x3a53fe\nADD             SP, SP, #0xBC                                          ; +0x54e, 0x3a5402\nVPOP            {D8}                                                   ; +0x550, 0x3a5404\nPOP.W           {R4-R11,PC}                                            ; +0x554, 0x3a5408", "xrefs": ["SetupSmartBlockLayer::onPasteTemplate @ 0x53d4c8", "SetupSmartBlockLayer::onCreate @ 0x53d590"], "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"}