// // SpriteAnimationManager::playSoundForAnimation from 0x6afac0 to 0x6afc20 (352 bytes) // // 2 xrefs: // > SpriteAnimationManager::executeAnimation @ 0x6aff9c // > @ 0x5c740 // // 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 12:50:50 +0000 // __int64 __fastcall SpriteAnimationManager::playSoundForAnimation(__int64 a1, __int64 a2) { cocos2d::CCString *v4; // x22 const char *v5; // x1 cocos2d::CCString *v6; // x0 __int64 v7; // x23 const char *CString; // x0 size_t v9; // x0 cocos2d::CCString *v10; // x0 float v11; // s0 const char *v13; // x0 size_t v14; // x0 char *v15; // [xsp+40h] [xbp+40h] char *v16; // [xsp+40h] [xbp+40h] float v17; // [xsp+40h] [xbp+40h] __int64 v18; // [xsp+50h] [xbp+50h] BYREF __int64 v19; // [xsp+58h] [xbp+58h] void *v20; // [xsp+60h] [xbp+60h] v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 344), a2); if ( v4 ) { v5 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v5 = *(const char **)(a2 + 16); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s%s", v5, "delay"); v7 = *(_QWORD *)(a1 + 344); CString = (const char *)cocos2d::CCString::getCString(v6); v18 = 0; v15 = (char *)CString; v19 = 0; v20 = nullptr; v9 = strlen(CString); std::string::__init(&v18, v15, v9); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v7, &v18); cocos2d::CCString::floatValue(v10); if ( (v18 & 1) != 0 ) { v17 = v11; operator delete(v20); v11 = v17; } if ( v11 == 0.0 ) { v13 = (const char *)cocos2d::CCString::getCString(v4); v18 = 0; v16 = (char *)v13; v19 = 0; v20 = nullptr; v14 = strlen(v13); std::string::__init(&v18, v16, v14); SpriteAnimationManager::playSound(); if ( (v18 & 1) != 0 ) operator delete(v20); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source