// // SpriteAnimationManager::playSoundForAnimation from 0x1008021f0 to 0x1008023b8 (456 bytes) // // 1 xrefs: // > SpriteAnimationManager::executeAnimation @ 0x100802ab5 // // This function is hookable on this platform (idp: pc, 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:36:37 +0000 // void __fastcall SpriteAnimationManager::playSoundForAnimation(__int64 a1, char *a2, double a3) { __int64 v3; // rax __int64 v4; // rbx __int64 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 __int64 v13; // rax float v14; // xmm0_4 const char *v15; // r14 size_t v16; // rax size_t v17; // rbx char *v18; // r15 size_t v19; // r12 size_t v20; // [rsp+0h] [rbp-60h] BYREF void *v21; // [rsp+10h] [rbp-50h] _QWORD __dst[2]; // [rsp+18h] [rbp-48h] BYREF void *__p; // [rsp+28h] [rbp-38h] __int64 v24; // [rsp+30h] [rbp-30h] v3 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 344), a2); if ( !v3 ) return; v4 = v3; v5 = sub_10088E820("%s%s", v20); v6 = *(_QWORD *)(a1 + 344); CString = (const char *)cocos2d::CCString::getCString(v5); v8 = strlen(CString); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_24; v9 = v8; if ( v8 >= 0x17 ) { v24 = 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 = v24; __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::CCDictionary::objectForKey(v6, (char *)__dst); v14 = cocos2d::CCString::floatValue(v13, a3); if ( (__dst[0] & 1) != 0 ) { *(float *)&v24 = v14; operator delete(__p); v14 = *(float *)&v24; } if ( v14 != 0.0 ) return; v15 = (const char *)cocos2d::CCString::getCString(v4); v16 = strlen(v15); if ( v16 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_24: sub_100003630(); v17 = v16; if ( v16 >= 0x17 ) { v19 = 26; if ( (v16 | 7) != 0x17 ) v19 = (v16 | 7) + 1; v18 = (char *)operator new(v19); v21 = v18; v20 = v19 + 1; } else { LOBYTE(v20) = 2 * v16; v18 = (char *)&v20 + 1; if ( !v16 ) { BYTE1(v20) = 0; if ( (v20 & 1) == 0 ) return; goto LABEL_17; } } memmove(v18, v15, v17); v18[v17] = 0; if ( (v20 & 1) != 0 ) LABEL_17: operator delete(v21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source