//
// cocos2d::CCEGLViewProtocol::handleRightClick from 0xd7af68 to 0xd7b004 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x762d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:07 +0000
//
__int64 __fastcall cocos2d::CCEGLViewProtocol::handleRightClick(cocos2d::CCEGLViewProtocol *this, float a2, float a3)
{
float *v3; // x0
cocos2d::CCDirector *v4; // x0
float *v5; // x0
__int64 v6; // x0
cocos2d::CCMouseDispatcher *v7; // x0
float v9; // [xsp+38h] [xbp+38h] BYREF
float v10[2]; // [xsp+40h] [xbp+40h] BYREF
v3 = cocos2d::CCPoint::CCPoint(
&v9,
(float)(a2 - *((float *)this + 8)) / *((float *)this + 25),
(float)(a3 - *((float *)this + 9)) / *((float *)this + 26));
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v3);
v5 = cocos2d::CCDirector::convertToGL(v10, v4, (const cocos2d::CCPoint *)&v9);
v6 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v5);
v7 = (cocos2d::CCMouseDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 208LL))(v6);
cocos2d::CCMouseDispatcher::dispatchRightClick(v7, v10[0], v10[1]);
return _stack_chk_guard;
}