{"type": "func", "start": 5369899968, "end": 5369900231, "name": "EditorUI::getXMin", "pseudocode": "// \n// EditorUI::getXMin from 0x140122bc0 to 0x140122cc7 (263 bytes)\n// \n// 3 xrefs:\n// > EditorUI::sliderChanged @ 0x1400e2a7f\n// > EditorUI::updateSlider @ 0x1400e2b70\n// > <???> @ 0x1406c9870\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\nfloat EditorUI::getXMin(EditorUI *a1, int a2)\n{\n  __int64 v3; // rcx\n  cocos2d::CCDirector *v4; // rax\n  float ScreenLeft; // xmm0_4\n  cocos2d::CCLayer *m_objectLayer; // rbx\n  struct cocos2d::CCPoint v7; // rax\n  cocos2d::CCPoint v9[3]; // [rsp+20h] [rbp-18h] BYREF\n  struct cocos2d::CCPoint v10; // [rsp+40h] [rbp+8h] BYREF\n  cocos2d::CCPoint v11; // [rsp+50h] [rbp+18h] BYREF\n  cocos2d::CCPoint v12; // [rsp+58h] [rbp+20h] BYREF\n\n  ((void (__fastcall *)(cocos2d::CCLayer *, int))a1->m_editorLayer->m_objectLayer->getPosition_0)(\n    a1->m_editorLayer->m_objectLayer,\n    a2);\n  cocos2d::CCPoint::CCPoint(&v11);\n  a1->m_editorLayer->m_objectLayer->setPosition_0(\n    a1->m_editorLayer->m_objectLayer,\n    (const cocos2d::CCPoint *)&dword_1406C1AA8);\n  v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);\n  ScreenLeft = cocos2d::CCDirector::getScreenLeft(v4);\n  cocos2d::CCPoint::CCPoint(&v12, ScreenLeft, a1->m_constrainedHeight);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  cocos2d::CCPoint::CCPoint(v9, -30.0, 60.0);\n  cocos2d::CCNode::convertToWorldSpace(m_objectLayer, &v10);\n  v7 = cocos2d::CCNode::convertToNodeSpace(a1->m_editorLayer, v9);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v10, v7);\n  a1->m_editorLayer->m_objectLayer->setPosition_0(a1->m_editorLayer->m_objectLayer, &v11);\n  return v12.x - v10.x;\n}", "assembly": "; \n; EditorUI::getXMin from 0x140122bc0 to 0x140122cc7 (263 bytes)\n; \n; 3 xrefs:\n; > EditorUI::sliderChanged @ 0x1400e2a7f\n; > EditorUI::updateSlider @ 0x1400e2b70\n; > <???> @ 0x1406c9870\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140122bc0\npush    rdi                                                            ; +0x5, 0x140122bc5\nsub     rsp, 30h                                                       ; +0x6, 0x140122bc6\nmov     rax, [rcx+500h]                                                ; +0xa, 0x140122bca\nmov     rdi, rcx                                                       ; +0x11, 0x140122bd1\nmov     rcx, [rax+0FE8h]                                               ; +0x14, 0x140122bd4\nmov     rax, [rcx]                                                     ; +0x1b, 0x140122bdb\ncall    qword ptr [rax+0C8h]                                           ; +0x1e, 0x140122bde\nmov     rdx, rax                                                       ; +0x24, 0x140122be4\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x27, 0x140122be7\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x2c, 0x140122bec\nmov     rax, [rdi+500h]                                                ; +0x32, 0x140122bf2\nlea     rdx, dword_1406C1AA8                                           ; +0x39, 0x140122bf9\nmov     rcx, [rax+0FE8h]                                               ; +0x40, 0x140122c00\nmov     rax, [rcx]                                                     ; +0x47, 0x140122c07\ncall    qword ptr [rax+0B8h]                                           ; +0x4a, 0x140122c0a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x50, 0x140122c10\nmov     rcx, rax                                                       ; +0x56, 0x140122c16\ncall    cs:?getScreenLeft@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenLeft(void) ; +0x59, 0x140122c19\nmovss   xmm2, dword ptr [rdi+314h]                                     ; +0x5f, 0x140122c1f\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x67, 0x140122c27\nmovaps  xmm1, xmm0                                                     ; +0x6c, 0x140122c2c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x6f, 0x140122c2f\nmov     rax, [rdi+500h]                                                ; +0x75, 0x140122c35\nlea     rcx, [rsp+38h+var_18]                                          ; +0x7c, 0x140122c3c\nmovss   xmm2, cs:dword_140623210                                       ; +0x81, 0x140122c41\nmovss   xmm1, cs:dword_1406238D8                                       ; +0x89, 0x140122c49\nmov     rbx, [rax+0FE8h]                                               ; +0x91, 0x140122c51\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x98, 0x140122c58\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x9e, 0x140122c5e\nmov     rcx, rbx                                                       ; +0xa3, 0x140122c63\nmov     r8, rax                                                        ; +0xa6, 0x140122c66\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xa9, 0x140122c69\nmov     rcx, [rdi+500h]                                                ; +0xaf, 0x140122c6f\nlea     r8, [rsp+38h+arg_0]                                            ; +0xb6, 0x140122c76\nlea     rdx, [rsp+38h+var_18]                                          ; +0xbb, 0x140122c7b\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xc0, 0x140122c80\nmov     rdx, rax                                                       ; +0xc6, 0x140122c86\nlea     rcx, [rsp+38h+arg_0]                                           ; +0xc9, 0x140122c89\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xce, 0x140122c8e\nmov     rax, [rdi+500h]                                                ; +0xd4, 0x140122c94\nlea     rdx, [rsp+38h+arg_10]                                          ; +0xdb, 0x140122c9b\nmov     rcx, [rax+0FE8h]                                               ; +0xe0, 0x140122ca0\nmov     rax, [rcx]                                                     ; +0xe7, 0x140122ca7\ncall    qword ptr [rax+0B8h]                                           ; +0xea, 0x140122caa\nmovss   xmm0, dword ptr [rsp+38h+arg_18]                               ; +0xf0, 0x140122cb0\nsubss   xmm0, dword ptr [rsp+38h+arg_0]                                ; +0xf6, 0x140122cb6\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xfc, 0x140122cbc\nadd     rsp, 30h                                                       ; +0x101, 0x140122cc1\npop     rdi                                                            ; +0x105, 0x140122cc5\nretn                                                                   ; +0x106, 0x140122cc6", "xrefs": ["EditorUI::sliderChanged @ 0x1400e2a7f", "EditorUI::updateSlider @ 0x1400e2b70", "<???> @ 0x1406c9870"], "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"}