//
// -[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:] from 0x10049c5f4 to 0x10049c740 (332 bytes)
//
// 3 xrefs:
// > -[EAGLView initWithFrame:] @ 0x10049c5d8
// > -[EAGLView initWithFrame:pixelFormat:] @ 0x10049c5f0
// > ??> @ 0x1009d37e8
//
// 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
//
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_1009F7B40 = 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 ( (objc_opt_respondsToSelector(qword_1009F7B40, "setContentScaleFactor:") & 1) != 0 )
{
-[UIScreen scale](+[UIScreen mainScreen](&OBJC_CLASS___UIScreen, "mainScreen"), "scale");
objc_msgSend((id)qword_1009F7B40, "setContentScaleFactor:");
}
}
else
{
objc_release((id)v16);
return nullptr;
}
}
return (EAGLView *)v16;
}