//
// GJBaseGameLayer::updateLegacyLayerCapacity from 0x1000f1750 to 0x1000f1845 (245 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateLayerCapacity @ 0x1000f19a5
//
// 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:21:11 +0000
//
__int64 __fastcall GJBaseGameLayer::updateLegacyLayerCapacity(_QWORD *a1, __int64 a2, int a3, int a4, int a5)
{
unsigned int v5; // r12d
unsigned int v6; // ebx
unsigned int v7; // r15d
unsigned int v8; // ebx
v5 = a4;
v6 = 100;
if ( (int)a2 < 101 )
a2 = 100;
v7 = a3;
if ( a3 < 101 )
v7 = 100;
if ( a4 < 101 )
v5 = 100;
if ( a5 >= 101 )
v6 = a5;
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[317], a2);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[318], v7);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[329], 20);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[330], 20);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[349], 20);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[337], v5);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[338], v6);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[351], v5);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[352], v6);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[319], v7 >> 1);
v8 = v6 >> 1;
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[339], v8);
return cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1[353], v8);
}