{"type": "func", "start": 8154520, "end": 8154732, "name": "EditorUI::centerCameraOnPoint", "pseudocode": "// \n// EditorUI::centerCameraOnPoint from 0x7c6d98 to 0x7c6e6c (212 bytes)\n// \n// 4 xrefs:\n// > EditorUI::centerCameraOnObject @ 0x7c6eb8\n// > EditorUI::handleEditorAction @ 0xbd7324\n// > EditorUI::findObject @ 0xbdd8a0\n// > <???> @ 0xa0768\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 12:54:09 +0000\n// \n\n__int64 __fastcall EditorUI::centerCameraOnPoint(EditorUI *a1, float *a2)\n{\n  cocos2d::CCDirector *v3; // x0\n  float v4; // s0\n  __int64 v7; // [xsp+48h] [xbp+48h] BYREF\n  _BYTE v8[8]; // [xsp+50h] [xbp+50h] BYREF\n\n  v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);\n  cocos2d::CCDirector::getWinSize(&v7, v3);\n  v4 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)a1 + 180) + 3920LL) + 168LL))(*(_QWORD *)(*((_QWORD *)a1 + 180) + 3920LL));\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)v8,\n    (float)(*(float *)&v7 * 0.5) - (float)(*a2 * v4),\n    (float)(*((float *)&v7 + 1) * 0.5) - (float)(a2[1] * v4));\n  (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(*((_QWORD *)a1 + 180) + 3920LL) + 184LL))(\n    *(_QWORD *)(*((_QWORD *)a1 + 180) + 3920LL),\n    v8);\n  EditorUI::constrainGameLayerPosition(a1);\n  EditorUI::updateSlider(a1);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::centerCameraOnPoint from 0x7c6d98 to 0x7c6e6c (212 bytes)\n; \n; 4 xrefs:\n; > EditorUI::centerCameraOnObject @ 0x7c6eb8\n; > EditorUI::handleEditorAction @ 0xbd7324\n; > EditorUI::findObject @ 0xbdd8a0\n; > <???> @ 0xa0768\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 12:54:09 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x7c6d98\nMOV             X29, SP                                                ; +0x4, 0x7c6d9c\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x7c6da0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7c6da4\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x10, 0x7c6da8\nMOV             X20, X0                                                ; +0x14, 0x7c6dac\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x18, 0x7c6db0\nADD             X21, X29, #0x60+var_10                                 ; +0x1c, 0x7c6db4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x7c6db8\nLDR             X0, [X19]; this                                        ; +0x24, 0x7c6dbc\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x28, 0x7c6dc0\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x7c6dc4\nADD             X8, X29, #0x60+var_18                                  ; +0x30, 0x7c6dc8\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x34, 0x7c6dcc\nLDR             X0, [X20,#0x5A0]                                       ; +0x38, 0x7c6dd0\nLDR             X2, [X0,#0xF50]                                        ; +0x3c, 0x7c6dd4\nMOV             X0, X2                                                 ; +0x40, 0x7c6dd8\nLDR             X2, [X2]                                               ; +0x44, 0x7c6ddc\nLDR             X2, [X2,#0xA8]                                         ; +0x48, 0x7c6de0\nBLR             X2                                                     ; +0x4c, 0x7c6de4\nFMOV            S1, #0.5                                               ; +0x50, 0x7c6de8\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x54, 0x7c6dec\nFMOV            S3, S0                                                 ; +0x58, 0x7c6df0\nMOV             X0, X21; this                                          ; +0x5c, 0x7c6df4\nLDR             S0, [X29,#0x60+var_18]                                 ; +0x60, 0x7c6df8\nLDR             S2, [X29,#0x60+var_14]                                 ; +0x64, 0x7c6dfc\nFMUL            S0, S0, S1                                             ; +0x68, 0x7c6e00\nFMUL            S2, S2, S1                                             ; +0x6c, 0x7c6e04\nLDR             S4, [X1]                                               ; +0x70, 0x7c6e08\nLDR             S1, [X1,#4]                                            ; +0x74, 0x7c6e0c\nFMSUB           S0, S4, S3, S0; float                                  ; +0x78, 0x7c6e10\nFMSUB           S1, S1, S3, S2; float                                  ; +0x7c, 0x7c6e14\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x80, 0x7c6e18\nLDR             X0, [X20,#0x5A0]                                       ; +0x84, 0x7c6e1c\nMOV             X1, X21                                                ; +0x88, 0x7c6e20\nLDR             X2, [X0,#0xF50]                                        ; +0x8c, 0x7c6e24\nMOV             X0, X2                                                 ; +0x90, 0x7c6e28\nLDR             X2, [X2]                                               ; +0x94, 0x7c6e2c\nLDR             X2, [X2,#0xB8]                                         ; +0x98, 0x7c6e30\nBLR             X2                                                     ; +0x9c, 0x7c6e34\nMOV             X0, X20; this                                          ; +0xa0, 0x7c6e38\nBL              _ZN8EditorUI26constrainGameLayerPositionEv; EditorUI::constrainGameLayerPosition(void) ; +0xa4, 0x7c6e3c\nMOV             X0, X20; this                                          ; +0xa8, 0x7c6e40\nBL              _ZN8EditorUI12updateSliderEv; EditorUI::updateSlider(void) ; +0xac, 0x7c6e44\nLDR             X1, [X29,#0x60+var_8]                                  ; +0xb0, 0x7c6e48\nLDR             X0, [X19]                                              ; +0xb4, 0x7c6e4c\nCMP             X1, X0                                                 ; +0xb8, 0x7c6e50\nB.NE            loc_7C6E68                                             ; +0xbc, 0x7c6e54\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xc0, 0x7c6e58\nLDR             X21, [SP,#0x60+var_40]                                 ; +0xc4, 0x7c6e5c\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xc8, 0x7c6e60\nRET                                                                    ; +0xcc, 0x7c6e64\nBL              .__stack_chk_fail                                      ; +0xd0, 0x7c6e68", "xrefs": ["EditorUI::centerCameraOnObject @ 0x7c6eb8", "EditorUI::handleEditorAction @ 0xbd7324", "EditorUI::findObject @ 0xbdd8a0", "<???> @ 0xa0768"], "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"}