//
// EditorUI::resetObjectEditorValues from 0x140203800 to 0x1402038b5 (181 bytes)
//
// 5 xrefs:
// > GJTransformControl::applyFreeRotation @ 0x1401a81d5
// > EditorUI::updateTransformControl @ 0x1402036ba
// > ??> @ 0x1408a4114
// > ??> @ 0x1408a4148
// > ??> @ 0x14091b0b0
//
// This function is hookable on this platform (idp: pc, 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:28:14 +0000
//
void __fastcall EditorUI::resetObjectEditorValues(__int64 a1, cocos2d::CCArray *a2)
{
unsigned int v4; // esi
_QWORD *v5; // rbp
struct cocos2d::CCObject *v6; // rbx
__int64 v7; // rax
_BYTE v8[24]; // [rsp+20h] [rbp-18h] BYREF
int v9; // [rsp+48h] [rbp+10h] BYREF
if ( a2 )
{
if ( cocos2d::CCArray::count(a2) )
{
v4 = 0;
if ( cocos2d::CCArray::count(a2) )
{
v5 = (_QWORD *)(a1 + 464);
do
{
v6 = cocos2d::CCArray::objectAtIndex(a2, v4);
GameObject::updateStartPos(v6);
v9 = *((_DWORD *)v6 + 231);
v7 = sub_1401A8A10(v5, (__int64)v8, (unsigned __int8 *)&v9);
GameObjectEditorState::loadValues((float *)(*(_QWORD *)v7 + 20LL), (float *)v6);
++v4;
}
while ( v4 < cocos2d::CCArray::count(a2) );
}
}
}
}