//
// EditorUI::applyOffset from 0x385308 to 0x385364 (92 bytes)
//
// 2 xrefs:
// > EditorUI::transformObject @ 0x385a54
// > EditorUI::onCreateObject @ 0x3a3f6c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EditorUI::applyOffset(EditorUI *a1, GameObject *a2)
{
const cocos2d::CCPoint *v4; // r0
cocos2d::CCPoint v5; // [sp+4h] [bp-8h] BYREF
_BYTE v6[8]; // [sp+Ch] [bp+0h] BYREF
EditorUI::getRelativeOffset(&v5, a1, a2);
v4 = a2->getPosition(a2);
cocos2d::CCPoint::operator+(v6, v4, &v5);
a2->setPosition(a2, (const cocos2d::CCPoint *)v6);
GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, a2);
}