//
// EnhancedGameObject::saveActiveColors from 0x100300464 to 0x1003004d8 (116 bytes)
//
// 43 xrefs:
// > ??> @ 0x100929190
// > ??> @ 0x10094d970
// > ??> @ 0x10094e1b8
// > ??> @ 0x10094e9c0
// > ??> @ 0x10094f1c8
// > ??> @ 0x10094f9d0
// > ??> @ 0x1009501d8
// > ??> @ 0x1009509e0
// > ??> @ 0x1009519e0
// > ??> @ 0x100952200
// > ??> @ 0x100952a78
// > ??> @ 0x100953298
// > ??> @ 0x100953ab8
// > ??> @ 0x1009542d8
// > ??> @ 0x100954af8
// > ??> @ 0x100955318
// > ??> @ 0x100955b38
// > ??> @ 0x100956358
// > ??> @ 0x100956b78
// > ??> @ 0x100957398
// > ??> @ 0x100957bd0
// > ??> @ 0x100958438
// > ??> @ 0x100958c70
// > ??> @ 0x1009594a8
// > ??> @ 0x100959ce0
// > ??> @ 0x10095a518
// > ??> @ 0x10095ad38
// > ??> @ 0x10095b558
// > ??> @ 0x10095bd78
// > ??> @ 0x10095c598
// > ??> @ 0x10095cdb8
// > ??> @ 0x10095d5d8
// > ??> @ 0x10095ddf8
// > ??> @ 0x10095e618
// > ??> @ 0x10095ee38
// > ??> @ 0x10095f658
// > ??> @ 0x10095fe78
// > ??> @ 0x100960698
// > ??> @ 0x100960eb8
// > ??> @ 0x1009616d8
// > ??> @ 0x100961ef8
// > ??> @ 0x100962718
// > ??> @ 0x100962f38
//
// 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:03:05 +0000
//
char *__fastcall EnhancedGameObject::saveActiveColors(__int64 a1)
{
char *result; // x0
result = GameObject::saveActiveColors(a1);
if ( *(_BYTE *)(a1 + 1408) == 1 )
{
if ( *(float *)(a1 + 1352) <= 0.0 && (*(_BYTE *)(a1 + 1368) & 1) == 0 )
{
result = (char *)rand();
*(float *)(a1 + 1352) = vcvts_n_f32_s32((unsigned int)result, 0x1Fu);
}
}
else
{
*(_QWORD *)(a1 + 1352) = 0;
}
if ( *(_BYTE *)(a1 + 1386) == 1 )
return (char *)sub_1003E75A4(a1);
return result;
}