//
// -[CCDirectorCaller startMainLoop] from 0x100385b20 to 0x100385bbc (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bdc498
//
// 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:29:09 +0000
//
void __cdecl -[CCDirectorCaller startMainLoop](CCDirectorCaller *self, SEL a2)
{
id v2; // r14
id v3; // rax
_CGLContextObject *v4; // r15
id v5; // rax
_CGLPixelFormatObject *v6; // rax
CVDisplayLinkCreateWithActiveCGDisplays(&self->displayLink);
CVDisplayLinkSetOutputCallback(self->displayLink, callback, self);
v2 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView");
v3 = objc_msgSend(v2, "openGLContext");
v4 = (_CGLContextObject *)objc_msgSend(v3, "CGLContextObj");
v5 = objc_msgSend(v2, "pixelFormat");
v6 = (_CGLPixelFormatObject *)objc_msgSend(v5, "CGLPixelFormatObj");
CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(self->displayLink, v4, v6);
CVDisplayLinkStart(self->displayLink);
}