{"type": "func", "start": 6442597808, "end": 6442598006, "name": "cocos2d::CCGridBase::set2DProjection", "pseudocode": "// \n// cocos2d::CCGridBase::set2DProjection from 0x180023db0 to 0x180023e76 (198 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCGridBase::beforeDraw @ 0x180022bda\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9160\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:29 +0000\n// \n\nvoid __fastcall cocos2d::CCGridBase::set2DProjection(cocos2d::CCGridBase *this)\n{\n  struct cocos2d::CCDirector *v1; // rax\n  int v2; // edx\n  int v3; // r8d\n  int v4; // r9d\n  cocos2d *v5; // rcx\n  float v6; // [rsp+40h] [rbp-68h] BYREF\n  float v7; // [rsp+44h] [rbp-64h]\n  _BYTE v8[64]; // [rsp+50h] [rbp-58h] BYREF\n\n  v1 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSizeInPixels(v1, &v6);\n  glViewport(0, 0, (int)v6, (int)v7);\n  kmGLMatrixMode(5889);\n  kmGLLoadIdentity();\n  kmMat4OrthographicProjection((unsigned int)v8, v2, v3, v4, LODWORD(v7), -1082130432, 1065353216);\n  kmGLMultMatrix(v8);\n  kmGLMatrixMode(5888);\n  kmGLLoadIdentity();\n  cocos2d::ccSetProjectionMatrixDirty(v5);\n}", "assembly": "; \n; cocos2d::CCGridBase::set2DProjection from 0x180023db0 to 0x180023e76 (198 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCGridBase::beforeDraw @ 0x180022bda\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9160\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:29 +0000\n; \nsub     rsp, 0A8h                                                      ; +0x0, 0x180023db0\nmov     rax, cs:__security_cookie                                      ; +0x7, 0x180023db7\nxor     rax, rsp                                                       ; +0xe, 0x180023dbe\nmov     [rsp+0A8h+var_18], rax                                         ; +0x11, 0x180023dc1\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x180023dc9\nlea     rdx, [rsp+0A8h+var_68]                                         ; +0x1e, 0x180023dce\nmov     rcx, rax                                                       ; +0x23, 0x180023dd3\ncall    ?getWinSizeInPixels@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSizeInPixels(void) ; +0x26, 0x180023dd6\ncvttss2si r9d, [rsp+0A8h+var_64]; height                               ; +0x2b, 0x180023ddb\nxor     edx, edx; y                                                    ; +0x32, 0x180023de2\nxor     ecx, ecx; x                                                    ; +0x34, 0x180023de4\ncvttss2si r8d, [rsp+0A8h+var_68]; width                                ; +0x36, 0x180023de6\ncall    cs:glViewport                                                  ; +0x3d, 0x180023ded\nmov     ecx, 1701h                                                     ; +0x43, 0x180023df3\ncall    kmGLMatrixMode                                                 ; +0x48, 0x180023df8\ncall    kmGLLoadIdentity                                               ; +0x4d, 0x180023dfd\nmovss   xmm0, cs:flt_1800EC208                                         ; +0x52, 0x180023e02\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x5a, 0x180023e0a\nmovss   xmm1, cs:dword_1800ED380                                       ; +0x5f, 0x180023e0f\nxorps   xmm3, xmm3                                                     ; +0x67, 0x180023e17\nmovss   xmm2, [rsp+0A8h+var_68]                                        ; +0x6a, 0x180023e1a\nmovss   [rsp+0A8h+var_78], xmm0                                        ; +0x70, 0x180023e20\nmovss   xmm0, [rsp+0A8h+var_64]                                        ; +0x76, 0x180023e26\nmovss   [rsp+0A8h+var_80], xmm1                                        ; +0x7c, 0x180023e2c\nxorps   xmm1, xmm1                                                     ; +0x82, 0x180023e32\nmovss   [rsp+0A8h+var_88], xmm0                                        ; +0x85, 0x180023e35\ncall    kmMat4OrthographicProjection                                   ; +0x8b, 0x180023e3b\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x90, 0x180023e40\ncall    kmGLMultMatrix                                                 ; +0x95, 0x180023e45\nmov     ecx, 1700h                                                     ; +0x9a, 0x180023e4a\ncall    kmGLMatrixMode                                                 ; +0x9f, 0x180023e4f\ncall    kmGLLoadIdentity                                               ; +0xa4, 0x180023e54\ncall    ?ccSetProjectionMatrixDirty@cocos2d@@YAXXZ; cocos2d::ccSetProjectionMatrixDirty(void) ; +0xa9, 0x180023e59\nmov     rcx, [rsp+0A8h+var_18]                                         ; +0xae, 0x180023e5e\nxor     rcx, rsp; StackCookie                                          ; +0xb6, 0x180023e66\ncall    __security_check_cookie                                        ; +0xb9, 0x180023e69\nadd     rsp, 0A8h                                                      ; +0xbe, 0x180023e6e\nretn                                                                   ; +0xc5, 0x180023e75", "xrefs": ["cocos2d::CCGridBase::beforeDraw @ 0x180022bda", "<???> @ 0x18014cf68", "<???> @ 0x1801b9160"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}