//
// AnimatedGameObject::setOpacity from 0x10042a268 to 0x10042a32c (196 bytes)
//
// 2 xrefs:
// > sub_10042A32C @ 0x10042a330
// > ??> @ 0x10094d6b0
//
// 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:05:03 +0000
//
__int64 __fastcall AnimatedGameObject::setOpacity(__int64 a1, unsigned int a2)
{
__int64 v3; // x19
__int64 result; // x0
__int64 v5; // x20
unsigned int v6; // w21
__int64 v7; // x0
GameObject::setOpacity(a1, a2);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 896LL))(a1);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1464) + 912LL))(*(_QWORD *)(a1 + 1464), v3);
result = *(_QWORD *)(a1 + 1472);
if ( result )
{
if ( *(_BYTE *)(a1 + 1020) )
v3 = 0;
else
v3 = (unsigned int)v3;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 912LL))(result, v3);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1472) + 488LL))(*(_QWORD *)(a1 + 1472));
result = sub_1002E757C(v5);
if ( (_DWORD)result )
{
v6 = 0;
do
{
v7 = sub_1002E75A0(v5, v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 912LL))(v7, v3);
++v6;
result = sub_1002E757C(v5);
}
while ( v6 < (unsigned int)result );
}
}
return result;
}