//
// -[EAGLView initWithFrame:pixelFormat:] from 0x100665af0 to 0x100665ba2 (178 bytes)
//
// 4 xrefs:
// > -[AppController applicationDidFinishLaunching:] @ 0x100007666
// > -[EAGLView initWithFrame:shareContext:] @ 0x100665a31
// > -[EAGLView initWithFrame:pixelFormat:] @ 0x100665b91
// > ??> @ 0x10099aef8
//
// 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:](EAGLView *self, SEL a2, CGRect a3, id a4)
{
cocos2d::CCEGLView *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 *)(cocos2d::CCEGLView *, float, float))v5->setFrameSize)(v5, width, height);
self->frameZoomFactor_ = 1.0;
self->_backingScaleFactor = 1.0;
qword_1009A38D8 = (__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;
}