//
// GJTransformControl::refreshControl from 0xbd16e8 to 0xbd18a4 (444 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::handleAction @ 0x7a2304
// > EditorUI::ccTouchMoved @ 0xbd5fd0
// > EditorUI::ccTouchEnded @ 0xbd691c
// > EditorUI::moveObjectCall @ 0xc026d0
// > ??> @ 0xb90e0
//
// 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:37 +0000
//
__int64 __fastcall GJTransformControl::refreshControl(GJTransformControl *this)
{
__int64 v2; // x25
void (__fastcall *v3)(__int64, __int64 *); // x26
__int64 v4; // x0
const cocos2d::CCPoint *v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
const cocos2d::CCPoint *v10; // x0
long double v11; // q0
__int64 v12; // x23
_BYTE v14[8]; // [xsp+50h] [xbp+50h] BYREF
_BYTE v15[8]; // [xsp+58h] [xbp+58h] BYREF
__int64 v16; // [xsp+60h] [xbp+60h] BYREF
__int64 v17; // [xsp+68h] [xbp+68h] BYREF
__int64 v18; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14);
v2 = *((_QWORD *)this + 55);
if ( v2 )
{
v3 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v2 + 104LL);
v4 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 1);
v5 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4);
cocos2d::CCNode::convertToWorldSpace(&v18, this, v5);
v3(v2, &v18);
v6 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 1);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 184LL))(v6, &unk_155E9F0);
v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 53), 0);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);
cocos2d::CCPoint::operator=(v14, v8);
GJTransformControl::updateButtons(this, 0, 1u);
GJTransformControl::updateButtons(this, 0, 0);
v9 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 53), 0);
v10 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v10);
cocos2d::CCPoint::operator-(&v16, v14, v15, v11);
v12 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 55) + 120LL))(*((_QWORD *)this + 55));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, (const cocos2d::CCPoint *)&v16);
EditorUI::checkDiffAfterTransformAnchor(&v17, v12, &v18, *((_QWORD *)this + 53));
GJTransformControl::updateButtons(this, 0, 1u);
}
GJTransformControl::updateButtons(this, 0, 0);
return _stack_chk_guard;
}