//
// cocos2d::CCTextureAtlas::increaseTotalQuadsWith from 0x1004a7490 to 0x1004a74a7 (23 bytes)
//
// 3 xrefs:
// > cocos2d::CCTileMapAtlas::updateAtlasValueAt @ 0x1002117ce
// > cocos2d::CCParticleBatchNode::insertChild @ 0x1003b2470
// > cocos2d::CCLabelAtlas::updateAtlasValues @ 0x10087a3b7
//
// This function is hookable on this platform (idp: pc, 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 12:30:55 +0000
//
__int64 __fastcall cocos2d::CCTextureAtlas::increaseTotalQuadsWith(__int64 a1, int a2)
{
unsigned int v2; // esi
__int64 result; // rax
v2 = *(_DWORD *)(a1 + 80) + a2;
*(_DWORD *)(a1 + 80) = v2;
result = *(unsigned int *)(a1 + 104);
if ( (unsigned int)result > v2 )
v2 = *(_DWORD *)(a1 + 104);
*(_DWORD *)(a1 + 104) = v2;
return result;
}