//
// EditorUI::moveGamelayer from 0x1003e77d0 to 0x1003e784c (124 bytes)
//
// 2 xrefs:
// > EditorUI::keyDown @ 0x1003fa118
// > EditorUI::scrollWheel @ 0x1003fa7ec
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall EditorUI::moveGamelayer(EditorUI *a1, cocos2d::CCPoint a2)
{
float32x2_t *v2; // x1
float32x2_t *v3; // x19
cocos2d::CCLayer *m_objectLayer; // x21
float32x2_t *v6; // x0
double v7; // d0
float32x2_t v8; // [xsp+8h] [xbp-28h] BYREF
v3 = v2;
m_objectLayer = a1->m_editorLayer->m_objectLayer;
v6 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *, __n128, __n128))m_objectLayer->getPosition)(
m_objectLayer,
*(__n128 *)&a2.x,
*(__n128 *)&a2.y);
*(float32x2_t *)&v7 = sub_1000229DC(v6, v3, &v8);
((void (__fastcall *)(cocos2d::CCLayer *, float32x2_t *, double))m_objectLayer->setPosition)(m_objectLayer, &v8, v7);
EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);
}