//
// KeyframeGameObject::setOpacity from 0x4e61bc to 0x4e6216 (90 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'KeyframeGameObject::setOpacity @ 0x4e621a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:05 +0000
//
int __fastcall KeyframeGameObject::setOpacity(KeyframeGameObject *this, unsigned int a2)
{
unsigned int v3; // r5
int result; // r0
int v5; // r3
_DWORD *v6; // r2
int *v7; // r6
int *v8; // r4
int v9; // t1
v3 = a2;
if ( *((_BYTE *)this + 1664) )
v3 = (unsigned __int8)(unsigned int)vcvts_n_f32_s32(a2, 1u);
result = EffectGameObject::setOpacity(this, v3);
v5 = *((_DWORD *)this + 412);
if ( v5 )
{
v6 = *(_DWORD **)(v5 + 52);
if ( *v6 )
{
v7 = (int *)v6[3];
v8 = &v7[*v6 - 1];
while ( v7 <= v8 )
{
v9 = *v7++;
result = v9;
if ( !v9 )
break;
result = (*(int (__fastcall **)(int, unsigned int))(*(_DWORD *)result + 456))(result, v3);
}
}
}
return result;
}