//
// GJBaseGameLayer::increaseBatchNodeCapacity from 0x46dcb8 to 0x46dd0a (82 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x31bbb6
// > LevelEditorLayer::init @ 0x376a5e
//
// 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 GJBaseGameLayer::increaseBatchNodeCapacity(GJBaseGameLayer *a1)
{
GameManager *v2; // r0
_BOOL4 GameVariable; // r0
cocos2d::CCArray *m_batchNodes; // r3
signed int v5; // r7
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v8; // r4
cocos2d::CCSpriteBatchNode *v9; // r6
cocos2d::CCSpriteBatchNode *v10; // t1
v2 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v2, "0066");
m_batchNodes = a1->m_batchNodes;
if ( GameVariable )
v5 = 1000;
else
v5 = 200;
if ( m_batchNodes )
{
data = m_batchNodes->data;
if ( data->num )
{
arr = data->arr;
v8 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v8 )
{
v10 = (cocos2d::CCSpriteBatchNode *)*arr++;
v9 = v10;
if ( !v10 )
break;
if ( cocos2d::CCSpriteBatchNode::getAtlasCapacity(v9) < v5 )
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v9, v5);
}
}
}
}