// // SpriteAnimationManager::queueAnimation from 0x1007238f0 to 0x100723a83 (403 bytes) // // 2 xrefs: // > SpriteAnimationManager::runAnimation @ 0x100723775 // > SpriteAnimationManager::runAnimation @ 0x1007237f3 // // 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::queueAnimation(__int64 a1, const std::string *a2, __m128 a3) { const std::string *v3; // rbx cocos2d::CCString *v4; // rax int v5; // r15d const char *v6; // r12 size_t v7; // rax size_t v8; // r13 char *v9; // r15 size_t v10; // rbx cocos2d::CCString *v11; // rax int v12; // r15d __m128 v13; // [rsp+10h] [rbp-60h] BYREF void *__p; // [rsp+20h] [rbp-50h] _QWORD __dst[2]; // [rsp+28h] [rbp-48h] BYREF void *v16; // [rsp+38h] [rbp-38h] int v17; // [rsp+44h] [rbp-2Ch] v3 = a2; if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 ) { sub_100006B70(&v13, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_, *(double *)a3.i64); } else { __p = a2->__r_.__value_.__l.__data_; a3 = *(__m128 *)&a2->__r_.__value_.__l.0; v13 = *(__m128 *)&a2->__r_.__value_.__l.0; } v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 328), (char *)&v13); if ( v4 ) { v5 = cocos2d::CCString::intValue(v4); if ( (v13.i8[0] & 1) == 0 ) goto LABEL_7; goto LABEL_6; } v5 = 99; if ( (v13.i8[0] & 1) != 0 ) LABEL_6: operator delete(__p); LABEL_7: if ( (*(_BYTE *)(a1 + 352) & 1) != 0 ) v6 = *(const char **)(a1 + 368); else v6 = (const char *)(a1 + 353); v7 = strlen(v6); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)a3.i64); v8 = v7; v17 = v5; if ( v7 >= 0x17 ) { v10 = 26; if ( (v7 | 7) != 0x17 ) v10 = (v7 | 7) + 1; v9 = (char *)operator new(v10); v16 = v9; __dst[0] = v10 + 1; v3 = a2; __dst[1] = v8; goto LABEL_17; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) LABEL_17: memmove(v9, v6, v8); v9[v8] = 0; v11 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 328), (char *)__dst); if ( v11 ) { v12 = cocos2d::CCString::intValue(v11); if ( (__dst[0] & 1) == 0 ) goto LABEL_21; goto LABEL_20; } v12 = 99; if ( (__dst[0] & 1) != 0 ) LABEL_20: operator delete(v16); LABEL_21: if ( v17 <= v12 ) std::string::operator=((std::string *)(a1 + 352), v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source