//
// sub_100316990 from 0x100316990 to 0x1003169e3 (83 bytes)
//
// 3 xrefs:
// > ??> @ 0x100ae5810
// > ??> @ 0x100b1cd70
// > ??> @ 0x100ba2c38
//
// 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 sub_100316990(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int64 result; // rax
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 32) + 104LL))(*(_QWORD *)(a1 + 32));
v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 32) + 96LL))(*(_QWORD *)(a1 + 32));
if ( !(unsigned __int8)cocos2d::CCTexture2D::hasPremultipliedAlpha(v1) )
*(_QWORD *)(a1 + 44) = 0x30300000302LL;
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 32) + 96LL))(*(_QWORD *)(a1 + 32));
result = cocos2d::CCTexture2D::hasPremultipliedAlpha(v2);
*(_BYTE *)(a1 + 40) = result;
return result;
}