//
// -[EAGLView convertRectFromViewToSurface:] from 0x10041aedc to 0x10041af54 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x100849eb8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
CGRect __cdecl -[EAGLView convertRectFromViewToSurface:](EAGLView *self, SEL a2, CGRect a3)
{
double height; // d8
double width; // d9
double y; // d10
double x; // d11
double v8; // d0
double v9; // d2
double v10; // d1
double v11; // d4
double v12; // d5
double v14; // d3
CGRect result; // 0:d0.8,8:d1.8,16:d2.8,24:d3.8
height = a3.size.height;
width = a3.size.width;
y = a3.origin.y;
x = a3.origin.x;
-[EAGLView bounds](self, "bounds");
v11 = self->size_.width;
v12 = self->size_.height;
result.origin.x = v11 * ((x - v8) / v9);
result.origin.y = v12 * ((y - v10) / v14);
result.size.width = v11 * (width / v9);
result.size.height = height / v14 * v12;
return result;
}