//
// cocos2d::CCSpriteBatchNode::updateQuadFromSprite from 0xb1854c to 0xb18610 (196 bytes)
//
// 1 xrefs:
// > ??> @ 0xb1f00
//
// 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 cocos2d::CCSpriteBatchNode::updateQuadFromSprite(
cocos2d::CCSpriteBatchNode *a1,
cocos2d::CCSprite *a2,
unsigned int a3)
{
unsigned int v6; // w21
while ( 1 )
{
if ( a1->m_pobTextureAtlas->getCapacity(a1->m_pobTextureAtlas) > a3 )
{
v6 = a1->m_pobTextureAtlas->getCapacity(a1->m_pobTextureAtlas);
if ( v6 != a1->m_pobTextureAtlas->getTotalQuads(a1->m_pobTextureAtlas) )
break;
}
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1);
}
a2->setBatchNode(a2, a1);
a2->m_uAtlasIndex = a3;
a2->setDirty(a2, 1);
a2->updateTransform(a2);
}