//
// EditorUI::updateTransformControl from 0xc042f0 to 0xc0451c (556 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorUI::updateTransformControl @ 0xc04520
// > ??> @ 0x896c8
// > ??> @ 0x1437208
//
// 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:03:50 +0000
//
__int64 __fastcall EditorUI::updateTransformControl(EditorUI *this)
{
int v2; // w0
float v3; // s8
__int64 v4; // x0
cocos2d::CCObject *v5; // x1
cocos2d::CCArray *v6; // x0
cocos2d::CCArray *v7; // x22
cocos2d::CCArray *v9; // x0
_BYTE v10[8]; // [xsp+50h] [xbp+50h] BYREF
if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 99) + 352LL))(*((_QWORD *)this + 99)) )
return _stack_chk_guard;
v2 = *((unsigned __int8 *)this + 532);
*((float *)this + 126) = 1.0;
*((float *)this + 127) = 1.0;
*((_DWORD *)this + 128) = 0;
*((_DWORD *)this + 129) = 0;
*((_DWORD *)this + 130) = 0;
*((_DWORD *)this + 131) = 0;
*((_DWORD *)this + 134) = 0;
*((_DWORD *)this + 135) = 0;
*((_DWORD *)this + 136) = 0;
*((_DWORD *)this + 137) = 0;
*((float *)this + 142) = 1.0;
*((float *)this + 143) = 1.0;
v3 = 0.0;
if ( v2 )
{
v4 = *((_QWORD *)this + 187);
*((_BYTE *)this + 532) = 0;
if ( v4 )
{
LABEL_4:
v3 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v4 + 368LL))(v4);
if ( v3 != 0.0 && !*(_BYTE *)(*((_QWORD *)this + 99) + 603LL) )
{
v6 = *((cocos2d::CCArray **)this + 187);
if ( v6 )
v7 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v6, v5);
else
v7 = *((cocos2d::CCArray **)this + 112);
EditorUI::resetObjectEditorValues(this, v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (EditorUI *)((char *)this + 768));
EditorUI::transformObjects((__int64)this, v7, (cocos2d::CCPoint *)v10, 1.0, 1.0, -v3, -v3, 0.0, 0.0);
}
goto LABEL_9;
}
v9 = *((cocos2d::CCArray **)this + 112);
if ( v9 && (unsigned int)cocos2d::CCArray::count(v9) )
{
v4 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), 0);
goto LABEL_4;
}
v3 = 0.0;
}
LABEL_9:
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 100) + 128LL))(*((_QWORD *)this + 100));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 144LL))(
*((_QWORD *)this + 100),
*((float *)this + 127));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 376LL))(
*((_QWORD *)this + 100),
*((float *)this + 128));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 392LL))(
*((_QWORD *)this + 100),
*((float *)this + 129));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 264LL))(
*((_QWORD *)this + 100),
*((float *)this + 130));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 280LL))(
*((_QWORD *)this + 100),
*((float *)this + 131));
GJTransformControl::loadValues(
*((GJTransformControl **)this + 99),
*((cocos2d::CCArray **)this + 187),
*((cocos2d::CCArray **)this + 112),
(__int64)this + 464);
if ( v3 != 0.0 )
GJTransformControl::applyRotation(*((GJTransformControl **)this + 99), v3);
return _stack_chk_guard;
}