// // SpriteAnimationManager::finishAnimation from 0x1007242c0 to 0x100724409 (329 bytes) // // 0 xrefs: // // 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::finishAnimation(__int64 a1, unsigned __int8 *a2) { unsigned int v3; // r13d size_t v4; // r12 const void *v5; // rsi unsigned int v6; // ebx size_t v7; // rbx const void *v8; // rdi size_t v9; // r14 char v10; // r13 size_t v11; // rdx bool v12; // zf SpriteAnimationManager *v13; // r12 size_t v14; // rax const void *v15; // rsi unsigned int v16; // ebx size_t size; // rbx std::array *longStorage; // rdi size_t v19; // rdx size_t v20; // r14 size_t v22; // [rsp+18h] [rbp-38h] const void *v23; // [rsp+20h] [rbp-30h] v3 = *a2; v4 = *((_QWORD *)a2 + 1); v5 = *((const void **)a2 + 2); v6 = *(unsigned __int8 *)(a1 + 352); if ( (v6 & 1) != 0 ) { v7 = *(_QWORD *)(a1 + 360); v8 = *(const void **)(a1 + 368); } else { v7 = v6 >> 1; v8 = (const void *)(a1 + 353); } v9 = v3 >> 1; v10 = v3 & 1; v22 = v4; if ( !v10 ) v4 = v9; v23 = v5; if ( !v10 ) v5 = a2 + 1; v11 = v7; if ( v4 < v7 ) v11 = v4; if ( !memcmp(v8, v5, v11) ) { v12 = v4 == v7; v13 = (SpriteAnimationManager *)a1; v14 = v22; v15 = v23; if ( v12 ) { std::string::assign((std::string *)(a1 + 352), "not_used"); v14 = *((_QWORD *)a2 + 1); v15 = *((const void **)a2 + 2); v10 = *a2 & 1; v9 = *a2 >> 1; } v16 = *(unsigned __int8 *)(a1 + 400); if ( (v16 & 1) != 0 ) goto LABEL_14; } else { v13 = (SpriteAnimationManager *)a1; v14 = v22; v15 = v23; v16 = *(unsigned __int8 *)(a1 + 400); if ( (v16 & 1) != 0 ) { LABEL_14: size = v13->m_currentAnimation.m_data.m_long.size; longStorage = (std::array *)v13->m_currentAnimation.m_data.m_long.longStorage; goto LABEL_17; } } size = v16 >> 1; longStorage = &v13->m_currentAnimation.m_data.m_short.shortStorage; LABEL_17: if ( !v10 ) { v14 = v9; v15 = a2 + 1; } v19 = size; if ( v14 < size ) v19 = v14; v20 = v14; if ( !memcmp(longStorage, v15, v19) && v20 == size ) SpriteAnimationManager::runQueuedAnimation(v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source