//
// EditorUI::createEdgeForObject from 0x66bae8 to 0x66bbe2 (250 bytes)
//
// 3 xrefs:
// > EditorUI::createRockEdges @ 0x66bcf4
// > EditorUI::createRockEdges @ 0x66bd8c
// > EditorUI::createRockEdges @ 0x66bda6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:45 +0000
//
GameObject *__fastcall EditorUI::createEdgeForObject(EditorUI *this, GameObject *a2, int a3)
{
GameObject *v6; // r9
float v7; // r1
float v8; // r2
GameObject *result; // r0
_BYTE v10[8]; // [sp+4h] [bp-28h] BYREF
_BYTE v11[8]; // [sp+Ch] [bp-20h] BYREF
_BYTE v12[8]; // [sp+14h] [bp-18h] BYREF
_BYTE v13[8]; // [sp+1Ch] [bp-10h] BYREF
v6 = (GameObject *)EditorUI::edgeForObject(this, *((_DWORD *)a2 + 223), a3);
if ( (int)v6 <= 0 )
return nullptr;
offsetForKey((cocos2d::CCPoint *)v10);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)&unk_D2D1E8);
switch ( a3 )
{
case 0:
v7 = 0.0;
goto LABEL_14;
case 1:
v7 = 30.0;
goto LABEL_7;
case 2:
v7 = 0.0;
goto LABEL_10;
case 3:
v7 = -30.0;
LABEL_7:
v8 = 0.0;
goto LABEL_15;
case 4:
v7 = 30.0;
goto LABEL_12;
case 5:
v7 = 30.0;
LABEL_10:
v8 = -30.0;
goto LABEL_15;
case 6:
v7 = -30.0;
LABEL_12:
v8 = v7;
goto LABEL_15;
case 7:
v7 = -30.0;
LABEL_14:
v8 = 30.0;
LABEL_15:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v7, v8);
cocos2d::CCPoint::operator=(v11, v13);
break;
default:
break;
}
(*(void (__fastcall **)(_BYTE *, GameObject *))(*(_DWORD *)a2 + 680))(v12, a2);
cocos2d::CCPoint::operator+(v13, v12, v10);
cocos2d::CCPoint::operator=(v12, v13);
cocos2d::CCPoint::operator+(v13, v12, v11);
cocos2d::CCPoint::operator=(v12, v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12);
result = EditorUI::createObject((int)this, v6, (const cocos2d::CCPoint *)v13);
if ( result )
*((_WORD *)result + 520) = *((_WORD *)a2 + 519) + 1;
return result;
}