//
// cocos2d::CCEGLViewProtocol::getVisibleOrigin from 0x18006b890 to 0x18006b8fe (110 bytes)
//
// 4 xrefs:
// > ??> @ 0x1801002b8
// > ??> @ 0x1801008e8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3e04
//
// 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
//
float *__fastcall cocos2d::CCEGLViewProtocol::getVisibleOrigin(cocos2d::CCEGLViewProtocol *this, float *a2)
{
if ( this->m_eResolutionPolicy == kResolutionNoBorder )
kmVec2Fill(
a2,
(float)(this->m_obDesignResolutionSize.width - (float)(this->m_obScreenSize.width / this->m_fScaleX)) * 0.5,
(float)(this->m_obDesignResolutionSize.height - (float)(this->m_obScreenSize.height / this->m_fScaleY)) * 0.5);
else
cocos2d::cc_timeval::operator=(a2, dword_1801A8478);
return a2;
}