//
// EditorSoundConfigInfoLayer::ccTouchBegan from 0xccc8d4 to 0xccc9c0 (236 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::ccTouchBegan @ 0xccc9c4
// > ??> @ 0x9f070
// > ??> @ 0x14febf0
//
// 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:06:24 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::ccTouchBegan(__int64 a1, cocos2d::CCTouch *this, __int64 a3)
{
char v5; // w0
__int64 v7; // [xsp+48h] [xbp+48h]
__int64 v8; // [xsp+50h] [xbp+50h] BYREF
__int64 v9; // [xsp+58h] [xbp+58h] BYREF
float v10[2]; // [xsp+60h] [xbp+60h] BYREF
_BYTE v11[16]; // [xsp+68h] [xbp+68h] BYREF
if ( *(_QWORD *)(a1 + 1240) )
{
v7 = a3;
cocos2d::CCTouch::getLocation(&v8, this);
cocos2d::CCNode::convertToWorldSpace(&v9, *(cocos2d::CCNode **)(a1 + 1240), (const cocos2d::CCPoint *)&unk_155F2A8);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, (const cocos2d::CCSize *)(*(_QWORD *)(a1 + 1240) + 424LL));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, *(float *)&v9, *((float *)&v9 + 1), v10[0], v10[1]);
v5 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v11, (const cocos2d::CCPoint *)&v8);
a3 = v7;
if ( v5 )
{
ScrollableContentLayer::handleTouchBegan(*(ScrollableContentLayer **)(a1 + 1240), this);
a3 = v7;
}
}
return SetupTriggerPopup::ccTouchBegan(a1, (__int64)this, a3);
}