// // AnimatedShopKeeper::animationFinished from 0xa7d870 to 0xa7dd4c (1244 bytes) // // 2 xrefs: // > @ 0x9be78 // > @ 0x1497158 // // This function is hookable on this platform (idp: arm, 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 13:00:30 +0000 // __int64 __fastcall AnimatedShopKeeper::animationFinished(AnimatedShopKeeper *this, char *a2) { int v5; // w2 __int64 v6; // x1 size_t v7; // x0 _BOOL4 v8; // w24 size_t v9; // x0 bool v10; // w0 _BOOL4 v11; // w24 int v12; // w0 size_t v14; // x0 bool v15; // w0 _BOOL4 v16; // w24 size_t v17; // x0 bool v18; // w0 _BOOL4 v19; // w21 __int64 v20; // [xsp+68h] [xbp+68h] BYREF __int64 v21; // [xsp+70h] [xbp+70h] void *v22; // [xsp+78h] [xbp+78h] __int64 v23; // [xsp+80h] [xbp+80h] BYREF __int64 v24; // [xsp+88h] [xbp+88h] void *v25; // [xsp+90h] [xbp+90h] __int64 v26; // [xsp+98h] [xbp+98h] v5 = *((_DWORD *)this + 181); --*((_DWORD *)this + 182); v6 = _stack_chk_guard; *((_DWORD *)this + 181) = v5 - 1; v26 = v6; v20 = 0; v21 = 0; v22 = nullptr; v7 = strlen(a2); std::string::__init(&v20, a2, v7); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "react01", 7u); v8 = sub_A7C888((__int64)&v20, (__int64)&v23); if ( (v23 & 1) != 0 ) operator delete(v25); if ( (v20 & 1) != 0 ) operator delete(v22); if ( v8 ) *((_BYTE *)this + 733) = 0; v20 = 0; v21 = 0; v22 = nullptr; v9 = strlen(a2); std::string::__init(&v20, a2, v9); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "idle03", 6u); v10 = sub_A7C888((__int64)&v20, (__int64)&v23); v11 = v10; if ( v10 ) { v11 = 0; if ( (v23 & 1) == 0 ) goto LABEL_11; LABEL_34: operator delete(v25); if ( (v20 & 1) == 0 ) goto LABEL_12; goto LABEL_35; } if ( *((int *)this + 182) <= 0 ) v11 = *((_DWORD *)this + 180) != 4; if ( (v23 & 1) != 0 ) goto LABEL_34; LABEL_11: if ( (v20 & 1) == 0 ) goto LABEL_12; LABEL_35: operator delete(v22); LABEL_12: if ( v11 ) { *((_BYTE *)this + 732) = 0; v12 = rand(); v23 = 0; v24 = 0; v25 = nullptr; *((_DWORD *)this + 182) = (int)(float)((float)((float)((float)v12 * 4.6566e-10) * 5.0) + 10.0); std::string::__init(&v23, "idle03", 6u); CCAnimatedSprite::runAnimationForced((__int64)this, (char *)&v23); goto LABEL_14; } v20 = 0; v21 = 0; v22 = nullptr; v14 = strlen(a2); std::string::__init(&v20, a2, v14); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "idle00", 6u); v15 = sub_A7C888((__int64)&v20, (__int64)&v23); v16 = v15; if ( v15 ) v16 = *((_DWORD *)this + 181) <= 0; if ( (v23 & 1) != 0 ) { operator delete(v25); if ( (v20 & 1) == 0 ) { LABEL_21: if ( !v16 ) goto LABEL_22; LABEL_36: if ( (float)((float)rand() * 4.6566e-10) <= 0.9 || *((_DWORD *)this + 180) == 4 ) { v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "idle02", 6u); CCAnimatedSprite::runAnimationForced((__int64)this, (char *)&v23); } else { v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "idle01", 6u); CCAnimatedSprite::runAnimationForced((__int64)this, (char *)&v23); } if ( (v23 & 1) != 0 ) operator delete(v25); *((_DWORD *)this + 181) = (int)(float)((float)((float)((float)rand() * 4.6566e-10) * 3.0) + 2.0); return _stack_chk_guard; } } else if ( (v20 & 1) == 0 ) { goto LABEL_21; } operator delete(v22); if ( v16 ) goto LABEL_36; LABEL_22: v20 = 0; v21 = 0; v22 = nullptr; v17 = strlen(a2); std::string::__init(&v20, a2, v17); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "idle03", 6u); v18 = sub_A7C888((__int64)&v20, (__int64)&v23); v19 = v18; if ( v18 ) { v19 = 0; if ( !*((_BYTE *)this + 732) ) v19 = (float)((float)rand() * 4.6566e-10) > 0.6; } if ( (v23 & 1) != 0 ) operator delete(v25); if ( (v20 & 1) != 0 ) operator delete(v22); if ( !v19 ) { v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "idle00", 6u); CCAnimatedSprite::runAnimationForced((__int64)this, (char *)&v23); LABEL_14: if ( (v23 & 1) != 0 ) operator delete(v25); return _stack_chk_guard; } v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "idle03", 6u); CCAnimatedSprite::runAnimationForced((__int64)this, (char *)&v23); if ( (v23 & 1) != 0 ) operator delete(v25); *((_BYTE *)this + 732) = 1; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source