//
// cocos2d::CCEGLView::getMousePosition from 0x180079900 to 0x180079965 (101 bytes)
//
// 3 xrefs:
// > ??> @ 0x180107070
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bebfc
//
// This function is hookable on this platform (idp: pc, 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 11:21:59 +0000
//
float *__fastcall cocos2d::CCEGLView::getMousePosition(float *a1, float *a2)
{
float v2; // xmm3_4
float v4; // xmm0_4
v2 = a1[25];
v4 = 1.0;
if ( v2 == 0.0 )
v2 = 1.0;
if ( a1[26] != 0.0 )
v4 = a1[26];
kmVec2Fill(a2, (float)(a1[56] - a1[8]) / v2, (float)(a1[57] - a1[9]) / v4);
return a2;
}