//
// GJTransformControl::moveAnchorTo from 0x1401a82b0 to 0x1401a8438 (392 bytes)
//
// 5 xrefs:
// > GJTransformControl::ccTouchBegan @ 0x1401a7230
// > GJTransformControl::ccTouchEnded @ 0x1401a7eef
// > ??> @ 0x1408a0de4
// > ??> @ 0x1408a0df4
// > ??> @ 0x140919c70
//
// This function is hookable on this platform (idp: pc, 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 11:27:51 +0000
//
void __fastcall GJTransformControl::moveAnchorTo(__int64 a1, const struct cocos2d::CCPoint *a2)
{
cocos2d::CCArray *v4; // rcx
struct cocos2d::CCObject *v5; // rax
const struct cocos2d::CCPoint *v6; // rax
__int64 *v7; // rdi
__int64 v8; // rbx
__int64 v9; // rax
struct cocos2d::CCObject *v10; // rax
struct cocos2d::CCObject *v11; // rax
const struct cocos2d::CCPoint *v12; // rax
__int64 v13; // rsi
__int64 v14; // rbp
__int64 (__fastcall *v15)(__int64); // rdi
__int64 v16; // rax
__int64 v17; // rbx
__int64 v18; // rax
_BYTE v19[8]; // [rsp+20h] [rbp-38h] BYREF
_BYTE v20[8]; // [rsp+28h] [rbp-30h] BYREF
char v21; // [rsp+60h] [rbp+8h] BYREF
char v22; // [rsp+70h] [rbp+18h] BYREF
char v23; // [rsp+78h] [rbp+20h] BYREF
if ( *(_QWORD *)(a1 + 440) )
{
v4 = *(cocos2d::CCArray **)(a1 + 424);
if ( v4 )
{
if ( cocos2d::CCArray::count(v4) )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 424), 0);
v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v5 + 200LL))(v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, v6);
v7 = *(__int64 **)(a1 + 440);
v8 = *v7;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, a2);
(*(void (__fastcall **)(__int64 *, __int64))(v8 + 104))(v7, v9);
v10 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 512), 0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, void *))(*(_QWORD *)v10 + 184LL))(v10, &unk_14090A6C8);
GJTransformControl::updateButtons(a1, 0, 1);
GJTransformControl::updateButtons(a1, 0, 0);
v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 424), 0);
v12 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 200LL))(v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, v12);
cocos2d::CCPoint::operator-(&v22, &v23, &v21);
v13 = *(_QWORD *)(a1 + 440);
v14 = *(_QWORD *)(a1 + 424);
v15 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 120LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, (const struct cocos2d::CCPoint *)&v23);
v17 = v16;
v18 = v15(v13);
EditorUI::checkDiffAfterTransformAnchor(v18, v20, v17, v14);
GJTransformControl::updateButtons(a1, 0, 1);
GJTransformControl::updateButtons(a1, 0, 0);
}
}
}
}