//
// cocos2d::CCRect::operator= from 0x18000c780 to 0x18000c7b4 (52 bytes)
//
// 30 xrefs:
// > cocos2d::CCRectFromString @ 0x18000dbcf
// > cocos2d::CCDrawNode::enableDrawArea @ 0x18001520e
// > DS_Dictionary::rectFromString @ 0x18001cc80
// > cocos2d::CCLabelBMFont::createFontChars @ 0x1800481f6
// > cocos2d::CCLabelBMFont::createFontChars @ 0x18004821c
// > cocos2d::CCLabelBMFont::createFontChars @ 0x18004829c
// > cocos2d::CCParticleSystemQuad::initTexCoordsWithRect @ 0x18006a860
// > cocos2d::CCEGLView::toggleFullScreen @ 0x180078eab
// > cocos2d::CCEGLView::toggleFullScreen @ 0x180078f4f
// > cocos2d::CCSprite::setVertexRect @ 0x18008d1a7
// > cocos2d::CCSpriteFrame::initWithTexture @ 0x18008fd04
// > cocos2d::CCSpriteFrame::initWithTexture @ 0x18008fd80
// > cocos2d::CCSpriteFrame::initWithTextureFilename @ 0x18008ff9d
// > cocos2d::CCSpriteFrame::initWithTextureFilename @ 0x180090019
// > cocos2d::CCSpriteFrame::setRect @ 0x180090201
// > cocos2d::CCSpriteFrame::setRect @ 0x18009027a
// > cocos2d::CCSpriteFrame::setRectInPixels @ 0x1800902c4
// > cocos2d::CCSpriteFrame::setRectInPixels @ 0x180090340
// > cocos2d::CCTMXLayer::appendTileForGID @ 0x1800abe9e
// > cocos2d::CCTMXLayer::insertTileForGID @ 0x1800ac4df
// > cocos2d::CCTMXLayer::setTileGID @ 0x1800acf59
// > cocos2d::CCTMXLayer::tileAt @ 0x1800ad4d1
// > cocos2d::CCTMXLayer::updateTileForGID @ 0x1800ad707
// > cocos2d::CCDrawNode::operator= @ 0x1800ccbe9
// > cocos2d::CCEGLViewProtocol::operator= @ 0x1800cce1a
// > cocos2d::CCParticleSystemQuad::operator= @ 0x1800cea97
// > cocos2d::CCSprite::operator= @ 0x1800cf5c9
// > cocos2d::CCSpriteFrame::operator= @ 0x1800cf83a
// > cocos2d::CCSpriteFrame::operator= @ 0x1800cf84e
// > ??> @ 0x1801438a8
//
// 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
//
float *__fastcall cocos2d::CCRect::operator=(float *a1, float *a2)
{
float v2; // xmm2_4
float v3; // xmm1_4
float v4; // eax
v2 = a2[2];
v3 = fmaxf(0.0, a2[3]);
v4 = *a2;
a1[1] = a2[1];
*a1 = v4;
a1[3] = v3;
a1[2] = fmaxf(0.0, v2);
return a1;
}