//
// -[CustomUITextField textRectForBounds:] from 0x1002d24e8 to 0x1002d2568 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009cddf8
//
// 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:02:39 +0000
//
CGRect __cdecl -[CustomUITextField textRectForBounds:](CustomUITextField *self, SEL a2, CGRect a3)
{
double height; // d8
double width; // d9
double y; // d10
double x; // d11
float *v7; // x0
double v8; // d12
double v9; // d0
float v10; // s2
double v13; // 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;
v7 = cocos2d::CCEGLView::sharedOpenGLView();
v8 = (float)(cocos2d::CCEGLViewProtocol::getScaleX(v7) * 5.0);
objc_msgSend(+[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView"), "contentScaleFactor");
v10 = v8 / v9;
result.origin.x = x + v10;
result.origin.y = y + v10;
v13 = (float)(v10 + v10);
result.size.width = width - v13;
result.size.height = height - v13;
return result;
}