//
// AnimatedShopKeeper::create from 0x100324770 to 0x1003248cc (348 bytes)
//
// 1 xrefs:
// > GJShopLayer::init @ 0x100323698
//
// 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
//
AnimatedShopKeeper *__fastcall AnimatedShopKeeper::create(ShopType a1)
{
__int64 v1; // rsi
char *v2; // rbx
const char *v3; // rsi
int v4; // eax
v2 = (char *)operator new(0x2E8u);
cocos2d::CCSprite::CCSprite((__int64)v2, v1);
*(_OWORD *)(v2 + 664) = 0;
*(_OWORD *)(v2 + 648) = 0;
*(_OWORD *)(v2 + 632) = 0;
*(_OWORD *)(v2 + 616) = 0;
*(_OWORD *)(v2 + 600) = 0;
*((_DWORD *)v2 + 170) = 0;
*((_OWORD *)v2 + 43) = 0;
*((_OWORD *)v2 + 44) = 0;
*(_QWORD *)v2 = off_100914400;
*((_QWORD *)v2 + 40) = off_1009148E8;
*((_QWORD *)v2 + 43) = off_100914968;
*((_QWORD *)v2 + 92) = 0;
*((_QWORD *)v2 + 90) = 0;
*(_QWORD *)(v2 + 726) = 0;
*((_DWORD *)v2 + 180) = a1;
if ( (unsigned int)(a1 - 1) > 3 )
v3 = "GJShopKeeper";
else
v3 = off_1009149A0[a1 - 1];
if ( CCAnimatedSprite::initWithType((CCAnimatedSprite *)v2, v3, nullptr, 0) )
{
*((_DWORD *)v2 + 182) = (int)(float)((float)((float)((float)rand() * 4.6566129e-10) * 5.0) + 10.0);
v4 = rand();
*((_DWORD *)v2 + 181) = (int)(float)((float)((float)((float)v4 * 4.6566129e-10) + (float)((float)v4 * 4.6566129e-10))
+ 1.0);
SpriteAnimationManager::stopAnimations(*((SpriteAnimationManager **)v2 + 81));
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (AnimatedShopKeeper *)v2;
}