//
// sub_1003C19A4 from 0x1003c19a4 to 0x1003c19ec (72 bytes)
//
// 2 xrefs:
// > PlayerObject::updateRobotAnimationSpeed @ 0x1002ca370
// > PlayerObject::updateRobotAnimationSpeed @ 0x1002ca380
//
// 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:04:02 +0000
//
__int64 __fastcall sub_1003C19A4(__int64 result, float a2)
{
__int64 v2; // x8
__int64 i; // x8
__int64 v4; // x9
if ( *(float *)(result + 376) != a2 )
{
*(float *)(result + 376) = a2;
v2 = *(_QWORD *)(result + 384);
if ( v2 )
{
for ( i = *(_QWORD *)(v2 + 56); i; *(float *)(v4 + 76) = a2 )
{
while ( 1 )
{
v4 = *(_QWORD *)(i + 264);
i = *(_QWORD *)(i + 288);
if ( !*(_DWORD *)(v4 + 28) )
break;
if ( !i )
return result;
}
}
}
}
return result;
}