//
// EditorUI::createOutlines from 0x10008114c to 0x100081b2c (2528 bytes)
//
// 1 xrefs:
// > EditorUI::createSmartObjectsFromType @ 0x100479d70
//
// 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 10:58:17 +0000
//
__int64 __fastcall EditorUI::createOutlines(__int64 a1, __int64 a2)
{
__int64 v2; // x25
_WORD *v3; // x26
__int64 v4; // x27
__int64 v5; // x28
__int64 v8; // x0
__int64 v9; // x22
__int64 v10; // x21
__int64 v11; // x23
__int64 v12; // x24
double *v13; // x0
__n128 v14; // q0
int v15; // w8
_WORD *v16; // kr00_8
__int64 v17; // kr08_8
__int64 v18; // kr10_8
__int64 v19; // kr18_8
__int64 v20; // x26
double v21; // d0
double v22; // d0
double v23; // d0
double v24; // d0
double v25; // d0
double v26; // d0
double v27; // d0
double v28; // d0
double v29; // d0
int v30; // w0
__int64 v31; // x0
__n128 v32; // q0
double v33; // d0
__int64 v34; // x0
__int64 v35; // x0
__int64 v37; // [xsp+0h] [xbp-60h] BYREF
__int64 v38; // [xsp+8h] [xbp-58h] BYREF
if ( !a2 )
return 0;
v8 = sub_1002E757C(a2);
if ( !(_DWORD)v8 )
return 0;
v9 = sub_1002E736C(v8);
v10 = sub_1002E736C(v9);
sub_1002E7570(v9, a2);
if ( (unsigned int)sub_1002E757C(v9) )
{
v11 = 0;
do
{
v12 = sub_1002E75A0(v9, v11);
v13 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 192LL))(v12);
v14.n128_f64[0] = sub_1000262F4(&v38, 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 + 1360LL))(&v37, v12, v14);
v3 = (_WORD *)EditorUI::createObject(a1, v20, &v37, v29);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 368LL))(v12);
(*(void (__fastcall **)(_WORD *))(*(_QWORD *)v3 + 360LL))(v3);
v30 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1424LL))(v12);
(*(void (__fastcall **)(_WORD *, _QWORD))(*(_QWORD *)v3 + 1240LL))(v3, v30 ^ (unsigned int)v5);
v31 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1432LL))(v12);
(*(void (__fastcall **)(_WORD *, __int64))(*(_QWORD *)v3 + 1248LL))(v3, v31);
GameObject::updateCustomScaleX(v3, *(float *)(v12 + 1152));
GameObject::updateCustomScaleY(v3, *(float *)(v12 + 1156));
v3[602] = *(_WORD *)(v12 + 1202) + 3;
v32 = sub_1002E74E0(v10, v3);
if ( (_DWORD)v4 )
{
(*(void (__fastcall **)(__int64 *__return_ptr, __int64, __n128))(*(_QWORD *)v12 + 1360LL))(&v37, v12, v32);
v2 = EditorUI::createObject(a1, v2, &v37, v33);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 368LL))(v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 360LL))(v2);
v34 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1424LL))(v12);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1240LL))(v2, v34);
v35 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1432LL))(v12);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1248LL))(v2, v35);
GameObject::updateCustomScaleX(v2, *(float *)(v12 + 1152));
GameObject::updateCustomScaleY(v2, *(float *)(v12 + 1156));
*(_WORD *)(v2 + 1204) = *(_WORD *)(v12 + 1202) + 3;
sub_1002E74E0(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 = v3;
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;
v3 = 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;
}
v21 = sub_1000262F4(&v37, (double *)&v38);
if ( !EditorUI::getNeighbor(a1, 2838, &v37, 1, a2, v21) )
{
v4 = 0;
v2 = 0;
v5 = 0;
v20 = 2853;
goto LABEL_56;
}
v22 = sub_1000262F4(&v37, (double *)&v38);
if ( !EditorUI::getNeighbor(a1, 2838, &v37, 2, a2, v22) )
{
v4 = 0;
v2 = 0;
v5 = 0;
v20 = 2856;
goto LABEL_56;
}
v23 = sub_1000262F4(&v37, (double *)&v38);
if ( !EditorUI::getNeighbor(a1, 2838, &v37, 3, a2, v23) )
{
v4 = 0;
v2 = 0;
v5 = 0;
v20 = 2854;
goto LABEL_56;
}
v24 = sub_1000262F4(&v37, (double *)&v38);
if ( !EditorUI::getNeighbor(a1, 2838, &v37, 4, a2, v24) )
{
v4 = 0;
v2 = 0;
v20 = 2854;
goto LABEL_43;
}
v25 = sub_1000262F4(&v37, (double *)&v38);
if ( !EditorUI::getNeighbor(a1, 2838, &v37, 5, a2, v25) )
{
v4 = 0;
v2 = 0;
v20 = 2861;
goto LABEL_43;
}
v26 = sub_1000262F4(&v37, (double *)&v38);
if ( !EditorUI::getNeighbor(a1, 2838, &v37, 6, a2, v26) )
{
v4 = 0;
v2 = 0;
v5 = 0;
v20 = 2861;
goto LABEL_56;
}
v27 = sub_1000262F4(&v37, (double *)&v38);
if ( !EditorUI::getNeighbor(a1, 2838, &v37, 7, a2, v27) )
{
v4 = 0;
v2 = 0;
v5 = 0;
v20 = 2863;
goto LABEL_56;
}
v28 = sub_1000262F4(&v37, (double *)&v38);
if ( !EditorUI::getNeighbor(a1, 2838, &v37, 8, a2, v28) )
{
v4 = 0;
v2 = 0;
v20 = 2863;
goto LABEL_43;
}
}
}
LABEL_58:
v11 = (unsigned int)(v11 + 1);
}
while ( (unsigned int)v11 < (unsigned int)sub_1002E757C(v9) );
}
return v10;
}