//
// cocos2d::CCTextureAtlas::increaseTotalQuadsWith from 0x8004d0 to 0x8004e2 (18 bytes)
//
// 3 xrefs:
// > cocos2d::CCLabelAtlas::updateAtlasValues @ 0x7d23ec
// > cocos2d::CCParticleBatchNode::insertChild @ 0x7e5df6
// > cocos2d::CCTileMapAtlas::updateAtlasValueAt @ 0x80798a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:19 +0000
//
int __fastcall cocos2d::CCTextureAtlas::increaseTotalQuadsWith(int this, unsigned int a2)
{
unsigned int v2; // r1
unsigned int v3; // r3
v2 = a2 + *(_DWORD *)(this + 68);
v3 = *(_DWORD *)(this + 84);
*(_DWORD *)(this + 68) = v2;
if ( v3 < v2 )
*(_DWORD *)(this + 84) = v2;
else
*(_DWORD *)(this + 84) = v3;
return this;
}