//
// GJBaseGameLayer::increaseBatchNodeCapacity from 0x100278f34 to 0x100278fc8 (148 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10013f640
// > LevelEditorLayer::init @ 0x1003f7030
//
// This function is hookable on this platform (idp: arm, 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 11:01:51 +0000
//
void __fastcall GJBaseGameLayer::increaseBatchNodeCapacity(__int64 a1)
{
__int64 v2; // x0
int v3; // w0
__int64 v4; // x19
__int64 v5; // x8
unsigned int *v6; // x9
__int64 v7; // x8
__int64 *v8; // x21
unsigned __int64 v9; // x22
__int64 v10; // x20
v2 = GameManager::sharedState(a1);
GameManager::getGameVariable(v2, "0066");
if ( v3 )
v4 = 1000;
else
v4 = 200;
v5 = *(_QWORD *)(a1 + 3984);
if ( v5 )
{
v6 = *(unsigned int **)(v5 + 56);
v7 = *v6;
if ( (_DWORD)v7 )
{
v8 = *((__int64 **)v6 + 2);
v9 = (unsigned __int64)&v8[v7 - 1];
do
{
v10 = *v8;
if ( !*v8 )
break;
if ( (int)cocos2d::CCSpriteBatchNode::getAtlasCapacity(*v8) < (int)v4 )
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v10, v4);
++v8;
}
while ( (unsigned __int64)v8 <= v9 );
}
}
}