//
// cocos2d::CCSprite::setBatchNode from 0x10028b100 to 0x10028b167 (103 bytes)
//
// 78 xrefs:
// > ??> @ 0x1008b4210
// > ??> @ 0x1008b81f8
// > ??> @ 0x1008c44b8
// > ??> @ 0x1008c4cf0
// > ??> @ 0x1008c54e8
// > ??> @ 0x1008c5ce0
// > ??> @ 0x1008c64d8
// > ??> @ 0x1008c6cd0
// > ??> @ 0x1008c74c8
// > ??> @ 0x1008c7cc0
// > ??> @ 0x1008c84a8
// > ??> @ 0x1008c8cb8
// > ??> @ 0x1008c9530
// > ??> @ 0x1008c9d40
// > ??> @ 0x1008ca550
// > ??> @ 0x1008cad60
// > ??> @ 0x1008cb570
// > ??> @ 0x1008cbd80
// > ??> @ 0x1008cc590
// > ??> @ 0x1008ccda0
// > ??> @ 0x1008cd5b0
// > ??> @ 0x1008cddc0
// > ??> @ 0x1008ce5e8
// > ??> @ 0x1008cee40
// > ??> @ 0x1008cf668
// > ??> @ 0x1008cfe90
// > ??> @ 0x1008d06b8
// > ??> @ 0x1008d0ee0
// > ??> @ 0x1008d16f0
// > ??> @ 0x1008d1f00
// > ??> @ 0x1008d2710
// > ??> @ 0x1008d2f20
// > ??> @ 0x1008d3730
// > ??> @ 0x1008d3f40
// > ??> @ 0x1008d4750
// > ??> @ 0x1008d4f60
// > ??> @ 0x1008d5770
// > ??> @ 0x1008d5f80
// > ??> @ 0x1008d6790
// > ??> @ 0x1008d6fa0
// > ??> @ 0x1008d77b0
// > ??> @ 0x1008d7fc0
// > ??> @ 0x1008d87d0
// > ??> @ 0x1008d8fe0
// > ??> @ 0x1008dd5c0
// > ??> @ 0x1008e0af0
// > ??> @ 0x1008f0768
// > ??> @ 0x1008f3af8
// > ??> @ 0x100904ef0
// > ??> @ 0x100909ac8
// > ??> @ 0x10090bb00
// > ??> @ 0x1009135a8
// > ??> @ 0x100914850
// > ??> @ 0x1009153e0
// > ??> @ 0x10091c170
// > ??> @ 0x10091c6f8
// > ??> @ 0x10091db50
// > ??> @ 0x10091e0f0
// > ??> @ 0x100923788
// > ??> @ 0x100928120
// > ??> @ 0x10092ae78
// > ??> @ 0x100933b50
// > ??> @ 0x100934378
// > ??> @ 0x10093ca18
// > ??> @ 0x10093cfc8
// > ??> @ 0x100942258
// > ??> @ 0x10094e970
// > ??> @ 0x100971838
// > ??> @ 0x100972020
// > ??> @ 0x100972830
// > ??> @ 0x100974a98
// > ??> @ 0x100975050
// > ??> @ 0x100975608
// > ??> @ 0x10097a5f8
// > ??> @ 0x10097abb0
// > ??> @ 0x100985680
// > ??> @ 0x100991a68
// > ??> @ 0x100996290
//
// 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 *a1, cocos2d::CCSpriteBatchNode *a2)
{
a1->m_pobBatchNode = a2;
if ( a2 )
{
a1->m_transformToBatch = *(cocos2d::CCAffineTransform *)byte_1009A4F50;
a1->m_pobTextureAtlas = a2->m_pobTextureAtlas;
}
else
{
a1->m_uAtlasIndex = -1;
a1->m_pobTextureAtlas = nullptr;
a1->m_bRecursiveDirty = 0;
((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->setDirty)(a1, 0);
}
}