//
// EditorUI::updateTransformControl from 0x71006c to 0x710226 (442 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorUI::updateTransformControl @ 0x710234
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:44 +0000
//
cocos2d::CCArray *__fastcall EditorUI::updateTransformControl(EditorUI *this)
{
cocos2d::CCArray *result; // r0
int v3; // r2
int v4; // r6
float v5; // r0
cocos2d::CCObject *v6; // r1
unsigned int v7; // r2
cocos2d::CCArray *v8; // r0
int v9; // r0
float v10; // s16
cocos2d::CCArray *v11; // r0
cocos2d::CCArray *v12; // r6
_BYTE v13[8]; // [sp+1Ch] [bp-10h] BYREF
result = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 149) + 176))(*((_DWORD *)this + 149));
if ( result )
{
v3 = *((unsigned __int8 *)this + 392);
*((_DWORD *)this + 91) = 1065353216;
*((_DWORD *)this + 92) = 1065353216;
*((_DWORD *)this + 93) = 0;
*((_DWORD *)this + 107) = 1065353216;
*((_DWORD *)this + 108) = 1065353216;
*((_DWORD *)this + 94) = 0;
*((_DWORD *)this + 95) = 0;
*((_DWORD *)this + 96) = 0;
*((_DWORD *)this + 99) = 0;
*((_DWORD *)this + 100) = 0;
*((_DWORD *)this + 101) = 0;
*((_DWORD *)this + 102) = 0;
if ( v3 )
{
v4 = *((_DWORD *)this + 249);
*((_BYTE *)this + 392) = 0;
if ( v4 )
{
v5 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v4 + 184))(v4));
LABEL_11:
v10 = v5;
if ( v5 != 0.0 && !*(_BYTE *)(*((_DWORD *)this + 149) + 459) )
{
v11 = *((cocos2d::CCArray **)this + 249);
if ( v11 )
v12 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v11, v6);
else
v12 = *((cocos2d::CCArray **)this + 167);
EditorUI::resetObjectEditorValues((unsigned int)this, v12, v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (EditorUI *)((char *)this + 580));
EditorUI::transformObjects(
(int)this,
v12,
(cocos2d::CCPoint *)v13,
1065353216,
1065353216,
COERCE_INT(-v10),
COERCE_INT(-v10),
0,
0);
}
goto LABEL_9;
}
v8 = *((cocos2d::CCArray **)this + 167);
if ( v8 && cocos2d::CCArray::count(v8) )
{
v9 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 167), 0);
v5 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v9 + 184))(v9));
goto LABEL_11;
}
v10 = 0.0;
}
else
{
v10 = 0.0;
}
LABEL_9:
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 64))(
*((_DWORD *)this + 150),
*((_DWORD *)this + 91));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 72))(
*((_DWORD *)this + 150),
*((_DWORD *)this + 92));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 188))(
*((_DWORD *)this + 150),
*((_DWORD *)this + 93));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 196))(
*((_DWORD *)this + 150),
*((_DWORD *)this + 94));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 132))(
*((_DWORD *)this + 150),
*((_DWORD *)this + 95));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 140))(
*((_DWORD *)this + 150),
*((_DWORD *)this + 96));
result = (cocos2d::CCArray *)GJTransformControl::loadValues(
*((GJTransformControl **)this + 149),
*((cocos2d::CCArray **)this + 249),
*((cocos2d::CCArray **)this + 167),
(int)this + 344);
if ( v10 != 0.0 )
return GJTransformControl::applyRotation(*((GJTransformControl **)this + 149), v10);
}
return result;
}