//
// GJMapObject::touchMonster from 0x63f320 to 0x63f384 (100 bytes)
//
// 1 xrefs:
// > MapSelectLayer::checkTouchMonster @ 0x63f9ca
//
// 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:55:27 +0000
//
int __fastcall GJMapObject::touchMonster(int this, int a2, int a3, unsigned __int8 a4)
{
int v4; // r4
int v5; // r3
cocos2d::CCSequence *v6; // r5
cocos2d::CCFiniteTimeAction *v7; // r0
cocos2d::CCAction *v8; // r5
unsigned __int8 v10; // [sp+0h] [bp-4h]
v4 = this;
v5 = *(_DWORD *)(this + 304) + 1;
*(_DWORD *)(this + 304) = v5;
if ( v5 <= 9 )
{
cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(*(_DWORD *)(this + 272) + 1276), 2);
v6 = (cocos2d::CCSequence *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0x3D4CCCCD, COERCE_FLOAT(255), 0, 0, a4);
v7 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0x3F000000, 0.0, 0, 0, v10);
v8 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v6, v7, 0);
(*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v8 + 36))(v8, 2);
return cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(*(_DWORD *)(v4 + 272) + 1276), v8);
}
return this;
}