//
// cocos2d::CCSprite::setBatchNode from 0x5e6b70 to 0x5e6bb8 (72 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 cocos2d::CCSprite::setBatchNode(cocos2d::CCSprite *a1, cocos2d::CCSpriteBatchNode *a2)
{
cocos2d::CCSprite_vtbl *v3; // r3
float v4; // r1
float v5; // r2
float v6; // r3
float v7; // r1
cocos2d::CCTextureAtlas *m_pobTextureAtlas; // r3
a1->m_pobBatchNode = a2;
if ( a2 )
{
v4 = unk_AC88B8;
v5 = unk_AC88BC;
v6 = unk_AC88C0;
LODWORD(a1->m_transformToBatch.a) = cocos2d::CCAffineTransformIdentity;
a1->m_transformToBatch.b = v4;
a1->m_transformToBatch.c = v5;
a1->m_transformToBatch.d = v6;
v7 = unk_AC88C8;
m_pobTextureAtlas = a2->m_pobTextureAtlas;
LODWORD(a1->m_transformToBatch.tx) = unk_AC88C4;
a1->m_transformToBatch.ty = v7;
a1->m_pobTextureAtlas = m_pobTextureAtlas;
}
else
{
a1->m_uAtlasIndex = -1;
a1->m_pobTextureAtlas = nullptr;
v3 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_bRecursiveDirty = 0;
((void (*)(void))v3->setDirty)();
}
}