//
// sub_1003C1D00 from 0x1003c1d00 to 0x1003c1dc8 (200 bytes)
//
// 2 xrefs:
// > SpriteAnimationManager::runAnimation @ 0x1003c1bcc
// > SpriteAnimationManager::runAnimation @ 0x1003c1c10
//
// 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
//
void __fastcall sub_1003C1D00(__int64 a1, __int64 a2)
{
int v4; // w21
std::string *v5; // x22
char *v6; // x1
int v7; // w20
void *v8[2]; // [xsp+8h] [xbp-58h] BYREF
char v9; // [xsp+1Fh] [xbp-41h]
void *__p[2]; // [xsp+20h] [xbp-40h] BYREF
__int64 v11; // [xsp+30h] [xbp-30h]
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v11 = *(_QWORD *)(a2 + 16);
}
v4 = sub_1003C1CD8(a1, (__int64)__p);
if ( SHIBYTE(v11) < 0 )
operator delete(__p[0]);
v5 = (std::string *)(a1 + 352);
v6 = (char *)(a1 + 352);
if ( *(char *)(a1 + 375) < 0 )
v6 = (char *)v5->__r_.__value_.__r.__words[0];
sub_100009900(v8, v6);
v7 = sub_1003C1CD8(a1, (__int64)v8);
if ( v9 < 0 )
operator delete(v8[0]);
if ( v4 <= v7 )
std::string::operator=(v5, (const std::string *)a2);
}