//
// -[CustomUITextField textRectForBounds:] from 0x100235ad8 to 0x100235b58 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x100845f70
//
// 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 -[CustomUITextField textRectForBounds:](CustomUITextField *self, SEL a2, CGRect a3)
{
double height; // d8
double width; // d9
double y; // d10
double x; // d11
cocos2d::CCEGLView *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;
}