//
// cocos2d::CCRect::setRect from 0xd40f9c to 0xd40fdc (64 bytes)
//
// 7 xrefs:
// > cocos2d::CCRect::CCRect @ 0xd41014
// > cocos2d::CCRect::CCRect @ 0xd41060
// > cocos2d::CCRect::CCRect @ 0xd410a4
// > cocos2d::CCRect::operator= @ 0xd410c8
// > cocos2d::CCEGLViewProtocol::setDesignResolutionSize @ 0xd7ac8c
// > cocos2d::CCEGLViewProtocol::updateDesignResolutionSize @ 0xd7b0b0
// > ??> @ 0x4f930
//
// 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 13:07:31 +0000
//
float *__fastcall cocos2d::CCRect::setRect(float *this, float a2, float a3, float a4, float a5)
{
*this = a2;
*(this + 1) = a3;
if ( a4 < 0.0 )
{
a4 = 0.0;
if ( a5 >= 0.0 )
goto LABEL_3;
}
else if ( a5 >= 0.0 )
{
LABEL_3:
*(this + 2) = a4;
*(this + 3) = a5;
return this;
}
*(this + 2) = a4;
*(this + 3) = 0.0;
return this;
}