//
// cocos2d::CCSprite::setBatchNode from 0x18008c1f0 to 0x18008c24a (90 bytes)
//
// 6 xrefs:
// > ??> @ 0x1800ebc38
// > ??> @ 0x1800ec110
// > ??> @ 0x1800ecc90
// > ??> @ 0x180103b48
// > ??> @ 0x180106b40
// > ??> @ 0x1801438a8
//
// 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::CCSprite::setBatchNode(cocos2d::CCSprite *this, struct cocos2d::CCSpriteBatchNode *a2)
{
cocos2d::CCSprite_vtbl *v2; // rax
this->m_pobBatchNode = a2;
if ( a2 )
{
this->m_transformToBatch = cocos2d::CCAffineTransformIdentity;
this->m_pobTextureAtlas = a2->m_pobTextureAtlas;
}
else
{
v2 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
this->m_uAtlasIndex = -1;
this->m_pobTextureAtlas = nullptr;
this->m_bRecursiveDirty = 0;
((void (*)(void))v2->setDirty)();
}
}