{"type": "func", "start": 6442900272, "end": 6442900374, "name": "cocos2d::CCEGLViewProtocol::handleRightClick", "pseudocode": "// \n// cocos2d::CCEGLViewProtocol::handleRightClick from 0x18006db30 to 0x18006db96 (102 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCEGLView::pumpRawInput @ 0x18007b405\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be170\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:55 +0000\n// \n\nvoid __fastcall cocos2d::CCEGLViewProtocol::handleRightClick(cocos2d::CCEGLViewProtocol *this, float a2, float a3)\n{\n  struct cocos2d::CCDirector *v3; // rax\n  struct cocos2d::CCDirector *v4; // rax\n  cocos2d::CCMouseDispatcher *v5; // rax\n  float v6; // [rsp+30h] [rbp+8h] BYREF\n  float v7; // [rsp+34h] [rbp+Ch]\n  float v8; // [rsp+48h] [rbp+20h] BYREF\n\n  kmVec2Fill(\n    &v8,\n    (float)(a2 - *((float *)this + 8)) / *((float *)this + 25),\n    (float)(a3 - *((float *)this + 9)) / *((float *)this + 26));\n  v3 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::convertToGL(v3, &v6, &v8);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5 = (cocos2d::CCMouseDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v4 + 192LL))(v4);\n  cocos2d::CCMouseDispatcher::dispatchRightClick(v5, v6, v7);\n}", "assembly": "; \n; cocos2d::CCEGLViewProtocol::handleRightClick from 0x18006db30 to 0x18006db96 (102 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCEGLView::pumpRawInput @ 0x18007b405\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be170\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:55 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x18006db30\nsubss   xmm2, dword ptr [rcx+24h]                                      ; +0x4, 0x18006db34\nsubss   xmm1, dword ptr [rcx+20h]                                      ; +0x9, 0x18006db39\ndivss   xmm2, dword ptr [rcx+68h]                                      ; +0xe, 0x18006db3e\ndivss   xmm1, dword ptr [rcx+64h]                                      ; +0x13, 0x18006db43\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x18, 0x18006db48\ncall    kmVec2Fill                                                     ; +0x1d, 0x18006db4d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x18006db52\nmov     rcx, rax                                                       ; +0x27, 0x18006db57\nlea     r8, [rsp+28h+arg_18]                                           ; +0x2a, 0x18006db5a\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x2f, 0x18006db5f\ncall    ?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x34, 0x18006db64\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x39, 0x18006db69\nmov     rcx, [rax]                                                     ; +0x3e, 0x18006db6e\nmov     rdx, [rcx+0C0h]                                                ; +0x41, 0x18006db71\nmov     rcx, rax                                                       ; +0x48, 0x18006db78\ncall    rdx                                                            ; +0x4b, 0x18006db7b\nmovss   xmm2, [rsp+28h+arg_4]; float                                   ; +0x4d, 0x18006db7d\nmov     rcx, rax; this                                                 ; +0x53, 0x18006db83\nmovss   xmm1, [rsp+28h+arg_0]; float                                   ; +0x56, 0x18006db86\ncall    ?dispatchRightClick@CCMouseDispatcher@cocos2d@@QEAA_NMM@Z; cocos2d::CCMouseDispatcher::dispatchRightClick(float,float) ; +0x5c, 0x18006db8c\nadd     rsp, 28h                                                       ; +0x61, 0x18006db91\nretn                                                                   ; +0x65, 0x18006db95", "xrefs": ["cocos2d::CCEGLView::pumpRawInput @ 0x18007b405", "<???> @ 0x18014cf68", "<???> @ 0x1801be170"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}