//
// EditorUI::createOutlines from 0x1401fa7a0 to 0x1401fb1f0 (2640 bytes)
//
// 6 xrefs:
// > EditorUI::createSmartObjectsFromType @ 0x1401b7b87
// > ??> @ 0x1408a38f0
// > ??> @ 0x1408a3954
// > ??> @ 0x1408a3964
// > ??> @ 0x14091abac
// > ??> @ 0x14091abb8
//
// This function is hookable on this platform (idp: pc, 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 11:28:11 +0000
//
cocos2d::CCArray *__fastcall EditorUI::createOutlines(__int64 a1, cocos2d::CCArray *a2)
{
__int64 v3; // rdi
__int64 v4; // rcx
cocos2d::CCArray *v5; // r12
__int64 v6; // rcx
cocos2d::CCArray *v7; // r14
unsigned int v8; // r15d
struct cocos2d::CCObject *v9; // rsi
const struct cocos2d::CCPoint *v10; // rax
int v11; // ecx
signed int v12; // r13d
char v13; // r14
unsigned int v14; // ebx
__int64 v15; // rax
__int64 v16; // rcx
__int64 v17; // rax
__int64 v18; // rcx
__int64 v19; // rax
__int64 v20; // rcx
__int64 v21; // rax
__int64 v22; // rcx
__int64 v23; // rax
__int64 v24; // rcx
__int64 v25; // rax
__int64 v26; // rcx
__int64 v27; // rax
__int64 v28; // rcx
__int64 v29; // rax
__int64 v30; // rcx
const struct cocos2d::CCPoint *v31; // rax
struct cocos2d::CCObject *Object; // rdi
__int64 v33; // rbx
unsigned __int8 v34; // al
unsigned __int8 v35; // al
float v36; // xmm0_4
__int64 v37; // rax
float v38; // xmm1_4
float v39; // xmm0_4
__int64 v40; // rax
float v41; // xmm1_4
const struct cocos2d::CCPoint *v42; // rax
__int64 v43; // rdi
__int64 v44; // rbx
__int64 v45; // rbx
unsigned __int8 v46; // al
__int64 v47; // rbx
unsigned __int8 v48; // al
float v49; // xmm0_4
__int64 v50; // rax
float v51; // xmm1_4
float v52; // xmm0_4
__int64 v53; // rax
float v54; // xmm1_4
_BYTE v56[8]; // [rsp+30h] [rbp-B8h] BYREF
_BYTE v57[8]; // [rsp+38h] [rbp-B0h] BYREF
_BYTE v58[8]; // [rsp+40h] [rbp-A8h] BYREF
_BYTE v59[8]; // [rsp+48h] [rbp-A0h] BYREF
_BYTE v60[8]; // [rsp+50h] [rbp-98h] BYREF
_BYTE v61[8]; // [rsp+58h] [rbp-90h] BYREF
_BYTE v62[8]; // [rsp+60h] [rbp-88h] BYREF
_BYTE v63[8]; // [rsp+68h] [rbp-80h] BYREF
_BYTE v64[16]; // [rsp+70h] [rbp-78h] BYREF
char v66; // [rsp+F8h] [rbp+10h] BYREF
cocos2d::CCArray *v67; // [rsp+100h] [rbp+18h]
char v68; // [rsp+108h] [rbp+20h] BYREF
v3 = a1;
if ( !a2 || !cocos2d::CCArray::count(a2) )
return nullptr;
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(v4);
v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6);
v67 = v7;
cocos2d::CCArray::addObjectsFromArray(v5, a2);
v8 = 0;
if ( cocos2d::CCArray::count(v5) )
{
while ( 1 )
{
v9 = cocos2d::CCArray::objectAtIndex(v5, v8);
v10 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 200LL))(v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, v10);
v11 = *((_DWORD *)v9 + 259);
v12 = 0;
v13 = 0;
if ( v11 <= 1621 )
{
if ( v11 != 1621 )
{
switch ( v11 )
{
case 1348:
v14 = 1386;
v12 = 1382;
goto LABEL_88;
case 1349:
v14 = 1385;
v12 = 1380;
goto LABEL_88;
case 1350:
v14 = 1384;
v12 = 1381;
goto LABEL_88;
case 1351:
v14 = 1383;
v12 = 1379;
goto LABEL_88;
case 1356:
v14 = 1368;
goto LABEL_88;
case 1357:
v14 = 1369;
goto LABEL_88;
case 1358:
v14 = 1370;
goto LABEL_88;
case 1359:
v14 = 1371;
goto LABEL_88;
case 1360:
v14 = 1372;
goto LABEL_88;
case 1361:
v14 = 1373;
goto LABEL_88;
case 1362:
v14 = 1374;
goto LABEL_88;
case 1363:
v14 = 1375;
goto LABEL_88;
case 1364:
v14 = 1376;
goto LABEL_88;
case 1365:
v14 = 1377;
goto LABEL_88;
case 1366:
v14 = 1378;
goto LABEL_88;
case 1395:
v14 = 1367;
goto LABEL_88;
case 1434:
v14 = 1453;
goto LABEL_88;
case 1435:
v14 = 1454;
goto LABEL_88;
case 1436:
v14 = 1455;
goto LABEL_88;
case 1437:
v14 = 1456;
goto LABEL_88;
case 1438:
v14 = 1457;
goto LABEL_88;
case 1439:
v14 = 1458;
goto LABEL_88;
case 1440:
v14 = 1459;
goto LABEL_88;
case 1441:
v14 = 1460;
goto LABEL_88;
default:
goto LABEL_95;
}
}
v14 = 1653;
goto LABEL_88;
}
if ( v11 > 2838 )
{
switch ( v11 )
{
case 2839:
case 2840:
case 2841:
goto LABEL_67;
case 2842:
case 2844:
v14 = 2852;
goto LABEL_88;
case 2843:
case 2845:
v14 = 2852;
goto LABEL_87;
case 2846:
case 2848:
v14 = 2855;
goto LABEL_88;
case 2847:
case 2849:
v14 = 2855;
goto LABEL_87;
default:
goto LABEL_95;
}
}
if ( v11 != 2838 )
{
switch ( v11 )
{
case 1622:
v14 = 1654;
goto LABEL_88;
case 1623:
v14 = 1655;
goto LABEL_88;
case 1624:
v14 = 1656;
goto LABEL_88;
case 1625:
v14 = 1657;
goto LABEL_88;
case 1626:
v14 = 1658;
goto LABEL_88;
case 1627:
v14 = 1659;
goto LABEL_88;
case 1628:
v14 = 1660;
goto LABEL_88;
case 1629:
v14 = 1661;
goto LABEL_88;
case 1630:
v14 = 1662;
goto LABEL_88;
case 1631:
v14 = 1663;
goto LABEL_88;
case 1632:
v14 = 1664;
goto LABEL_88;
case 1633:
v14 = 1665;
goto LABEL_88;
case 1634:
v14 = 1666;
goto LABEL_88;
case 1635:
v14 = 1667;
goto LABEL_88;
case 1636:
v14 = 1668;
goto LABEL_88;
case 1637:
v14 = 1669;
goto LABEL_88;
case 1638:
v14 = 1670;
goto LABEL_88;
case 1639:
v14 = 1671;
goto LABEL_88;
case 1640:
v14 = 1672;
goto LABEL_88;
case 1641:
v14 = 1673;
goto LABEL_88;
case 1642:
v14 = 1674;
goto LABEL_88;
case 1643:
v14 = 1675;
goto LABEL_88;
case 1644:
v14 = 1676;
goto LABEL_88;
case 1645:
v14 = 1677;
goto LABEL_88;
case 1646:
v14 = 1678;
goto LABEL_88;
case 1647:
v14 = 1679;
goto LABEL_88;
case 1648:
v14 = 1680;
goto LABEL_88;
case 1649:
v14 = 1681;
goto LABEL_88;
case 1650:
v14 = 1682;
goto LABEL_88;
case 1651:
v14 = 1683;
goto LABEL_88;
case 1652:
v14 = 1684;
goto LABEL_88;
default:
goto LABEL_95;
}
}
LABEL_67:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v68, (const struct cocos2d::CCPoint *)&v66);
if ( !EditorUI::getNeighbor(v16, 0xB16u, v15, 1u, a2) )
break;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, (const struct cocos2d::CCPoint *)&v66);
if ( !EditorUI::getNeighbor(v18, 0xB16u, v17, 2u, a2) )
{
v14 = 2856;
goto LABEL_88;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, (const struct cocos2d::CCPoint *)&v66);
if ( !EditorUI::getNeighbor(v20, 0xB16u, v19, 3u, a2) )
{
v14 = 2854;
goto LABEL_88;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, (const struct cocos2d::CCPoint *)&v66);
if ( !EditorUI::getNeighbor(v22, 0xB16u, v21, 4u, a2) )
{
v14 = 2854;
goto LABEL_87;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, (const struct cocos2d::CCPoint *)&v66);
if ( !EditorUI::getNeighbor(v24, 0xB16u, v23, 5u, a2) )
{
v14 = 2861;
goto LABEL_87;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, (const struct cocos2d::CCPoint *)&v66);
if ( !EditorUI::getNeighbor(v26, 0xB16u, v25, 6u, a2) )
{
v14 = 2861;
goto LABEL_88;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, (const struct cocos2d::CCPoint *)&v66);
if ( !EditorUI::getNeighbor(v28, 0xB16u, v27, 7u, a2) )
{
v14 = 2863;
goto LABEL_88;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, (const struct cocos2d::CCPoint *)&v66);
if ( !EditorUI::getNeighbor(v30, 0xB16u, v29, 8u, a2) )
{
v14 = 2863;
LABEL_87:
v13 = 1;
LABEL_88:
v31 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v9 + 1208LL))(
v9,
v63);
Object = (struct cocos2d::CCObject *)EditorUI::createObject(v3, v14, v31);
v33 = *(_QWORD *)Object;
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 360LL))(v9);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v33 + 352))(Object);
v34 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 1272LL))(v9);
if ( v13 )
v34 = v34 == 0;
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)Object + 1088LL))(Object, v34);
v35 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 1280LL))(v9);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)Object + 1096LL))(Object, v35);
v36 = roundf(*((float *)v9 + 290) * 1000.0);
*((_DWORD *)Object + 16) = 0;
v37 = *(_QWORD *)Object;
v38 = (float)(int)v36 / 1000.0;
*((float *)Object + 290) = v38;
*((float *)Object + 249) = v38;
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v37 + 1288))(Object);
*((_BYTE *)Object + 848) = 1;
*((_BYTE *)Object + 872) = 1;
v39 = roundf(*((float *)v9 + 291) * 1000.0);
*((_DWORD *)Object + 17) = 0;
v40 = *(_QWORD *)Object;
v41 = (float)(int)v39 / 1000.0;
*((float *)Object + 291) = v41;
*((float *)Object + 250) = v41;
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v40 + 1296))(Object);
v7 = v67;
*((_BYTE *)Object + 848) = 1;
*((_BYTE *)Object + 872) = 1;
*((_WORD *)Object + 606) = *((_WORD *)v9 + 605) + 3;
cocos2d::CCArray::addObject(v7, Object);
if ( v12 > 0 )
{
v42 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v9 + 1208LL))(
v9,
v64);
v43 = EditorUI::createObject(a1, v12, v42);
v44 = *(_QWORD *)v43;
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 360LL))(v9);
(*(void (__fastcall **)(__int64))(v44 + 352))(v43);
v45 = *(_QWORD *)v43;
v46 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 1272LL))(v9);
(*(void (__fastcall **)(__int64, _QWORD))(v45 + 1088))(v43, v46);
v47 = *(_QWORD *)v43;
v48 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 1280LL))(v9);
(*(void (__fastcall **)(__int64, _QWORD))(v47 + 1096))(v43, v48);
v49 = roundf(*((float *)v9 + 290) * 1000.0);
*(_DWORD *)(v43 + 64) = 0;
v50 = *(_QWORD *)v43;
v51 = (float)(int)v49 / 1000.0;
*(float *)(v43 + 1160) = v51;
*(float *)(v43 + 996) = v51;
(*(void (__fastcall **)(__int64))(v50 + 1288))(v43);
*(_BYTE *)(v43 + 848) = 1;
*(_BYTE *)(v43 + 872) = 1;
v52 = roundf(*((float *)v9 + 291) * 1000.0);
*(_DWORD *)(v43 + 68) = 0;
v53 = *(_QWORD *)v43;
v54 = (float)(int)v52 / 1000.0;
*(float *)(v43 + 1164) = v54;
*(float *)(v43 + 1000) = v54;
(*(void (__fastcall **)(__int64))(v53 + 1296))(v43);
*(_BYTE *)(v43 + 848) = 1;
*(_BYTE *)(v43 + 872) = 1;
*(_WORD *)(v43 + 1212) = *((_WORD *)v9 + 605) + 3;
cocos2d::CCArray::addObject(v7, (struct cocos2d::CCObject *)v43);
}
v3 = a1;
goto LABEL_93;
}
LABEL_95:
v7 = v67;
LABEL_93:
if ( ++v8 >= cocos2d::CCArray::count(v5) )
return v7;
}
v14 = 2853;
goto LABEL_88;
}
return v7;
}