//
// cocos2d::CCDirector::setupScreenScale from 0x5c3e28 to 0x5c3e70 (72 bytes)
//
// 1 xrefs:
// > AppDelegate::setupGLView @ 0x307912
//
// 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
//
void cocos2d::CCDirector::setupScreenScale(
cocos2d::CCDirector *a1,
cocos2d::CCSize a2,
cocos2d::CCSize a3,
cocos2d::TextureQuality a4)
{
float v4; // r7
float height; // r8
cocos2d::CCSize v7; // r1
cocos2d::CCSize v8; // [sp+4h] [bp-Ch] BYREF
float width; // [sp+Ch] [bp-4h]
v8 = a2;
width = a3.width;
v4 = a3.width;
height = a2.height;
cocos2d::CCSize::operator=(&a1->m_obScaleFactor, (float *)LODWORD(a2.width));
cocos2d::CCSize::CCSize(&v8, (const cocos2d::CCSize *)LODWORD(height));
LODWORD(v7.width) = &v8;
cocos2d::CCDirector::updateScreenScale(a1, v7);
cocos2d::CCDirector::updateContentScale(a1, LODWORD(v4));
}