// // SpriteAnimationManager::playSoundForAnimation from 0x1007232d0 to 0x100723498 (456 bytes) // // 1 xrefs: // > SpriteAnimationManager::executeAnimation @ 0x100723b95 // // 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, char *a2, double a3) { __int64 v3; // rax cocos2d::CCString *v4; // rbx cocos2d::CCString *v5; // rax __int64 v6; // r14 const char *CString; // r12 size_t v8; // rax size_t v9; // r15 char *v10; // r13 __int64 v11; // rbx size_t v12; // r14 cocos2d::CCString *v13; // rax const char *v14; // r14 size_t v15; // rax size_t v16; // rbx char *v17; // r15 size_t v18; // r12 size_t v19; // [rsp+0h] [rbp-60h] BYREF void *v20; // [rsp+10h] [rbp-50h] _QWORD __dst[2]; // [rsp+18h] [rbp-48h] BYREF void *__p; // [rsp+28h] [rbp-38h] cocos2d::CCString *v23; // [rsp+30h] [rbp-30h] v3 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 344), a2); if ( !v3 ) return; v4 = (cocos2d::CCString *)v3; v5 = (cocos2d::CCString *)sub_1007AB580("%s%s", v19); v6 = *(_QWORD *)(a1 + 344); CString = cocos2d::CCString::getCString(v5); v8 = strlen(CString); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_24; v9 = v8; if ( v8 >= 0x17 ) { v23 = v4; v11 = v6; v12 = 26; if ( (v8 | 7) != 0x17 ) v12 = (v8 | 7) + 1; v10 = (char *)operator new(v12); __p = v10; __dst[0] = v12 + 1; v6 = v11; v4 = v23; __dst[1] = v9; goto LABEL_9; } LOBYTE(__dst[0]) = 2 * v8; v10 = (char *)__dst + 1; if ( v8 ) LABEL_9: memmove(v10, CString, v9); v10[v9] = 0; v13 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(v6, (char *)__dst); *(float *)&a3 = cocos2d::CCString::floatValue(v13); if ( (__dst[0] & 1) != 0 ) { LODWORD(v23) = LODWORD(a3); operator delete(__p); *(_QWORD *)&a3 = (unsigned int)v23; } if ( *(float *)&a3 != 0.0 ) return; v14 = cocos2d::CCString::getCString(v4); v15 = strlen(v14); if ( v15 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_24: sub_100006BF0(a3); v16 = v15; if ( v15 >= 0x17 ) { v18 = 26; if ( (v15 | 7) != 0x17 ) v18 = (v15 | 7) + 1; v17 = (char *)operator new(v18); v20 = v17; v19 = v18 + 1; } else { LOBYTE(v19) = 2 * v15; v17 = (char *)&v19 + 1; if ( !v15 ) { BYTE1(v19) = 0; if ( (v19 & 1) == 0 ) return; goto LABEL_17; } } memmove(v17, v14, v16); v17[v16] = 0; if ( (v19 & 1) != 0 ) LABEL_17: operator delete(v20); }
GD Web Decomp Icon

GD Web Decomp

Raw Source