//
// EditorUI::centerCameraOnPoint from 0x1004768dc to 0x100476980 (164 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x100163660
// > EditorUI::findObject @ 0x1001a6ab0
// > sub_100476890 @ 0x1004768c8
//
// 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 11:05:41 +0000
//
__int64 __fastcall EditorUI::centerCameraOnPoint(__int64 a1, float *a2)
{
__int64 v4; // x0
double WinSize; // d0
float v6; // s0
float v8; // [xsp+0h] [xbp-20h] BYREF
__int64 v9; // [xsp+8h] [xbp-18h] BYREF
v4 = cocos2d::CCDirector::sharedDirector();
WinSize = cocos2d::CCDirector::getWinSize(v4, &v9);
v6 = (*(float (__fastcall **)(_QWORD, double))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL),
WinSize);
sub_1000262BC(
&v8,
(float)(*(float *)&v9 * 0.5) - (float)(*a2 * v6),
(float)(*((float *)&v9 + 1) * 0.5) - (float)(a2[1] * v6));
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL),
&v8);
EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);
return EditorUI::updateSlider(a1);
}