{"type": "func", "start": 4299647196, "end": 4299647360, "name": "EditorUI::centerCameraOnPoint", "pseudocode": "// \n// EditorUI::centerCameraOnPoint from 0x1004768dc to 0x100476980 (164 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x100163660\n// > EditorUI::findObject @ 0x1001a6ab0\n// > sub_100476890 @ 0x1004768c8\n// \n// This function is hookable on this platform (idp: arm, 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:05:41 +0000\n// \n\n__int64 __fastcall EditorUI::centerCameraOnPoint(__int64 a1, float *a2)\n{\n  __int64 v4; // x0\n  double WinSize; // d0\n  float v6; // s0\n  float v8; // [xsp+0h] [xbp-20h] BYREF\n  __int64 v9; // [xsp+8h] [xbp-18h] BYREF\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  WinSize = cocos2d::CCDirector::getWinSize(v4, &v9);\n  v6 = (*(float (__fastcall **)(_QWORD, double))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(\n         *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL),\n         WinSize);\n  sub_1000262BC(\n    &v8,\n    (float)(*(float *)&v9 * 0.5) - (float)(*a2 * v6),\n    (float)(*((float *)&v9 + 1) * 0.5) - (float)(a2[1] * v6));\n  (*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 184LL))(\n    *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL),\n    &v8);\n  EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);\n  return EditorUI::updateSlider(a1);\n}", "assembly": "; \n; EditorUI::centerCameraOnPoint from 0x1004768dc to 0x100476980 (164 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x100163660\n; > EditorUI::findObject @ 0x1001a6ab0\n; > sub_100476890 @ 0x1004768c8\n; \n; This function is hookable on this platform (idp: arm, 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:05:41 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x1004768dc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1004768e0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1004768e4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1004768e8\nMOV             X20, X1                                                ; +0x10, 0x1004768ec\nMOV             X19, X0                                                ; +0x14, 0x1004768f0\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x18, 0x1004768f4\nADD             X8, SP, #0x20+var_18                                   ; +0x1c, 0x1004768f8\nBL              cocos2d__CCDirector__getWinSize                        ; +0x20, 0x1004768fc\nLDR             X8, [X19,#0x5A0]                                       ; +0x24, 0x100476900\nLDR             X0, [X8,#0xF50]                                        ; +0x28, 0x100476904\nLDR             X8, [X0]                                               ; +0x2c, 0x100476908\nLDR             X8, [X8,#0xA8]                                         ; +0x30, 0x10047690c\nBLR             X8                                                     ; +0x34, 0x100476910\nFMOV            S1, #0.5                                               ; +0x38, 0x100476914\nLDP             S2, S3, [SP,#0x20+var_18]                              ; +0x3c, 0x100476918\nFMUL            S2, S2, S1                                             ; +0x40, 0x10047691c\nLDP             S4, S5, [X20]                                          ; +0x44, 0x100476920\nFMSUB           S2, S4, S0, S2                                         ; +0x48, 0x100476924\nFMUL            S1, S3, S1                                             ; +0x4c, 0x100476928\nFMSUB           S1, S5, S0, S1                                         ; +0x50, 0x10047692c\nMOV             X0, SP                                                 ; +0x54, 0x100476930\nFMOV            S0, S2                                                 ; +0x58, 0x100476934\nBL              sub_1000262BC                                          ; +0x5c, 0x100476938\nLDR             X8, [X19,#0x5A0]                                       ; +0x60, 0x10047693c\nLDR             X0, [X8,#0xF50]                                        ; +0x64, 0x100476940\nLDR             X8, [X0]                                               ; +0x68, 0x100476944\nLDR             X8, [X8,#0xB8]                                         ; +0x6c, 0x100476948\nMOV             X1, SP                                                 ; +0x70, 0x10047694c\nBLR             X8                                                     ; +0x74, 0x100476950\nMOV             W8, #0xC2C80000                                        ; +0x78, 0x100476954\nFMOV            S0, W8                                                 ; +0x7c, 0x100476958\nMOV             X0, X19                                                ; +0x80, 0x10047695c\nFMOV            S1, S0                                                 ; +0x84, 0x100476960\nBL              EditorUI__constrainGameLayerPosition                   ; +0x88, 0x100476964\nMOV             X0, X19                                                ; +0x8c, 0x100476968\nBL              EditorUI__updateSlider                                 ; +0x90, 0x10047696c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x100476970\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x100476974\nADD             SP, SP, #0x30 ; '0'                                    ; +0x9c, 0x100476978\nRET                                                                    ; +0xa0, 0x10047697c", "xrefs": ["EditorUI::handleEditorAction @ 0x100163660", "EditorUI::findObject @ 0x1001a6ab0", "sub_100476890 @ 0x1004768c8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}