//
// cocos2d::CCTouchDispatcher::touchesBegan from 0x808478 to 0x808502 (138 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCTouchDispatcher::touchesBegan @ 0x808514
//
// 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 12:01:26 +0000
//
float *__fastcall cocos2d::CCTouchDispatcher::touchesBegan(float *result, cocos2d::CCSet *this, int a3)
{
int v4; // r6
char v6; // r3
float v7[2]; // [sp+4h] [bp-10h] BYREF
v4 = (int)result;
++*((_DWORD *)result + 24);
if ( this )
{
result = (float *)cocos2d::CCSet::anyObject(this);
if ( result )
{
v6 = byte_D31368;
__dmb(0xFu);
if ( (v6 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D31368) )
{
cocos2d::CCPoint::CCPoint(flt_D3136C, (const cocos2d::CCPoint *)&unk_D31374);
_cxa_guard_release((__guard *)&byte_D31368);
}
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v7);
result = cocos2d::CCPoint::operator=(flt_D3136C, v7);
}
}
if ( *(_BYTE *)(v4 + 77) )
return (float *)cocos2d::CCTouchDispatcher::touches(v4, this, a3, 0);
return result;
}