//
// KeyframeGameObject::setOpacity from 0x86fd48 to 0x86fde8 (160 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'KeyframeGameObject::setOpacity @ 0x86fdec
// > ??> @ 0xb4118
// > ??> @ 0x144e0e0
//
// 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 12:55:45 +0000
//
__int64 __fastcall KeyframeGameObject::setOpacity(KeyframeGameObject *this, unsigned __int8 a2)
{
unsigned int v3; // w20
__int64 result; // x0
unsigned int *v5; // x1
__int64 *v6; // x19
__int64 *i; // x21
v3 = a2;
if ( *((_BYTE *)this + 1864) )
v3 = (unsigned __int8)(unsigned int)(float)((float)a2 * 0.5);
EffectGameObject::setOpacity(this, v3);
result = *((_QWORD *)this + 230);
if ( result )
{
v5 = *(unsigned int **)(result + 56);
result = *v5;
if ( (_DWORD)result )
{
v6 = *((__int64 **)v5 + 2);
for ( i = &v6[(unsigned int)result - 1];
i >= v6;
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 912LL))(result, v3) )
{
result = *v6;
if ( !*v6 )
break;
++v6;
}
}
}
return result;
}