; ; EditorWindowPopup::clampWindowCenter from 0x14017e930 to 0x14017ea9b (363 bytes) ; ; 5 xrefs: ; > EditorWindowPopup::initWindow @ 0x14017e333 ; > EditorWindowPopup::ccTouchMoved @ 0x14017f709 ; > EditorWindowPopup::ccTouchEnded @ 0x14017f8bd ; > EditorWindowPopup::ccTouchCancelled @ 0x14017fa1a ; > @ 0x140918a40 ; ; 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:27:36 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x14017e930 push rdi ; +0x5, 0x14017e935 sub rsp, 70h ; +0x6, 0x14017e936 mov rax, [rcx+3E8h] ; +0xa, 0x14017e93a mov rbx, r8 ; +0x11, 0x14017e941 movaps [rsp+78h+var_18], xmm6 ; +0x14, 0x14017e944 mov rdi, rdx ; +0x19, 0x14017e949 movss xmm6, dword ptr [rcx+418h] ; +0x1c, 0x14017e94c movaps [rsp+78h+var_28], xmm7 ; +0x24, 0x14017e954 movaps [rsp+78h+var_38], xmm8 ; +0x29, 0x14017e959 movaps xmm8, xmm6 ; +0x2f, 0x14017e95f mulss xmm8, dword ptr [rcx+410h] ; +0x33, 0x14017e963 mulss xmm6, dword ptr [rcx+414h] ; +0x3c, 0x14017e96c movaps [rsp+78h+var_48], xmm9 ; +0x44, 0x14017e974 movaps [rsp+78h+var_58], xmm10 ; +0x4a, 0x14017e97a test rax, rax ; +0x50, 0x14017e980 jz short loc_14017E990 ; +0x53, 0x14017e983 movss xmm10, dword ptr [rax+388h] ; +0x55, 0x14017e985 jmp short loc_14017E994 ; +0x5e, 0x14017e98e xorps xmm10, xmm10 ; +0x60, 0x14017e990 mulss xmm6, cs:dword_140834F20 ; +0x64, 0x14017e994 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x6c, 0x14017e99c mov rcx, rax ; +0x72, 0x14017e9a2 call cs:?getScreenBottom@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenBottom(void) ; +0x75, 0x14017e9a5 movaps xmm9, xmm0 ; +0x7b, 0x14017e9ab addss xmm9, xmm10 ; +0x7f, 0x14017e9af addss xmm9, cs:flt_1408354EC ; +0x84, 0x14017e9b4 subss xmm9, xmm6 ; +0x8d, 0x14017e9bd addss xmm9, cs:flt_140835490 ; +0x92, 0x14017e9c2 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9b, 0x14017e9cb mov rcx, rax ; +0xa1, 0x14017e9d1 call cs:?getScreenTop@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenTop(void) ; +0xa4, 0x14017e9d4 movaps xmm10, xmm0 ; +0xaa, 0x14017e9da subss xmm10, xmm6 ; +0xae, 0x14017e9de movaps xmm6, xmm8 ; +0xb3, 0x14017e9e3 mulss xmm6, cs:dword_140834EA0 ; +0xb7, 0x14017e9e7 mulss xmm8, cs:dword_140834F20 ; +0xbf, 0x14017e9ef call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc8, 0x14017e9f8 mov rcx, rax ; +0xce, 0x14017e9fe call cs:?getScreenLeft@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenLeft(void) ; +0xd1, 0x14017ea01 movaps xmm7, xmm0 ; +0xd7, 0x14017ea07 subss xmm7, xmm8 ; +0xda, 0x14017ea0a addss xmm7, xmm6 ; +0xdf, 0x14017ea0f call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe3, 0x14017ea13 mov rcx, rax ; +0xe9, 0x14017ea19 call cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0xec, 0x14017ea1c movss xmm1, dword ptr [rbx] ; +0xf2, 0x14017ea22 addss xmm0, xmm8 ; +0xf6, 0x14017ea26 comiss xmm7, xmm1 ; +0xfb, 0x14017ea2b subss xmm0, xmm6 ; +0xfe, 0x14017ea2e jbe short loc_14017EA3A ; +0x102, 0x14017ea32 movss dword ptr [rbx], xmm7 ; +0x104, 0x14017ea34 jmp short loc_14017EA43 ; +0x108, 0x14017ea38 comiss xmm1, xmm0 ; +0x10a, 0x14017ea3a jbe short loc_14017EA43 ; +0x10d, 0x14017ea3d movss dword ptr [rbx], xmm0 ; +0x10f, 0x14017ea3f movss xmm0, dword ptr [rbx+4] ; +0x113, 0x14017ea43 comiss xmm9, xmm0 ; +0x118, 0x14017ea48 jbe short loc_14017EA56 ; +0x11c, 0x14017ea4c movss dword ptr [rbx+4], xmm9 ; +0x11e, 0x14017ea4e jmp short loc_14017EA62 ; +0x124, 0x14017ea54 comiss xmm0, xmm10 ; +0x126, 0x14017ea56 jbe short loc_14017EA62 ; +0x12a, 0x14017ea5a movss dword ptr [rbx+4], xmm10 ; +0x12c, 0x14017ea5c mov rdx, rbx ; +0x132, 0x14017ea62 mov rcx, rdi ; +0x135, 0x14017ea65 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x138, 0x14017ea68 mov rbx, [rsp+78h+arg_0] ; +0x13e, 0x14017ea6e mov rax, rdi ; +0x146, 0x14017ea76 movaps xmm6, [rsp+78h+var_18] ; +0x149, 0x14017ea79 movaps xmm7, [rsp+78h+var_28] ; +0x14e, 0x14017ea7e movaps xmm8, [rsp+78h+var_38] ; +0x153, 0x14017ea83 movaps xmm9, [rsp+78h+var_48] ; +0x159, 0x14017ea89 movaps xmm10, [rsp+78h+var_58] ; +0x15f, 0x14017ea8f add rsp, 70h ; +0x165, 0x14017ea95 pop rdi ; +0x169, 0x14017ea99 retn ; +0x16a, 0x14017ea9a