//
// GJBaseGameLayer::updateLegacyLayerCapacity from 0x1001deab0 to 0x1001deb84 (212 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateLayerCapacity @ 0x1001dee70
//
// 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
//
void __fastcall GJBaseGameLayer::updateLegacyLayerCapacity(GJBaseGameLayer *a1, int a2, int a3, int a4, int a5)
{
unsigned int v6; // w21
unsigned int v7; // w22
unsigned int v8; // w20
unsigned int v9; // w20
if ( a2 <= 100 )
a2 = 100;
if ( a3 <= 100 )
v6 = 100;
else
v6 = a3;
if ( a4 <= 100 )
v7 = 100;
else
v7 = a4;
if ( a5 <= 100 )
v8 = 100;
else
v8 = a5;
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerT1, a2);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerT1, v6);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_game2LayerT1, 0x14u);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_game2BlendingLayerT1, 0x14u);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_game2LayerB1, 0x14u);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB1, v7);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB1, v8);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB2, v7);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB2, v8);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerT1, v6 >> 1);
v9 = v8 >> 1;
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB1, v9);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB2, v9);
}