//
// EditorUI::applyOffset from 0x1401228f0 to 0x14012297d (141 bytes)
//
// 3 xrefs:
// > EditorUI::onCreateObject @ 0x14010f9ba
// > EditorUI::transformObject @ 0x140120c17
// > ??> @ 0x1406c9858
//
// 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; // rax
LevelEditorLayer *m_editorLayer; // rbx
char v6; // [rsp+30h] [rbp+8h] BYREF
char v7; // [rsp+38h] [rbp+10h] BYREF
char v8; // [rsp+40h] [rbp+18h] BYREF
EditorUI::offsetForKey(a1, (int)&v8);
GameToolbox::getRelativeOffset((GameObject *)&v6, (cocos2d::CCPoint)a2);
v4 = a2->getPosition_0(a2);
cocos2d::CCPoint::operator+(v4, &v7);
a2->setPosition_0(a2, (const cocos2d::CCPoint *)&v7);
m_editorLayer = a1->m_editorLayer;
GJBaseGameLayer::removeObjectFromSection(m_editorLayer, a2);
m_editorLayer->addToSection(m_editorLayer, a2);
}