; ; cocos2d::CCEGLViewProtocol::updateDesignResolutionSize from 0x18006e490 to 0x18006e649 (441 bytes) ; ; 4 xrefs: ; > @ 0x180143720 ; > @ 0x1801437a4 ; > @ 0x18014cf68 ; > @ 0x1801be218 ; ; 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:21:55 +0000 ; mov rax, rsp ; +0x0, 0x18006e490 push rdi ; +0x3, 0x18006e493 sub rsp, 90h ; +0x4, 0x18006e494 movaps xmmword ptr [rax-68h], xmm11 ; +0xb, 0x18006e49b xorps xmm0, xmm0 ; +0x10, 0x18006e4a0 movss xmm11, dword ptr [rcx+10h] ; +0x13, 0x18006e4a3 mov rdi, rcx ; +0x19, 0x18006e4a9 comiss xmm11, xmm0 ; +0x1c, 0x18006e4ac jbe loc_18006E63A ; +0x20, 0x18006e4b0 movaps xmmword ptr [rax-58h], xmm10 ; +0x26, 0x18006e4b6 movss xmm10, dword ptr [rcx+14h] ; +0x2b, 0x18006e4bb comiss xmm10, xmm0 ; +0x31, 0x18006e4c1 jbe loc_18006E634 ; +0x35, 0x18006e4c5 movaps xmmword ptr [rax-38h], xmm8 ; +0x3b, 0x18006e4cb movss xmm8, dword ptr [rcx+18h] ; +0x40, 0x18006e4d0 comiss xmm8, xmm0 ; +0x46, 0x18006e4d6 jbe loc_18006E62E ; +0x4a, 0x18006e4da movaps xmmword ptr [rax-48h], xmm9 ; +0x50, 0x18006e4e0 movss xmm9, dword ptr [rcx+1Ch] ; +0x55, 0x18006e4e5 comiss xmm9, xmm0 ; +0x5b, 0x18006e4eb jbe loc_18006E628 ; +0x5f, 0x18006e4ef mov [rax+8], rbx ; +0x65, 0x18006e4f5 movaps xmmword ptr [rax-18h], xmm6 ; +0x69, 0x18006e4f9 movaps xmm6, xmm11 ; +0x6d, 0x18006e4fd movaps xmmword ptr [rax-28h], xmm7 ; +0x71, 0x18006e501 movaps xmm7, xmm10 ; +0x75, 0x18006e505 mov eax, [rcx+6Ch] ; +0x79, 0x18006e509 divss xmm7, xmm9 ; +0x7c, 0x18006e50c divss xmm6, xmm8 ; +0x81, 0x18006e511 movss dword ptr [rcx+68h], xmm7 ; +0x86, 0x18006e516 movss dword ptr [rcx+64h], xmm6 ; +0x8b, 0x18006e51b cmp eax, 1 ; +0x90, 0x18006e520 jnz short loc_18006E535 ; +0x93, 0x18006e523 maxss xmm6, xmm7 ; +0x95, 0x18006e525 movss dword ptr [rcx+68h], xmm6 ; +0x99, 0x18006e529 movss dword ptr [rcx+64h], xmm6 ; +0x9e, 0x18006e52e jmp short loc_18006E598 ; +0xa3, 0x18006e533 cmp eax, 2 ; +0xa5, 0x18006e535 jnz short loc_18006E550 ; +0xa8, 0x18006e538 movaps xmm0, xmm6 ; +0xaa, 0x18006e53a minss xmm0, xmm7 ; +0xad, 0x18006e53d movss dword ptr [rcx+68h], xmm0 ; +0xb1, 0x18006e541 movaps xmm7, xmm0 ; +0xb6, 0x18006e546 movss dword ptr [rcx+64h], xmm0 ; +0xb9, 0x18006e549 jmp short loc_18006E59E ; +0xbe, 0x18006e54e cmp eax, 3 ; +0xc0, 0x18006e550 jnz short loc_18006E575 ; +0xc3, 0x18006e553 movaps xmm0, xmm11 ; +0xc5, 0x18006e555 movss dword ptr [rcx+64h], xmm7 ; +0xc9, 0x18006e559 divss xmm0, xmm7; X ; +0xce, 0x18006e55e call ceilf ; +0xd2, 0x18006e562 movss dword ptr [rdi+18h], xmm0 ; +0xd7, 0x18006e567 movaps xmm8, xmm0 ; +0xdc, 0x18006e56c movaps xmm0, xmm7 ; +0xe0, 0x18006e570 jmp short loc_18006E59E ; +0xe3, 0x18006e573 movaps xmm0, xmm6 ; +0xe5, 0x18006e575 cmp eax, 4 ; +0xe8, 0x18006e578 jnz short loc_18006E59E ; +0xeb, 0x18006e57b movaps xmm0, xmm10 ; +0xed, 0x18006e57d movss dword ptr [rcx+68h], xmm6 ; +0xf1, 0x18006e581 divss xmm0, xmm6; X ; +0xf6, 0x18006e586 call ceilf ; +0xfa, 0x18006e58a movss dword ptr [rdi+1Ch], xmm0 ; +0xff, 0x18006e58f movaps xmm9, xmm0 ; +0x104, 0x18006e594 movaps xmm7, xmm6 ; +0x108, 0x18006e598 movaps xmm0, xmm6 ; +0x10b, 0x18006e59b mulss xmm8, xmm0 ; +0x10e, 0x18006e59e lea rcx, [rdi+20h]; this ; +0x113, 0x18006e5a3 mulss xmm9, xmm7 ; +0x117, 0x18006e5a7 subss xmm11, xmm8 ; +0x11c, 0x18006e5ac movaps xmm3, xmm8; float ; +0x121, 0x18006e5b1 subss xmm10, xmm9 ; +0x125, 0x18006e5b5 movss [rsp+98h+var_78], xmm9; float ; +0x12a, 0x18006e5ba mulss xmm11, cs:dword_1800EC358 ; +0x131, 0x18006e5c1 mulss xmm10, cs:dword_1800EC358 ; +0x13a, 0x18006e5ca movaps xmm1, xmm11; float ; +0x143, 0x18006e5d3 movaps xmm2, xmm10; float ; +0x147, 0x18006e5d7 call ?setRect@CCRect@cocos2d@@QEAAXMMMM@Z; cocos2d::CCRect::setRect(float,float,float,float) ; +0x14b, 0x18006e5db call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x150, 0x18006e5e0 mov rcx, [rdi] ; +0x155, 0x18006e5e5 mov rbx, rax ; +0x158, 0x18006e5e8 mov rdx, [rcx+50h] ; +0x15b, 0x18006e5eb mov rcx, rdi ; +0x15f, 0x18006e5ef call rdx ; +0x162, 0x18006e5f2 mov rdx, rax ; +0x164, 0x18006e5f4 lea rcx, [rbx+140h] ; +0x167, 0x18006e5f7 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x16e, 0x18006e5fe mov rcx, rbx; this ; +0x173, 0x18006e603 call ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x176, 0x18006e606 mov rcx, rbx; this ; +0x17b, 0x18006e60b call ?setGLDefaultValues@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setGLDefaultValues(void) ; +0x17e, 0x18006e60e movaps xmm7, [rsp+98h+var_28] ; +0x183, 0x18006e613 movaps xmm6, [rsp+98h+var_18] ; +0x188, 0x18006e618 mov rbx, [rsp+98h+arg_0] ; +0x190, 0x18006e620 movaps xmm9, [rsp+98h+var_48] ; +0x198, 0x18006e628 movaps xmm8, [rsp+98h+var_38] ; +0x19e, 0x18006e62e movaps xmm10, [rsp+98h+var_58] ; +0x1a4, 0x18006e634 movaps xmm11, [rsp+98h+var_68] ; +0x1aa, 0x18006e63a add rsp, 90h ; +0x1b0, 0x18006e640 pop rdi ; +0x1b7, 0x18006e647 retn ; +0x1b8, 0x18006e648