//
// UIPOptionsLayer::ccTouchBegan from 0x5d5a18 to 0x5d5aa2 (138 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'UIPOptionsLayer::ccTouchBegan @ 0x5d5aac
//
// 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:08 +0000
//
int __fastcall UIPOptionsLayer::ccTouchBegan(int a1, int a2)
{
int v4; // r0
int v6; // [sp+4h] [bp+0h] BYREF
_BYTE v7[8]; // [sp+Ch] [bp+8h] BYREF
_BYTE v8[8]; // [sp+14h] [bp+10h] BYREF
_BYTE v9[16]; // [sp+1Ch] [bp+18h] BYREF
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)&v6);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v7, (const cocos2d::CCPoint *)a1);
if ( *(int *)(a1 + 712) < 0 )
{
UIPOptionsLayer::getTouchRect((UIPOptionsLayer *)v9, a1);
if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v9, (const cocos2d::CCPoint *)v7) )
{
*(_DWORD *)(a1 + 712) = *(_DWORD *)(a2 + 52);
cocos2d::CCPoint::operator=(a1 + 720, v7);
v4 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 716) + 96))(*(_DWORD *)(a1 + 716));
cocos2d::CCPoint::operator-(v8, v7, v4);
cocos2d::CCPoint::operator=(a1 + 728, v8);
}
}
return 1;
}