//
// cocos2d::CCSpriteBatchNode::setTexture from 0x100270300 to 0x100270358 (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x1008b90d0
// > ??> @ 0x100917670
// > ??> @ 0x100941f78
//
// This function is hookable on this platform (idp: arm, 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:01:46 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::setTexture(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
int v4; // w8
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 104LL))(*(_QWORD *)(a1 + 328));
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 96LL))(*(_QWORD *)(a1 + 328));
result = cocos2d::CCTexture2D::hasPremultipliedAlpha(v2);
if ( (_DWORD)result )
v4 = 1;
else
v4 = 770;
*(_DWORD *)(a1 + 336) = v4;
*(_DWORD *)(a1 + 340) = 771;
return result;
}