; ; cocos2d::CCGridBase::set2DProjection from 0x180023db0 to 0x180023e76 (198 bytes) ; ; 3 xrefs: ; > cocos2d::CCGridBase::beforeDraw @ 0x180022bda ; > @ 0x18014cf68 ; > @ 0x1801b9160 ; ; 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:29 +0000 ; sub rsp, 0A8h ; +0x0, 0x180023db0 mov rax, cs:__security_cookie ; +0x7, 0x180023db7 xor rax, rsp ; +0xe, 0x180023dbe mov [rsp+0A8h+var_18], rax ; +0x11, 0x180023dc1 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x180023dc9 lea rdx, [rsp+0A8h+var_68] ; +0x1e, 0x180023dce mov rcx, rax ; +0x23, 0x180023dd3 call ?getWinSizeInPixels@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSizeInPixels(void) ; +0x26, 0x180023dd6 cvttss2si r9d, [rsp+0A8h+var_64]; height ; +0x2b, 0x180023ddb xor edx, edx; y ; +0x32, 0x180023de2 xor ecx, ecx; x ; +0x34, 0x180023de4 cvttss2si r8d, [rsp+0A8h+var_68]; width ; +0x36, 0x180023de6 call cs:glViewport ; +0x3d, 0x180023ded mov ecx, 1701h ; +0x43, 0x180023df3 call kmGLMatrixMode ; +0x48, 0x180023df8 call kmGLLoadIdentity ; +0x4d, 0x180023dfd movss xmm0, cs:flt_1800EC208 ; +0x52, 0x180023e02 lea rcx, [rsp+0A8h+var_58] ; +0x5a, 0x180023e0a movss xmm1, cs:dword_1800ED380 ; +0x5f, 0x180023e0f xorps xmm3, xmm3 ; +0x67, 0x180023e17 movss xmm2, [rsp+0A8h+var_68] ; +0x6a, 0x180023e1a movss [rsp+0A8h+var_78], xmm0 ; +0x70, 0x180023e20 movss xmm0, [rsp+0A8h+var_64] ; +0x76, 0x180023e26 movss [rsp+0A8h+var_80], xmm1 ; +0x7c, 0x180023e2c xorps xmm1, xmm1 ; +0x82, 0x180023e32 movss [rsp+0A8h+var_88], xmm0 ; +0x85, 0x180023e35 call kmMat4OrthographicProjection ; +0x8b, 0x180023e3b lea rcx, [rsp+0A8h+var_58] ; +0x90, 0x180023e40 call kmGLMultMatrix ; +0x95, 0x180023e45 mov ecx, 1700h ; +0x9a, 0x180023e4a call kmGLMatrixMode ; +0x9f, 0x180023e4f call kmGLLoadIdentity ; +0xa4, 0x180023e54 call ?ccSetProjectionMatrixDirty@cocos2d@@YAXXZ; cocos2d::ccSetProjectionMatrixDirty(void) ; +0xa9, 0x180023e59 mov rcx, [rsp+0A8h+var_18] ; +0xae, 0x180023e5e xor rcx, rsp; StackCookie ; +0xb6, 0x180023e66 call __security_check_cookie ; +0xb9, 0x180023e69 add rsp, 0A8h ; +0xbe, 0x180023e6e retn ; +0xc5, 0x180023e75