{"type": "func", "start": 6442944704, "end": 6442944899, "name": "cocos2d::CCEGLView::setScissorInPoints", "pseudocode": "// \n// cocos2d::CCEGLView::setScissorInPoints from 0x1800788c0 to 0x180078983 (195 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180100910\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4ab8\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::setScissorInPoints(\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  glScissor(\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::setScissorInPoints from 0x1800788c0 to 0x180078983 (195 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180100910\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4ab8\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, 0x1800788c0\nmovss   xmm5, dword ptr [rcx+68h]                                      ; +0x4, 0x1800788c4\nmovaps  xmm4, xmm2                                                     ; +0x9, 0x1800788c9\nmovaps  xmm0, xmm5                                                     ; +0xc, 0x1800788cc\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xf, 0x1800788cf\nmovss   xmm6, dword ptr [rcx+0C0h]                                     ; +0x14, 0x1800788d4\nmulss   xmm0, [rsp+58h+arg_20]                                         ; +0x1c, 0x1800788dc\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x25, 0x1800788e5\nmovss   xmm7, dword ptr [rcx+64h]                                      ; +0x2a, 0x1800788ea\nmovaps  xmm2, xmm7                                                     ; +0x2f, 0x1800788ef\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x32, 0x1800788f2\nxorps   xmm8, xmm8                                                     ; +0x38, 0x1800788f8\nmulss   xmm5, xmm4                                                     ; +0x3c, 0x1800788fc\ncvtsi2ss xmm8, dword ptr [rcx+0B4h]                                    ; +0x40, 0x180078900\nmulss   xmm7, xmm1                                                     ; +0x49, 0x180078909\nmulss   xmm0, xmm8                                                     ; +0x4d, 0x18007890d\nmulss   xmm5, xmm8                                                     ; +0x52, 0x180078912\nmulss   xmm0, xmm6                                                     ; +0x57, 0x180078917\nmulss   xmm7, xmm8                                                     ; +0x5b, 0x18007891b\ncvttss2si r9d, xmm0                                                    ; +0x60, 0x180078920\nmovaps  xmm0, xmm8                                                     ; +0x65, 0x180078925\nmulss   xmm2, xmm3                                                     ; +0x69, 0x180078929\nmulss   xmm0, dword ptr [rcx+24h]                                      ; +0x6d, 0x18007892d\nmulss   xmm2, xmm8                                                     ; +0x72, 0x180078932\nmulss   xmm8, dword ptr [rcx+20h]                                      ; +0x77, 0x180078937\nmulss   xmm0, xmm6                                                     ; +0x7d, 0x18007893d\nmulss   xmm5, xmm6                                                     ; +0x81, 0x180078941\nmulss   xmm7, xmm6                                                     ; +0x85, 0x180078945\nmulss   xmm8, xmm6                                                     ; +0x89, 0x180078949\naddss   xmm5, xmm0                                                     ; +0x8e, 0x18007894e\nmulss   xmm2, xmm6                                                     ; +0x92, 0x180078952\naddss   xmm7, xmm8                                                     ; +0x96, 0x180078956\ncvttss2si edx, xmm5                                                    ; +0x9b, 0x18007895b\ncvttss2si r8d, xmm2                                                    ; +0x9f, 0x18007895f\ncvttss2si ecx, xmm7                                                    ; +0xa4, 0x180078964\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xa8, 0x180078968\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xad, 0x18007896d\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xb2, 0x180078972\nadd     rsp, 58h                                                       ; +0xb8, 0x180078978\njmp     cs:glScissor                                                   ; +0xbc, 0x18007897c", "xrefs": ["<???> @ 0x180100910", "<???> @ 0x1801438a8", "<???> @ 0x1801b4ab8"], "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"}