{"type": "func", "start": 4737708, "end": 4737852, "name": "EditorUI::centerCameraOnPoint", "pseudocode": "// \n// EditorUI::centerCameraOnPoint from 0x484aac to 0x484b3c (144 bytes)\n// \n// 3 xrefs:\n// > EditorUI::centerCameraOnObject @ 0x484b64\n// > EditorUI::handleEditorAction @ 0x6f2068\n// > EditorUI::findObject @ 0x6f4d5a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n// \n\nint __fastcall EditorUI::centerCameraOnPoint(cocos2d::CCDirector *a1, float *a2)\n{\n  float v4; // r0\n  float v6[2]; // [sp+4h] [bp-14h] BYREF\n  _BYTE v7[8]; // [sp+Ch] [bp-Ch] BYREF\n\n  cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v6);\n  v4 = (*(float (__fastcall **)(_DWORD))(**(_DWORD **)(*((_DWORD *)a1 + 236) + 2436) + 84))(*(_DWORD *)(*((_DWORD *)a1 + 236) + 2436));\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)v7,\n    (float)(v6[0] * 0.5) - (float)(*a2 * v4),\n    (float)(v6[1] * 0.5) - (float)(a2[1] * v4));\n  (*(void (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(*((_DWORD *)a1 + 236) + 2436) + 92))(\n    *(_DWORD *)(*((_DWORD *)a1 + 236) + 2436),\n    v7);\n  EditorUI::constrainGameLayerPosition(a1);\n  return EditorUI::updateSlider(a1);\n}", "assembly": "; \n; EditorUI::centerCameraOnPoint from 0x484aac to 0x484b3c (144 bytes)\n; \n; 3 xrefs:\n; > EditorUI::centerCameraOnObject @ 0x484b64\n; > EditorUI::handleEditorAction @ 0x6f2068\n; > EditorUI::findObject @ 0x6f4d5a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x484aac\nSUB             SP, SP, #0x18                                          ; +0x2, 0x484aae\nLDR             R4, =(__stack_chk_guard_ptr - 0x484ABA)                ; +0x4, 0x484ab0\nMOV             R5, R0                                                 ; +0x6, 0x484ab2\nMOV             R6, R1                                                 ; +0x8, 0x484ab4\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x484ab6\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x484ab8\nLDR             R3, [R4]                                               ; +0xe, 0x484aba\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x10, 0x484abc\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x12, 0x484abe\nMOV             R1, R0                                                 ; +0x16, 0x484ac2\nADD             R0, SP, #0x18+var_14; this                             ; +0x18, 0x484ac4\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x1a, 0x484ac6\nLDR.W           R3, [R5,#0x3B0]                                        ; +0x1e, 0x484aca\nLDR.W           R0, [R3,#0x984]                                        ; +0x22, 0x484ace\nLDR             R3, [R0]                                               ; +0x26, 0x484ad2\nLDR             R3, [R3,#0x54]                                         ; +0x28, 0x484ad4\nBLX             R3                                                     ; +0x2a, 0x484ad6\nVMOV.F32        S12, #0.5                                              ; +0x2c, 0x484ad8\nVLDR            S14, [SP,#0x18+var_14]                                 ; +0x30, 0x484adc\nVLDR            S15, [SP,#0x18+var_10]                                 ; +0x34, 0x484ae0\nVLDR            S10, [R6]                                              ; +0x38, 0x484ae4\nVMUL.F32        S14, S14, S12                                          ; +0x3c, 0x484ae8\nVLDR            S11, [R6,#4]                                           ; +0x40, 0x484aec\nADD             R6, SP, #0x18+var_C                                    ; +0x44, 0x484af0\nVMUL.F32        S15, S15, S12                                          ; +0x46, 0x484af2\nVMOV            S13, R0                                                ; +0x4a, 0x484af6\nMOV             R0, R6; this                                           ; +0x4e, 0x484afa\nVMLS.F32        S14, S10, S13                                          ; +0x50, 0x484afc\nVMLS.F32        S15, S11, S13                                          ; +0x54, 0x484b00\nVMOV            R1, S14; float                                         ; +0x58, 0x484b04\nVMOV            R2, S15; float                                         ; +0x5c, 0x484b08\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x60, 0x484b0c\nLDR.W           R3, [R5,#0x3B0]                                        ; +0x64, 0x484b10\nMOV             R1, R6                                                 ; +0x68, 0x484b14\nLDR.W           R0, [R3,#0x984]                                        ; +0x6a, 0x484b16\nLDR             R3, [R0]                                               ; +0x6e, 0x484b1a\nLDR             R3, [R3,#0x5C]                                         ; +0x70, 0x484b1c\nBLX             R3                                                     ; +0x72, 0x484b1e\nMOV             R0, R5; this                                           ; +0x74, 0x484b20\nBL              _ZN8EditorUI26constrainGameLayerPositionEv; EditorUI::constrainGameLayerPosition(void) ; +0x76, 0x484b22\nMOV             R0, R5; this                                           ; +0x7a, 0x484b26\nBL              _ZN8EditorUI12updateSliderEv; EditorUI::updateSlider(void) ; +0x7c, 0x484b28\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x80, 0x484b2c\nLDR             R3, [R4]                                               ; +0x82, 0x484b2e\nCMP             R2, R3                                                 ; +0x84, 0x484b30\nBEQ             loc_484B38                                             ; +0x86, 0x484b32\nBLX             __stack_chk_fail                                       ; +0x88, 0x484b34\nADD             SP, SP, #0x18                                          ; +0x8c, 0x484b38\nPOP             {R4-R6,PC}                                             ; +0x8e, 0x484b3a", "xrefs": ["EditorUI::centerCameraOnObject @ 0x484b64", "EditorUI::handleEditorAction @ 0x6f2068", "EditorUI::findObject @ 0x6f4d5a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}