//
// GJTransformControl::loadValues from 0x6eed44 to 0x6eede2 (158 bytes)
//
// 2 xrefs:
// > GJTransformControl::applyFreeRotation @ 0x6eee68
// > EditorUI::updateTransformControl @ 0x710184
//
// 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:34 +0000
//
int __fastcall GJTransformControl::loadValues(
GJTransformControl *this,
cocos2d::CCArray *a2,
cocos2d::CCArray *a3,
int a4)
{
cocos2d::CCObject *v5; // r4
cocos2d::CCObject *v8; // r0
unsigned int v9; // r5
GameObject *v10; // r0
GameObject *v11; // r8
float v12; // r1
float v13; // r2
int v14; // r3
GameObjectEditorState *v15; // r0
unsigned int v17[2]; // [sp+0h] [bp-8h] BYREF
v17[0] = (unsigned int)this;
v17[1] = (unsigned int)a2;
v5 = a3;
if ( a2 && (!a3 || !cocos2d::CCArray::count(a3)) )
v5 = (cocos2d::CCObject *)cocos2d::CCArray::createWithObject(a2, a2);
if ( v5 )
cocos2d::CCObject::retain(v5);
v8 = *((cocos2d::CCObject **)this + 81);
if ( v8 )
cocos2d::CCObject::release(v8);
*((_DWORD *)this + 81) = v5;
if ( v5 && cocos2d::CCArray::count(v5) )
{
v9 = 0;
while ( v9 < cocos2d::CCArray::count(v5) )
{
v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(v5, v9++);
v11 = v10;
GameObject::updateStartPos(v10, v12, v13, v14);
v17[0] = *((_DWORD *)v11 + 195);
v15 = (GameObjectEditorState *)std::unordered_map::operator[](a4, v17);
GameObjectEditorState::loadValues(v15, v11);
}
}
return GJTransformControl::updateButtons(this, 1, 0);
}