// // EditorUI::createSmartObjectsFromType from 0x7c3540 to 0x7c39ac (1132 bytes) // // 2 xrefs: // > SetupSmartBlockLayer::onCreate @ 0xb14238 // > @ 0x983f8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:54:07 +0000 // __int64 __fastcall EditorUI::createSmartObjectsFromType( EditorUI *this, unsigned int a2, cocos2d::CCArray *a3, unsigned __int8 a4, unsigned __int8 a5) { unsigned int v6; // w19 int v7; // w22 cocos2d::CCArray *v8; // x0 unsigned int v9; // w1 int v10; // w0 ObjectToolbox *v11; // x0 ObjectToolbox *v12; // x0 cocos2d::CCArray *v13; // x26 cocos2d::CCArray *v14; // x0 float v15; // s0 unsigned int v16; // w19 __int16 v17; // w22 cocos2d::CCArray *v18; // x0 cocos2d::CCArray *v19; // x20 unsigned int v20; // w1 cocos2d::CCArray *RockEdges; // x1 cocos2d::CCArray *RockBases; // x1 cocos2d::CCArray *Outlines; // x1 unsigned int k; // w19 unsigned int v26; // w1 GameObject *v27; // x0 unsigned int i; // w27 int v29; // w19 cocos2d::CCNode *v30; // x25 cocos2d::CCObject *v31; // x20 int v32; // w28 long double v33; // q0 cocos2d::CCNode *v34; // x0 float j; // s0 long double v36; // q0 void (__fastcall *v37)(cocos2d::CCObject *, __int64 *); // x19 long double v38; // q0 cocos2d::CCArray *Extras; // x1 int v40; // [xsp+64h] [xbp+64h] cocos2d::CCArray *v41; // [xsp+68h] [xbp+68h] int v42; // [xsp+70h] [xbp+70h] cocos2d::CCArray *v44; // [xsp+78h] [xbp+78h] cocos2d::CCArray *v45; // [xsp+78h] [xbp+78h] cocos2d::CCArray *v46; // [xsp+78h] [xbp+78h] cocos2d::CCPoint *v48; // [xsp+88h] [xbp+88h] _BYTE v49[8]; // [xsp+98h] [xbp+98h] BYREF __int64 v50; // [xsp+A0h] [xbp+A0h] BYREF v42 = a4; v40 = a5; if ( a3 && (unsigned int)cocos2d::CCArray::count(a3) ) { v6 = 0; v7 = 0; v8 = (cocos2d::CCArray *)EditorUI::deselectAll(this); v41 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8); while ( 1 ) { v11 = (ObjectToolbox *)cocos2d::CCArray::count(a3); if ( v6 >= (unsigned int)v11 ) break; v9 = v6++; v10 = *(__int16 *)(cocos2d::CCArray::objectAtIndex(a3, v9) + 1202); if ( v7 < v10 ) v7 = v10; } v12 = (ObjectToolbox *)ObjectToolbox::sharedState(v11); v13 = a3; v14 = (cocos2d::CCArray *)ObjectToolbox::gridNodeSizeForKey(v12, a2); if ( v15 == 15.0 ) { v13 = (cocos2d::CCArray *)cocos2d::CCArray::create(v14); for ( i = 0; ; ++i ) { v14 = (cocos2d::CCArray *)cocos2d::CCArray::count(a3); if ( i >= (unsigned int)v14 ) break; v29 = 1; v30 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a3, i); v31 = (cocos2d::CCObject *)cocos2d::CCNode::create(v30); v32 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, (const cocos2d::CCPoint *)&dword_155C778); while ( 1 ) { if ( v32 == 3 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 7.5, -7.5); *(__n128 *)&v36 = cocos2d::CCPoint::operator=(v49, &v50); v37 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v31 + 184LL); (*(void (__fastcall **)(cocos2d::CCNode *, long double))(*(_QWORD *)v30 + 192LL))(v30, v36); cocos2d::CCPoint::operator+(&v50, v49); v37(v31, &v50); cocos2d::CCArray::addObject(v13, v31); goto LABEL_37; } if ( v32 != 1 ) break; for ( j = 7.5; ; j = -7.5 ) { ++v29; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, j, j); *(__n128 *)&v38 = cocos2d::CCPoint::operator=(v49, &v50); v46 = *(cocos2d::CCArray **)(*(_QWORD *)v31 + 184LL); (*(void (__fastcall **)(cocos2d::CCNode *, long double))(*(_QWORD *)v30 + 192LL))(v30, v38); cocos2d::CCPoint::operator+(&v50, v49); ((void (__fastcall *)(cocos2d::CCObject *, __int64 *))v46)(v31, &v50); v34 = (cocos2d::CCNode *)cocos2d::CCArray::addObject(v13, v31); LABEL_34: v31 = (cocos2d::CCObject *)cocos2d::CCNode::create(v34); v32 = v29 - 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, (const cocos2d::CCPoint *)&dword_155C778); if ( v29 != 3 ) break; } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -7.5, 7.5); *(__n128 *)&v33 = cocos2d::CCPoint::operator=(v49, &v50); v45 = *(cocos2d::CCArray **)(*(_QWORD *)v31 + 184LL); (*(void (__fastcall **)(cocos2d::CCNode *, long double))(*(_QWORD *)v30 + 192LL))(v30, v33); cocos2d::CCPoint::operator+(&v50, v49); ((void (__fastcall *)(cocos2d::CCObject *, __int64 *))v45)(v31, &v50); v34 = (cocos2d::CCNode *)cocos2d::CCArray::addObject(v13, v31); if ( v29 != 4 ) { ++v29; goto LABEL_34; } LABEL_37: ; } } v44 = (cocos2d::CCArray *)cocos2d::CCArray::create(v14); v16 = 0; v17 = v7 + 1; v18 = (cocos2d::CCArray *)cocos2d::CCArray::addObjectsFromArray(v44, v13); v48 = (cocos2d::CCPoint *)cocos2d::CCArray::create(v18); v19 = (cocos2d::CCArray *)cocos2d::CCArray::create(v48); EditorUI::processSmartObjectsFromType(this, a2, v13, v44, v48, v19); while ( v16 < (unsigned int)cocos2d::CCArray::count(v19) ) { v20 = v16++; *(_WORD *)(cocos2d::CCArray::objectAtIndex(v19, v20) + 1204) = v17; } cocos2d::CCArray::addObjectsFromArray(v41, v19); if ( (unsigned int)cocos2d::CCArray::count(v41) ) { RockEdges = (cocos2d::CCArray *)EditorUI::createRockEdges(this, v41); if ( RockEdges ) cocos2d::CCArray::addObjectsFromArray(v41, RockEdges); RockBases = (cocos2d::CCArray *)EditorUI::createRockBases(this, v41); if ( RockBases ) cocos2d::CCArray::addObjectsFromArray(v41, RockBases); Outlines = (cocos2d::CCArray *)EditorUI::createOutlines(this, v41); if ( Outlines ) cocos2d::CCArray::addObjectsFromArray(v41, Outlines); if ( v42 ) { if ( a2 - 2703 <= 1 ) { Extras = (cocos2d::CCArray *)EditorUI::createExtras(this, v41); if ( Extras ) cocos2d::CCArray::addObjectsFromArray(v41, Extras); } } EditorUI::deselectAll(this); if ( v40 ) { EditorUI::selectObjects(this, a3, 1); } else { for ( k = 0; k < (unsigned int)cocos2d::CCArray::count(a3); ++k ) { v26 = k; v27 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, v26); EditorUI::deleteObject(this, v27, 1); } EditorUI::selectObjects(this, v41, 1); } EditorUI::updateSelectionUI(this); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source