{"type": "func", "start": 4298660640, "end": 4298660796, "name": "-[CCDirectorCaller startMainLoop]", "pseudocode": "// \n// -[CCDirectorCaller startMainLoop] from 0x100385b20 to 0x100385bbc (156 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bdc498\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:29:09 +0000\n// \n\nvoid __cdecl -[CCDirectorCaller startMainLoop](CCDirectorCaller *self, SEL a2)\n{\n  id v2; // r14\n  id v3; // rax\n  _CGLContextObject *v4; // r15\n  id v5; // rax\n  _CGLPixelFormatObject *v6; // rax\n\n  CVDisplayLinkCreateWithActiveCGDisplays(&self->displayLink);\n  CVDisplayLinkSetOutputCallback(self->displayLink, callback, self);\n  v2 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, \"sharedEGLView\");\n  v3 = objc_msgSend(v2, \"openGLContext\");\n  v4 = (_CGLContextObject *)objc_msgSend(v3, \"CGLContextObj\");\n  v5 = objc_msgSend(v2, \"pixelFormat\");\n  v6 = (_CGLPixelFormatObject *)objc_msgSend(v5, \"CGLPixelFormatObj\");\n  CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(self->displayLink, v4, v6);\n  CVDisplayLinkStart(self->displayLink);\n}", "assembly": "; \n; -[CCDirectorCaller startMainLoop] from 0x100385b20 to 0x100385bbc (156 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bdc498\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:29:09 +0000\n; \npush    rbp                                                            ; +0x0, 0x100385b20\nmov     rbp, rsp                                                       ; +0x1, 0x100385b21\npush    r15                                                            ; +0x4, 0x100385b24\npush    r14                                                            ; +0x6, 0x100385b26\npush    r12                                                            ; +0x8, 0x100385b28\npush    rbx                                                            ; +0xa, 0x100385b2a\nmov     rbx, rdi                                                       ; +0xb, 0x100385b2b\nadd     rdi, 8; displayLinkOut                                         ; +0xe, 0x100385b2e\ncall    _CVDisplayLinkCreateWithActiveCGDisplays                       ; +0x12, 0x100385b32\nmov     rdi, [rbx+8]; displayLink                                      ; +0x17, 0x100385b37\nlea     rsi, callback; callback                                        ; +0x1b, 0x100385b3b\nmov     rdx, rbx; userInfo                                             ; +0x22, 0x100385b42\ncall    _CVDisplayLinkSetOutputCallback                                ; +0x25, 0x100385b45\nmov     rdi, cs:classRef_EAGLView; id                                  ; +0x2a, 0x100385b4a\nmov     rsi, cs:selRef_sharedEGLView; SEL                              ; +0x31, 0x100385b51\nmov     r12, cs:_objc_msgSend_ptr                                      ; +0x38, 0x100385b58\ncall    r12 ; _objc_msgSend; +[EAGLView sharedEGLView] ...             ; +0x3f, 0x100385b5f\nmov     r14, rax                                                       ; +0x42, 0x100385b62\nmov     rsi, cs:selRef_openGLContext; SEL                              ; +0x45, 0x100385b65\nmov     rdi, rax; id                                                   ; +0x4c, 0x100385b6c\ncall    r12 ; _objc_msgSend                                            ; +0x4f, 0x100385b6f\nmov     rsi, cs:selRef_CGLContextObj; SEL                              ; +0x52, 0x100385b72\nmov     rdi, rax; id                                                   ; +0x59, 0x100385b79\ncall    r12 ; _objc_msgSend                                            ; +0x5c, 0x100385b7c\nmov     r15, rax                                                       ; +0x5f, 0x100385b7f\nmov     rsi, cs:selRef_pixelFormat; SEL                                ; +0x62, 0x100385b82\nmov     rdi, r14; id                                                   ; +0x69, 0x100385b89\ncall    r12 ; _objc_msgSend                                            ; +0x6c, 0x100385b8c\nmov     rsi, cs:selRef_CGLPixelFormatObj; SEL                          ; +0x6f, 0x100385b8f\nmov     rdi, rax; id                                                   ; +0x76, 0x100385b96\ncall    r12 ; _objc_msgSend                                            ; +0x79, 0x100385b99\nmov     rdi, [rbx+8]; displayLink                                      ; +0x7c, 0x100385b9c\nmov     rsi, r15; cglContext                                           ; +0x80, 0x100385ba0\nmov     rdx, rax; cglPixelFormat                                       ; +0x83, 0x100385ba3\ncall    _CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext             ; +0x86, 0x100385ba6\nmov     rdi, [rbx+8]; displayLink                                      ; +0x8b, 0x100385bab\npop     rbx                                                            ; +0x8f, 0x100385baf\npop     r12                                                            ; +0x90, 0x100385bb0\npop     r14                                                            ; +0x92, 0x100385bb2\npop     r15                                                            ; +0x94, 0x100385bb4\npop     rbp                                                            ; +0x96, 0x100385bb6\njmp     _CVDisplayLinkStart                                            ; +0x97, 0x100385bb7", "xrefs": ["<???> @ 0x100bdc498"], "is_objc": true, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}