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

GD Web Decomp

Raw Source