//
// cocos2d::CCSpriteBatchNode::increaseAtlasCapacity_1 from 0x100156b70 to 0x100156bc6 (86 bytes)
//
// 0 xrefs:
//
// 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:25:04 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::increaseAtlasCapacity_1(__int64 a1)
{
unsigned int v1; // r14d
__int64 result; // rax
v1 = (4 * (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 88LL))(*(_QWORD *)(a1 + 328)) + 4) / 3;
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 88LL))(*(_QWORD *)(a1 + 328));
if ( (unsigned int)result < v1 )
return cocos2d::CCTextureAtlas::resizeCapacity(*(_QWORD *)(a1 + 328), v1);
return result;
}