// // PlayerObject::animationFinished from 0x621240 to 0x621928 (1768 bytes) // // 3 xrefs: // > `non-virtual thunk to'PlayerObject::animationFinished @ 0x62192c // > @ 0x7c7e8 // > @ 0x1152df0 // // 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 PlayerObject::animationFinished(PlayerObject *a1, const char *a2) { _DWORD *v3; // x28 _DWORD *v4; // x27 unsigned __int64 v5; // x19 size_t v6; // x2 int v7; // w20 __int64 v8; // x19 __int64 *v9; // x0 char *v10; // x0 GJRobotSprite *m_robotSprite; // x20 _DWORD *v12; // x1 char *v13; // x0 unsigned __int64 v14; // x28 size_t v15; // x2 int v16; // w20 _DWORD *v17; // x3 __int64 v18; // x28 __int64 *v19; // x0 char *v20; // x0 GJRobotSprite *v21; // x25 char *v22; // x0 GJSpiderSprite *m_spiderSprite; // x25 unsigned int *v24; // x1 int v25; // w2 unsigned int *v26; // x3 int v27; // w1 unsigned int *v28; // x28 int v29; // w1 _DWORD *v30; // x25 _DWORD *v31; // x27 unsigned __int64 v32; // x24 unsigned __int64 v33; // x28 size_t v34; // x2 int v35; // w20 __int64 v36; // x24 char *v37; // x0 char *v38; // x0 GJSpiderSprite *v39; // x20 unsigned int *v40; // x1 unsigned int *v41; // x1 unsigned int *v42; // x4 int v43; // w1 unsigned int *v44; // x3 int v45; // w1 unsigned int *v46; // x25 int v47; // w1 GJRobotSprite *v48; // x20 unsigned int *v49; // x1 unsigned int *v50; // x1 int v51; // w2 unsigned int *v52; // x27 int v53; // w1 unsigned __int64 v54; // [xsp+60h] [xbp+60h] _DWORD *v55; // [xsp+68h] [xbp+68h] unsigned __int64 v56; // [xsp+70h] [xbp+70h] _DWORD *v57; // [xsp+70h] [xbp+70h] void *v59; // [xsp+98h] [xbp+98h] BYREF void *v60; // [xsp+A0h] [xbp+A0h] BYREF sub_D153B8((int)&v59, (char *)a2); sub_D153B8((int)&v60, "jump_start"); v3 = v59; v4 = v60; v5 = *((_QWORD *)v59 - 3); v56 = *((_QWORD *)v60 - 3); if ( v56 > v5 ) v6 = *((_QWORD *)v59 - 3); else v6 = *((_QWORD *)v60 - 3); v7 = memcmp(v59, v60, v6); if ( v7 || (v7 = 0x7FFFFFFF, v8 = v5 - v56, v8 > 0x7FFFFFFF) ) { v9 = (__int64 *)(v4 - 6); if ( v4 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_7; } else { v9 = (__int64 *)(v4 - 6); if ( v8 >= (__int64)0xFFFFFFFF80000000LL ) v7 = v8; else v7 = 0x80000000; if ( v9 == &qword_124B6B0 ) { LABEL_7: v10 = (char *)(v3 - 6); if ( v3 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_8; goto LABEL_35; } } if ( &pthread_create ) { v26 = v4 - 2; do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *(v4 - 2); *(v4 - 2) = v27 - 1; } if ( v27 <= 0 ) operator delete(v9); v3 = v59; v10 = (char *)v59 - 24; if ( (char *)v59 - 24 != (char *)&qword_124B6B0 ) { LABEL_35: if ( &pthread_create ) { v28 = v3 - 2; do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *(v3 - 2); *(v3 - 2) = v29 - 1; } if ( v29 <= 0 ) operator delete(v10); } LABEL_8: if ( !v7 ) { m_robotSprite = a1->m_robotSprite; sub_D153B8((int)&v60, "jump_loop"); CCAnimatedSprite::runAnimation((__int64)m_robotSprite, (__int64)&v60); v12 = v60; v13 = (char *)v60 - 24; if ( (char *)v60 - 24 == (char *)&qword_124B6B0 ) return; if ( &pthread_create ) { v41 = (unsigned int *)((char *)v60 - 8); do v25 = __ldaxr(v41); while ( __stlxr(v25 - 1, v41) ); goto LABEL_57; } LABEL_86: v25 = *(v12 - 2); *(v12 - 2) = v25 - 1; LABEL_57: if ( v25 <= 0 ) operator delete(v13); return; } sub_D153B8((int)&v59, (char *)a2); sub_D153B8((int)&v60, "fall_start"); v55 = v59; v14 = *((_QWORD *)v59 - 3); v57 = v60; v54 = *((_QWORD *)v60 - 3); if ( v54 > v14 ) v15 = *((_QWORD *)v59 - 3); else v15 = *((_QWORD *)v60 - 3); v16 = memcmp(v59, v60, v15); v17 = v55; if ( v16 || (v16 = 0x7FFFFFFF, v18 = v14 - v54, v18 > 0x7FFFFFFF) ) { v19 = (__int64 *)(v57 - 6); if ( v57 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_17; } else { v19 = (__int64 *)(v57 - 6); if ( v18 >= (__int64)0xFFFFFFFF80000000LL ) v16 = v18; else v16 = 0x80000000; if ( v19 == &qword_124B6B0 ) goto LABEL_17; } if ( &pthread_create ) { v42 = v57 - 2; do v43 = __ldaxr(v42); while ( __stlxr(v43 - 1, v42) ); } else { v43 = *(v57 - 2); *(v57 - 2) = v43 - 1; } if ( v43 <= 0 ) operator delete(v19); v17 = v59; LABEL_17: v20 = (char *)(v17 - 6); if ( v17 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_18; if ( &pthread_create ) { v44 = v17 - 2; do v45 = __ldaxr(v44); while ( __stlxr(v45 - 1, v44) ); } else { v45 = *(v17 - 2); *(v17 - 2) = v45 - 1; } if ( v45 > 0 ) { LABEL_18: if ( !v16 ) goto LABEL_19; } else { operator delete(v20); if ( !v16 ) { LABEL_19: v21 = a1->m_robotSprite; sub_D153B8((int)&v60, "fall_loop"); CCAnimatedSprite::runAnimation((__int64)v21, (__int64)&v60); v22 = (char *)v60 - 24; if ( (char *)v60 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v50 = (unsigned int *)((char *)v60 - 8); do v51 = __ldaxr(v50); while ( __stlxr(v51 - 1, v50) ); } else { v51 = *((_DWORD *)v60 - 2); *((_DWORD *)v60 - 2) = v51 - 1; } if ( v51 <= 0 ) operator delete(v22); } m_spiderSprite = a1->m_spiderSprite; sub_D153B8((int)&v60, "fall_loop"); CCAnimatedSprite::runAnimation((__int64)m_spiderSprite, (__int64)&v60); v12 = v60; v13 = (char *)v60 - 24; if ( (char *)v60 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)((char *)v60 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); goto LABEL_57; } goto LABEL_86; } return; } } sub_D153B8((int)&v59, (char *)a2); sub_D153B8((int)&v60, "idle02"); v30 = v59; v31 = v60; v32 = *((_QWORD *)v59 - 3); v33 = *((_QWORD *)v60 - 3); if ( v33 > v32 ) v34 = *((_QWORD *)v59 - 3); else v34 = *((_QWORD *)v60 - 3); v35 = memcmp(v59, v60, v34); if ( !v35 ) { v35 = 0x7FFFFFFF; v36 = v32 - v33; if ( v36 <= 0x7FFFFFFF ) { if ( v36 >= (__int64)0xFFFFFFFF80000000LL ) v35 = v36; else v35 = 0x80000000; } } v37 = (char *)(v31 - 6); if ( v31 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v52 = v31 - 2; do v53 = __ldaxr(v52); while ( __stlxr(v53 - 1, v52) ); } else { v53 = *(v31 - 2); *(v31 - 2) = v53 - 1; } if ( v53 <= 0 ) operator delete(v37); v30 = v59; } v38 = (char *)(v30 - 6); if ( v30 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_50; if ( &pthread_create ) { v46 = v30 - 2; do v47 = __ldaxr(v46); while ( __stlxr(v47 - 1, v46) ); } else { v47 = *(v30 - 2); *(v30 - 2) = v47 - 1; } if ( v47 > 0 ) { LABEL_50: if ( v35 ) return; } else { operator delete(v38); if ( v35 ) return; } if ( a1->m_isRobot ) { v48 = a1->m_robotSprite; sub_D153B8((int)&v60, "idle01"); CCAnimatedSprite::runAnimation((__int64)v48, (__int64)&v60); v12 = v60; v13 = (char *)v60 - 24; if ( (char *)v60 - 24 == (char *)&qword_124B6B0 ) return; if ( &pthread_create ) { v49 = (unsigned int *)((char *)v60 - 8); do v25 = __ldaxr(v49); while ( __stlxr(v25 - 1, v49) ); goto LABEL_57; } goto LABEL_86; } if ( a1->m_isSpider ) { v39 = a1->m_spiderSprite; sub_D153B8((int)&v60, "idle01"); CCAnimatedSprite::runAnimation((__int64)v39, (__int64)&v60); v12 = v60; v13 = (char *)v60 - 24; if ( (char *)v60 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v40 = (unsigned int *)((char *)v60 - 8); do v25 = __ldaxr(v40); while ( __stlxr(v25 - 1, v40) ); goto LABEL_57; } goto LABEL_86; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source