; ; cocos2d::CCDirector::setProjection from 0x1800bf930 to 0x1800bfb87 (599 bytes) ; ; 10 xrefs: ; > cocos2d::CCGridBase::afterDraw @ 0x1800225e8 ; > cocos2d::CCGridBase::setActive @ 0x18002394d ; > cocos2d::CCRenderTexture::begin @ 0x18005f3fb ; > cocos2d::CCEGLView::updateWindow @ 0x1800792a3 ; > cocos2d::CCDirector::reshapeProjection @ 0x1800bf29e ; > cocos2d::CCDirector::setGLDefaultValues @ 0x1800bf65c ; > @ 0x180141e58 ; > @ 0x180141e68 ; > @ 0x1801438a8 ; > @ 0x1801b936c ; ; 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 r11, rsp ; +0x0, 0x1800bf930 mov [r11+18h], rbx ; +0x3, 0x1800bf933 mov [r11+20h], rdi ; +0x7, 0x1800bf937 push rbp ; +0xb, 0x1800bf93b lea rbp, [r11-38h] ; +0xc, 0x1800bf93c sub rsp, 130h ; +0x10, 0x1800bf940 mov rax, cs:__security_cookie ; +0x17, 0x1800bf947 xor rax, rsp ; +0x1e, 0x1800bf94e mov [rbp+30h+var_30], rax ; +0x21, 0x1800bf951 mov edi, edx ; +0x25, 0x1800bf955 mov [r11+10h], rsi ; +0x27, 0x1800bf957 lea rdx, [rcx+138h] ; +0x2b, 0x1800bf95b mov rbx, rcx ; +0x32, 0x1800bf962 lea rcx, [rsp+130h+var_F0] ; +0x35, 0x1800bf965 call ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x3a, 0x1800bf96a cmp qword ptr [rbx+0B8h], 0 ; +0x3f, 0x1800bf96f jz short loc_1800BF9AF ; +0x47, 0x1800bf977 lea rdx, [rbx+138h] ; +0x49, 0x1800bf979 lea rcx, [rsp+130h+var_E8] ; +0x50, 0x1800bf980 call ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x55, 0x1800bf985 mov rcx, [rbx+0B8h] ; +0x5a, 0x1800bf98a xorps xmm2, xmm2 ; +0x61, 0x1800bf991 movss xmm0, [rsp+130h+var_E4] ; +0x64, 0x1800bf994 xorps xmm1, xmm1 ; +0x6a, 0x1800bf99a movss xmm3, [rsp+130h+var_E8] ; +0x6d, 0x1800bf99d movss [rsp+130h+var_110], xmm0 ; +0x73, 0x1800bf9a3 mov rax, [rcx] ; +0x79, 0x1800bf9a9 call qword ptr [rax+60h] ; +0x7c, 0x1800bf9ac mov rsi, [rsp+130h+arg_8] ; +0x7f, 0x1800bf9af mov ecx, edi ; +0x87, 0x1800bf9b7 test edi, edi ; +0x89, 0x1800bf9b9 jz loc_1800BFAF7 ; +0x8b, 0x1800bf9bb sub ecx, 1 ; +0x91, 0x1800bf9c1 jz short loc_1800BF9E9 ; +0x94, 0x1800bf9c4 cmp ecx, 1 ; +0x96, 0x1800bf9c6 jnz loc_1800BFB5B ; +0x99, 0x1800bf9c9 mov rcx, [rbx+158h] ; +0x9f, 0x1800bf9cf test rcx, rcx ; +0xa6, 0x1800bf9d6 jz loc_1800BFB5B ; +0xa9, 0x1800bf9d9 mov rax, [rcx] ; +0xaf, 0x1800bf9df call qword ptr [rax] ; +0xb2, 0x1800bf9e2 jmp loc_1800BFB5B ; +0xb4, 0x1800bf9e4 movaps [rsp+130h+var_18+8], xmm6 ; +0xb9, 0x1800bf9e9 mov ecx, 1701h ; +0xc1, 0x1800bf9f1 movaps [rsp+130h+var_28+8], xmm7 ; +0xc6, 0x1800bf9f6 movss xmm7, dword ptr [rbx+13Ch] ; +0xce, 0x1800bf9fe divss xmm7, cs:dword_18010758C ; +0xd6, 0x1800bfa06 call kmGLMatrixMode ; +0xde, 0x1800bfa0e call kmGLLoadIdentity ; +0xe3, 0x1800bfa13 lea rcx, [rbp+30h+var_70] ; +0xe8, 0x1800bfa18 movss xmm2, [rsp+130h+var_F0] ; +0xec, 0x1800bfa1c movaps xmm0, xmm7 ; +0xf2, 0x1800bfa22 divss xmm2, [rsp+130h+var_EC] ; +0xf5, 0x1800bfa25 movss xmm3, cs:flt_1800E8D34 ; +0xfb, 0x1800bfa2b addss xmm0, xmm7 ; +0x103, 0x1800bfa33 movss xmm1, cs:dword_1800FEDF0 ; +0x107, 0x1800bfa37 movss [rsp+130h+var_110], xmm0 ; +0x10f, 0x1800bfa3f call kmMat4PerspectiveProjection ; +0x115, 0x1800bfa45 lea rcx, [rbp+30h+var_70] ; +0x11a, 0x1800bfa4a call kmGLMultMatrix ; +0x11e, 0x1800bfa4e mov ecx, 1700h ; +0x123, 0x1800bfa53 call kmGLMatrixMode ; +0x128, 0x1800bfa58 call kmGLLoadIdentity ; +0x12d, 0x1800bfa5d movss xmm2, [rsp+130h+var_EC] ; +0x132, 0x1800bfa62 lea rcx, [rsp+130h+var_C8] ; +0x138, 0x1800bfa68 movss xmm1, [rsp+130h+var_F0] ; +0x13d, 0x1800bfa6d movaps xmm3, xmm7 ; +0x143, 0x1800bfa73 movss xmm6, cs:dword_1800E6308 ; +0x146, 0x1800bfa76 mulss xmm2, xmm6 ; +0x14e, 0x1800bfa7e mulss xmm1, xmm6 ; +0x152, 0x1800bfa82 call kmVec3Fill ; +0x156, 0x1800bfa86 movss xmm2, [rsp+130h+var_EC] ; +0x15b, 0x1800bfa8b lea rcx, [rsp+130h+var_D8] ; +0x161, 0x1800bfa91 movss xmm1, [rsp+130h+var_F0] ; +0x166, 0x1800bfa96 xorps xmm3, xmm3 ; +0x16c, 0x1800bfa9c mulss xmm2, xmm6 ; +0x16f, 0x1800bfa9f mulss xmm1, xmm6 ; +0x173, 0x1800bfaa3 call kmVec3Fill ; +0x177, 0x1800bfaa7 movss xmm2, cs:flt_1800E61A8 ; +0x17c, 0x1800bfaac lea rcx, [rsp+130h+var_E8] ; +0x184, 0x1800bfab4 xorps xmm3, xmm3 ; +0x189, 0x1800bfab9 xorps xmm1, xmm1 ; +0x18c, 0x1800bfabc call kmVec3Fill ; +0x18f, 0x1800bfabf lea r9, [rsp+130h+var_E8] ; +0x194, 0x1800bfac4 lea r8, [rsp+130h+var_D8] ; +0x199, 0x1800bfac9 lea rdx, [rsp+130h+var_C8] ; +0x19e, 0x1800bface lea rcx, [rbp+30h+var_B0] ; +0x1a3, 0x1800bfad3 call kmMat4LookAt ; +0x1a7, 0x1800bfad7 lea rcx, [rbp+30h+var_B0] ; +0x1ac, 0x1800bfadc call kmGLMultMatrix ; +0x1b0, 0x1800bfae0 movaps xmm7, [rsp+130h+var_28+8] ; +0x1b5, 0x1800bfae5 movaps xmm6, [rsp+130h+var_18+8] ; +0x1bd, 0x1800bfaed jmp short loc_1800BFB5B ; +0x1c5, 0x1800bfaf5 mov ecx, 1701h ; +0x1c7, 0x1800bfaf7 call kmGLMatrixMode ; +0x1cc, 0x1800bfafc call kmGLLoadIdentity ; +0x1d1, 0x1800bfb01 movss xmm0, cs:dword_1801075A0 ; +0x1d6, 0x1800bfb06 lea rcx, [rbp+30h+var_B0] ; +0x1de, 0x1800bfb0e movss xmm1, cs:dword_1801075A8 ; +0x1e2, 0x1800bfb12 xorps xmm3, xmm3 ; +0x1ea, 0x1800bfb1a movss xmm2, [rsp+130h+var_F0] ; +0x1ed, 0x1800bfb1d movss [rsp+130h+var_100], xmm0 ; +0x1f3, 0x1800bfb23 movss xmm0, [rsp+130h+var_EC] ; +0x1f9, 0x1800bfb29 movss [rsp+130h+var_108], xmm1 ; +0x1ff, 0x1800bfb2f xorps xmm1, xmm1 ; +0x205, 0x1800bfb35 movss [rsp+130h+var_110], xmm0 ; +0x208, 0x1800bfb38 call kmMat4OrthographicProjection ; +0x20e, 0x1800bfb3e lea rcx, [rbp+30h+var_B0] ; +0x213, 0x1800bfb43 call kmGLMultMatrix ; +0x217, 0x1800bfb47 mov ecx, 1700h ; +0x21c, 0x1800bfb4c call kmGLMatrixMode ; +0x221, 0x1800bfb51 call kmGLLoadIdentity ; +0x226, 0x1800bfb56 mov [rbx+134h], edi ; +0x22b, 0x1800bfb5b call ?ccSetProjectionMatrixDirty@cocos2d@@YAXXZ; cocos2d::ccSetProjectionMatrixDirty(void) ; +0x231, 0x1800bfb61 mov rcx, [rbp+30h+var_30] ; +0x236, 0x1800bfb66 xor rcx, rsp; StackCookie ; +0x23a, 0x1800bfb6a call __security_check_cookie ; +0x23d, 0x1800bfb6d lea r11, [rsp+130h+var_s0] ; +0x242, 0x1800bfb72 mov rbx, [r11+20h] ; +0x24a, 0x1800bfb7a mov rdi, [r11+28h] ; +0x24e, 0x1800bfb7e mov rsp, r11 ; +0x252, 0x1800bfb82 pop rbp ; +0x255, 0x1800bfb85 retn ; +0x256, 0x1800bfb86