//
// EditorUI::checkDiffAfterTransformAnchor from 0x710238 to 0x7103dc (420 bytes)
//
// 3 xrefs:
// > GJTransformControl::refreshControl @ 0x6ecaee
// > GJTransformControl::moveAnchorTo @ 0x6ecccc
// > GJTransformControl::ccTouchEnded @ 0x6ef100
//
// 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:44 +0000
//
cocos2d::CCNode *__fastcall EditorUI::checkDiffAfterTransformAnchor(
cocos2d::CCNode *a1,
int a2,
int a3,
cocos2d::CCArray *a4)
{
int v7; // r11
const cocos2d::CCPoint *v8; // r0
unsigned int v9; // r7
int v10; // r0
cocos2d::CCPoint *v12; // [sp+0h] [bp-3Ch]
_DWORD *v14; // [sp+4h] [bp-38h]
_BYTE v15[8]; // [sp+Ch] [bp-30h] BYREF
_BYTE v16[8]; // [sp+14h] [bp-28h] BYREF
unsigned int v17[6]; // [sp+1Ch] [bp-20h] BYREF
v7 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*(_DWORD *)(a2 + 944) + 2436) + 84))(*(_DWORD *)(*(_DWORD *)(a2 + 944) + 2436));
v8 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*(_DWORD *)(a2 + 944) + 2436) + 96))(*(_DWORD *)(*(_DWORD *)(a2 + 944) + 2436));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v8);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(*(_DWORD *)(a2 + 944) + 2436) + 80))(
*(_DWORD *)(*(_DWORD *)(a2 + 944) + 2436),
1065353216);
(*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(*(_DWORD *)(a2 + 944) + 2436) + 92))(
*(_DWORD *)(*(_DWORD *)(a2 + 944) + 2436),
&unk_D2DBE0);
(*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(a2 + 600) + 92))(*(_DWORD *)(a2 + 600), &unk_D2DBE0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a2 + 600) + 64))(*(_DWORD *)(a2 + 600), *(_DWORD *)(a2 + 364));
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a2 + 600) + 72))(*(_DWORD *)(a2 + 600), *(_DWORD *)(a2 + 368));
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a2 + 600) + 188))(*(_DWORD *)(a2 + 600), *(_DWORD *)(a2 + 372));
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a2 + 600) + 196))(*(_DWORD *)(a2 + 600), *(_DWORD *)(a2 + 376));
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a2 + 600) + 132))(*(_DWORD *)(a2 + 600), *(_DWORD *)(a2 + 380));
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a2 + 600) + 140))(*(_DWORD *)(a2 + 600), *(_DWORD *)(a2 + 384));
(*(void (__fastcall **)(unsigned int *))(**(_DWORD **)(a2 + 600) + 412))(v17);
(*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(a2 + 604) + 92))(*(_DWORD *)(a2 + 604), &unk_D2DBE0);
v12 = *(cocos2d::CCPoint **)(a2 + 600);
(*(void (__fastcall **)(cocos2d::CCPoint *))(*(_DWORD *)v12 + 96))(v12);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v16, v12);
cocos2d::CCPoint::operator+(v17, a3, v16);
cocos2d::CCPoint::operator=(v16, v17);
v9 = 0;
cocos2d::CCNode::convertToNodeSpace(a1, *(const cocos2d::CCPoint **)(a2 + 600));
while ( v9 < cocos2d::CCArray::count(a4) )
{
v10 = cocos2d::CCArray::objectAtIndex(a4, v9++);
v17[0] = *(_DWORD *)(v10 + 780);
v14 = std::unordered_map::operator[](a2 + 344, v17);
cocos2d::CCPoint::operator+(v17, v14, a1);
cocos2d::CCPoint::operator=(v14, v17);
}
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(*(_DWORD *)(a2 + 944) + 2436) + 80))(
*(_DWORD *)(*(_DWORD *)(a2 + 944) + 2436),
v7);
(*(void (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(*(_DWORD *)(a2 + 944) + 2436) + 92))(
*(_DWORD *)(*(_DWORD *)(a2 + 944) + 2436),
v15);
return a1;
}