//
// KeyframeGameObject::setOpacity from 0x1004318d4 to 0x100431970 (156 bytes)
//
// 2 xrefs:
// > sub_100431970 @ 0x100431974
// > ??> @ 0x10094ef08
//
// 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:06 +0000
//
__int64 __fastcall KeyframeGameObject::setOpacity(__int64 a1, unsigned int a2)
{
unsigned int v3; // w9
__int64 v4; // x19
__int64 result; // x0
__int64 v6; // x8
unsigned int *v7; // x9
__int64 v8; // x8
__int64 *v9; // x20
unsigned __int64 v10; // x21
v3 = (int)vcvts_n_f32_u32(a2, 1u);
if ( *(_BYTE *)(a1 + 1864) )
v4 = v3;
else
v4 = a2;
GameObject::setOpacity(a1, v4);
result = *(_QWORD *)(a1 + 1824);
if ( result )
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1024LL))(
result,
*(unsigned __int8 *)(a1 + 329));
v6 = *(_QWORD *)(a1 + 1840);
if ( v6 )
{
v7 = *(unsigned int **)(v6 + 56);
v8 = *v7;
if ( (_DWORD)v8 )
{
v9 = *((__int64 **)v7 + 2);
v10 = (unsigned __int64)&v9[v8 - 1];
do
{
result = *v9;
if ( !*v9 )
break;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 912LL))(result, v4);
++v9;
}
while ( (unsigned __int64)v9 <= v10 );
}
}
return result;
}