//
// EditorWindowPopup::syncWindowCenter from 0x14017e4a0 to 0x14017e51f (127 bytes)
//
// 4 xrefs:
// > EmotePickerPopup::ccTouchBegan @ 0x1401243c3
// > EditorWindowPopup::ccTouchBegan @ 0x14017ecdb
// > EditorWindowPopup::onClose @ 0x14017fe10
// > ??> @ 0x1409189e0
//
// 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:36 +0000
//
double __fastcall EditorWindowPopup::syncWindowCenter(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rax
float v5; // [rsp+30h] [rbp+8h] BYREF
float v6; // [rsp+34h] [rbp+Ch]
char v7; // [rsp+38h] [rbp+10h] BYREF
char v8; // [rsp+40h] [rbp+18h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v2, &v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, v5 * 0.5, v6 * 0.5);
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 200LL))(*(_QWORD *)(a1 + 584));
cocos2d::CCPoint::operator+(v3, &v8, &v7);
return cocos2d::CCPoint::operator=(a1 + 1052, &v8);
}