//
// GJTransformControl::refreshControl from 0x6b91b4 to 0x6b9370 (444 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::handleAction @ 0x672a48
// > EditorUI::moveObjectCall @ 0x6b952c
// > EditorUI::ccTouchMoved @ 0x6c1d08
// > EditorUI::ccTouchEnded @ 0x6c30c0
// > ??> @ 0x8bad0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJTransformControl::refreshControl(GJTransformControl *a1)
{
GJTransformControlDelegate *m_delegate; // x25
void (__fastcall *anchorPointMoved)(GJTransformControlDelegate *__hidden, cocos2d::CCPoint); // x26
cocos2d::CCSprite *v4; // x0
const cocos2d::CCPoint *v5; // x0
cocos2d::CCSprite *v6; // x0
__int64 v7; // x0
float v8; // s0
float v9; // s1
__int64 v10; // x0
const cocos2d::CCPoint *v11; // x0
EditorUI *v12; // x23
cocos2d::CCPoint v13; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint v14; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCPoint v15; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint v16; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCPoint v17; // 0:kr00_8.8
cocos2d::CCPoint v18; // 0:s0.4,4:s1.4
cocos2d::CCPoint::CCPoint(&v13);
m_delegate = a1->m_delegate;
if ( m_delegate )
{
anchorPointMoved = m_delegate->anchorPointMoved;
v4 = GJTransformControl::spriteByTag(a1, 1);
v5 = v4->getPosition(v4);
v17 = cocos2d::CCNode::convertToWorldSpace(a1, v5);
((void (__fastcall *)(GJTransformControlDelegate *, cocos2d::CCPoint *, float, float))anchorPointMoved)(
m_delegate,
&v16,
v17.x,
v17.y);
v6 = GJTransformControl::spriteByTag(a1, 1);
v6->setPosition(v6, (const cocos2d::CCPoint *)&dword_1242110);
v7 = cocos2d::CCArray::objectAtIndex(a1->m_objects, 0);
v8 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);
cocos2d::CCPoint::operator=(&v13, v8, v9);
GJTransformControl::updateButtons(a1, 0, 1);
GJTransformControl::updateButtons(a1, 0, 0);
v10 = cocos2d::CCArray::objectAtIndex(a1->m_objects, 0);
v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 192LL))(v10);
cocos2d::CCPoint::CCPoint(&v14, v11);
cocos2d::CCPoint::operator-(&v15, &v13, &v14);
v12 = a1->m_delegate->getUI(a1->m_delegate);
cocos2d::CCPoint::CCPoint(&v16, &v15);
EditorUI::checkDiffAfterTransformAnchor(v12, v18, (cocos2d::CCArray *)&v16);
GJTransformControl::updateButtons(a1, 0, 1);
}
GJTransformControl::updateButtons(a1, 0, 0);
}