//
// cocos2d::CCSprite::setBatchNode from 0x18008f3e0 to 0x18008f43a (90 bytes)
//
// 6 xrefs:
// > ??> @ 0x1800f1d38
// > ??> @ 0x1800f2220
// > ??> @ 0x1800f2dd0
// > ??> @ 0x18010a210
// > ??> @ 0x18010d228
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:07 +0000
//
void __fastcall cocos2d::CCSprite::setBatchNode(cocos2d::CCSprite *this, struct cocos2d::CCSpriteBatchNode *a2)
{
__int64 v2; // rax
*((_QWORD *)this + 46) = a2;
if ( a2 )
{
*(_OWORD *)((char *)this + 380) = cocos2d::CCAffineTransformIdentity;
*(_QWORD *)((char *)this + 396) = qword_1801ACB50;
*((_QWORD *)this + 44) = *((_QWORD *)a2 + 41);
}
else
{
v2 = *(_QWORD *)this;
*((_DWORD *)this + 90) = -1;
*((_QWORD *)this + 44) = 0;
*((_BYTE *)this + 377) = 0;
(*(void (**)(void))(v2 + 1048))();
}
}