//
// SpriteAnimationManager::playSoundForAnimation from 0x100323cf0 to 0x100323dc0 (208 bytes)
//
// 1 xrefs:
// > SpriteAnimationManager::executeAnimation @ 0x100324174
//
// 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 SpriteAnimationManager::playSoundForAnimation(__int64 a1, const char *a2)
{
const char *v2; // x21
__int64 v4; // x0
cocos2d::CCString *v5; // x19
cocos2d::CCString *v6; // x0
__int64 v7; // x20
char *CString; // x0
cocos2d::CCString *v9; // x0
float v10; // s8
char *v11; // x0
void *v12; // [xsp+10h] [xbp-60h] BYREF
char v13; // [xsp+27h] [xbp-49h]
void *__p[2]; // [xsp+28h] [xbp-48h] BYREF
char v15; // [xsp+3Fh] [xbp-31h]
v2 = a2;
v4 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 344), a2);
if ( v4 )
{
v5 = (cocos2d::CCString *)v4;
if ( v2[23] < 0 )
v2 = *(const char **)v2;
v6 = (cocos2d::CCString *)sub_100268F4C("%s%s", v2, "delay");
v7 = *(_QWORD *)(a1 + 344);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(__p, CString);
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(v7, __p);
v10 = cocos2d::CCString::floatValue(v9);
if ( v15 < 0 )
operator delete(__p[0]);
if ( v10 == 0.0 )
{
v11 = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(&v12, v11);
if ( v13 < 0 )
operator delete(v12);
}
}
}