//
// -[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:] from 0x10041a740 to 0x10041a88c (332 bytes)
//
// 3 xrefs:
// > -[EAGLView initWithFrame:] @ 0x10041a724
// > -[EAGLView initWithFrame:pixelFormat:] @ 0x10041a73c
// > ??> @ 0x100849d98
//
// 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
//
EAGLView *__cdecl -[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:](
EAGLView *self,
SEL a2,
CGRect a3,
id a4,
unsigned int a5,
bool a6,
id a7,
bool a8,
unsigned int a9)
{
EAGLView *v15; // x0
__int64 v16; // x19
__int64 v17; // d0
__int64 v18; // d1
__int64 v19; // d2
__int64 v20; // d3
objc_super v22; // [xsp+0h] [xbp-50h] BYREF
v22.receiver = self;
v22.super_class = (Class)&OBJC_CLASS___EAGLView;
v15 = -[EAGLView initWithFrame:](&v22, "initWithFrame:", a3.origin.x, a3.origin.y, a3.size.width, a3.size.height);
v16 = (__int64)v15;
if ( v15 )
{
v15->isUseUITextField = 1;
v15->pixelformat_ = (NSString *)a4;
v15->depthFormat_ = a5;
v15->multiSampling_ = a8;
v15->requestedSamples_ = a9;
v15->preserveBackbuffer_ = a6;
v15->markedText_ = nullptr;
if ( -[EAGLView setupSurfaceWithSharegroup:](v15, "setupSurfaceWithSharegroup:", a7) )
{
qword_10086EBF0 = v16;
objc_msgSend((id)v16, "frame");
*(_QWORD *)(v16 + 112) = v17;
*(_QWORD *)(v16 + 120) = v18;
*(_QWORD *)(v16 + 128) = v19;
*(_QWORD *)(v16 + 136) = v20;
objc_msgSend((id)v16, "setKeyboardShowNotification:", 0);
if ( (unsigned int)objc_msgSend((id)qword_10086EBF0, "respondsToSelector:", "setContentScaleFactor:") )
{
-[UIScreen scale](+[UIScreen mainScreen](&OBJC_CLASS___UIScreen, "mainScreen"), "scale");
objc_msgSend((id)qword_10086EBF0, "setContentScaleFactor:");
}
}
else
{
objc_release((id)v16);
return nullptr;
}
}
return (EAGLView *)v16;
}