//
// KeybindingsLayer::ccTouchEnded from 0x5890e6 to 0x589132 (76 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'KeybindingsLayer::ccTouchEnded @ 0x589136
//
// 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:53:00 +0000
//
int __fastcall KeybindingsLayer::ccTouchEnded(int a1, cocos2d::CCTouch *a2)
{
clock_t v3; // r0
int v5; // r7
int v6; // r3
void (*v7)(void); // r3
v3 = *(_DWORD *)(a1 + 776);
if ( v3 )
{
v5 = *(unsigned __int8 *)(v3 + 376);
ScrollableContentLayer::handleTouchEnded(v3, a2);
}
else
{
v5 = 0;
}
if ( *(_BYTE *)(a1 + 784) )
{
v6 = **(_DWORD **)(a1 + 780);
if ( v5 )
v7 = *(void (**)(void))(v6 + 460);
else
v7 = *(void (**)(void))(v6 + 456);
v7();
*(_BYTE *)(a1 + 784) = 0;
}
return FLAlertLayer::ccTouchEnded(a1, (int)a2);
}