// // AnimatedGameObject::animationFinished from 0x4f40e8 to 0x4f4876 (1934 bytes) // // 1 xrefs: // > `non-virtual thunk to'AnimatedGameObject::animationFinished @ 0x4f4898 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:51:16 +0000 // int __fastcall AnimatedGameObject::animationFinished(int this, const char *a2) { _DWORD *v2; // r5 int v4; // r1 int v5; // r4 int v6; // r3 size_t v7; // r0 _BOOL4 v8; // r6 int v9; // r7 int v10; // r3 size_t v11; // r0 _BOOL4 v12; // r6 unsigned int v13; // r0 int v14; // r6 size_t v15; // r0 _BOOL4 v16; // r6 unsigned int v17; // r0 size_t v18; // r0 _BOOL4 v19; // r8 int v20; // r6 size_t v21; // r0 _BOOL4 v22; // r8 int v23; // r6 size_t v24; // r0 _BOOL4 v25; // r6 int v26; // r7 unsigned int v27; // r0 size_t v28; // r0 _BOOL4 v29; // r8 int v30; // r6 size_t v31; // r0 size_t v32; // r0 _BOOL4 v33; // r11 size_t v34; // r0 int v35; // r6 size_t v36; // r0 _BOOL4 v37; // r6 int v38; // r7 unsigned int v39; // r0 int v40; // r6 int v41; // [sp+8h] [bp-5Ch] int v42[3]; // [sp+14h] [bp-50h] BYREF int v43[3]; // [sp+20h] [bp-44h] BYREF int v44[3]; // [sp+2Ch] [bp-38h] BYREF int v45[3]; // [sp+38h] [bp-2Ch] BYREF int v46; // [sp+44h] [bp-20h] BYREF int v47; // [sp+48h] [bp-1Ch] int v48; // [sp+4Ch] [bp-18h] int v49; // [sp+50h] [bp-14h] BYREF int v50; // [sp+54h] [bp-10h] int v51; // [sp+58h] [bp-Ch] v2 = (_DWORD *)this; if ( !*(_BYTE *)(this + 1288) ) { v4 = *(_DWORD *)(this + 1276); if ( !v4 || ((std::string::basic_string(&v49, v4 + 520), (v49 & 1) != 0) ? (v5 = v50) : (v5 = (int)(unsigned __int8)v49 >> 1), this = std::string::~string((int)&v49), !v5) ) { v41 = v2[327]; v6 = v2[223]; switch ( v6 ) { case 918: v46 = 0; v47 = 0; v48 = 0; v7 = strlen(a2); std::string::__init(&v46, a2, v7); v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "attack01", 8u); v8 = sub_4E6580((unsigned __int8 *)&v46, (unsigned __int8 *)&v49); std::string::~string((int)&v49); std::string::~string((int)&v46); v9 = v2[319]; if ( v8 ) { v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "attack01_loop", 0xDu); CCAnimatedSprite::runAnimationForced(v9, (int)&v49); this = std::string::~string((int)&v49); v10 = 1; LABEL_23: v2[327] = v10; goto LABEL_47; } v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "bite", 4u); CCAnimatedSprite::runAnimationForced(v9, (int)&v49); goto LABEL_46; case 1327: v46 = 0; v47 = 0; v48 = 0; v11 = strlen(a2); std::string::__init(&v46, a2, v11); v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "idle01", 6u); v12 = sub_4E6580((unsigned __int8 *)&v46, (unsigned __int8 *)&v49); std::string::~string((int)&v49); std::string::~string((int)&v46); if ( !v12 ) { LABEL_27: v26 = v2[319]; v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "idle01", 6u); CCAnimatedSprite::runAnimationForced(v26, (int)&v49); LABEL_46: this = std::string::~string((int)&v49); LABEL_47: if ( v2[327] == v41 ) v2[327] = 0; return this; } v13 = rand(); v14 = v2[319]; v49 = 0; v50 = 0; v51 = 0; if ( vcvts_n_f32_s32(v13, 0x1Fu) <= 0.75 ) break; LABEL_29: std::string::__init(&v49, "idle02", 6u); LABEL_30: CCAnimatedSprite::runAnimationForced(v14, (int)&v49); goto LABEL_46; case 1328: v46 = 0; v47 = 0; v48 = 0; v15 = strlen(a2); std::string::__init(&v46, a2, v15); v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "idle01", 6u); v16 = sub_4E6580((unsigned __int8 *)&v46, (unsigned __int8 *)&v49); std::string::~string((int)&v49); std::string::~string((int)&v46); if ( !v16 ) goto LABEL_27; v17 = rand(); v14 = v2[319]; v49 = 0; v50 = 0; v51 = 0; if ( vcvts_n_f32_s32(v17, 0x1Fu) > 0.9 ) goto LABEL_29; break; case 1584: v46 = 0; v47 = 0; v48 = 0; v18 = strlen(a2); std::string::__init(&v46, a2, v18); v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "attack02", 8u); v19 = sub_4E6580((unsigned __int8 *)&v46, (unsigned __int8 *)&v49); std::string::~string((int)&v49); std::string::~string((int)&v46); if ( v19 ) { v20 = v2[319]; v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "attack02_loop", 0xDu); CCAnimatedSprite::runAnimationForced(v20, (int)&v49); this = std::string::~string((int)&v49); v10 = 9; goto LABEL_23; } v46 = 0; v47 = 0; v48 = 0; v21 = strlen(a2); std::string::__init(&v46, a2, v21); v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "sleep", 5u); v22 = sub_4E6580((unsigned __int8 *)&v46, (unsigned __int8 *)&v49); std::string::~string((int)&v49); std::string::~string((int)&v46); if ( v22 ) { v23 = v2[319]; v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "sleep_loop", 0xAu); CCAnimatedSprite::runAnimationForced(v23, (int)&v49); this = std::string::~string((int)&v49); v10 = 7; goto LABEL_23; } v46 = 0; v47 = 0; v48 = 0; v24 = strlen(a2); std::string::__init(&v46, a2, v24); v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "idle01", 6u); v25 = sub_4E6580((unsigned __int8 *)&v46, (unsigned __int8 *)&v49); std::string::~string((int)&v49); std::string::~string((int)&v46); if ( !v25 ) goto LABEL_27; v27 = rand(); v14 = v2[319]; v49 = 0; v50 = 0; v51 = 0; if ( vcvts_n_f32_s32(v27, 0x1Fu) > 0.8 ) goto LABEL_29; break; case 2012: v46 = 0; v47 = 0; v48 = 0; v28 = strlen(a2); std::string::__init(&v46, a2, v28); v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "toAttack03", 0xAu); v29 = sub_4E6580((unsigned __int8 *)&v46, (unsigned __int8 *)&v49); std::string::~string((int)&v49); std::string::~string((int)&v46); if ( v29 ) { v30 = v2[319]; v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "attack03", 8u); CCAnimatedSprite::runAnimationForced(v30, (int)&v49); this = std::string::~string((int)&v49); v10 = 6; goto LABEL_23; } memset(v42, 0, sizeof(v42)); v31 = strlen(a2); std::string::__init(v42, a2, v31); memset(v43, 0, sizeof(v43)); std::string::__init(v43, "fromAttack03", 0xCu); if ( sub_4E6580((unsigned __int8 *)v42, (unsigned __int8 *)v43) ) { std::string::~string((int)v43); std::string::~string((int)v42); } else { memset(v44, 0, sizeof(v44)); v32 = strlen(a2); std::string::__init(v44, a2, v32); memset(v45, 0, sizeof(v45)); std::string::__init(v45, "attack02", 8u); v33 = sub_4E6580((unsigned __int8 *)v44, (unsigned __int8 *)v45); if ( !v33 ) { v46 = 0; v47 = 0; v48 = 0; v34 = strlen(a2); std::string::__init(&v46, a2, v34); v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "toAttack01", 0xAu); v33 = sub_4E6580((unsigned __int8 *)&v46, (unsigned __int8 *)&v49); std::string::~string((int)&v49); std::string::~string((int)&v46); } std::string::~string((int)v45); std::string::~string((int)v44); std::string::~string((int)v43); std::string::~string((int)v42); if ( !v33 ) { v46 = 0; v47 = 0; v48 = 0; v36 = strlen(a2); std::string::__init(&v46, a2, v36); v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "idle01", 6u); v37 = sub_4E6580((unsigned __int8 *)&v46, (unsigned __int8 *)&v49); std::string::~string((int)&v49); std::string::~string((int)&v46); if ( v37 ) { v39 = rand(); v40 = v2[319]; v49 = 0; v50 = 0; v51 = 0; if ( vcvts_n_f32_s32(v39, 0x1Fu) <= 0.75 ) std::string::__init(&v49, "idle01", 6u); else std::string::__init(&v49, "idle02", 6u); CCAnimatedSprite::runAnimationForced(v40, (int)&v49); } else { v38 = v2[319]; v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "idle01", 6u); CCAnimatedSprite::runAnimationForced(v38, (int)&v49); } goto LABEL_46; } } v35 = v2[319]; v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "attack01", 8u); CCAnimatedSprite::runAnimationForced(v35, (int)&v49); this = std::string::~string((int)&v49); v10 = 3; goto LABEL_23; default: goto LABEL_47; } std::string::__init(&v49, "idle01", 6u); goto LABEL_30; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source