//
// EditorUI::updateTransformControl from 0x140203590 to 0x1402037f1 (609 bytes)
//
// 4 xrefs:
// > ??> @ 0x140751768
// > ??> @ 0x1408a4078
// > ??> @ 0x1408a40f4
// > ??> @ 0x14091b044
//
// 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
//
__int64 __fastcall EditorUI::updateTransformControl(__int64 a1)
{
double v1; // xmm0_8
__int64 result; // rax
float v4; // xmm7_4
__int64 v5; // rcx
cocos2d::CCArray **v6; // rdi
cocos2d::CCArray *v7; // rcx
struct cocos2d::CCObject *v8; // rax
struct cocos2d::CCObject *v9; // rcx
struct cocos2d::CCArray *v10; // rdi
cocos2d::CCPoint *v11; // rax
char v12; // [rsp+90h] [rbp+8h] BYREF
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 400) + 344LL))(*(_QWORD *)(a1 + 400));
if ( (_BYTE)result )
{
*(_QWORD *)(a1 + 100) = 0;
v4 = 0.0;
*(_DWORD *)(a1 + 108) = 0;
*(_QWORD *)(a1 + 120) = 0;
*(_QWORD *)(a1 + 128) = 0;
*(_DWORD *)(a1 + 88) = 1065353216;
*(_QWORD *)(a1 + 92) = 1065353216;
*(_DWORD *)(a1 + 152) = 1065353216;
*(_DWORD *)(a1 + 156) = 1065353216;
if ( *(_BYTE *)(a1 + 116) )
{
v5 = *(_QWORD *)(a1 + 1128);
*(_BYTE *)(a1 + 116) = 0;
if ( v5 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 360LL))(v5);
v6 = (cocos2d::CCArray **)(a1 + 504);
LABEL_8:
v4 = *(float *)&v1;
if ( *(float *)&v1 != 0.0 && !*(_BYTE *)(*(_QWORD *)(a1 + 400) + 603LL) )
{
v9 = *(struct cocos2d::CCObject **)(a1 + 1128);
if ( v9 )
v10 = cocos2d::CCArray::createWithObject(v9);
else
v10 = *v6;
EditorUI::resetObjectEditorValues(a1 - 440, v10);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, (const struct cocos2d::CCPoint *)(a1 + 376));
EditorUI::transformObjects(a1 - 440, v10, v11);
}
goto LABEL_14;
}
v6 = (cocos2d::CCArray **)(a1 + 504);
v7 = *(cocos2d::CCArray **)(a1 + 504);
if ( v7 && cocos2d::CCArray::count(v7) )
{
v8 = cocos2d::CCArray::objectAtIndex(*v6, 0);
v1 = (*(double (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v8 + 360LL))(v8);
goto LABEL_8;
}
}
LABEL_14:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 120LL))(*(_QWORD *)(a1 + 408));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 136LL))(*(_QWORD *)(a1 + 408));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 368LL))(*(_QWORD *)(a1 + 408));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 384LL))(*(_QWORD *)(a1 + 408));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 256LL))(*(_QWORD *)(a1 + 408));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 272LL))(*(_QWORD *)(a1 + 408));
result = GJTransformControl::loadValues(
*(_QWORD *)(a1 + 400),
*(struct cocos2d::CCObject **)(a1 + 1128),
*(cocos2d::CCArray **)(a1 + 504),
a1 + 24);
if ( v4 != 0.0 )
return GJTransformControl::applyRotation(*(_QWORD *)(a1 + 400), v4);
}
return result;
}