//
// cocos2d::CCEGLView::setViewPortInPoints from 0x18007b7b0 to 0x18007b873 (195 bytes)
//
// 3 xrefs:
// > ??> @ 0x180107020
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bedac
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:00 +0000
//
void __fastcall cocos2d::CCEGLView::setViewPortInPoints(
cocos2d::CCEGLView *this,
float a2,
float a3,
float a4,
float a5)
{
float v5; // xmm6_4
float v6; // xmm8_4
v5 = *((float *)this + 48);
v6 = (float)*((int *)this + 45);
glViewport(
(int)(float)((float)((float)((float)(*((float *)this + 25) * a2) * v6) * v5)
+ (float)((float)(v6 * *((float *)this + 8)) * v5)),
(int)(float)((float)((float)((float)(*((float *)this + 26) * a3) * v6) * v5)
+ (float)((float)(v6 * *((float *)this + 9)) * v5)),
(int)(float)((float)((float)(*((float *)this + 25) * a4) * v6) * v5),
(int)(float)((float)((float)(*((float *)this + 26) * a5) * v6) * v5));
}