//
// cocos2d::CCEGLViewProtocol::getVisibleSize from 0x10050fd40 to 0x10050fd83 (67 bytes)
//
// 2 xrefs:
// > ??> @ 0x100959498
// > ??> @ 0x10095d2c8
//
// 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::CCSize __fastcall cocos2d::CCEGLViewProtocol::getVisibleSize(cocos2d::CCEGLViewProtocol *a1)
{
__int64 v1; // rsi
cocos2d::CCSize result; // 0:xmm0_8.8
if ( *(_DWORD *)(v1 + 108) == 1 )
{
result = (cocos2d::CCSize)*(unsigned int *)(v1 + 16);
result.width = result.width / *(float *)(v1 + 100);
sub_10028CBF0((float *)a1, result.width, *(float *)(v1 + 20) / *(float *)(v1 + 104));
}
else
{
sub_10028CFC0(a1, (_QWORD *)(v1 + 24));
}
return result;
}