//
// MapSelectLayer::ccTouchBegan from 0x50eaa4 to 0x50eb3c (152 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MapSelectLayer::ccTouchBegan @ 0x50eb48
//
// 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
//
bool MapSelectLayer::ccTouchBegan(MapSelectLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
double v3; // d0
int v5; // r2
bool v6; // r3
cocos2d::CCPoint v7; // r1
cocos2d::CCPoint v8; // r1
int v9; // r2
bool v10; // r3
int v11; // r2
bool v12; // r3
int v13; // r0
float v14; // r1
float v15; // r2
cocos2d::CCPoint v17; // [sp+4h] [bp+0h] BYREF
cocos2d::CCPoint v18; // [sp+Ch] [bp+8h] BYREF
cocos2d::CCPoint v19; // [sp+14h] [bp+10h] BYREF
cocos2d::CCTouch::getLocation(&v17, a2);
cocos2d::CCNode::convertToNodeSpace(&v19, a1, &v17);
cocos2d::CCPoint::operator=((PlayerObject *)&v17, COERCE_FLOAT(&v19), v5, v6);
cocos2d::CCNode::convertToNodeSpace(&v18, a1->m_bigSprite, &v17);
cocos2d::CCPoint::CCPoint(&v19, &v18);
LODWORD(v7.x) = &v19;
if ( !MapSelectLayer::checkTouchMonster(a1, v7) )
{
cocos2d::CCPoint::CCPoint(&v19, &v18);
LODWORD(v8.x) = &v19;
MapSelectLayer::createObjectAtPoint(a1, v8);
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_lastTouchPos, COERCE_FLOAT(&v17), v9, v10);
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_mapPos, COERCE_FLOAT(&stru_AC750C), v11, v12);
a1->m_inTouch = 1;
sub_50D7B0(v13, v14, v15, 1);
a1->m_lastTouchTime = v3;
}
return 1;
}