//
// cocos2d::CCAtlasNode::setTexture from 0x100316920 to 0x100316982 (98 bytes)
//
// 3 xrefs:
// > ??> @ 0x100ae5750
// > ??> @ 0x100b1ccc0
// > ??> @ 0x100ba2b78
//
// 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 12:28:40 +0000
//
__int64 __fastcall cocos2d::CCAtlasNode::setTexture(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int64 result; // rax
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 104LL))(*(_QWORD *)(a1 + 376));
v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 96LL))(*(_QWORD *)(a1 + 376));
if ( !(unsigned __int8)cocos2d::CCTexture2D::hasPremultipliedAlpha(v1) )
*(_QWORD *)(a1 + 388) = 0x30300000302LL;
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 96LL))(*(_QWORD *)(a1 + 376));
result = cocos2d::CCTexture2D::hasPremultipliedAlpha(v2);
*(_BYTE *)(a1 + 384) = result;
return result;
}