{"type": "func", "start": 5370483856, "end": 5370484040, "name": "EditorUI::centerCameraOnPoint", "pseudocode": "// \n// EditorUI::centerCameraOnPoint from 0x1401b1490 to 0x1401b1548 (184 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x1401c3541\n// > EditorUI::findObject @ 0x1401c94da\n// > <???> @ 0x140919f34\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:56 +0000\n// \n\n__int64 __fastcall EditorUI::centerCameraOnPoint(__int64 a1, float *a2)\n{\n  __int64 v4; // rax\n  float v5; // xmm0_4\n  float v7; // [rsp+30h] [rbp+8h] BYREF\n  float v8; // [rsp+34h] [rbp+Ch]\n  char v9; // [rsp+38h] [rbp+10h] BYREF\n\n  v4 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v4, &v7);\n  v5 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL));\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)&v9,\n    (float)(v7 * 0.5) - (float)(v5 * *a2),\n    (float)(v8 * 0.5) - (float)(v5 * a2[1]));\n  (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 184LL))(\n    *(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL),\n    &v9);\n  EditorUI::constrainGameLayerPosition(a1);\n  return EditorUI::updateSlider(a1);\n}", "assembly": "; \n; EditorUI::centerCameraOnPoint from 0x1401b1490 to 0x1401b1548 (184 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x1401c3541\n; > EditorUI::findObject @ 0x1401c94da\n; > <???> @ 0x140919f34\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:56 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1401b1490\npush    rdi                                                            ; +0x5, 0x1401b1495\nsub     rsp, 20h                                                       ; +0x6, 0x1401b1496\nmov     rbx, rdx                                                       ; +0xa, 0x1401b149a\nmov     rdi, rcx                                                       ; +0xd, 0x1401b149d\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x10, 0x1401b14a0\nmov     rcx, rax                                                       ; +0x16, 0x1401b14a6\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x19, 0x1401b14a9\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x1e, 0x1401b14ae\nmov     rax, [rdi+5E8h]                                                ; +0x24, 0x1401b14b4\nmov     rcx, [rax+10C8h]                                               ; +0x2b, 0x1401b14bb\nmov     rax, [rcx]                                                     ; +0x32, 0x1401b14c2\ncall    qword ptr [rax+0A8h]                                           ; +0x35, 0x1401b14c5\nmovss   xmm2, [rsp+28h+arg_4]                                          ; +0x3b, 0x1401b14cb\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x41, 0x1401b14d1\nmulss   xmm2, cs:dword_140834F20                                       ; +0x46, 0x1401b14d6\nmovaps  xmm1, xmm0                                                     ; +0x4e, 0x1401b14de\nmulss   xmm1, dword ptr [rbx+4]                                        ; +0x51, 0x1401b14e1\nmulss   xmm0, dword ptr [rbx]                                          ; +0x56, 0x1401b14e6\nsubss   xmm2, xmm1                                                     ; +0x5a, 0x1401b14ea\nmovss   xmm1, [rsp+28h+arg_0]                                          ; +0x5e, 0x1401b14ee\nmulss   xmm1, cs:dword_140834F20                                       ; +0x64, 0x1401b14f4\nsubss   xmm1, xmm0                                                     ; +0x6c, 0x1401b14fc\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x70, 0x1401b1500\nmov     rax, [rdi+5E8h]                                                ; +0x76, 0x1401b1506\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x7d, 0x1401b150d\nmov     rcx, [rax+10C8h]                                               ; +0x82, 0x1401b1512\nmov     rax, [rcx]                                                     ; +0x89, 0x1401b1519\ncall    qword ptr [rax+0B8h]                                           ; +0x8c, 0x1401b151c\nmovss   xmm1, cs:dword_140835FA8                                       ; +0x92, 0x1401b1522\nmov     rcx, rdi                                                       ; +0x9a, 0x1401b152a\nmovaps  xmm2, xmm1                                                     ; +0x9d, 0x1401b152d\ncall    EditorUI__constrainGameLayerPosition                           ; +0xa0, 0x1401b1530\nmov     rcx, rdi                                                       ; +0xa5, 0x1401b1535\ncall    EditorUI__updateSlider                                         ; +0xa8, 0x1401b1538\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xad, 0x1401b153d\nadd     rsp, 20h                                                       ; +0xb2, 0x1401b1542\npop     rdi                                                            ; +0xb6, 0x1401b1546\nretn                                                                   ; +0xb7, 0x1401b1547", "xrefs": ["EditorUI::handleEditorAction @ 0x1401c3541", "EditorUI::findObject @ 0x1401c94da", "<???> @ 0x140919f34"], "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"}