//
// CCTextInputNode::ccTouchEnded from 0x3e26d8 to 0x3e275c (132 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CCTextInputNode::ccTouchEnded @ 0x3e2768
//
// 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:47:02 +0000
//
unsigned __int8 *__fastcall CCTextInputNode::ccTouchEnded(int a1, cocos2d::CCTouch *a2)
{
int v3; // r7
unsigned __int8 *result; // r0
int v6; // r8
int v7; // r0
float v8[2]; // [sp+4h] [bp-1Ch] BYREF
_BYTE v9[16]; // [sp+Ch] [bp-14h] BYREF
v3 = *(unsigned __int8 *)(a1 + 501);
CCTextInputNode::disarmHold(a1);
result = *(unsigned __int8 **)(a1 + 452);
if ( result )
{
v6 = result[376];
result = (unsigned __int8 *)ScrollableContentLayer::handleTouchEnded((ScrollableContentLayer *)result, a2);
if ( !v6 && !v3 )
{
v7 = *(_DWORD *)(a1 + 420);
if ( !v7
|| (result = (unsigned __int8 *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v7 + 20))(v7, a1)) != nullptr )
{
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v8);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, (const cocos2d::CCRect *)&unk_D2B360);
CCTextInputNode::updateCursorPosition(a1, v8);
return (unsigned __int8 *)(*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 580))(a1, 1);
}
}
}
return result;
}