//
// EditorUI::checkDiffAfterTransformAnchor from 0x140203a10 to 0x140203cc2 (690 bytes)
//
// 6 xrefs:
// > GJTransformControl::refreshControl @ 0x1401a59dc
// > GJTransformControl::ccTouchEnded @ 0x1401a7f9a
// > GJTransformControl::moveAnchorTo @ 0x1401a8402
// > ??> @ 0x1408a4178
// > ??> @ 0x1408a4188
// > ??> @ 0x14091b104
//
// 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:28:14 +0000
//
__int64 __fastcall EditorUI::checkDiffAfterTransformAnchor(__int64 a1, __int64 a2, __int64 a3, cocos2d::CCArray *a4)
{
const struct cocos2d::CCPoint *v8; // rax
__int64 v9; // rbx
__int64 v10; // rax
unsigned int i; // edi
__int64 v12; // rbx
unsigned __int8 v14[8]; // [rsp+20h] [rbp-88h] BYREF
_BYTE v15[8]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v16[8]; // [rsp+30h] [rbp-78h] BYREF
_BYTE v17[8]; // [rsp+38h] [rbp-70h] BYREF
_BYTE v18[24]; // [rsp+40h] [rbp-68h] BYREF
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL));
v8 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL)
+ 200LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1512)
+ 4296LL));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 160LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL));
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL),
&unk_14090A7A8);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 848) + 184LL))(*(_QWORD *)(a1 + 848), &unk_14090A7A8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 848) + 120LL))(*(_QWORD *)(a1 + 848));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 848) + 136LL))(*(_QWORD *)(a1 + 848));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 848) + 368LL))(*(_QWORD *)(a1 + 848));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 848) + 384LL))(*(_QWORD *)(a1 + 848));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 848) + 256LL))(*(_QWORD *)(a1 + 848));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 848) + 272LL))(*(_QWORD *)(a1 + 848));
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 848) + 816LL))(*(_QWORD *)(a1 + 848), v18);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 856) + 184LL))(*(_QWORD *)(a1 + 856), &unk_14090A7A8);
v9 = *(_QWORD *)(a1 + 848);
v10 = (*(__int64 (**)(void))(*(_QWORD *)v9 + 200LL))();
cocos2d::CCNode::convertToWorldSpace(v9, v15, v10);
cocos2d::CCPoint::operator+(a3, v14, v15);
cocos2d::CCPoint::operator=(v15, v14);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 848), a2, v15);
for ( i = 0; i < cocos2d::CCArray::count(a4); ++i )
{
*(_DWORD *)v14 = *((_DWORD *)cocos2d::CCArray::objectAtIndex(a4, i) + 231);
v12 = *(_QWORD *)sub_1401A8A10((_QWORD *)(a1 + 464), (__int64)v18, v14);
cocos2d::CCPoint::operator+(v12 + 20, v16, a2);
cocos2d::CCPoint::operator=(v12 + 20, v16);
}
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 160LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL));
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL),
v17);
return a2;
}