//
// EditorUI::edgeForObject from 0x53676c to 0x536998 (556 bytes)
//
// 1 xrefs:
// > EditorUI::createEdgeForObject @ 0x5369b2
//
// 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
//
int EditorUI::edgeForObject(EditorUI *a1, int a2, int a3)
{
bool v3; // zf
if ( a2 > 1433 )
{
if ( a2 == 1462 )
{
switch ( a3 )
{
case 0:
a1 = (EditorUI *)(&stru_65C + 2);
break;
case 1:
a1 = (EditorUI *)(&stru_64C + 15);
break;
case 2:
a1 = (EditorUI *)(&stru_65C + 6);
break;
case 3:
a1 = (EditorUI *)(&stru_64C + 11);
break;
case 4:
a1 = (EditorUI *)(&stru_65C + 14);
break;
case 5:
a1 = (EditorUI *)&stru_66C;
break;
case 6:
a1 = (EditorUI *)(&stru_65C + 15);
break;
case 7:
a1 = (EditorUI *)(&stru_65C + 13);
break;
default:
return 0;
}
}
else if ( a2 > 1462 )
{
if ( a2 == 1463 )
{
switch ( a3 )
{
case 0:
a1 = (EditorUI *)(&stru_65C + 3);
break;
case 1:
a1 = (EditorUI *)(&stru_64C + 14);
break;
case 2:
a1 = (EditorUI *)(&stru_65C + 7);
break;
case 3:
a1 = (EditorUI *)(&stru_64C + 10);
break;
case 4:
a1 = (EditorUI *)(&stru_66C + 2);
break;
case 5:
a1 = (EditorUI *)(&stru_66C + 4);
break;
case 6:
a1 = (EditorUI *)(&stru_66C + 3);
break;
case 7:
a1 = (EditorUI *)(&stru_66C + 1);
break;
default:
return 0;
}
}
else
{
if ( a2 != 1464 )
return 0;
switch ( a3 )
{
case 0:
a1 = (EditorUI *)(&stru_65C + 4);
break;
case 1:
a1 = (EditorUI *)&stru_65C;
break;
case 2:
a1 = (EditorUI *)(&stru_65C + 8);
break;
case 3:
a1 = (EditorUI *)(&stru_64C + 12);
break;
case 4:
a1 = (EditorUI *)(&stru_66C + 6);
break;
case 5:
a1 = (EditorUI *)(&stru_66C + 8);
break;
case 6:
a1 = (EditorUI *)(&stru_66C + 7);
break;
case 7:
a1 = (EditorUI *)(&stru_66C + 5);
break;
default:
return 0;
}
}
}
else
{
if ( a2 != 1461 )
return 0;
switch ( a3 )
{
case 0:
a1 = (EditorUI *)(&stru_65C + 1);
break;
case 1:
a1 = (EditorUI *)(&stru_64C + 13);
break;
case 2:
a1 = (EditorUI *)(&stru_65C + 5);
break;
case 3:
a1 = (EditorUI *)(&stru_64C + 9);
break;
case 4:
a1 = (EditorUI *)(&stru_65C + 10);
break;
case 5:
a1 = (EditorUI *)(&stru_65C + 12);
break;
case 6:
a1 = (EditorUI *)(&stru_65C + 11);
break;
case 7:
a1 = (EditorUI *)(&stru_65C + 9);
break;
default:
return 0;
}
}
}
else if ( a2 >= 1431 )
{
switch ( a3 )
{
case 0:
a1 = (EditorUI *)(&stru_58C + 15);
break;
case 1:
a1 = (EditorUI *)&stru_59C;
break;
case 2:
a1 = (EditorUI *)(&stru_59C + 1);
break;
case 3:
a1 = (EditorUI *)(&stru_58C + 14);
break;
case 4:
a1 = (EditorUI *)(&stru_59C + 3);
break;
case 5:
a1 = (EditorUI *)(&stru_59C + 5);
break;
case 6:
a1 = (EditorUI *)(&stru_59C + 4);
break;
case 7:
a1 = (EditorUI *)(&stru_59C + 2);
break;
default:
return 0;
}
}
else
{
if ( a2 == 1349 )
{
if ( a3 == 1 )
return 1357;
if ( a3 == 4 )
return 1364;
v3 = a3 == 0;
if ( !a3 )
a1 = (EditorUI *)(&stru_54C + 4);
}
else if ( a2 > 1349 )
{
if ( a2 == 1350 )
{
if ( a3 == 3 )
return 1356;
if ( a3 == 6 )
return 1365;
v3 = a3 == 2;
a1 = (EditorUI *)(&stru_54C + 5);
}
else
{
if ( a2 != 1351 )
return 0;
if ( a3 == 2 )
return 1362;
if ( a3 == 5 )
return 1366;
v3 = a3 == 1;
a1 = (EditorUI *)(&stru_54C + 2);
}
}
else
{
if ( a2 != 1348 )
return 0;
if ( a3 == 3 )
return 1395;
if ( a3 == 7 )
return 1363;
v3 = a3 == 0;
a1 = (EditorUI *)(&stru_54C + 3);
}
if ( !v3 )
return 0;
}
return (int)a1;
}