//
// EditorUI::createOutlines from 0x100614820 to 0x100614fb7 (1943 bytes)
//
// 1 xrefs:
// > EditorUI::createSmartObjectsFromType @ 0x100044122
//
// 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; // r12
cocos2d::CCArray *v3; // r15
unsigned int v4; // r13d
__int64 v5; // rbx
double *v6; // rax
int v7; // eax
int v8; // r14d
cocos2d::CCPoint v9; // xmm0_8
EditorUI *v10; // r12
cocos2d::CCPoint v11; // xmm0_8
cocos2d::CCPoint v12; // xmm0_8
cocos2d::CCPoint v13; // xmm0_8
cocos2d::CCNode *Neighbor; // rax
char v15; // r12
cocos2d::CCPoint v16; // xmm0_8
cocos2d::CCPoint v17; // xmm0_8
cocos2d::CCPoint v18; // xmm0_8
cocos2d::CCPoint v19; // xmm0_8
cocos2d::CCPoint v20; // xmm0_8
GameObject *Object; // r15
char v22; // al
unsigned __int8 v23; // al
cocos2d::CCPoint v24; // xmm0_8
GameObject *v25; // r14
unsigned __int8 v26; // al
unsigned __int8 v27; // al
__int64 v29; // [rsp-68h] [rbp-68h]
__int64 v30; // [rsp-60h] [rbp-60h] BYREF
cocos2d::CCArray *v31; // [rsp-58h] [rbp-58h]
EditorUI *v32; // [rsp-50h] [rbp-50h]
cocos2d::CCArray *v33; // [rsp-48h] [rbp-48h]
__int64 v34; // [rsp-40h] [rbp-40h] BYREF
int v35; // [rsp-38h] [rbp-38h]
int v36; // [rsp-34h] [rbp-34h]
__int64 v37; // [rsp-8h] [rbp-8h] BYREF
if ( !a2 )
return nullptr;
if ( !(unsigned int)sub_100720070(a2) )
return nullptr;
v2 = sub_10071F9E0(a2, a2);
v3 = (cocos2d::CCArray *)sub_10071F9E0(a2, a2);
sub_100720050(v2, a2);
if ( !(unsigned int)sub_100720070(v2) )
return v3;
v31 = v3;
v32 = a1;
v33 = a2;
v4 = 0;
v29 = v2;
do
{
v5 = sub_1007200C0(v2, v4);
v6 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);
sub_10028CC60(&v30, v6);
v7 = *(_DWORD *)(v5 + 1028);
switch ( v7 )
{
case 1348:
v36 = 1386;
v8 = 1382;
goto LABEL_59;
case 1349:
v36 = 1385;
v8 = 1380;
goto LABEL_59;
case 1350:
v36 = 1384;
v8 = 1381;
goto LABEL_59;
case 1351:
v36 = 1383;
v8 = 1379;
LABEL_59:
LOBYTE(v7) = 1;
v35 = v7;
goto LABEL_82;
case 1352:
case 1353:
case 1354:
case 1355:
case 1367:
case 1368:
case 1369:
case 1370:
case 1371:
case 1372:
case 1373:
case 1374:
case 1375:
case 1376:
case 1377:
case 1378:
case 1379:
case 1380:
case 1381:
case 1382:
case 1383:
case 1384:
case 1385:
case 1386:
case 1387:
case 1388:
case 1389:
case 1390:
case 1391:
case 1392:
case 1393:
case 1394:
case 1396:
case 1397:
case 1398:
case 1399:
case 1400:
case 1401:
case 1402:
case 1403:
case 1404:
case 1405:
case 1406:
case 1407:
case 1408:
case 1409:
case 1410:
case 1411:
case 1412:
case 1413:
case 1414:
case 1415:
case 1416:
case 1417:
case 1418:
case 1419:
case 1420:
case 1421:
case 1422:
case 1423:
case 1424:
case 1425:
case 1426:
case 1427:
case 1428:
case 1429:
case 1430:
case 1431:
case 1432:
case 1433:
case 1442:
case 1443:
case 1444:
case 1445:
case 1446:
case 1447:
case 1448:
case 1449:
case 1450:
case 1451:
case 1452:
case 1453:
case 1454:
case 1455:
case 1456:
case 1457:
case 1458:
case 1459:
case 1460:
case 1461:
case 1462:
case 1463:
case 1464:
case 1465:
case 1466:
case 1467:
case 1468:
case 1469:
case 1470:
case 1471:
case 1472:
case 1473:
case 1474:
case 1475:
case 1476:
case 1477:
case 1478:
case 1479:
case 1480:
case 1481:
case 1482:
case 1483:
case 1484:
case 1485:
case 1486:
case 1487:
case 1488:
case 1489:
case 1490:
case 1491:
case 1492:
case 1493:
case 1494:
case 1495:
case 1496:
case 1497:
case 1498:
case 1499:
case 1500:
case 1501:
case 1502:
case 1503:
case 1504:
case 1505:
case 1506:
case 1507:
case 1508:
case 1509:
case 1510:
case 1511:
case 1512:
case 1513:
case 1514:
case 1515:
case 1516:
case 1517:
case 1518:
case 1519:
case 1520:
case 1521:
case 1522:
case 1523:
case 1524:
case 1525:
case 1526:
case 1527:
case 1528:
case 1529:
case 1530:
case 1531:
case 1532:
case 1533:
case 1534:
case 1535:
case 1536:
case 1537:
case 1538:
case 1539:
case 1540:
case 1541:
case 1542:
case 1543:
case 1544:
case 1545:
case 1546:
case 1547:
case 1548:
case 1549:
case 1550:
case 1551:
case 1552:
case 1553:
case 1554:
case 1555:
case 1556:
case 1557:
case 1558:
case 1559:
case 1560:
case 1561:
case 1562:
case 1563:
case 1564:
case 1565:
case 1566:
case 1567:
case 1568:
case 1569:
case 1570:
case 1571:
case 1572:
case 1573:
case 1574:
case 1575:
case 1576:
case 1577:
case 1578:
case 1579:
case 1580:
case 1581:
case 1582:
case 1583:
case 1584:
case 1585:
case 1586:
case 1587:
case 1588:
case 1589:
case 1590:
case 1591:
case 1592:
case 1593:
case 1594:
case 1595:
case 1596:
case 1597:
case 1598:
case 1599:
case 1600:
case 1601:
case 1602:
case 1603:
case 1604:
case 1605:
case 1606:
case 1607:
case 1608:
case 1609:
case 1610:
case 1611:
case 1612:
case 1613:
case 1614:
case 1615:
case 1616:
case 1617:
case 1618:
case 1619:
case 1620:
goto LABEL_5;
case 1356:
v36 = 1368;
goto LABEL_81;
case 1357:
v36 = 1369;
goto LABEL_81;
case 1358:
v36 = 1370;
goto LABEL_81;
case 1359:
v36 = 1371;
goto LABEL_81;
case 1360:
v36 = 1372;
goto LABEL_81;
case 1361:
v36 = 1373;
goto LABEL_81;
case 1362:
v36 = 1374;
goto LABEL_81;
case 1363:
v36 = 1375;
goto LABEL_81;
case 1364:
v36 = 1376;
goto LABEL_81;
case 1365:
v36 = 1377;
goto LABEL_81;
case 1366:
v36 = 1378;
goto LABEL_81;
case 1395:
v36 = 1367;
goto LABEL_81;
case 1434:
v36 = 1453;
goto LABEL_81;
case 1435:
v36 = 1454;
goto LABEL_81;
case 1436:
v36 = 1455;
goto LABEL_81;
case 1437:
v36 = 1456;
goto LABEL_81;
case 1438:
v36 = 1457;
goto LABEL_81;
case 1439:
v36 = 1458;
goto LABEL_81;
case 1440:
v36 = 1459;
goto LABEL_81;
case 1441:
v36 = 1460;
goto LABEL_81;
case 1621:
v36 = 1653;
goto LABEL_81;
case 1622:
v36 = 1654;
goto LABEL_81;
case 1623:
v36 = 1655;
goto LABEL_81;
case 1624:
v36 = 1656;
goto LABEL_81;
case 1625:
v36 = 1657;
goto LABEL_81;
case 1626:
v36 = 1658;
goto LABEL_81;
case 1627:
v36 = 1659;
goto LABEL_81;
case 1628:
v36 = 1660;
goto LABEL_81;
case 1629:
v36 = 1661;
goto LABEL_81;
case 1630:
v36 = 1662;
goto LABEL_81;
case 1631:
v36 = 1663;
goto LABEL_81;
case 1632:
v36 = 1664;
goto LABEL_81;
case 1633:
v36 = 1665;
goto LABEL_81;
case 1634:
v36 = 1666;
goto LABEL_81;
case 1635:
v36 = 1667;
goto LABEL_81;
case 1636:
v36 = 1668;
goto LABEL_81;
case 1637:
v36 = 1669;
goto LABEL_81;
case 1638:
v36 = 1670;
goto LABEL_81;
case 1639:
v36 = 1671;
goto LABEL_81;
case 1640:
v36 = 1672;
goto LABEL_81;
case 1641:
v36 = 1673;
goto LABEL_81;
case 1642:
v36 = 1674;
goto LABEL_81;
case 1643:
v36 = 1675;
goto LABEL_81;
case 1644:
v36 = 1676;
goto LABEL_81;
case 1645:
v36 = 1677;
goto LABEL_81;
case 1646:
v36 = 1678;
goto LABEL_81;
case 1647:
v36 = 1679;
goto LABEL_81;
case 1648:
v36 = 1680;
goto LABEL_81;
case 1649:
v36 = 1681;
goto LABEL_81;
case 1650:
v36 = 1682;
goto LABEL_81;
case 1651:
v36 = 1683;
goto LABEL_81;
case 1652:
v36 = 1684;
LABEL_81:
v35 = 0;
v8 = 0;
LABEL_82:
v15 = 0;
break;
default:
switch ( v7 )
{
case 2838:
case 2839:
case 2840:
case 2841:
*(double *)&v9 = sub_10028CC60(&v34, (double *)&v30);
v10 = v32;
if ( !EditorUI::getNeighbor(
v32,
2838,
v9,
(GJSmartDirection)((unsigned int)&v37 - 56),
(cocos2d::CCArray *)1) )
{
v36 = 2853;
goto LABEL_81;
}
*(double *)&v11 = sub_10028CC60(&v34, (double *)&v30);
if ( !EditorUI::getNeighbor(
v10,
2838,
v11,
(GJSmartDirection)((unsigned int)&v37 - 56),
(cocos2d::CCArray *)2) )
{
v36 = 2856;
goto LABEL_81;
}
*(double *)&v12 = sub_10028CC60(&v34, (double *)&v30);
if ( EditorUI::getNeighbor(
v10,
2838,
v12,
(GJSmartDirection)((unsigned int)&v37 - 56),
(cocos2d::CCArray *)3) )
{
*(double *)&v13 = sub_10028CC60(&v34, (double *)&v30);
Neighbor = EditorUI::getNeighbor(
v10,
2838,
v13,
(GJSmartDirection)((unsigned int)&v37 - 56),
(cocos2d::CCArray *)4);
v15 = 1;
if ( Neighbor )
{
*(double *)&v16 = sub_10028CC60(&v34, (double *)&v30);
if ( EditorUI::getNeighbor(
v32,
2838,
v16,
(GJSmartDirection)((unsigned int)&v37 - 56),
(cocos2d::CCArray *)5) )
{
*(double *)&v17 = sub_10028CC60(&v34, (double *)&v30);
if ( EditorUI::getNeighbor(
v32,
2838,
v17,
(GJSmartDirection)((unsigned int)&v37 - 56),
(cocos2d::CCArray *)6) )
{
*(double *)&v18 = sub_10028CC60(&v34, (double *)&v30);
if ( EditorUI::getNeighbor(
v32,
2838,
v18,
(GJSmartDirection)((unsigned int)&v37 - 56),
(cocos2d::CCArray *)7) )
{
*(double *)&v19 = sub_10028CC60(&v34, (double *)&v30);
if ( EditorUI::getNeighbor(
v32,
2838,
v19,
(GJSmartDirection)((unsigned int)&v37 - 56),
(cocos2d::CCArray *)8) )
{
goto LABEL_5;
}
v35 = 0;
v8 = 0;
v36 = 2863;
}
else
{
v35 = 0;
v8 = 0;
v15 = 0;
v36 = 2863;
}
}
else
{
v35 = 0;
v8 = 0;
v15 = 0;
v36 = 2861;
}
}
else
{
v35 = 0;
v8 = 0;
v36 = 2861;
}
}
else
{
v35 = 0;
v8 = 0;
v36 = 2854;
}
}
else
{
v35 = 0;
v8 = 0;
v15 = 0;
v36 = 2854;
}
break;
case 2842:
case 2844:
v36 = 2852;
goto LABEL_81;
case 2843:
case 2845:
v36 = 2852;
goto LABEL_21;
case 2846:
case 2848:
v36 = 2855;
goto LABEL_81;
case 2847:
case 2849:
v36 = 2855;
LABEL_21:
v15 = 1;
v35 = 0;
v8 = 0;
goto LABEL_83;
default:
goto LABEL_5;
}
break;
}
LABEL_83:
*(double *)&v20 = (*(double (__fastcall **)(__int64 *, __int64))(*(_QWORD *)v5 + 1344LL))(&v34, v5);
Object = EditorUI::createObject(v32, v36, v20);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 352LL))(v5);
((void (__fastcall *)(GameObject *))Object->setRotation)(Object);
v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1408LL))(v5);
((void (__fastcall *)(GameObject *, _QWORD))Object->setFlipX)(Object, (unsigned __int8)(v15 ^ v22));
v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1416LL))(v5);
((void (__fastcall *)(GameObject *, _QWORD))Object->setFlipY)(Object, v23);
GameObject::updateCustomScaleX(Object, *(float *)(v5 + 1152));
GameObject::updateCustomScaleY(Object, *(float *)(v5 + 1156));
Object->m_editorLayer2 = *(_WORD *)(v5 + 1202) + 3;
sub_10071FCD0(v31, Object);
if ( (_BYTE)v35 )
{
*(double *)&v24 = (*(double (__fastcall **)(__int64 *, __int64))(*(_QWORD *)v5 + 1344LL))(&v34, v5);
v25 = EditorUI::createObject(v32, v8, v24);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 352LL))(v5);
((void (__fastcall *)(GameObject *))v25->setRotation)(v25);
v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1408LL))(v5);
((void (__fastcall *)(GameObject *, _QWORD))v25->setFlipX)(v25, v26);
v27 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1416LL))(v5);
((void (__fastcall *)(GameObject *, _QWORD))v25->setFlipY)(v25, v27);
GameObject::updateCustomScaleX(v25, *(float *)(v5 + 1152));
GameObject::updateCustomScaleY(v25, *(float *)(v5 + 1156));
v25->m_editorLayer2 = *(_WORD *)(v5 + 1202) + 3;
sub_10071FCD0(v31, v25);
}
LABEL_5:
++v4;
v2 = v29;
}
while ( v4 < (unsigned int)sub_100720070(v29) );
return v31;
}