//
// cocos2d::CCEGLViewProtocol::getScissorRect from 0xb09d78 to 0xb09e14 (156 bytes)
//
// 3 xrefs:
// > ??> @ 0x475c8
// > ??> @ 0x1217cc0
// > ??> @ 0x1217db0
//
// 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
//
cocos2d::CCRect cocos2d::CCEGLViewProtocol::getScissorRect(cocos2d::CCEGLViewProtocol *a1)
{
cocos2d::CCRect *v1; // x8
cocos2d::CCRect *v3; // x21
float v8; // [xsp+38h] [xbp+38h]
float v9; // [xsp+3Ch] [xbp+3Ch]
float v10; // [xsp+40h] [xbp+40h]
float v11; // [xsp+44h] [xbp+44h]
cocos2d::CCRect result; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v3 = v1;
glGetFloatv();
cocos2d::CCRect::CCRect(
v3,
(float)(v8 - a1->m_obViewPortRect.origin.x) / a1->m_fScaleX,
(float)(v9 - a1->m_obViewPortRect.origin.y) / a1->m_fScaleY,
v10 / a1->m_fScaleX,
v11 / a1->m_fScaleY);
return result;
}