; ; cocos2d::CCGridBase::set2DProjection from 0x180023860 to 0x180023926 (198 bytes) ; ; 3 xrefs: ; > cocos2d::CCGridBase::beforeDraw @ 0x1800226aa ; > @ 0x1801438a8 ; > @ 0x1801af07c ; ; 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 ; sub rsp, 0A8h ; +0x0, 0x180023860 mov rax, cs:__security_cookie ; +0x7, 0x180023867 xor rax, rsp ; +0xe, 0x18002386e mov [rsp+0A8h+var_18], rax ; +0x11, 0x180023871 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x180023879 lea rdx, [rsp+0A8h+var_68] ; +0x1e, 0x18002387e mov rcx, rax ; +0x23, 0x180023883 call ?getWinSizeInPixels@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSizeInPixels(void) ; +0x26, 0x180023886 cvttss2si r9d, [rsp+0A8h+var_64]; height ; +0x2b, 0x18002388b xor edx, edx; y ; +0x32, 0x180023892 xor ecx, ecx; x ; +0x34, 0x180023894 cvttss2si r8d, [rsp+0A8h+var_68]; width ; +0x36, 0x180023896 call cs:glViewport ; +0x3d, 0x18002389d mov ecx, 1701h ; +0x43, 0x1800238a3 call kmGLMatrixMode ; +0x48, 0x1800238a8 call kmGLLoadIdentity ; +0x4d, 0x1800238ad movss xmm0, cs:flt_1800E61A8 ; +0x52, 0x1800238b2 lea rcx, [rsp+0A8h+var_58] ; +0x5a, 0x1800238ba movss xmm1, cs:dword_1800E6B20 ; +0x5f, 0x1800238bf xorps xmm3, xmm3 ; +0x67, 0x1800238c7 movss xmm2, [rsp+0A8h+var_68] ; +0x6a, 0x1800238ca movss [rsp+0A8h+var_78], xmm0 ; +0x70, 0x1800238d0 movss xmm0, [rsp+0A8h+var_64] ; +0x76, 0x1800238d6 movss [rsp+0A8h+var_80], xmm1 ; +0x7c, 0x1800238dc xorps xmm1, xmm1 ; +0x82, 0x1800238e2 movss [rsp+0A8h+var_88], xmm0 ; +0x85, 0x1800238e5 call kmMat4OrthographicProjection ; +0x8b, 0x1800238eb lea rcx, [rsp+0A8h+var_58] ; +0x90, 0x1800238f0 call kmGLMultMatrix ; +0x95, 0x1800238f5 mov ecx, 1700h ; +0x9a, 0x1800238fa call kmGLMatrixMode ; +0x9f, 0x1800238ff call kmGLLoadIdentity ; +0xa4, 0x180023904 call ?ccSetProjectionMatrixDirty@cocos2d@@YAXXZ; cocos2d::ccSetProjectionMatrixDirty(void) ; +0xa9, 0x180023909 mov rcx, [rsp+0A8h+var_18] ; +0xae, 0x18002390e xor rcx, rsp; StackCookie ; +0xb6, 0x180023916 call __security_check_cookie ; +0xb9, 0x180023919 add rsp, 0A8h ; +0xbe, 0x18002391e retn ; +0xc5, 0x180023925