//
// KeyframeGameObject::setOpacity from 0x1001a7430 to 0x1001a74d7 (167 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ac9290
//
// 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:26:01 +0000
//
unsigned int *__fastcall KeyframeGameObject::setOpacity(__int64 a1, int a2)
{
int v3; // eax
unsigned int v4; // ebx
__int64 v5; // rdi
unsigned int *result; // rax
_QWORD *v7; // r14
unsigned __int64 v8; // r15
v3 = (int)(float)((float)a2 * 0.5);
if ( !*(_BYTE *)(a1 + 1864) )
LOBYTE(v3) = a2;
v4 = (unsigned __int8)v3;
GameObject::setOpacity(a1);
v5 = *(_QWORD *)(a1 + 1824);
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1024LL))(v5, *(unsigned __int8 *)(a1 + 329));
result = *(unsigned int **)(a1 + 1840);
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v7 = *((_QWORD **)result + 2);
v8 = (unsigned __int64)&v7[*result - 1];
do
{
if ( !*v7 )
break;
result = (unsigned int *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v7 + 912LL))(*v7, v4);
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
return result;
}