//
// cocos2d::CCEGLView::getMousePosition from 0x1005023b0 to 0x100502460 (176 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b64bb0
//
// 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 12:31:30 +0000
//
float *__fastcall cocos2d::CCEGLView::getMousePosition(float *a1, float *a2, double a3, double a4)
{
id v4; // rax
float v5; // xmm2_4
bool v6; // zf
double v7; // xmm2_8
float v8; // xmm5_4
double v9; // xmm3_8
float v10; // xmm0_4
float v11; // xmm1_4
v4 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView");
objc_msgSend(v4, "mousePositionInFrame");
v5 = a2[25];
v6 = v5 == 0.0;
v7 = v5;
if ( v6 )
v7 = 1.0;
v8 = a2[26];
v9 = v8;
if ( v8 == 0.0 )
v9 = 1.0;
v10 = (a3 - a2[8]) / v7;
v11 = (a4 - a2[9]) / v9;
sub_100278250(a1, v10, v11);
return a1;
}