//
// AudioEffectsLayer::updateTweenAction from 0x1003c4920 to 0x1003c49f4 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008137e8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall AudioEffectsLayer::updateTweenAction(AudioEffectsLayer *a1, float a2, const char *a3)
{
__int64 v5; // x24
size_t v6; // x8
void *v7; // x20
size_t v8; // x9
unsigned __int8 v9; // w21
void **v10; // x0
_QWORD *v11; // x1
size_t v12; // x2
_BOOL4 v13; // w22
_QWORD v14[2]; // [xsp+0h] [xbp-70h] BYREF
char v15; // [xsp+17h] [xbp-59h]
void *__p[2]; // [xsp+18h] [xbp-58h] BYREF
unsigned __int8 v17; // [xsp+2Fh] [xbp-41h]
sub_100009900(__p, (char *)a3);
sub_100009900(v14, "audioScale");
v5 = v15;
v7 = (void *)v14[0];
v6 = v14[1];
v8 = v17;
v9 = v17;
if ( (v17 & 0x80u) == 0 )
{
v10 = __p;
}
else
{
v8 = (size_t)__p[1];
v10 = (void **)__p[0];
}
if ( v15 < 0 )
{
v11 = (_QWORD *)v14[0];
}
else
{
v6 = v15;
v11 = v14;
}
if ( v6 >= v8 )
v12 = v8;
else
v12 = v6;
v13 = v6 == v8;
if ( memcmp(v10, v11, v12) )
v13 = 0;
if ( v5 < 0 )
{
operator delete(v7);
if ( (v17 & 0x80) == 0 )
{
LABEL_14:
if ( !v13 )
return;
goto LABEL_15;
}
}
else if ( (v9 & 0x80) == 0 )
{
goto LABEL_14;
}
operator delete(__p[0]);
if ( !v13 )
return;
LABEL_15:
a1->m_audioScale = a2;
}