//
// cocos2d::CCAtlasNode::setTexture from 0x180001f10 to 0x180001f62 (82 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800e5808
// > ??> @ 0x1800eb808
// > ??> @ 0x1801059c8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad120
//
// 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::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->m_uIndexInArray + 96LL))(
*(_QWORD *)&this->m_uIndexInArray,
a2);
v3 = (cocos2d::CCCamera *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&this->m_uIndexInArray + 88LL))(*(_QWORD *)&this->m_uIndexInArray);
if ( !cocos2d::CCCamera::isDirty(v3) )
{
this->m_nZOrder = 770;
this->m_uOrderOfArrival = 771;
}
v4 = (cocos2d::CCCamera *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&this->m_uIndexInArray + 88LL))(*(_QWORD *)&this->m_uIndexInArray);
LOBYTE(this->m_unknown2) = cocos2d::CCCamera::isDirty(v4);
}