//
// cocos2d::CCEGLView::setScissorInPoints from 0x1005038f0 to 0x1005039d7 (231 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009594c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCEGLView::setScissorInPoints(cocos2d::CCEGLView *a1, float a2, float a3, float a4, float a5)
{
id v5; // rax
id v6; // rax
float v7; // xmm0_4
v5 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView");
objc_msgSend(v5, "frameZoomFactor");
v6 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView");
objc_msgSend(v6, "getBackingFactor");
v7 = a2 * a2;
glScissor(
(int)(float)((float)((float)(a2 * a1->m_fScaleX) * v7) + (float)(a1->m_obViewPortRect.origin.x * v7)),
(int)(float)((float)((float)(a3 * a1->m_fScaleY) * v7) + (float)(a1->m_obViewPortRect.origin.y * v7)),
(int)(float)((float)(a4 * a1->m_fScaleX) * v7),
(int)(float)((float)(a5 * a1->m_fScaleY) * v7));
}