{"type": "func", "start": 6442944912, "end": 6442945107, "name": "cocos2d::CCEGLView::setViewPortInPoints", "pseudocode": "// \n// cocos2d::CCEGLView::setViewPortInPoints from 0x180078990 to 0x180078a53 (195 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180100908\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4ac4\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::CCEGLView::setViewPortInPoints(\n        cocos2d::CCEGLView *this,\n        float a2,\n        float a3,\n        float a4,\n        float a5)\n{\n  float v5; // xmm6_4\n  float v6; // xmm8_4\n\n  v5 = *((float *)this + 48);\n  v6 = (float)*((int *)this + 45);\n  glViewport(\n    (int)(float)((float)((float)((float)(this->m_fScaleX * a2) * v6) * v5)\n               + (float)((float)(v6 * this->m_obViewPortRect.origin.x) * v5)),\n    (int)(float)((float)((float)((float)(this->m_fScaleY * a3) * v6) * v5)\n               + (float)((float)(v6 * this->m_obViewPortRect.origin.y) * v5)),\n    (int)(float)((float)((float)(this->m_fScaleX * a4) * v6) * v5),\n    (int)(float)((float)((float)(this->m_fScaleY * a5) * v6) * v5));\n}", "assembly": "; \n; cocos2d::CCEGLView::setViewPortInPoints from 0x180078990 to 0x180078a53 (195 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180100908\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4ac4\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, 58h                                                       ; +0x0, 0x180078990\nmovss   xmm5, dword ptr [rcx+68h]                                      ; +0x4, 0x180078994\nmovaps  xmm4, xmm2                                                     ; +0x9, 0x180078999\nmovaps  xmm0, xmm5                                                     ; +0xc, 0x18007899c\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xf, 0x18007899f\nmovss   xmm6, dword ptr [rcx+0C0h]                                     ; +0x14, 0x1800789a4\nmulss   xmm0, [rsp+58h+arg_20]                                         ; +0x1c, 0x1800789ac\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x25, 0x1800789b5\nmovss   xmm7, dword ptr [rcx+64h]                                      ; +0x2a, 0x1800789ba\nmovaps  xmm2, xmm7                                                     ; +0x2f, 0x1800789bf\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x32, 0x1800789c2\nxorps   xmm8, xmm8                                                     ; +0x38, 0x1800789c8\nmulss   xmm5, xmm4                                                     ; +0x3c, 0x1800789cc\ncvtsi2ss xmm8, dword ptr [rcx+0B4h]                                    ; +0x40, 0x1800789d0\nmulss   xmm7, xmm1                                                     ; +0x49, 0x1800789d9\nmulss   xmm0, xmm8                                                     ; +0x4d, 0x1800789dd\nmulss   xmm5, xmm8                                                     ; +0x52, 0x1800789e2\nmulss   xmm0, xmm6                                                     ; +0x57, 0x1800789e7\nmulss   xmm7, xmm8                                                     ; +0x5b, 0x1800789eb\ncvttss2si r9d, xmm0                                                    ; +0x60, 0x1800789f0\nmovaps  xmm0, xmm8                                                     ; +0x65, 0x1800789f5\nmulss   xmm2, xmm3                                                     ; +0x69, 0x1800789f9\nmulss   xmm0, dword ptr [rcx+24h]                                      ; +0x6d, 0x1800789fd\nmulss   xmm2, xmm8                                                     ; +0x72, 0x180078a02\nmulss   xmm8, dword ptr [rcx+20h]                                      ; +0x77, 0x180078a07\nmulss   xmm0, xmm6                                                     ; +0x7d, 0x180078a0d\nmulss   xmm5, xmm6                                                     ; +0x81, 0x180078a11\nmulss   xmm7, xmm6                                                     ; +0x85, 0x180078a15\nmulss   xmm8, xmm6                                                     ; +0x89, 0x180078a19\naddss   xmm5, xmm0                                                     ; +0x8e, 0x180078a1e\nmulss   xmm2, xmm6                                                     ; +0x92, 0x180078a22\naddss   xmm7, xmm8                                                     ; +0x96, 0x180078a26\ncvttss2si edx, xmm5                                                    ; +0x9b, 0x180078a2b\ncvttss2si r8d, xmm2                                                    ; +0x9f, 0x180078a2f\ncvttss2si ecx, xmm7                                                    ; +0xa4, 0x180078a34\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xa8, 0x180078a38\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xad, 0x180078a3d\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xb2, 0x180078a42\nadd     rsp, 58h                                                       ; +0xb8, 0x180078a48\njmp     cs:glViewport                                                  ; +0xbc, 0x180078a4c", "xrefs": ["<???> @ 0x180100908", "<???> @ 0x1801438a8", "<???> @ 0x1801b4ac4"], "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"}