{"type": "func", "start": 4299071784, "end": 4299072000, "name": "EditorUI::centerCameraOnObject", "pseudocode": "// \n// EditorUI::centerCameraOnObject from 0x1003ea128 to 0x1003ea200 (216 bytes)\n// \n// 1 xrefs:\n// > EditorUI::findAndSelectObject @ 0x1003ea070\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 __fastcall EditorUI::centerCameraOnObject(EditorUI *a1, GameObject *a2)\n{\n  cocos2d::CCDirector *v4; // x0\n  float v5; // s8\n  float v6; // s9\n  __n128 v7; // q1\n  __n128 v8; // q0\n  _DWORD v9[4]; // [xsp+0h] [xbp-40h] 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  v6 = (float)(*(float *)&v9[2] * 0.5)\n     - (float)(*(float *)((__int64 (__fastcall *)(GameObject *))a2->getPosition)(a2) * v5);\n  v7.n128_f32[0] = (float)(*(float *)&v9[3] * 0.5)\n                 - (float)(*(float *)(((__int64 (__fastcall *)(GameObject *))a2->getPosition)(a2) + 4) * v5);\n  v8.n128_f32[0] = v6;\n  sub_100022980(v8, v7, v9);\n  ((void (__fastcall *)(cocos2d::CCLayer *, _DWORD *))a1->m_editorLayer->m_objectLayer->setPosition)(\n    a1->m_editorLayer->m_objectLayer,\n    v9);\n  EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);\n}", "assembly": "; \n; EditorUI::centerCameraOnObject from 0x1003ea128 to 0x1003ea200 (216 bytes)\n; \n; 1 xrefs:\n; > EditorUI::findAndSelectObject @ 0x1003ea070\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1003ea128\nSTP             D11, D10, [SP,#0x40+var_30]                            ; +0x4, 0x1003ea12c\nSTP             D9, D8, [SP,#0x40+var_20]                              ; +0x8, 0x1003ea130\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1003ea134\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1003ea138\nADD             X29, SP, #0x40                                         ; +0x14, 0x1003ea13c\nMOV             X20, X1                                                ; +0x18, 0x1003ea140\nMOV             X19, X0                                                ; +0x1c, 0x1003ea144\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x20, 0x1003ea148\nADD             X8, SP, #0x40+var_38                                   ; +0x24, 0x1003ea14c\nBL              cocos2d__CCDirector__getWinSize                        ; +0x28, 0x1003ea150\nLDR             X8, [X19,#0x4E8]                                       ; +0x2c, 0x1003ea154\nLDR             X0, [X8,#0xEE0]                                        ; +0x30, 0x1003ea158\nLDR             X8, [X0]                                               ; +0x34, 0x1003ea15c\nLDR             X8, [X8,#0xA8]                                         ; +0x38, 0x1003ea160\nBLR             X8                                                     ; +0x3c, 0x1003ea164\nFMOV            S8, S0                                                 ; +0x40, 0x1003ea168\nLDR             X8, [X20]                                              ; +0x44, 0x1003ea16c\nLDR             X8, [X8,#0xC0]                                         ; +0x48, 0x1003ea170\nMOV             X0, X20                                                ; +0x4c, 0x1003ea174\nBLR             X8                                                     ; +0x50, 0x1003ea178\nLDR             S0, [X0]                                               ; +0x54, 0x1003ea17c\nLDR             S1, [SP,#0x40+var_38]                                  ; +0x58, 0x1003ea180\nFMOV            S10, #0.5                                              ; +0x5c, 0x1003ea184\nFMUL            S1, S1, S10                                            ; +0x60, 0x1003ea188\nFMSUB           S9, S0, S8, S1                                         ; +0x64, 0x1003ea18c\nLDR             X8, [X20]                                              ; +0x68, 0x1003ea190\nLDR             X8, [X8,#0xC0]                                         ; +0x6c, 0x1003ea194\nMOV             X0, X20                                                ; +0x70, 0x1003ea198\nBLR             X8                                                     ; +0x74, 0x1003ea19c\nLDR             S0, [X0,#4]                                            ; +0x78, 0x1003ea1a0\nLDR             S1, [SP,#0x40+var_34]                                  ; +0x7c, 0x1003ea1a4\nFMUL            S1, S1, S10                                            ; +0x80, 0x1003ea1a8\nFMSUB           S1, S0, S8, S1                                         ; +0x84, 0x1003ea1ac\nMOV             X0, SP                                                 ; +0x88, 0x1003ea1b0\nFMOV            S0, S9                                                 ; +0x8c, 0x1003ea1b4\nBL              sub_100022980                                          ; +0x90, 0x1003ea1b8\nLDR             X8, [X19,#0x4E8]                                       ; +0x94, 0x1003ea1bc\nLDR             X0, [X8,#0xEE0]                                        ; +0x98, 0x1003ea1c0\nLDR             X8, [X0]                                               ; +0x9c, 0x1003ea1c4\nLDR             X8, [X8,#0xB8]                                         ; +0xa0, 0x1003ea1c8\nMOV             X1, SP                                                 ; +0xa4, 0x1003ea1cc\nBLR             X8                                                     ; +0xa8, 0x1003ea1d0\nMOV             W8, #0xC2C80000                                        ; +0xac, 0x1003ea1d4\nFMOV            S0, W8                                                 ; +0xb0, 0x1003ea1d8\nMOV             X0, X19                                                ; +0xb4, 0x1003ea1dc\nFMOV            S1, S0                                                 ; +0xb8, 0x1003ea1e0\nBL              EditorUI__constrainGameLayerPosition                   ; +0xbc, 0x1003ea1e4\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc0, 0x1003ea1e8\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xc4, 0x1003ea1ec\nLDP             D9, D8, [SP,#0x40+var_20]                              ; +0xc8, 0x1003ea1f0\nLDP             D11, D10, [SP,#0x40+var_30]                            ; +0xcc, 0x1003ea1f4\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xd0, 0x1003ea1f8\nRET                                                                    ; +0xd4, 0x1003ea1fc", "xrefs": ["EditorUI::findAndSelectObject @ 0x1003ea070"], "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"}