//
// -[EAGLView initWithFrame:pixelFormat:] from 0x100744f00 to 0x100744fb2 (178 bytes)
//
// 4 xrefs:
// > -[AppController applicationDidFinishLaunching:] @ 0x100003916
// > -[EAGLView initWithFrame:shareContext:] @ 0x100744e41
// > -[EAGLView initWithFrame:pixelFormat:] @ 0x100744fa1
// > ??> @ 0x100bdcf98
//
// This function is hookable on this platform (idp: pc, 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 12:36:30 +0000
//
EAGLView *__cdecl -[EAGLView initWithFrame:pixelFormat:](EAGLView *self, SEL a2, CGRect a3, id a4)
{
__int64 v5; // rax
float width; // xmm0_4
float height; // xmm1_4
__int64 v8; // rcx
__int64 v9; // r8
__int64 v10; // r9
objc_super v12; // [rsp+20h] [rbp-20h] BYREF
self->eventDelegate_ = (MacEventDelegate *)+[CCEventDispatcher sharedDispatcher](
&OBJC_CLASS___CCEventDispatcher,
"sharedDispatcher");
v5 = cocos2d::CCEGLView::sharedOpenGLView();
width = a3.size.width;
height = a3.size.height;
(*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v5 + 56LL))(v5, width, height);
self->frameZoomFactor_ = 1.0;
self->_backingScaleFactor = 1.0;
qword_100BE6868 = (__int64)self;
v12.receiver = self;
v12.super_class = (Class)&OBJC_CLASS___EAGLView;
-[EAGLView initWithFrame:pixelFormat:](
&v12,
"initWithFrame:pixelFormat:",
a4,
v8,
v9,
v10,
*(_QWORD *)&a3.origin.x,
*(_QWORD *)&a3.origin.y,
*(_QWORD *)&a3.size.width,
*(_QWORD *)&a3.size.height);
return self;
}