// // EditorUI::createOutlines from 0x536c9c to 0x5373fa (1886 bytes) // // 1 xrefs: // > EditorUI::createSmartObjectsFromType @ 0x3a497e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCArray *EditorUI::createOutlines(EditorUI *a1, cocos2d::CCArray *a2) { cocos2d::CCArray *v4; // r0 unsigned int v6; // r10 int *v7; // r4 const cocos2d::CCPoint *v8; // r0 int v9; // r3 int v10; // r3 int v11; // r9 int v12; // r6 cocos2d::CCPoint v13; // r2 cocos2d::CCPoint v14; // r2 cocos2d::CCPoint v15; // r2 cocos2d::CCPoint v16; // r2 cocos2d::CCPoint v17; // r2 cocos2d::CCPoint v18; // r2 cocos2d::CCPoint v19; // r2 cocos2d::CCPoint v20; // r2 cocos2d::CCPoint v21; // r2 GameObject *Object; // r6 void (__fastcall *setRotation)(GameObject *__hidden, float); // r11 int v24; // r0 void (__fastcall *setFlipX)(GameObject *__hidden, bool); // r11 int v26; // r2 int v27; // r1 void (__fastcall *setFlipY)(GameObject *__hidden, bool); // r11 int v29; // r0 cocos2d::CCPoint v30; // r2 GameObject *v31; // r6 void (__fastcall *v32)(GameObject *__hidden, float); // r9 int v33; // r0 void (__fastcall *v34)(GameObject *__hidden, bool); // r9 int v35; // r0 void (__fastcall *v36)(GameObject *__hidden, bool); // r9 int v37; // r0 cocos2d::CCArray *v38; // [sp+4h] [bp-38h] cocos2d::CCArray *v39; // [sp+10h] [bp-2Ch] cocos2d::CCArray *v40; // [sp+14h] [bp-28h] int v41; // [sp+1Ch] [bp-20h] cocos2d::CCPoint v42; // [sp+24h] [bp-18h] BYREF cocos2d::CCPoint v43; // [sp+2Ch] [bp-10h] BYREF if ( !a2 ) return nullptr; v4 = (cocos2d::CCArray *)cocos2d::CCArray::count(a2); if ( !v4 ) return nullptr; v6 = 0; v39 = (cocos2d::CCArray *)cocos2d::CCArray::create(v4); v40 = (cocos2d::CCArray *)cocos2d::CCArray::create(v39); cocos2d::CCArray::addObjectsFromArray(v39, a2); while ( v6 < cocos2d::CCArray::count(v39) ) { v7 = (int *)cocos2d::CCArray::objectAtIndex(v39, v6); v8 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int *))(*v7 + 96))(v7); cocos2d::CCPoint::CCPoint(&v42, v8); v9 = v7[221]; if ( v9 == 1629 ) { v10 = 0; v12 = 1661; v11 = 0; } else { if ( v9 <= 1629 ) { if ( v9 == 1395 ) { v10 = 0; v12 = 1367; v11 = 0; } else if ( v9 > 1395 ) { if ( v9 == 1441 ) { v10 = 0; v12 = 1460; v11 = 0; } else if ( v9 > 1441 ) { if ( v9 == 1624 ) { v10 = 0; v12 = 1656; v11 = 0; } else if ( v9 > 1624 ) { if ( v9 == 1626 ) { v10 = 0; v12 = 1658; v11 = 0; } else if ( v9 < 1626 ) { v10 = 0; v12 = 1657; v11 = 0; } else { if ( v9 == 1627 ) { v10 = 0; v12 = 1659; } else { v10 = 0; v12 = 1660; } v11 = 0; } } else if ( v9 == 1622 ) { v10 = 0; v12 = 1654; v11 = 0; } else if ( v9 <= 1622 ) { if ( v9 != 1621 ) goto LABEL_161; v10 = 0; v12 = 1653; v11 = 0; } else { v10 = 0; v12 = 1655; v11 = 0; } } else if ( v9 == 1437 ) { v10 = 0; v12 = 1456; v11 = 0; } else if ( v9 > 1437 ) { if ( v9 == 1439 ) { v10 = 0; v12 = 1458; v11 = 0; } else { if ( v9 >= 1440 ) { v10 = 0; v12 = 1459; } else { v10 = 0; v12 = 1457; } v11 = 0; } } else if ( v9 == 1435 ) { v10 = 0; v12 = 1454; v11 = 0; } else if ( v9 <= 1435 ) { if ( v9 != 1434 ) goto LABEL_161; v10 = 0; v12 = 1453; v11 = 0; } else { v10 = 0; v12 = 1455; v11 = 0; } } else if ( v9 == 1359 ) { v10 = 0; v12 = 1371; v11 = 0; } else if ( v9 >= 1360 ) { if ( v9 == 1363 ) { v10 = 0; v12 = 1375; v11 = 0; } else if ( v9 > 1363 ) { if ( v9 == 1365 ) { v10 = 0; v12 = 1377; v11 = 0; } else if ( v9 < 1365 ) { v10 = 0; v12 = 1376; v11 = 0; } else { if ( v9 != 1366 ) goto LABEL_161; v10 = 0; v12 = 1378; v11 = 0; } } else if ( v9 == 1361 ) { v10 = 0; v12 = 1373; v11 = 0; } else { if ( v9 <= 1361 ) { v10 = 0; v12 = 1372; } else { v10 = 0; v12 = 1374; } v11 = 0; } } else if ( v9 == 1351 ) { v10 = 0; v11 = 1379; v12 = 1383; } else if ( v9 >= 1352 ) { if ( v9 == 1357 ) { v10 = 0; v12 = 1369; v11 = 0; } else if ( v9 <= 1357 ) { if ( v9 != 1356 ) goto LABEL_161; v10 = 0; v12 = 1368; v11 = 0; } else { v10 = 0; v12 = 1370; v11 = 0; } } else if ( v9 == 1349 ) { v10 = 0; v11 = 1380; v12 = 1385; } else if ( v9 <= 1349 ) { if ( v9 != 1348 ) goto LABEL_161; v10 = 0; v11 = 1382; v12 = 1386; } else { v10 = 0; v11 = 1381; v12 = 1384; } goto LABEL_157; } if ( v9 == 1646 ) { v10 = 0; v12 = 1678; v11 = 0; } else { if ( v9 <= 1646 ) { if ( v9 == 1637 ) { v10 = 0; v12 = 1669; v11 = 0; } else if ( v9 > 1637 ) { if ( v9 == 1641 ) { v10 = 0; v12 = 1673; v11 = 0; } else if ( v9 > 1641 ) { if ( v9 == 1643 ) { v10 = 0; v12 = 1675; v11 = 0; } else if ( v9 < 1643 ) { v10 = 0; v12 = 1674; v11 = 0; } else { if ( v9 == 1644 ) { v10 = 0; v12 = 1676; } else { v10 = 0; v12 = 1677; } v11 = 0; } } else if ( v9 == 1639 ) { v10 = 0; v12 = 1671; v11 = 0; } else { if ( v9 >= 1640 ) { v10 = 0; v12 = 1672; } else { v10 = 0; v12 = 1670; } v11 = 0; } } else if ( v9 == 1633 ) { v10 = 0; v12 = 1665; v11 = 0; } else if ( v9 > 1633 ) { if ( v9 == 1635 ) { v10 = 0; v12 = 1667; v11 = 0; } else { if ( v9 <= 1635 ) { v10 = 0; v12 = 1666; } else { v10 = 0; v12 = 1668; } v11 = 0; } } else if ( v9 == 1631 ) { v10 = 0; v12 = 1663; v11 = 0; } else { if ( v9 >= 1632 ) { v10 = 0; v12 = 1664; } else { v10 = 0; v12 = 1662; } v11 = 0; } goto LABEL_157; } if ( v9 > 2841 ) { if ( v9 == 2845 ) goto LABEL_151; if ( v9 > 2845 ) { if ( v9 == 2847 ) goto LABEL_154; if ( v9 < 2847 || v9 == 2848 ) { v10 = 0; } else { if ( v9 != 2849 ) goto LABEL_161; LABEL_154: v10 = 1; } v11 = 0; v12 = 2855; goto LABEL_157; } if ( v9 == 2843 ) LABEL_151: v10 = 1; else v10 = 0; v11 = 0; v12 = 2852; } else { if ( v9 < 2838 ) { if ( v9 == 1649 ) { v10 = 0; v12 = 1681; v11 = 0; } else if ( v9 > 1649 ) { if ( v9 == 1651 ) { v10 = 0; v12 = 1683; v11 = 0; } else if ( v9 < 1651 ) { v10 = 0; v12 = 1682; v11 = 0; } else { if ( v9 != 1652 ) goto LABEL_161; v10 = 0; v12 = 1684; v11 = 0; } } else { if ( v9 == 1647 ) { v10 = 0; v12 = 1679; } else { v10 = 0; v12 = 1680; } v11 = 0; } goto LABEL_157; } cocos2d::CCPoint::CCPoint(&v43, &v42); LODWORD(v13.x) = &v43; LODWORD(v13.y) = 1; if ( EditorUI::getNeighbor(a1, 2838, v13, (GJSmartDirection)a2, v38) ) { cocos2d::CCPoint::CCPoint(&v43, &v42); LODWORD(v14.x) = &v43; LODWORD(v14.y) = 2; if ( EditorUI::getNeighbor(a1, 2838, v14, (GJSmartDirection)a2, v38) ) { cocos2d::CCPoint::CCPoint(&v43, &v42); LODWORD(v15.x) = &v43; LODWORD(v15.y) = 3; if ( !EditorUI::getNeighbor(a1, 2838, v15, (GJSmartDirection)a2, v38) ) { v10 = 0; v11 = 0; LABEL_167: v12 = 2854; goto LABEL_157; } cocos2d::CCPoint::CCPoint(&v43, &v42); LODWORD(v16.x) = &v43; LODWORD(v16.y) = 4; if ( !EditorUI::getNeighbor(a1, 2838, v16, (GJSmartDirection)a2, v38) ) { v10 = 1; v11 = 0; goto LABEL_167; } cocos2d::CCPoint::CCPoint(&v43, &v42); LODWORD(v17.x) = &v43; LODWORD(v17.y) = 5; if ( EditorUI::getNeighbor(a1, 2838, v17, (GJSmartDirection)a2, v38) ) { cocos2d::CCPoint::CCPoint(&v43, &v42); LODWORD(v18.x) = &v43; LODWORD(v18.y) = 6; if ( EditorUI::getNeighbor(a1, 2838, v18, (GJSmartDirection)a2, v38) ) { cocos2d::CCPoint::CCPoint(&v43, &v42); LODWORD(v19.x) = &v43; LODWORD(v19.y) = 7; if ( EditorUI::getNeighbor(a1, 2838, v19, (GJSmartDirection)a2, v38) ) { cocos2d::CCPoint::CCPoint(&v43, &v42); LODWORD(v20.x) = &v43; LODWORD(v20.y) = 8; if ( EditorUI::getNeighbor(a1, 2838, v20, (GJSmartDirection)a2, v38) ) goto LABEL_161; v10 = 1; v11 = 0; } else { v10 = 0; v11 = 0; } v12 = 2863; goto LABEL_157; } v10 = 0; v11 = 0; } else { v10 = 1; v11 = 0; } v12 = 2861; } else { v10 = 0; v11 = 0; v12 = 2856; } } else { v10 = 0; v11 = 0; v12 = 2853; } } } } LABEL_157: v41 = v10; (*(void (__fastcall **)(cocos2d::CCPoint *, int *))(*v7 + 672))(&v43, v7); LODWORD(v21.x) = &v43; Object = EditorUI::createObject(a1, v12, v21); setRotation = Object->setRotation; v24 = (*(int (__fastcall **)(int *))(*v7 + 176))(v7); ((void (__fastcall *)(GameObject *, int))setRotation)(Object, v24); setFlipX = Object->setFlipX; v26 = *v7; if ( v41 ) v27 = (*(unsigned __int8 (__fastcall **)(int *))(v26 + 704))(v7) ^ 1; else v27 = (*(int (__fastcall **)(int *))(v26 + 704))(v7); setFlipX(Object, v27); setFlipY = Object->setFlipY; v29 = (*(int (__fastcall **)(int *))(*v7 + 708))(v7); setFlipY(Object, v29); GameObject::updateCustomScaleX(Object, *((float *)v7 + 250)); GameObject::updateCustomScaleY(Object, *((float *)v7 + 251)); Object->m_editorLayer2 = *((_WORD *)v7 + 515) + 3; cocos2d::CCArray::addObject(v40, Object); if ( v11 ) { (*(void (__fastcall **)(cocos2d::CCPoint *, int *))(*v7 + 672))(&v43, v7); LODWORD(v30.x) = &v43; v31 = EditorUI::createObject(a1, v11, v30); v32 = v31->setRotation; v33 = (*(int (__fastcall **)(int *))(*v7 + 176))(v7); ((void (__fastcall *)(GameObject *, int))v32)(v31, v33); v34 = v31->setFlipX; v35 = (*(int (__fastcall **)(int *))(*v7 + 704))(v7); v34(v31, v35); v36 = v31->setFlipY; v37 = (*(int (__fastcall **)(int *))(*v7 + 708))(v7); v36(v31, v37); GameObject::updateCustomScaleX(v31, *((float *)v7 + 250)); GameObject::updateCustomScaleY(v31, *((float *)v7 + 251)); v31->m_editorLayer2 = *((_WORD *)v7 + 515) + 3; cocos2d::CCArray::addObject(v40, v31); } LABEL_161: ++v6; } return v40; }
GD Web Decomp Icon

GD Web Decomp

Raw Source