{"type": "func", "start": 5370274976, "end": 5370275103, "name": "EditorWindowPopup::syncWindowCenter", "pseudocode": "// \n// EditorWindowPopup::syncWindowCenter from 0x14017e4a0 to 0x14017e51f (127 bytes)\n// \n// 4 xrefs:\n// > EmotePickerPopup::ccTouchBegan @ 0x1401243c3\n// > EditorWindowPopup::ccTouchBegan @ 0x14017ecdb\n// > EditorWindowPopup::onClose @ 0x14017fe10\n// > <???> @ 0x1409189e0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:36 +0000\n// \n\ndouble __fastcall EditorWindowPopup::syncWindowCenter(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  float v5; // [rsp+30h] [rbp+8h] BYREF\n  float v6; // [rsp+34h] [rbp+Ch]\n  char v7; // [rsp+38h] [rbp+10h] BYREF\n  char v8; // [rsp+40h] [rbp+18h] BYREF\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v2, &v5);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, v5 * 0.5, v6 * 0.5);\n  v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 200LL))(*(_QWORD *)(a1 + 584));\n  cocos2d::CCPoint::operator+(v3, &v8, &v7);\n  return cocos2d::CCPoint::operator=(a1 + 1052, &v8);\n}", "assembly": "; \n; EditorWindowPopup::syncWindowCenter from 0x14017e4a0 to 0x14017e51f (127 bytes)\n; \n; 4 xrefs:\n; > EmotePickerPopup::ccTouchBegan @ 0x1401243c3\n; > EditorWindowPopup::ccTouchBegan @ 0x14017ecdb\n; > EditorWindowPopup::onClose @ 0x14017fe10\n; > <???> @ 0x1409189e0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:36 +0000\n; \npush    rbx                                                            ; +0x0, 0x14017e4a0\nsub     rsp, 20h                                                       ; +0x2, 0x14017e4a2\nmov     rbx, rcx                                                       ; +0x6, 0x14017e4a6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x14017e4a9\nmov     rcx, rax                                                       ; +0xf, 0x14017e4af\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x12, 0x14017e4b2\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x17, 0x14017e4b7\nmovss   xmm2, [rsp+28h+arg_4]                                          ; +0x1d, 0x14017e4bd\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x23, 0x14017e4c3\nmovss   xmm1, [rsp+28h+arg_0]                                          ; +0x28, 0x14017e4c8\nmulss   xmm2, cs:dword_140834F20                                       ; +0x2e, 0x14017e4ce\nmulss   xmm1, cs:dword_140834F20                                       ; +0x36, 0x14017e4d6\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x3e, 0x14017e4de\nmov     rcx, [rbx+248h]                                                ; +0x44, 0x14017e4e4\nmov     rax, [rcx]                                                     ; +0x4b, 0x14017e4eb\ncall    qword ptr [rax+0C8h]                                           ; +0x4e, 0x14017e4ee\nmov     rcx, rax                                                       ; +0x54, 0x14017e4f4\nlea     r8, [rsp+28h+arg_8]                                            ; +0x57, 0x14017e4f7\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x5c, 0x14017e4fc\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x61, 0x14017e501\nlea     rcx, [rbx+41Ch]                                                ; +0x67, 0x14017e507\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x6e, 0x14017e50e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x73, 0x14017e513\nadd     rsp, 20h                                                       ; +0x79, 0x14017e519\npop     rbx                                                            ; +0x7d, 0x14017e51d\nretn                                                                   ; +0x7e, 0x14017e51e", "xrefs": ["EmotePickerPopup::ccTouchBegan @ 0x1401243c3", "EditorWindowPopup::ccTouchBegan @ 0x14017ecdb", "EditorWindowPopup::onClose @ 0x14017fe10", "<???> @ 0x1409189e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}