//
// sub_100160780 from 0x100160780 to 0x10016083c (188 bytes)
//
// 2 xrefs:
// > sub_10015C1F8 @ 0x10015c2cc
// > EditorUI::updateTransformControl @ 0x100160694
//
// 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 10:59:46 +0000
//
__int64 __fastcall sub_100160780(__int64 result, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x21
float32x2_t *v5; // x23
__int64 *v6; // x0
int v7; // [xsp+0h] [xbp-40h] BYREF
int *v8; // [xsp+8h] [xbp-38h]
if ( a2 )
{
v3 = result;
result = sub_1002E757C(a2);
if ( (_DWORD)result )
{
result = sub_1002E757C(a2);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = (float32x2_t *)sub_1002E75A0(a2, v4);
GameObject::updateStartPos();
v7 = v5[114].i32[1];
v8 = &v7;
v6 = sub_10015CA10(v3 + 464, &v7);
GameObjectEditorState::loadValues((float32x2_t *)((char *)v6 + 20), v5);
v4 = (unsigned int)(v4 + 1);
result = sub_1002E757C(a2);
}
while ( (unsigned int)v4 < (unsigned int)result );
}
}
}
return result;
}