//
// GJMapObject::touchMonster from 0xac1ecc to 0xac1f74 (168 bytes)
//
// 2 xrefs:
// > MapSelectLayer::checkTouchMonster @ 0xac2810
// > ??> @ 0xf3f88
//
// 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:01:05 +0000
//
__int64 __fastcall GJMapObject::touchMonster(__int64 this)
{
int v1; // w1
__int64 v2; // x19
unsigned __int8 v3; // w3
cocos2d::CCSequence *v4; // x20
unsigned __int8 v5; // w3
cocos2d::CCFiniteTimeAction *v6; // x0
cocos2d::CCAction *v7; // x20
v1 = *(_DWORD *)(this + 368) + 1;
*(_DWORD *)(this + 368) = v1;
if ( v1 <= 9 )
{
v2 = this;
cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(*(_QWORD *)(this + 328) + 1464LL), 2);
v4 = (cocos2d::CCSequence *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0xFFFFFFFFLL, 0.05, 0, 0, v3);
v6 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create(nullptr, 0.5, 0, 0, v5);
v7 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v4, v6, 0);
(*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v7 + 72LL))(v7, 2);
return cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(*(_QWORD *)(v2 + 328) + 1464LL), v7);
}
return this;
}