//
// EditorUI::getNeighbor from 0x10047a0ac to 0x10047a18c (224 bytes)
//
// 13 xrefs:
// > EditorUI::convertKeyBasedOnNeighbors @ 0x1000805e0
// > EditorUI::convertKeyBasedOnNeighbors @ 0x100080608
// > EditorUI::convertKeyBasedOnNeighbors @ 0x100080630
// > EditorUI::convertKeyBasedOnNeighbors @ 0x100080658
// > EditorUI::createOutlines @ 0x1000812a4
// > EditorUI::createOutlines @ 0x1000812cc
// > EditorUI::createOutlines @ 0x1000812f4
// > EditorUI::createOutlines @ 0x10008131c
// > EditorUI::createOutlines @ 0x100081344
// > EditorUI::createOutlines @ 0x10008136c
// > EditorUI::createOutlines @ 0x100081394
// > EditorUI::createOutlines @ 0x1000813bc
// > EditorUI::processSmartObjectsFromType @ 0x100479ee4
//
// 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 11:05:43 +0000
//
__int64 __fastcall EditorUI::getNeighbor(__int64 a1, __int64 a2, float32x2_t *a3, int a4, __int64 a5)
{
float32x2_t v7; // kr00_8
unsigned int v8; // w20
__int64 v9; // x21
int v10; // w24
__int64 v11; // x0
float32x2_t v13; // [xsp+0h] [xbp-50h] BYREF
float32x2_t v14; // [xsp+8h] [xbp-48h] BYREF
GJSmartTemplate::offsetForDir(a4, a2, (__int64)&v13);
sub_100026318(a3, &v13, &v14);
v7 = v14;
if ( !(unsigned int)sub_1002E757C(a5) )
return 0;
v8 = 0;
while ( 1 )
{
v9 = sub_1002E75A0(a5, v8);
v10 = (int)*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9);
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9);
if ( (int)v7.f32[0] == v10 && v7.i32[1] == *(int *)(v11 + 4) )
break;
if ( ++v8 >= (unsigned int)sub_1002E757C(a5) )
return 0;
}
return v9;
}