//
// AnimatedShopKeeper::playReactAnimation from 0x6116e8 to 0x6117cc (228 bytes)
//
// 1 xrefs:
// > GJShopLayer::ccTouchBegan @ 0x6129d8
//
// 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::playReactAnimation(int this)
{
int v1; // r4
int v2; // r6
cocos2d::CCString *v3; // r0
const char *CString; // r6
size_t v5; // r0
FMODAudioEngine *v6; // r0
FMODAudioEngine *v7; // r8
int v8[3]; // [sp+8h] [bp-28h] BYREF
int v9[3]; // [sp+14h] [bp-1Ch] BYREF
int v10[3]; // [sp+20h] [bp-10h] BYREF
v1 = this;
if ( !*(_BYTE *)(this + 581) )
{
v2 = *(_DWORD *)(this + 588) + 1;
if ( v2 > 3 )
*(_DWORD *)(this + 588) = 1;
else
*(_DWORD *)(this + 588) = v2;
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"grunt0%i.ogg",
*(const char **)(this + 588));
memset(v8, 0, sizeof(v8));
CString = (const char *)cocos2d::CCString::getCString(v3);
v5 = strlen(CString);
v6 = (FMODAudioEngine *)std::string::__init(v8, CString, v5);
v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v6);
std::string::basic_string(v9, (int)v8);
FMODAudioEngine::playEffect(v7, (int)v9, 1065353216, 0, 1059481190);
std::string::~string((int)v9);
memset(v10, 0, sizeof(v10));
std::string::__init(v10, "react01", 7u);
CCAnimatedSprite::runAnimationForced(v1, (int)v10);
std::string::~string((int)v10);
*(_BYTE *)(v1 + 581) = 1;
++*(_DWORD *)(v1 + 584);
return std::string::~string((int)v8);
}
return this;
}