; ; cocos2d::CCDirector::updateScreenScale from 0x1800c3a50 to 0x1800c3b33 (227 bytes) ; ; 4 xrefs: ; > cocos2d::CCEGLView::updateWindow @ 0x18007c297 ; > cocos2d::CCDirector::setupScreenScale @ 0x1800c34d7 ; > @ 0x18014cf68 ; > @ 0x1801c36e4 ; ; 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:22:26 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1800c3a50 mov [rsp+arg_10], rsi ; +0x5, 0x1800c3a55 push rdi ; +0xa, 0x1800c3a5a sub rsp, 20h ; +0xb, 0x1800c3a5b mov rsi, rcx ; +0xf, 0x1800c3a5f add rcx, 188h ; +0x12, 0x1800c3a62 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x19, 0x1800c3a69 movss xmm1, dword ptr [rsi+18Ch] ; +0x1e, 0x1800c3a6e mov eax, 4 ; +0x26, 0x1800c3a76 movss xmm0, dword ptr [rsi+188h] ; +0x2b, 0x1800c3a7b mov edi, 3 ; +0x33, 0x1800c3a83 divss xmm1, dword ptr [rsi+184h] ; +0x38, 0x1800c3a88 divss xmm0, dword ptr [rsi+180h] ; +0x40, 0x1800c3a90 comiss xmm1, xmm0 ; +0x48, 0x1800c3a98 cmova edi, eax ; +0x4b, 0x1800c3a9b call ?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x4e, 0x1800c3a9e movss xmm2, dword ptr [rsi+184h] ; +0x53, 0x1800c3aa3 mov r9d, edi ; +0x5b, 0x1800c3aab movss xmm1, dword ptr [rsi+180h] ; +0x5e, 0x1800c3aae mov rcx, [rax] ; +0x66, 0x1800c3ab6 mov rdx, [rcx+48h] ; +0x69, 0x1800c3ab9 mov rcx, rax ; +0x6d, 0x1800c3abd call rdx ; +0x70, 0x1800c3ac0 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x72, 0x1800c3ac2 lea rcx, [rsp+28h+arg_0] ; +0x77, 0x1800c3ac7 lea rdx, [rax+140h] ; +0x7c, 0x1800c3acc call ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x83, 0x1800c3ad3 movss xmm1, [rsp+28h+arg_0] ; +0x88, 0x1800c3ad8 xor eax, eax ; +0x8e, 0x1800c3ade movss xmm2, [rsp+28h+arg_4] ; +0x90, 0x1800c3ae0 mov rbx, [rsp+28h+arg_8] ; +0x96, 0x1800c3ae6 movss dword ptr [rsi+5Ch], xmm1 ; +0x9b, 0x1800c3aeb divss xmm1, dword ptr [rsi+180h] ; +0xa0, 0x1800c3af0 mov [rsi+54h], rax ; +0xa8, 0x1800c3af8 movss dword ptr [rsi+50h], xmm2 ; +0xac, 0x1800c3afc divss xmm2, dword ptr [rsi+184h] ; +0xb1, 0x1800c3b01 movaps xmm0, xmm1 ; +0xb9, 0x1800c3b09 movss dword ptr [rsi+48h], xmm1 ; +0xbc, 0x1800c3b0c minss xmm0, xmm2 ; +0xc1, 0x1800c3b11 movss dword ptr [rsi+4Ch], xmm2 ; +0xc5, 0x1800c3b15 maxss xmm1, xmm2 ; +0xca, 0x1800c3b1a movss dword ptr [rsi+40h], xmm0 ; +0xce, 0x1800c3b1e movss dword ptr [rsi+44h], xmm1 ; +0xd3, 0x1800c3b23 mov rsi, [rsp+28h+arg_10] ; +0xd8, 0x1800c3b28 add rsp, 20h ; +0xdd, 0x1800c3b2d pop rdi ; +0xe1, 0x1800c3b31 retn ; +0xe2, 0x1800c3b32