//
// AnimatedShopKeeper::init from 0x100313e20 to 0x100313ec9 (169 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:28:39 +0000
//
__int64 __fastcall AnimatedShopKeeper::init(__int64 a1, int a2)
{
unsigned int v2; // esi
const char *v3; // rsi
__int64 result; // rax
unsigned int v5; // r14d
int v6; // eax
*(_DWORD *)(a1 + 720) = a2;
v2 = a2 - 1;
if ( v2 > 3 )
v3 = "GJShopKeeper";
else
v3 = off_100B1C7B8[v2];
result = CCAnimatedSprite::initWithType(a1, v3, 0, 0);
if ( (_BYTE)result )
{
v5 = result;
*(_DWORD *)(a1 + 728) = (int)(float)((float)((float)((float)rand() * 4.6566129e-10) * 5.0) + 10.0);
v6 = rand();
*(_DWORD *)(a1 + 724) = (int)(float)((float)((float)((float)v6 * 4.6566129e-10) + (float)((float)v6 * 4.6566129e-10))
+ 1.0);
SpriteAnimationManager::stopAnimations(*(_QWORD *)(a1 + 648));
return v5;
}
return result;
}