//
// EditorUI::createEdgeForObject from 0xb078c0 to 0xb07ae4 (548 bytes)
//
// 7 xrefs:
// > EditorUI::createRockEdges @ 0xb07c5c
// > EditorUI::createRockEdges @ 0xb07ca0
// > EditorUI::createRockEdges @ 0xb07cf0
// > EditorUI::createRockEdges @ 0xb07e74
// > EditorUI::createRockEdges @ 0xb07eb0
// > EditorUI::createRockEdges @ 0xb07ef4
// > ??> @ 0x9c940
//
// 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 13:01:24 +0000
//
float *__fastcall EditorUI::createEdgeForObject(EditorUI *this, GameObject *a2, int a3)
{
int v6; // w0
unsigned int v7; // w24
float *result; // x0
float v9; // s0
float v10; // s0
float v11; // s0
__int64 v12; // [xsp+58h] [xbp+58h] BYREF
_BYTE v13[8]; // [xsp+60h] [xbp+60h] BYREF
__int64 v14; // [xsp+68h] [xbp+68h] BYREF
__int64 v15; // [xsp+70h] [xbp+70h] BYREF
v6 = EditorUI::edgeForObject(this, *((_DWORD *)a2 + 257), a3);
v7 = v6;
if ( v6 <= 0 )
return nullptr;
offsetForKey(&v12, v6);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)&unk_155E0B0);
switch ( a3 )
{
case 0:
v11 = 0.0;
goto LABEL_16;
case 1:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 30.0, 0.0);
cocos2d::CCPoint::operator=(v13, &v15);
break;
case 2:
v10 = 0.0;
goto LABEL_10;
case 3:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, -30.0, 0.0);
cocos2d::CCPoint::operator=(v13, &v15);
break;
case 4:
v9 = 30.0;
goto LABEL_8;
case 5:
v10 = 30.0;
LABEL_10:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v10, -30.0);
cocos2d::CCPoint::operator=(v13, &v15);
break;
case 6:
v9 = -30.0;
LABEL_8:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v9, v9);
cocos2d::CCPoint::operator=(v13, &v15);
break;
case 7:
v11 = -30.0;
LABEL_16:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v11, 30.0);
cocos2d::CCPoint::operator=(v13, &v15);
break;
default:
break;
}
(*(void (__fastcall **)(__int64 *__return_ptr, GameObject *))(*(_QWORD *)a2 + 1360LL))(&v14, a2);
cocos2d::CCPoint::operator+(&v15, &v14);
cocos2d::CCPoint::operator=(&v14, &v15);
cocos2d::CCPoint::operator+(&v15, &v14);
cocos2d::CCPoint::operator=(&v14, &v15);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, (const cocos2d::CCPoint *)&v14);
result = EditorUI::createObject((__int64)this, v7, (const cocos2d::CCPoint *)&v15);
if ( !result )
return nullptr;
*((_WORD *)result + 602) = *((_WORD *)a2 + 601) + 1;
return result;
}