//
// cocos2d::CCSpriteBatchNode::setTexture from 0x180092270 to 0x1800922b4 (68 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800f2760
// > ??> @ 0x18010a6e0
// > ??> @ 0x18010c490
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c03c0
//
// 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:08 +0000
//
void __fastcall cocos2d::CCSpriteBatchNode::setTexture(
cocos2d::CCSpriteBatchNode *this,
struct cocos2d::CCTexture2D *a2)
{
cocos2d::CCCamera *v3; // rax
char isDirty; // al
int v5; // ecx
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCTexture2D *))(**((_QWORD **)this + 1) + 96LL))(
*((_QWORD *)this + 1),
a2);
v3 = (cocos2d::CCCamera *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 1) + 88LL))(*((_QWORD *)this + 1));
isDirty = cocos2d::CCCamera::isDirty(v3);
v5 = 770;
if ( isDirty )
v5 = 1;
*((_DWORD *)this + 4) = v5;
*((_DWORD *)this + 5) = 771;
}