{"type": "func", "start": 6442596448, "end": 6442596646, "name": "cocos2d::CCGridBase::set2DProjection", "pseudocode": "// \n// cocos2d::CCGridBase::set2DProjection from 0x180023860 to 0x180023926 (198 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCGridBase::beforeDraw @ 0x1800226aa\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801af07c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCGridBase::set2DProjection(cocos2d::CCGridBase *this)\n{\n  cocos2d::CCDirector *v1; // rax\n  int v2; // edx\n  int v3; // r8d\n  int v4; // r9d\n  __int64 v5; // rdx\n  __int64 v6; // rcx\n  __int64 v7; // r8\n  cocos2d *v8; // rcx\n  float v9; // [rsp+40h] [rbp-68h]\n  float v10; // [rsp+44h] [rbp-64h]\n  _BYTE v11[64]; // [rsp+50h] [rbp-58h] BYREF\n\n  v1 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSizeInPixels(v1);\n  glViewport(0, 0, (int)v9, (int)v10);\n  kmGLMatrixMode(5889);\n  ((void (*)(void))kmGLLoadIdentity)();\n  kmMat4OrthographicProjection((unsigned int)v11, v2, v3, v4);\n  kmGLMultMatrix(v11);\n  kmGLMatrixMode(5888);\n  kmGLLoadIdentity(v6, v5, v7);\n  cocos2d::ccSetProjectionMatrixDirty(v8);\n}", "assembly": "; \n; cocos2d::CCGridBase::set2DProjection from 0x180023860 to 0x180023926 (198 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCGridBase::beforeDraw @ 0x1800226aa\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801af07c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nsub     rsp, 0A8h                                                      ; +0x0, 0x180023860\nmov     rax, cs:__security_cookie                                      ; +0x7, 0x180023867\nxor     rax, rsp                                                       ; +0xe, 0x18002386e\nmov     [rsp+0A8h+var_18], rax                                         ; +0x11, 0x180023871\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x180023879\nlea     rdx, [rsp+0A8h+var_68]                                         ; +0x1e, 0x18002387e\nmov     rcx, rax                                                       ; +0x23, 0x180023883\ncall    ?getWinSizeInPixels@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSizeInPixels(void) ; +0x26, 0x180023886\ncvttss2si r9d, [rsp+0A8h+var_64]; height                               ; +0x2b, 0x18002388b\nxor     edx, edx; y                                                    ; +0x32, 0x180023892\nxor     ecx, ecx; x                                                    ; +0x34, 0x180023894\ncvttss2si r8d, [rsp+0A8h+var_68]; width                                ; +0x36, 0x180023896\ncall    cs:glViewport                                                  ; +0x3d, 0x18002389d\nmov     ecx, 1701h                                                     ; +0x43, 0x1800238a3\ncall    kmGLMatrixMode                                                 ; +0x48, 0x1800238a8\ncall    kmGLLoadIdentity                                               ; +0x4d, 0x1800238ad\nmovss   xmm0, cs:flt_1800E61A8                                         ; +0x52, 0x1800238b2\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x5a, 0x1800238ba\nmovss   xmm1, cs:dword_1800E6B20                                       ; +0x5f, 0x1800238bf\nxorps   xmm3, xmm3                                                     ; +0x67, 0x1800238c7\nmovss   xmm2, [rsp+0A8h+var_68]                                        ; +0x6a, 0x1800238ca\nmovss   [rsp+0A8h+var_78], xmm0                                        ; +0x70, 0x1800238d0\nmovss   xmm0, [rsp+0A8h+var_64]                                        ; +0x76, 0x1800238d6\nmovss   [rsp+0A8h+var_80], xmm1                                        ; +0x7c, 0x1800238dc\nxorps   xmm1, xmm1                                                     ; +0x82, 0x1800238e2\nmovss   [rsp+0A8h+var_88], xmm0                                        ; +0x85, 0x1800238e5\ncall    kmMat4OrthographicProjection                                   ; +0x8b, 0x1800238eb\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x90, 0x1800238f0\ncall    kmGLMultMatrix                                                 ; +0x95, 0x1800238f5\nmov     ecx, 1700h                                                     ; +0x9a, 0x1800238fa\ncall    kmGLMatrixMode                                                 ; +0x9f, 0x1800238ff\ncall    kmGLLoadIdentity                                               ; +0xa4, 0x180023904\ncall    ?ccSetProjectionMatrixDirty@cocos2d@@YAXXZ; cocos2d::ccSetProjectionMatrixDirty(void) ; +0xa9, 0x180023909\nmov     rcx, [rsp+0A8h+var_18]                                         ; +0xae, 0x18002390e\nxor     rcx, rsp; StackCookie                                          ; +0xb6, 0x180023916\ncall    __security_check_cookie                                        ; +0xb9, 0x180023919\nadd     rsp, 0A8h                                                      ; +0xbe, 0x18002391e\nretn                                                                   ; +0xc5, 0x180023925", "xrefs": ["cocos2d::CCGridBase::beforeDraw @ 0x1800226aa", "<???> @ 0x1801438a8", "<???> @ 0x1801af07c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}