//
// EditorUI::removeOffset from 0xc004a4 to 0xc00544 (160 bytes)
//
// 3 xrefs:
// > EditorUI::onCreateObject @ 0x7ca2e4
// > EditorUI::transformObject @ 0xc010f8
// > ??> @ 0x9d780
//
// 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::removeOffset(GJBaseGameLayer **this, GameObject *a2)
{
__int64 v4; // x0
long double v5; // q0
_BYTE v7[8]; // [xsp+48h] [xbp+48h] BYREF
__int64 v8; // [xsp+50h] [xbp+50h] BYREF
EditorUI::getRelativeOffset((cocos2d::CCPoint *)v7, a2);
v4 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2);
cocos2d::CCPoint::operator-(&v8, v4, v7, v5);
(*(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)a2 + 184LL))(a2, &v8);
GJBaseGameLayer::reorderObjectSection(*(this + 180), a2);
return _stack_chk_guard;
}