//
// EditorUI::centerCameraOnPoint from 0x1401b1490 to 0x1401b1548 (184 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x1401c3541
// > EditorUI::findObject @ 0x1401c94da
// > ??> @ 0x140919f34
//
// This function is hookable on this platform (idp: pc, 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 11:27:56 +0000
//
__int64 __fastcall EditorUI::centerCameraOnPoint(__int64 a1, float *a2)
{
__int64 v4; // rax
float v5; // xmm0_4
float v7; // [rsp+30h] [rbp+8h] BYREF
float v8; // [rsp+34h] [rbp+Ch]
char v9; // [rsp+38h] [rbp+10h] BYREF
v4 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v4, &v7);
v5 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL));
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v9,
(float)(v7 * 0.5) - (float)(v5 * *a2),
(float)(v8 * 0.5) - (float)(v5 * a2[1]));
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL),
&v9);
EditorUI::constrainGameLayerPosition(a1);
return EditorUI::updateSlider(a1);
}