//
// cocos2d::CCDrawNode::ensureCapacity from 0x100610e90 to 0x100610edd (77 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::CCDrawNode::ensureCapacity(cocos2d::CCDrawNode *a1, unsigned int a2)
{
unsigned int m_uBufferCapacity; // eax
__int64 v3; // rsi
m_uBufferCapacity = a1->m_uBufferCapacity;
if ( a2 + a1->m_nBufferCount > m_uBufferCapacity )
{
if ( m_uBufferCapacity > a2 )
a2 = a1->m_uBufferCapacity;
v3 = m_uBufferCapacity + a2;
a1->m_uBufferCapacity = v3;
a1->m_pBuffer = (cocos2d::ccV2F_C4B_T2F *)realloc(a1->m_pBuffer, 20 * v3);
}
}