//
// EditorUI::applyOffset from 0xc00544 to 0xc005e4 (160 bytes)
//
// 3 xrefs:
// > EditorUI::onCreateObject @ 0x7ca2fc
// > EditorUI::transformObject @ 0xc01394
// > ??> @ 0xe5060
//
// 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:48 +0000
//
__int64 __fastcall EditorUI::applyOffset(GJBaseGameLayer **this, GameObject *a2)
{
__int64 v4; // x0
_BYTE v6[8]; // [xsp+48h] [xbp+48h] BYREF
__int64 v7; // [xsp+50h] [xbp+50h] BYREF
EditorUI::getRelativeOffset((cocos2d::CCPoint *)v6, a2);
v4 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2);
cocos2d::CCPoint::operator+(&v7, v4);
(*(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)a2 + 184LL))(a2, &v7);
GJBaseGameLayer::reorderObjectSection(*(this + 180), a2);
return _stack_chk_guard;
}