//
// -[EAGLView convertRectFromViewToSurface:] from 0x10049cd90 to 0x10049ce08 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d3908
//
// 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 11:05:59 +0000
//
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;
}