; ; EditorWindowPopup::clampWindowOnScreen from 0x14017eaa0 to 0x14017ec3b (411 bytes) ; ; 2 xrefs: ; > EmotePickerPopup::init @ 0x140123bea ; > @ 0x140918a4c ; ; 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 rax, rsp ; +0x0, 0x14017eaa0 mov [rax+8], rbx ; +0x3, 0x14017eaa3 push rdi ; +0x7, 0x14017eaa7 sub rsp, 90h ; +0x8, 0x14017eaa8 movaps xmmword ptr [rax-18h], xmm6 ; +0xf, 0x14017eaaf mov rbx, r8 ; +0x13, 0x14017eab3 movaps xmmword ptr [rax-28h], xmm7 ; +0x16, 0x14017eab6 mov rdi, rdx ; +0x1a, 0x14017eaba movaps xmmword ptr [rax-38h], xmm8 ; +0x1d, 0x14017eabd movaps xmmword ptr [rax-48h], xmm9 ; +0x22, 0x14017eac2 movss xmm9, dword ptr [rcx+418h] ; +0x27, 0x14017eac7 movaps xmmword ptr [rax-58h], xmm10 ; +0x30, 0x14017ead0 movaps xmm8, xmm9 ; +0x35, 0x14017ead5 mulss xmm8, dword ptr [rcx+410h] ; +0x39, 0x14017ead9 mulss xmm9, dword ptr [rcx+414h] ; +0x42, 0x14017eae2 movaps xmmword ptr [rax-68h], xmm11 ; +0x4b, 0x14017eaeb movaps xmmword ptr [rax-78h], xmm12 ; +0x50, 0x14017eaf0 mov rax, [rcx+3E8h] ; +0x55, 0x14017eaf5 test rax, rax ; +0x5c, 0x14017eafc jz short loc_14017EB0C ; +0x5f, 0x14017eaff movss xmm11, dword ptr [rax+388h] ; +0x61, 0x14017eb01 jmp short loc_14017EB10 ; +0x6a, 0x14017eb0a xorps xmm11, xmm11 ; +0x6c, 0x14017eb0c movss xmm12, cs:dword_140834F20 ; +0x70, 0x14017eb10 mulss xmm8, xmm12 ; +0x79, 0x14017eb19 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7e, 0x14017eb1e mov rcx, rax ; +0x84, 0x14017eb24 call cs:?getScreenLeft@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenLeft(void) ; +0x87, 0x14017eb27 movss xmm6, cs:flt_140835490 ; +0x8d, 0x14017eb2d movaps xmm10, xmm0 ; +0x95, 0x14017eb35 addss xmm10, xmm6 ; +0x99, 0x14017eb39 addss xmm10, xmm8 ; +0x9e, 0x14017eb3e call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xa3, 0x14017eb43 mov rcx, rax ; +0xa9, 0x14017eb49 call cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0xac, 0x14017eb4c movaps xmm7, xmm0 ; +0xb2, 0x14017eb52 mulss xmm9, xmm12 ; +0xb5, 0x14017eb55 subss xmm7, xmm6 ; +0xba, 0x14017eb5a subss xmm7, xmm8 ; +0xbe, 0x14017eb5e call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc3, 0x14017eb63 mov rcx, rax ; +0xc9, 0x14017eb69 call cs:?getScreenBottom@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenBottom(void) ; +0xcc, 0x14017eb6c movaps xmm8, xmm0 ; +0xd2, 0x14017eb72 addss xmm8, xmm11 ; +0xd6, 0x14017eb76 addss xmm8, xmm6 ; +0xdb, 0x14017eb7b addss xmm8, xmm9 ; +0xe0, 0x14017eb80 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe5, 0x14017eb85 mov rcx, rax ; +0xeb, 0x14017eb8b call cs:?getScreenTop@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenTop(void) ; +0xee, 0x14017eb8e comiss xmm10, xmm7 ; +0xf4, 0x14017eb94 subss xmm0, xmm6 ; +0xf8, 0x14017eb98 subss xmm0, xmm9 ; +0xfc, 0x14017eb9c jbe short loc_14017EBAF ; +0x101, 0x14017eba1 addss xmm7, xmm10 ; +0x103, 0x14017eba3 mulss xmm7, xmm12 ; +0x108, 0x14017eba8 jmp short loc_14017EBC5 ; +0x10d, 0x14017ebad movss xmm1, dword ptr [rbx] ; +0x10f, 0x14017ebaf comiss xmm10, xmm1 ; +0x113, 0x14017ebb3 jbe short loc_14017EBC0 ; +0x117, 0x14017ebb7 movss dword ptr [rbx], xmm10 ; +0x119, 0x14017ebb9 jmp short loc_14017EBC9 ; +0x11e, 0x14017ebbe comiss xmm1, xmm7 ; +0x120, 0x14017ebc0 jbe short loc_14017EBC9 ; +0x123, 0x14017ebc3 movss dword ptr [rbx], xmm7 ; +0x125, 0x14017ebc5 comiss xmm8, xmm0 ; +0x129, 0x14017ebc9 jbe short loc_14017EBDB ; +0x12d, 0x14017ebcd addss xmm0, xmm8 ; +0x12f, 0x14017ebcf mulss xmm0, xmm12 ; +0x134, 0x14017ebd4 jmp short loc_14017EBF3 ; +0x139, 0x14017ebd9 movss xmm1, dword ptr [rbx+4] ; +0x13b, 0x14017ebdb comiss xmm8, xmm1 ; +0x140, 0x14017ebe0 jbe short loc_14017EBEE ; +0x144, 0x14017ebe4 movss dword ptr [rbx+4], xmm8 ; +0x146, 0x14017ebe6 jmp short loc_14017EBF8 ; +0x14c, 0x14017ebec comiss xmm1, xmm0 ; +0x14e, 0x14017ebee jbe short loc_14017EBF8 ; +0x151, 0x14017ebf1 movss dword ptr [rbx+4], xmm0 ; +0x153, 0x14017ebf3 mov rdx, rbx ; +0x158, 0x14017ebf8 mov rcx, rdi ; +0x15b, 0x14017ebfb call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x15e, 0x14017ebfe movaps xmm7, [rsp+98h+var_28] ; +0x164, 0x14017ec04 lea r11, [rsp+98h+var_8] ; +0x169, 0x14017ec09 mov rbx, [r11+10h] ; +0x171, 0x14017ec11 mov rax, rdi ; +0x175, 0x14017ec15 movaps xmm6, xmmword ptr [r11-10h] ; +0x178, 0x14017ec18 movaps xmm8, xmmword ptr [r11-30h] ; +0x17d, 0x14017ec1d movaps xmm9, xmmword ptr [r11-40h] ; +0x182, 0x14017ec22 movaps xmm10, xmmword ptr [r11-50h] ; +0x187, 0x14017ec27 movaps xmm11, xmmword ptr [r11-60h] ; +0x18c, 0x14017ec2c movaps xmm12, xmmword ptr [r11-70h] ; +0x191, 0x14017ec31 mov rsp, r11 ; +0x196, 0x14017ec36 pop rdi ; +0x199, 0x14017ec39 retn ; +0x19a, 0x14017ec3a