//
// CCTextInputNode::rightClick from 0x3e2820 to 0x3e28fa (218 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CCTextInputNode::rightClick @ 0x3e2908
//
// 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
//
cocos2d::CCTouchHandler *__fastcall CCTextInputNode::rightClick(CCTextInputNode *this, float a2, float a3)
{
cocos2d::CCTouchHandler *v6; // r8
int v8; // r0
int v9; // r2
int v10; // r3
_BYTE v12[8]; // [sp+4h] [bp-28h] BYREF
float v13[2]; // [sp+Ch] [bp-20h] BYREF
_BYTE v14[16]; // [sp+14h] [bp-18h] BYREF
if ( !CCTextInputNode::isVisibleInTree(this) )
return nullptr;
v6 = (cocos2d::CCTouchHandler *)(*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)this + 496))(this);
if ( !v6 )
return nullptr;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, a2, a3);
if ( cocos2d::ccTouchClippedByAncestor(this, (int)v12) )
return nullptr;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (const cocos2d::CCPoint *)v12);
if ( CCTextInputNode::containsTouchPoint((int)this) ? CCTextInputNode::isCoveredByPopup(this) : v6 )
return nullptr;
v8 = *((_DWORD *)this + 105);
if ( v8 )
{
if ( !(*(int (__fastcall **)(int, CCTextInputNode *))(*(_DWORD *)v8 + 20))(v8, this) )
return nullptr;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, (const cocos2d::CCRect *)&unk_D2B360);
CCTextInputNode::updateCursorPosition((int)this, v13);
if ( !*((_BYTE *)this + 344) )
(*(void (__fastcall **)(CCTextInputNode *, int))(*(_DWORD *)this + 580))(this, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (const cocos2d::CCPoint *)v12);
CCTextInputNode::openEditMenu(this, (const cocos2d::CCPoint *)v14, v9, v10);
return v6;
}