{"type": "func", "start": 6878472, "end": 6878732, "name": "EditorUI::centerCameraOnObject", "pseudocode": "// \n// EditorUI::centerCameraOnObject from 0x68f508 to 0x68f60c (260 bytes)\n// \n// 2 xrefs:\n// > EditorUI::findAndSelectObject @ 0x6be5d8\n// > <???> @ 0xa8678\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorUI::centerCameraOnObject(EditorUI *a1, GameObject *a2)\n{\n  cocos2d::CCDirector *v4; // x0\n  float v5; // s9\n  const cocos2d::CCPoint *v6; // x0\n  float v7; // [xsp+50h] [xbp+50h]\n  float v8; // [xsp+78h] [xbp+78h]\n  float v9; // [xsp+7Ch] [xbp+7Ch]\n  cocos2d::CCPoint v10; // [xsp+80h] [xbp+80h] BYREF\n  cocos2d::CCSize WinSize; // 0:kr00_8.8\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  WinSize = cocos2d::CCDirector::getWinSize(v4);\n  v5 = ((float (__fastcall *)(cocos2d::CCLayer *, float, float))a1->m_editorLayer->m_objectLayer->getScale)(\n         a1->m_editorLayer->m_objectLayer,\n         WinSize.width,\n         WinSize.height);\n  v7 = (float)(v8 * 0.5) - (float)(a2->getPosition(a2)->x * v5);\n  v6 = a2->getPosition(a2);\n  cocos2d::CCPoint::CCPoint(&v10, v7, (float)(v9 * 0.5) - (float)(v6->y * v5));\n  a1->m_editorLayer->m_objectLayer->setPosition(a1->m_editorLayer->m_objectLayer, &v10);\n  EditorUI::constrainGameLayerPosition(a1);\n}", "assembly": "; \n; EditorUI::centerCameraOnObject from 0x68f508 to 0x68f60c (260 bytes)\n; \n; 2 xrefs:\n; > EditorUI::findAndSelectObject @ 0x6be5d8\n; > <???> @ 0xa8678\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0x68f508\nMOV             X29, SP                                                ; +0x4, 0x68f50c\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x8, 0x68f510\nSTP             D8, D9, [SP,#0x90+var_60]                              ; +0xc, 0x68f514\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x68f518\nADD             X20, X29, #0x90+var_10                                 ; +0x14, 0x68f51c\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x18, 0x68f520\nMOV             X22, X0                                                ; +0x1c, 0x68f524\nMOV             X21, X1                                                ; +0x20, 0x68f528\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x68f52c\nSTR             D10, [SP,#0x90+var_50]                                 ; +0x28, 0x68f530\nFMOV            S10, #0.5                                              ; +0x2c, 0x68f534\nLDR             X0, [X19]; this                                        ; +0x30, 0x68f538\nSTR             X0, [X29,#0x90+var_8]                                  ; +0x34, 0x68f53c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x38, 0x68f540\nADD             X8, X29, #0x90+var_18                                  ; +0x3c, 0x68f544\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x40, 0x68f548\nLDR             X0, [X22,#0x4F8]                                       ; +0x44, 0x68f54c\nLDR             X1, [X0,#0x1030]                                       ; +0x48, 0x68f550\nMOV             X0, X1                                                 ; +0x4c, 0x68f554\nLDR             X1, [X1]                                               ; +0x50, 0x68f558\nLDR             X1, [X1,#0xA8]                                         ; +0x54, 0x68f55c\nBLR             X1                                                     ; +0x58, 0x68f560\nLDR             X1, [X21]                                              ; +0x5c, 0x68f564\nMOV             X0, X21                                                ; +0x60, 0x68f568\nFMOV            S9, S0                                                 ; +0x64, 0x68f56c\nLDR             X1, [X1,#0xC0]                                         ; +0x68, 0x68f570\nBLR             X1                                                     ; +0x6c, 0x68f574\nLDR             S8, [X29,#0x90+var_18]                                 ; +0x70, 0x68f578\nLDR             X1, [X21]                                              ; +0x74, 0x68f57c\nLDR             S2, [X0]                                               ; +0x78, 0x68f580\nMOV             X0, X21                                                ; +0x7c, 0x68f584\nFMUL            S8, S8, S10                                            ; +0x80, 0x68f588\nLDR             X1, [X1,#0xC0]                                         ; +0x84, 0x68f58c\nFMSUB           S0, S2, S9, S8                                         ; +0x88, 0x68f590\nSTR             Q0, [X29,#0x90+var_40]                                 ; +0x8c, 0x68f594\nBLR             X1                                                     ; +0x90, 0x68f598\nLDR             S2, [X29,#0x90+var_14]                                 ; +0x94, 0x68f59c\nSTR             X20, [X29,#0x90+var_28]                                ; +0x98, 0x68f5a0\nLDR             S1, [X0,#4]                                            ; +0x9c, 0x68f5a4\nMOV             X0, X20; this                                          ; +0xa0, 0x68f5a8\nFMUL            S2, S2, S10                                            ; +0xa4, 0x68f5ac\nLDR             Q0, [X29,#0x90+var_40]; float                          ; +0xa8, 0x68f5b0\nFMSUB           S1, S1, S9, S2; float                                  ; +0xac, 0x68f5b4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb0, 0x68f5b8\nLDR             X0, [X22,#0x4F8]                                       ; +0xb4, 0x68f5bc\nLDR             X1, [X29,#0x90+var_28]                                 ; +0xb8, 0x68f5c0\nLDR             X2, [X0,#0x1030]                                       ; +0xbc, 0x68f5c4\nMOV             X0, X2                                                 ; +0xc0, 0x68f5c8\nLDR             X2, [X2]                                               ; +0xc4, 0x68f5cc\nLDR             X2, [X2,#0xB8]                                         ; +0xc8, 0x68f5d0\nBLR             X2                                                     ; +0xcc, 0x68f5d4\nMOV             X0, X22; this                                          ; +0xd0, 0x68f5d8\nBL              _ZN8EditorUI26constrainGameLayerPositionEv; EditorUI::constrainGameLayerPosition(void) ; +0xd4, 0x68f5dc\nLDR             X1, [X29,#0x90+var_8]                                  ; +0xd8, 0x68f5e0\nLDR             X0, [X19]                                              ; +0xdc, 0x68f5e4\nCMP             X1, X0                                                 ; +0xe0, 0x68f5e8\nB.NE            loc_68F608                                             ; +0xe4, 0x68f5ec\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0xe8, 0x68f5f0\nLDP             D8, D9, [SP,#0x90+var_60]                              ; +0xec, 0x68f5f4\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0xf0, 0x68f5f8\nLDR             D10, [SP,#0x90+var_50]                                 ; +0xf4, 0x68f5fc\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0xf8, 0x68f600\nRET                                                                    ; +0xfc, 0x68f604\nBL              .__stack_chk_fail                                      ; +0x100, 0x68f608", "xrefs": ["EditorUI::findAndSelectObject @ 0x6be5d8", "<???> @ 0xa8678"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}