// // EditorUI::createOutlines from 0x1000789a0 to 0x100079380 (2528 bytes) // // 1 xrefs: // > EditorUI::createSmartObjectsFromType @ 0x1003f2830 // // 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 *__fastcall EditorUI::createOutlines(EditorUI *a1, cocos2d::CCArray *a2) { __int64 v2; // x25 GameObject *Object; // x26 __int64 v4; // x27 __int64 v5; // x28 __int64 v8; // x0 __int64 v9; // x22 cocos2d::CCArray *v10; // x21 __int64 v11; // x23 __int64 v12; // x24 __int64 *v13; // x0 __n128 v14; // q0 int v15; // w8 GameObject *v16; // kr00_8 __int64 v17; // kr08_8 __int64 v18; // kr10_8 __int64 v19; // kr18_8 int v20; // w26 int v21; // w0 __int64 v22; // x0 __n128 v23; // q0 __int64 v24; // x0 __int64 v25; // x0 __int64 v27; // [xsp+0h] [xbp-60h] BYREF __int64 v28; // [xsp+8h] [xbp-58h] BYREF cocos2d::CCPoint v29; // 0:s0.4,4:s1.4 cocos2d::CCPoint v30; // 0:s0.4,4:s1.4 cocos2d::CCPoint v31; // 0:s0.4,4:s1.4 cocos2d::CCPoint v32; // 0:s0.4,4:s1.4 cocos2d::CCPoint v33; // 0:s0.4,4:s1.4 cocos2d::CCPoint v34; // 0:s0.4,4:s1.4 cocos2d::CCPoint v35; // 0:s0.4,4:s1.4 cocos2d::CCPoint v36; // 0:s0.4,4:s1.4 cocos2d::CCPoint v37; // 0:s0.4,4:s1.4 cocos2d::CCPoint v38; // 0:s0.4,4:s1.4 if ( !a2 ) return nullptr; v8 = sub_10024A36C(a2); if ( !(_DWORD)v8 ) return nullptr; v9 = sub_10024A15C(v8); v10 = (cocos2d::CCArray *)sub_10024A15C(v9); sub_10024A360(v9, a2); if ( (unsigned int)sub_10024A36C(v9) ) { v11 = 0; do { v12 = sub_10024A388(v9, v11); v13 = (__int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 192LL))(v12); v14.n128_f32[0] = sub_1000229B8(&v28, v13); v15 = *(_DWORD *)(v12 + 1028); if ( v15 <= 1620 ) { if ( v15 <= 1394 ) { switch ( v15 ) { case 1348: v5 = 0; v20 = 1386; v2 = 1382; goto LABEL_55; case 1349: v5 = 0; v20 = 1385; v2 = 1380; goto LABEL_55; case 1350: v5 = 0; v20 = 1384; v2 = 1381; goto LABEL_55; case 1351: v5 = 0; v20 = 1383; v2 = 1379; LABEL_55: v4 = 1; goto LABEL_56; case 1356: v4 = 0; v2 = 0; v5 = 0; v20 = 1368; goto LABEL_56; case 1357: v4 = 0; v2 = 0; v5 = 0; v20 = 1369; goto LABEL_56; case 1358: v4 = 0; v2 = 0; v5 = 0; v20 = 1370; goto LABEL_56; case 1359: v4 = 0; v2 = 0; v5 = 0; v20 = 1371; goto LABEL_56; case 1360: v4 = 0; v2 = 0; v5 = 0; v20 = 1372; goto LABEL_56; case 1361: v4 = 0; v2 = 0; v5 = 0; v20 = 1373; goto LABEL_56; case 1362: v4 = 0; v2 = 0; v5 = 0; v20 = 1374; goto LABEL_56; case 1363: v4 = 0; v2 = 0; v5 = 0; v20 = 1375; goto LABEL_56; case 1364: v4 = 0; v2 = 0; v5 = 0; v20 = 1376; goto LABEL_56; case 1365: v4 = 0; v2 = 0; v5 = 0; v20 = 1377; goto LABEL_56; case 1366: v4 = 0; v2 = 0; v5 = 0; v20 = 1378; goto LABEL_56; default: goto LABEL_58; } } if ( v15 <= 1436 ) { if ( v15 > 1434 ) { v4 = 0; v2 = 0; v5 = 0; if ( v15 == 1435 ) v20 = 1454; else v20 = 1455; LABEL_56: (*(void (__fastcall **)(__int64 *__return_ptr, __int64, __n128))(*(_QWORD *)v12 + 1344LL))(&v27, v12, v14); Object = EditorUI::createObject(a1, v20, v37); (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 352LL))(v12); ((void (__fastcall *)(GameObject *))Object->setRotation)(Object); v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1408LL))(v12); ((void (__fastcall *)(GameObject *, _QWORD))Object->setFlipX)(Object, v21 ^ (unsigned int)v5); v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1416LL))(v12); ((void (__fastcall *)(GameObject *, __int64))Object->setFlipY)(Object, v22); GameObject::updateCustomScaleX(Object, *(float *)(v12 + 1152)); GameObject::updateCustomScaleY(Object, *(float *)(v12 + 1156)); Object->m_editorLayer2 = *(_WORD *)(v12 + 1202) + 3; v23 = sub_10024A2D0(v10, Object); if ( (_DWORD)v4 ) { (*(void (__fastcall **)(__int64 *__return_ptr, __int64, __n128))(*(_QWORD *)v12 + 1344LL))(&v27, v12, v23); v2 = (__int64)EditorUI::createObject(a1, v2, v38); (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 352LL))(v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 344LL))(v2); v24 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1408LL))(v12); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1224LL))(v2, v24); v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1416LL))(v12); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1232LL))(v2, v25); GameObject::updateCustomScaleX((GameObject *)v2, *(float *)(v12 + 1152)); GameObject::updateCustomScaleY((GameObject *)v2, *(float *)(v12 + 1156)); *(_WORD *)(v2 + 1204) = *(_WORD *)(v12 + 1202) + 3; sub_10024A2D0(v10, v2); } goto LABEL_58; } if ( v15 == 1395 ) { v4 = 0; v2 = 0; v5 = 0; v20 = 1367; goto LABEL_56; } if ( v15 == 1434 ) { v4 = 0; v2 = 0; v5 = 0; v20 = 1453; goto LABEL_56; } } else { if ( v15 <= 1438 ) { v4 = 0; v2 = 0; v5 = 0; if ( v15 == 1437 ) v20 = 1456; else v20 = 1457; goto LABEL_56; } switch ( v15 ) { case 1439: v4 = 0; v2 = 0; v5 = 0; v20 = 1458; goto LABEL_56; case 1440: v4 = 0; v2 = 0; v5 = 0; v20 = 1459; goto LABEL_56; case 1441: v4 = 0; v2 = 0; v5 = 0; v20 = 1460; goto LABEL_56; } } } else { if ( v15 <= 2837 ) { v16 = Object; v17 = v5; v18 = v2; v19 = v4; v4 = 0; v2 = 0; v5 = 0; v20 = 1653; switch ( v15 ) { case 1621: goto LABEL_56; case 1622: v4 = 0; v2 = 0; v5 = 0; v20 = 1654; goto LABEL_56; case 1623: v4 = 0; v2 = 0; v5 = 0; v20 = 1655; goto LABEL_56; case 1624: v4 = 0; v2 = 0; v5 = 0; v20 = 1656; goto LABEL_56; case 1625: v4 = 0; v2 = 0; v5 = 0; v20 = 1657; goto LABEL_56; case 1626: v4 = 0; v2 = 0; v5 = 0; v20 = 1658; goto LABEL_56; case 1627: v4 = 0; v2 = 0; v5 = 0; v20 = 1659; goto LABEL_56; case 1628: v4 = 0; v2 = 0; v5 = 0; v20 = 1660; goto LABEL_56; case 1629: v4 = 0; v2 = 0; v5 = 0; v20 = 1661; goto LABEL_56; case 1630: v4 = 0; v2 = 0; v5 = 0; v20 = 1662; goto LABEL_56; case 1631: v4 = 0; v2 = 0; v5 = 0; v20 = 1663; goto LABEL_56; case 1632: v4 = 0; v2 = 0; v5 = 0; v20 = 1664; goto LABEL_56; case 1633: v4 = 0; v2 = 0; v5 = 0; v20 = 1665; goto LABEL_56; case 1634: v4 = 0; v2 = 0; v5 = 0; v20 = 1666; goto LABEL_56; case 1635: v4 = 0; v2 = 0; v5 = 0; v20 = 1667; goto LABEL_56; case 1636: v4 = 0; v2 = 0; v5 = 0; v20 = 1668; goto LABEL_56; case 1637: v4 = 0; v2 = 0; v5 = 0; v20 = 1669; goto LABEL_56; case 1638: v4 = 0; v2 = 0; v5 = 0; v20 = 1670; goto LABEL_56; case 1639: v4 = 0; v2 = 0; v5 = 0; v20 = 1671; goto LABEL_56; case 1640: v4 = 0; v2 = 0; v5 = 0; v20 = 1672; goto LABEL_56; case 1641: v4 = 0; v2 = 0; v5 = 0; v20 = 1673; goto LABEL_56; case 1642: v4 = 0; v2 = 0; v5 = 0; v20 = 1674; goto LABEL_56; case 1643: v4 = 0; v2 = 0; v5 = 0; v20 = 1675; goto LABEL_56; case 1644: v4 = 0; v2 = 0; v5 = 0; v20 = 1676; goto LABEL_56; case 1645: v4 = 0; v2 = 0; v5 = 0; v20 = 1677; goto LABEL_56; case 1646: v4 = 0; v2 = 0; v5 = 0; v20 = 1678; goto LABEL_56; case 1647: v4 = 0; v2 = 0; v5 = 0; v20 = 1679; goto LABEL_56; case 1648: v4 = 0; v2 = 0; v5 = 0; v20 = 1680; goto LABEL_56; case 1649: v4 = 0; v2 = 0; v5 = 0; v20 = 1681; goto LABEL_56; case 1650: v4 = 0; v2 = 0; v5 = 0; v20 = 1682; goto LABEL_56; case 1651: v4 = 0; v2 = 0; v5 = 0; v20 = 1683; goto LABEL_56; case 1652: v4 = 0; v2 = 0; v5 = 0; v20 = 1684; goto LABEL_56; default: v4 = v19; v2 = v18; v5 = v17; Object = v16; break; } goto LABEL_58; } if ( v15 > 2843 ) { if ( v15 <= 2846 ) { if ( v15 != 2844 ) { if ( v15 != 2845 ) { LABEL_49: v4 = 0; v2 = 0; v5 = 0; v20 = 2855; goto LABEL_56; } goto LABEL_42; } LABEL_48: v4 = 0; v2 = 0; v5 = 0; v20 = 2852; goto LABEL_56; } switch ( v15 ) { case 2847: goto LABEL_40; case 2848: goto LABEL_49; case 2849: LABEL_40: v4 = 0; v2 = 0; v20 = 2855; goto LABEL_43; } } else { if ( (unsigned int)(v15 - 2838) >= 4 ) { if ( v15 != 2842 ) { LABEL_42: v4 = 0; v2 = 0; v20 = 2852; LABEL_43: v5 = 1; goto LABEL_56; } goto LABEL_48; } v29.x = sub_1000229B8(&v27, &v28); if ( !EditorUI::getNeighbor(a1, 2838, v29, (GJSmartDirection)&v27, (cocos2d::CCArray *)1) ) { v4 = 0; v2 = 0; v5 = 0; v20 = 2853; goto LABEL_56; } v30.x = sub_1000229B8(&v27, &v28); if ( !EditorUI::getNeighbor(a1, 2838, v30, (GJSmartDirection)&v27, (cocos2d::CCArray *)2) ) { v4 = 0; v2 = 0; v5 = 0; v20 = 2856; goto LABEL_56; } v31.x = sub_1000229B8(&v27, &v28); if ( !EditorUI::getNeighbor(a1, 2838, v31, (GJSmartDirection)&v27, (cocos2d::CCArray *)3) ) { v4 = 0; v2 = 0; v5 = 0; v20 = 2854; goto LABEL_56; } v32.x = sub_1000229B8(&v27, &v28); if ( !EditorUI::getNeighbor(a1, 2838, v32, (GJSmartDirection)&v27, (cocos2d::CCArray *)4) ) { v4 = 0; v2 = 0; v20 = 2854; goto LABEL_43; } v33.x = sub_1000229B8(&v27, &v28); if ( !EditorUI::getNeighbor(a1, 2838, v33, (GJSmartDirection)&v27, (cocos2d::CCArray *)5) ) { v4 = 0; v2 = 0; v20 = 2861; goto LABEL_43; } v34.x = sub_1000229B8(&v27, &v28); if ( !EditorUI::getNeighbor(a1, 2838, v34, (GJSmartDirection)&v27, (cocos2d::CCArray *)6) ) { v4 = 0; v2 = 0; v5 = 0; v20 = 2861; goto LABEL_56; } v35.x = sub_1000229B8(&v27, &v28); if ( !EditorUI::getNeighbor(a1, 2838, v35, (GJSmartDirection)&v27, (cocos2d::CCArray *)7) ) { v4 = 0; v2 = 0; v5 = 0; v20 = 2863; goto LABEL_56; } v36.x = sub_1000229B8(&v27, &v28); if ( !EditorUI::getNeighbor(a1, 2838, v36, (GJSmartDirection)&v27, (cocos2d::CCArray *)8) ) { v4 = 0; v2 = 0; v20 = 2863; goto LABEL_43; } } } LABEL_58: v11 = (unsigned int)(v11 + 1); } while ( (unsigned int)v11 < (unsigned int)sub_10024A36C(v9) ); } return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source