//
// cocos2d::CCDirector::setupScreenScale from 0x100175b74 to 0x100175bd4 (96 bytes)
//
// 1 xrefs:
// > AppDelegate::setupGLView @ 0x10026928c
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall cocos2d::CCDirector::setupScreenScale(
cocos2d::CCDirector *a1,
cocos2d::CCSize a2,
cocos2d::CCSize a3,
cocos2d::TextureQuality a4)
{
double *v4; // x2
cocos2d::TextureQuality v5; // w3
cocos2d::TextureQuality v6; // w19
double *v7; // x20
double v9; // d0
float v10; // s1
__int64 v11; // [xsp+8h] [xbp-28h] BYREF
cocos2d::CCSize v12; // 0:kr00_8.8
v6 = v5;
v7 = v4;
sub_100022B14(&a1->m_obScaleFactor, *(double **)&a4);
v9 = sub_100022AFC(&v11, v7);
v12.width = *(float *)&v9;
v12.height = v10;
cocos2d::CCDirector::updateScreenScale(a1, v12);
cocos2d::CCDirector::updateContentScale(a1, v6);
}