; ; EditorUI::constrainGameLayerPosition from 0x1401bf010 to 0x1401bf266 (598 bytes) ; ; 9 xrefs: ; > EditorUI::init @ 0x1401ab26c ; > EditorUI::sliderChanged @ 0x1401ae0f8 ; > EditorUI::moveGamelayer @ 0x1401ae99e ; > EditorUI::centerCameraOnPoint @ 0x1401b1530 ; > EditorUI::updateZoom @ 0x1401b4d7b ; > EditorUI::ccTouchMoved @ 0x1401c07d3 ; > EditorUI::ccTouchMoved @ 0x1401c0cb6 ; > sub_1401C4B40 @ 0x1401c503e ; > @ 0x14091a57c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:28:02 +0000 ; mov [rsp-8+arg_8], rbx ; +0x0, 0x1401bf010 mov [rsp-8+arg_10], rdi ; +0x5, 0x1401bf015 push rbp ; +0xa, 0x1401bf01a mov rbp, rsp ; +0xb, 0x1401bf01b sub rsp, 80h ; +0xe, 0x1401bf01e mov rax, [rcx+5E8h] ; +0x15, 0x1401bf025 mov rdi, rcx ; +0x1c, 0x1401bf02c movaps [rsp+80h+var_10], xmm6 ; +0x1f, 0x1401bf02f movaps [rsp+80h+var_20], xmm7 ; +0x24, 0x1401bf034 movaps xmm7, xmm2 ; +0x29, 0x1401bf039 movaps [rsp+80h+var_30], xmm8 ; +0x2c, 0x1401bf03c movaps xmm8, xmm1 ; +0x32, 0x1401bf042 mov rcx, [rax+10C8h] ; +0x36, 0x1401bf046 movaps [rsp+80h+var_40], xmm10 ; +0x3d, 0x1401bf04d mov rax, [rcx] ; +0x43, 0x1401bf053 call qword ptr [rax+0C8h] ; +0x46, 0x1401bf056 mov rdx, rax ; +0x4c, 0x1401bf05c lea rcx, [rbp+arg_0] ; +0x4f, 0x1401bf05f call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x53, 0x1401bf063 mov rax, [rdi+5E8h] ; +0x59, 0x1401bf069 lea rdx, dword_14090A6E8 ; +0x60, 0x1401bf070 mov rcx, [rax+10C8h] ; +0x67, 0x1401bf077 mov rax, [rcx] ; +0x6e, 0x1401bf07e call qword ptr [rax+0B8h] ; +0x71, 0x1401bf081 movss xmm6, dword ptr [rdi+384h] ; +0x77, 0x1401bf087 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7f, 0x1401bf08f mov rcx, rax ; +0x85, 0x1401bf095 call cs:?getScreenLeft@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenLeft(void) ; +0x88, 0x1401bf098 movaps xmm2, xmm6 ; +0x8e, 0x1401bf09e lea rcx, [rbp+var_58] ; +0x91, 0x1401bf0a1 movaps xmm1, xmm0 ; +0x95, 0x1401bf0a5 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x98, 0x1401bf0a8 movss xmm10, cs:dword_140835624 ; +0x9e, 0x1401bf0ae lea rcx, [rbp+var_48] ; +0xa7, 0x1401bf0b7 mov rax, [rdi+5E8h] ; +0xab, 0x1401bf0bb mulss xmm7, xmm10 ; +0xb2, 0x1401bf0c2 mulss xmm8, xmm10 ; +0xb7, 0x1401bf0c7 mov rbx, [rax+10C8h] ; +0xbc, 0x1401bf0cc addss xmm7, cs:flt_140835780 ; +0xc3, 0x1401bf0d3 subss xmm8, xmm10 ; +0xcb, 0x1401bf0db movaps xmm2, xmm7 ; +0xd0, 0x1401bf0e0 movaps xmm1, xmm8 ; +0xd3, 0x1401bf0e3 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xd7, 0x1401bf0e7 lea rdx, [rbp+arg_18] ; +0xdd, 0x1401bf0ed mov rcx, rbx ; +0xe1, 0x1401bf0f1 mov r8, rax ; +0xe4, 0x1401bf0f4 call cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xe7, 0x1401bf0f7 mov rcx, [rdi+5E8h] ; +0xed, 0x1401bf0fd lea r8, [rbp+arg_18] ; +0xf4, 0x1401bf104 lea rdx, [rbp+var_48] ; +0xf8, 0x1401bf108 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xfc, 0x1401bf10c mov rdx, rax ; +0x102, 0x1401bf112 lea rcx, [rbp+arg_18] ; +0x105, 0x1401bf115 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x109, 0x1401bf119 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x10f, 0x1401bf11f mov rcx, rax ; +0x115, 0x1401bf125 call cs:?getScreenTop@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenTop(void) ; +0x118, 0x1401bf128 movaps xmm6, xmm0 ; +0x11e, 0x1401bf12e call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x121, 0x1401bf131 mov rcx, rax ; +0x127, 0x1401bf137 call cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x12a, 0x1401bf13a movaps xmm2, xmm6 ; +0x130, 0x1401bf140 lea rcx, [rbp+var_50] ; +0x133, 0x1401bf143 movaps xmm1, xmm0 ; +0x137, 0x1401bf147 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x13a, 0x1401bf14a mov rax, [rdi+5E8h] ; +0x140, 0x1401bf150 mov edx, 3E8h ; +0x147, 0x1401bf157 movss xmm1, cs:dword_140835C0C ; +0x14c, 0x1401bf15c mov rcx, [rax+0DC8h] ; +0x154, 0x1401bf164 mov rbx, [rax+10C8h] ; +0x15b, 0x1401bf16b mov eax, 50h ; 'P' ; +0x162, 0x1401bf172 cmp byte ptr [rcx+1CDh], 0 ; +0x167, 0x1401bf177 lea rcx, [rbp+var_48] ; +0x16e, 0x1401bf17e cmovnz eax, edx ; +0x172, 0x1401bf182 movd xmm2, eax ; +0x175, 0x1401bf185 cvtdq2ps xmm2, xmm2 ; +0x179, 0x1401bf189 mulss xmm2, xmm10 ; +0x17c, 0x1401bf18c addss xmm2, cs:flt_140835780 ; +0x181, 0x1401bf191 addss xmm2, xmm10 ; +0x189, 0x1401bf199 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x18e, 0x1401bf19e lea rdx, [rbp+var_60] ; +0x194, 0x1401bf1a4 mov rcx, rbx ; +0x198, 0x1401bf1a8 mov r8, rax ; +0x19b, 0x1401bf1ab call cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x19e, 0x1401bf1ae lea r8, [rbp+var_60] ; +0x1a4, 0x1401bf1b4 lea rdx, [rbp+var_48] ; +0x1a8, 0x1401bf1b8 mov rcx, [rdi+5E8h] ; +0x1ac, 0x1401bf1bc call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x1b3, 0x1401bf1c3 mov rdx, rax ; +0x1b9, 0x1401bf1c9 lea rcx, [rbp+var_60] ; +0x1bc, 0x1401bf1cc call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1c0, 0x1401bf1d0 movss xmm2, [rbp+arg_0] ; +0x1c6, 0x1401bf1d6 lea rdx, [rbp+arg_0] ; +0x1cb, 0x1401bf1db movss xmm0, [rbp+var_58] ; +0x1cf, 0x1401bf1df subss xmm0, [rbp+arg_18] ; +0x1d4, 0x1401bf1e4 movss xmm1, [rbp+var_50] ; +0x1d9, 0x1401bf1e9 subss xmm1, [rbp+var_60] ; +0x1de, 0x1401bf1ee mov rax, [rdi+5E8h] ; +0x1e3, 0x1401bf1f3 minss xmm2, xmm0 ; +0x1ea, 0x1401bf1fa movss xmm0, [rbp+var_54] ; +0x1ee, 0x1401bf1fe subss xmm0, [rbp+arg_1C] ; +0x1f3, 0x1401bf203 maxss xmm2, xmm1 ; +0x1f8, 0x1401bf208 movss xmm1, [rbp+var_4C] ; +0x1fc, 0x1401bf20c subss xmm1, [rbp+var_5C] ; +0x201, 0x1401bf211 movss [rbp+arg_0], xmm2 ; +0x206, 0x1401bf216 movss xmm2, [rbp+arg_4] ; +0x20b, 0x1401bf21b minss xmm2, xmm0 ; +0x210, 0x1401bf220 maxss xmm2, xmm1 ; +0x214, 0x1401bf224 movss [rbp+arg_4], xmm2 ; +0x218, 0x1401bf228 mov rcx, [rax+10C8h] ; +0x21d, 0x1401bf22d mov rax, [rcx] ; +0x224, 0x1401bf234 call qword ptr [rax+0B8h] ; +0x227, 0x1401bf237 movaps xmm6, [rsp+80h+var_10] ; +0x22d, 0x1401bf23d lea r11, [rsp+80h+var_s0] ; +0x232, 0x1401bf242 mov rbx, [r11+18h] ; +0x23a, 0x1401bf24a mov rdi, [r11+20h] ; +0x23e, 0x1401bf24e movaps xmm8, xmmword ptr [r11-30h] ; +0x242, 0x1401bf252 movaps xmm10, xmmword ptr [r11-40h] ; +0x247, 0x1401bf257 movaps xmm7, [rsp+80h+var_20] ; +0x24c, 0x1401bf25c mov rsp, r11 ; +0x251, 0x1401bf261 pop rbp ; +0x254, 0x1401bf264 retn ; +0x255, 0x1401bf265