//
// cocos2d::CCDirector::updateContentScale from 0x100207204 to 0x100207294 (144 bytes)
//
// 2 xrefs:
// > VideoOptionsLayer::onApply @ 0x100114e00
// > cocos2d::CCDirector::setupScreenScale @ 0x10020713c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:00:57 +0000
//
__int64 __fastcall cocos2d::CCDirector::updateContentScale(__int64 result, int a2)
{
int v2; // w8
if ( a2 != 1
&& (a2 == 2
|| a2 == 3
|| *(float *)(result + 396) >= (float)(*(float *)(result + 388) * 1.5)
|| *(float *)(result + 392) >= (float)(*(float *)(result + 384) * 1.5)) )
{
if ( *(float *)(result + 328) != 2.0 )
*(_DWORD *)(result + 328) = 0x40000000;
v2 = 2;
}
else
{
if ( *(float *)(result + 328) != 1.0 )
*(_DWORD *)(result + 328) = 1065353216;
v2 = 1;
}
*(_DWORD *)(result + 400) = v2;
return result;
}