//
// cocos2d::CCEGLView::setContentScaleFactor from 0x100154170 to 0x1001541a8 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008e0e20
//
// 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 10:59:40 +0000
//
__int64 __fastcall cocos2d::CCEGLView::setContentScaleFactor(__int64 a1, float a2)
{
if ( *(_DWORD *)(a1 + 108) != 5 )
sub_100754EA0();
*(float *)(a1 + 100) = a2;
*(float *)(a1 + 104) = a2;
objc_msgSend(+[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView"), "setNeedsLayout");
return 1;
}