//
// cocos2d::CCAtlasNode::setTexture from 0x180001ed0 to 0x180001f22 (82 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800eb848
// > ??> @ 0x1800f18b8
// > ??> @ 0x18010c0b8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b712c
//
// 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:21:15 +0000
//
void __fastcall cocos2d::CCAtlasNode::setTexture(cocos2d::CCAtlasNode *this, struct cocos2d::CCTexture2D *a2)
{
cocos2d::CCCamera *v3; // rax
cocos2d::CCCamera *v4; // rax
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCTexture2D *))(**((_QWORD **)this + 4) + 96LL))(
*((_QWORD *)this + 4),
a2);
v3 = (cocos2d::CCCamera *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 4) + 88LL))(*((_QWORD *)this + 4));
if ( !cocos2d::CCCamera::isDirty(v3) )
{
*((_DWORD *)this + 11) = 770;
*((_DWORD *)this + 12) = 771;
}
v4 = (cocos2d::CCCamera *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 4) + 88LL))(*((_QWORD *)this + 4));
*((_BYTE *)this + 40) = cocos2d::CCCamera::isDirty(v4);
}