//
// cocos2d::CCEGLViewProtocol::getVisibleOrigin from 0x1002e6c3c to 0x1002e6c88 (76 bytes)
//
// 2 xrefs:
// > ??> @ 0x100791870
// > ??> @ 0x1007e5648
//
// 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::CCPoint __fastcall cocos2d::CCEGLViewProtocol::getVisibleOrigin(cocos2d::CCEGLViewProtocol *a1)
{
__int64 *v1; // x8
__n128 v2; // q0
__n128 v3; // q1
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
if ( a1->m_eResolutionPolicy == kResolutionNoBorder )
{
v2.n128_f32[0] = (float)(a1->m_obDesignResolutionSize.width - (float)(a1->m_obScreenSize.width / a1->m_fScaleX))
* 0.5;
v3.n128_f32[0] = (float)(a1->m_obDesignResolutionSize.height - (float)(a1->m_obScreenSize.height / a1->m_fScaleY))
* 0.5;
sub_100022980(v2, v3, v1);
}
else
{
result.x = sub_1000229B8(v1, &qword_10086DA50);
}
return result;
}