// // AnimatedShopKeeper::animationFinished from 0x611b74 to 0x611e60 (748 bytes) // // 0 xrefs: // // 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:54:52 +0000 // int __fastcall AnimatedShopKeeper::animationFinished(AnimatedShopKeeper *this, const char *a2) { int v4; // r3 size_t v5; // r0 _BOOL4 v6; // r10 size_t v7; // r0 _BOOL4 v8; // r6 unsigned int v9; // r0 size_t v10; // r0 _BOOL4 v11; // r6 size_t v12; // r0 int result; // r0 int v14; // [sp+4h] [bp+0h] BYREF int v15; // [sp+8h] [bp+4h] int v16; // [sp+Ch] [bp+8h] int v17; // [sp+10h] [bp+Ch] BYREF int v18; // [sp+14h] [bp+10h] int v19; // [sp+18h] [bp+14h] v14 = 0; v15 = 0; v4 = *((_DWORD *)this + 143); v16 = 0; *((_DWORD *)this + 143) = v4 - 1; --*((_DWORD *)this + 144); v5 = strlen(a2); std::string::__init(&v14, a2, v5); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "react01", 7u); v6 = sub_6110AE((unsigned __int8 *)&v14, (unsigned __int8 *)&v17); std::string::~string((int)&v17); std::string::~string((int)&v14); if ( v6 ) *((_BYTE *)this + 581) = 0; v14 = 0; v15 = 0; v16 = 0; v7 = strlen(a2); std::string::__init(&v14, a2, v7); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "idle03", 6u); v8 = sub_6110AE((unsigned __int8 *)&v14, (unsigned __int8 *)&v17); if ( v8 ) { v8 = 0; } else if ( *((int *)this + 144) <= 0 ) { v8 = *((_DWORD *)this + 142) != 4; } std::string::~string((int)&v17); std::string::~string((int)&v14); if ( v8 ) { *((_BYTE *)this + 580) = 0; v9 = rand(); v17 = 0; v18 = 0; v19 = 0; *((_DWORD *)this + 144) = (int)(float)((float)(vcvts_n_f32_s32(v9, 0x1Fu) * 5.0) + 10.0); std::string::__init(&v17, "idle03", 6u); CCAnimatedSprite::runAnimationForced((int)this, (int)&v17); return std::string::~string((int)&v17); } v14 = 0; v15 = 0; v16 = 0; v10 = strlen(a2); std::string::__init(&v14, a2, v10); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "idle00", 6u); v11 = sub_6110AE((unsigned __int8 *)&v14, (unsigned __int8 *)&v17); if ( v11 ) v11 = *((_DWORD *)this + 143) <= 0; std::string::~string((int)&v17); std::string::~string((int)&v14); if ( !v11 ) { v14 = 0; v15 = 0; v16 = 0; v12 = strlen(a2); std::string::__init(&v14, a2, v12); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "idle03", 6u); if ( sub_6110AE((unsigned __int8 *)&v14, (unsigned __int8 *)&v17) ) { if ( !*((_BYTE *)this + 580) ) v11 = vcvts_n_f32_s32(rand(), 0x1Fu) > 0.6; } else { v11 = 0; } std::string::~string((int)&v17); std::string::~string((int)&v14); if ( v11 ) { v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "idle03", 6u); CCAnimatedSprite::runAnimationForced((int)this, (int)&v17); result = std::string::~string((int)&v17); *((_BYTE *)this + 580) = 1; return result; } v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "idle00", 6u); CCAnimatedSprite::runAnimationForced((int)this, (int)&v17); return std::string::~string((int)&v17); } if ( (float)((float)rand() * 4.6566e-10) <= 0.9 || *((_DWORD *)this + 142) == 4 ) { v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "idle02", 6u); CCAnimatedSprite::runAnimationForced((int)this, (int)&v17); } else { v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "idle01", 6u); CCAnimatedSprite::runAnimationForced((int)this, (int)&v17); } std::string::~string((int)&v17); result = rand(); *((_DWORD *)this + 143) = (int)(float)((float)((float)((float)result * 4.6566e-10) * 3.0) + 2.0); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source