; ; cocos2d::CCEGLViewProtocol::setDesignResolutionSize from 0x18006bea0 to 0x18006c070 (464 bytes) ; ; 6 xrefs: ; > @ 0x1801002c0 ; > @ 0x1801008f0 ; > @ 0x18013a208 ; > @ 0x18013a23c ; > @ 0x1801438a8 ; > @ 0x1801b3e58 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x18006bea0 push rdi ; +0x5, 0x18006bea5 sub rsp, 90h ; +0x6, 0x18006bea6 xorps xmm0, xmm0 ; +0xd, 0x18006bead mov edi, r9d ; +0x10, 0x18006beb0 ucomiss xmm1, xmm0 ; +0x13, 0x18006beb3 mov rbx, rcx ; +0x16, 0x18006beb6 jp short loc_18006BEC1 ; +0x19, 0x18006beb9 jz loc_18006C05F ; +0x1b, 0x18006bebb ucomiss xmm2, xmm0 ; +0x21, 0x18006bec1 jp short loc_18006BECC ; +0x24, 0x18006bec4 jz loc_18006C05F ; +0x26, 0x18006bec6 mov [rsp+98h+arg_0], rsi ; +0x2c, 0x18006becc add rcx, 18h; this ; +0x34, 0x18006bed4 movaps [rsp+98h+var_18], xmm6 ; +0x38, 0x18006bed8 movaps [rsp+98h+var_28], xmm7 ; +0x40, 0x18006bee0 movaps [rsp+98h+var_38], xmm8 ; +0x45, 0x18006bee5 movaps [rsp+98h+var_58], xmm10 ; +0x4b, 0x18006beeb movaps [rsp+98h+var_68], xmm11 ; +0x51, 0x18006bef1 call ?setSize@CCSize@cocos2d@@QEAAXMM@Z; cocos2d::CCSize::setSize(float,float) ; +0x57, 0x18006bef7 movss xmm11, dword ptr [rbx+10h] ; +0x5c, 0x18006befc movss xmm10, dword ptr [rbx+14h] ; +0x62, 0x18006bf02 movaps xmm0, xmm11 ; +0x68, 0x18006bf08 movss xmm7, dword ptr [rbx+18h] ; +0x6c, 0x18006bf0c movaps xmm6, xmm10 ; +0x71, 0x18006bf11 movss xmm8, dword ptr [rbx+1Ch] ; +0x75, 0x18006bf15 divss xmm0, xmm7 ; +0x7b, 0x18006bf1b divss xmm6, xmm8 ; +0x7f, 0x18006bf1f movss dword ptr [rbx+64h], xmm0 ; +0x84, 0x18006bf24 movss dword ptr [rbx+68h], xmm6 ; +0x89, 0x18006bf29 cmp edi, 1 ; +0x8e, 0x18006bf2e jnz short loc_18006BF46 ; +0x91, 0x18006bf31 maxss xmm0, xmm6 ; +0x93, 0x18006bf33 movss dword ptr [rbx+68h], xmm0 ; +0x97, 0x18006bf37 movaps xmm6, xmm0 ; +0x9c, 0x18006bf3c movss dword ptr [rbx+64h], xmm0 ; +0x9f, 0x18006bf3f jmp short loc_18006BFBC ; +0xa4, 0x18006bf44 movaps [rsp+98h+var_48], xmm9 ; +0xa6, 0x18006bf46 movaps xmm9, xmm0 ; +0xac, 0x18006bf4c cmp edi, 2 ; +0xb0, 0x18006bf50 jnz short loc_18006BF68 ; +0xb3, 0x18006bf53 minss xmm0, xmm6 ; +0xb5, 0x18006bf55 movss dword ptr [rbx+68h], xmm0 ; +0xb9, 0x18006bf59 movaps xmm6, xmm0 ; +0xbe, 0x18006bf5e movss dword ptr [rbx+64h], xmm0 ; +0xc1, 0x18006bf61 jmp short loc_18006BFB6 ; +0xc6, 0x18006bf66 cmp edi, 3 ; +0xc8, 0x18006bf68 jnz short loc_18006BF8C ; +0xcb, 0x18006bf6b movaps xmm0, xmm11 ; +0xcd, 0x18006bf6d movss dword ptr [rbx+64h], xmm6 ; +0xd1, 0x18006bf71 divss xmm0, xmm6; X ; +0xd6, 0x18006bf76 call ceilf ; +0xda, 0x18006bf7a movss dword ptr [rbx+18h], xmm0 ; +0xdf, 0x18006bf7f movaps xmm7, xmm0 ; +0xe4, 0x18006bf84 movaps xmm0, xmm6 ; +0xe7, 0x18006bf87 jmp short loc_18006BFB6 ; +0xea, 0x18006bf8a cmp edi, 4 ; +0xec, 0x18006bf8c jnz short loc_18006BFB6 ; +0xef, 0x18006bf8f movaps xmm0, xmm10 ; +0xf1, 0x18006bf91 movss dword ptr [rbx+68h], xmm9 ; +0xf5, 0x18006bf95 divss xmm0, xmm9; X ; +0xfb, 0x18006bf9b call ceilf ; +0x100, 0x18006bfa0 movss dword ptr [rbx+1Ch], xmm0 ; +0x105, 0x18006bfa5 movaps xmm8, xmm0 ; +0x10a, 0x18006bfaa movaps xmm0, xmm9 ; +0x10e, 0x18006bfae movaps xmm6, xmm9 ; +0x112, 0x18006bfb2 movaps xmm9, [rsp+98h+var_48] ; +0x116, 0x18006bfb6 mulss xmm7, xmm0 ; +0x11c, 0x18006bfbc lea rcx, [rbx+20h]; this ; +0x120, 0x18006bfc0 mulss xmm6, xmm8 ; +0x124, 0x18006bfc4 subss xmm11, xmm7 ; +0x129, 0x18006bfc9 movaps xmm3, xmm7; float ; +0x12e, 0x18006bfce subss xmm10, xmm6 ; +0x131, 0x18006bfd1 movss [rsp+98h+var_78], xmm6; float ; +0x136, 0x18006bfd6 mulss xmm11, cs:dword_1800E6308 ; +0x13c, 0x18006bfdc mulss xmm10, cs:dword_1800E6308 ; +0x145, 0x18006bfe5 movaps xmm1, xmm11; float ; +0x14e, 0x18006bfee movaps xmm2, xmm10; float ; +0x152, 0x18006bff2 call ?setRect@CCRect@cocos2d@@QEAAXMMMM@Z; cocos2d::CCRect::setRect(float,float,float,float) ; +0x156, 0x18006bff6 mov rax, [rbx] ; +0x15b, 0x18006bffb mov rcx, rbx ; +0x15e, 0x18006bffe mov [rbx+6Ch], edi ; +0x161, 0x18006c001 call qword ptr [rax+50h] ; +0x164, 0x18006c004 mov rbx, rax ; +0x167, 0x18006c007 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x16a, 0x18006c00a mov rdx, rbx ; +0x16f, 0x18006c00f lea rcx, [rax+138h] ; +0x172, 0x18006c012 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x179, 0x18006c019 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x17e, 0x18006c01e mov rcx, rax; this ; +0x183, 0x18006c023 call ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x186, 0x18006c026 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x18b, 0x18006c02b mov rcx, rax; this ; +0x190, 0x18006c030 call ?setGLDefaultValues@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setGLDefaultValues(void) ; +0x193, 0x18006c033 movaps xmm11, [rsp+98h+var_68] ; +0x198, 0x18006c038 movaps xmm10, [rsp+98h+var_58] ; +0x19e, 0x18006c03e movaps xmm8, [rsp+98h+var_38] ; +0x1a4, 0x18006c044 movaps xmm7, [rsp+98h+var_28] ; +0x1aa, 0x18006c04a movaps xmm6, [rsp+98h+var_18] ; +0x1af, 0x18006c04f mov rsi, [rsp+98h+arg_0] ; +0x1b7, 0x18006c057 mov rbx, [rsp+98h+arg_8] ; +0x1bf, 0x18006c05f add rsp, 90h ; +0x1c7, 0x18006c067 pop rdi ; +0x1ce, 0x18006c06e retn ; +0x1cf, 0x18006c06f