{"type": "func", "start": 6442893776, "end": 6442893863, "name": "cocos2d::CCEGLViewProtocol::setViewPortInPoints", "pseudocode": "// \n// cocos2d::CCEGLViewProtocol::setViewPortInPoints from 0x18006c1d0 to 0x18006c227 (87 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801002d8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3eb8\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::CCEGLViewProtocol::setViewPortInPoints(\n        cocos2d::CCEGLViewProtocol *this,\n        float a2,\n        float a3,\n        float a4,\n        float a5)\n{\n  glViewport(\n    (int)(float)((float)(this->m_fScaleX * a2) + this->m_obViewPortRect.origin.x),\n    (int)(float)((float)(this->m_fScaleY * a3) + this->m_obViewPortRect.origin.y),\n    (int)(float)(this->m_fScaleX * a4),\n    (int)(float)(this->m_fScaleY * a5));\n}", "assembly": "; \n; cocos2d::CCEGLViewProtocol::setViewPortInPoints from 0x18006c1d0 to 0x18006c227 (87 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801002d8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3eb8\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, 38h                                                       ; +0x0, 0x18006c1d0\nmovss   xmm5, dword ptr [rcx+68h]                                      ; +0x4, 0x18006c1d4\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x9, 0x18006c1d9\nmovaps  xmm0, xmm5                                                     ; +0xe, 0x18006c1de\nmovss   xmm6, dword ptr [rcx+64h]                                      ; +0x11, 0x18006c1e1\nmulss   xmm0, [rsp+38h+arg_20]                                         ; +0x16, 0x18006c1e6\nmovaps  xmm4, xmm6                                                     ; +0x1c, 0x18006c1ec\nmulss   xmm6, xmm1                                                     ; +0x1f, 0x18006c1ef\nmulss   xmm5, xmm2                                                     ; +0x23, 0x18006c1f3\naddss   xmm6, dword ptr [rcx+20h]                                      ; +0x27, 0x18006c1f7\nmulss   xmm4, xmm3                                                     ; +0x2c, 0x18006c1fc\naddss   xmm5, dword ptr [rcx+24h]                                      ; +0x30, 0x18006c200\ncvttss2si r9d, xmm0                                                    ; +0x35, 0x18006c205\ncvttss2si ecx, xmm6                                                    ; +0x3a, 0x18006c20a\ncvttss2si r8d, xmm4                                                    ; +0x3e, 0x18006c20e\ncvttss2si edx, xmm5                                                    ; +0x43, 0x18006c213\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x47, 0x18006c217\nadd     rsp, 38h                                                       ; +0x4c, 0x18006c21c\njmp     cs:glViewport                                                  ; +0x50, 0x18006c220", "xrefs": ["<???> @ 0x1801002d8", "<???> @ 0x1801438a8", "<???> @ 0x1801b3eb8"], "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"}