{"type": "func", "start": 4298752496, "end": 4298752652, "name": "-[CCDirectorCaller startMainLoop]", "pseudocode": "// \n// -[CCDirectorCaller startMainLoop] from 0x10039c1f0 to 0x10039c28c (156 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10099a410\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 0x10039c1f0 to 0x10039c28c (156 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10099a410\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10039c1f0\nmov     rbp, rsp                                                       ; +0x1, 0x10039c1f1\npush    r15                                                            ; +0x4, 0x10039c1f4\npush    r14                                                            ; +0x6, 0x10039c1f6\npush    r12                                                            ; +0x8, 0x10039c1f8\npush    rbx                                                            ; +0xa, 0x10039c1fa\nmov     rbx, rdi                                                       ; +0xb, 0x10039c1fb\nadd     rdi, 8; displayLinkOut                                         ; +0xe, 0x10039c1fe\ncall    _CVDisplayLinkCreateWithActiveCGDisplays                       ; +0x12, 0x10039c202\nmov     rdi, [rbx+8]; displayLink                                      ; +0x17, 0x10039c207\nlea     rsi, callback; callback                                        ; +0x1b, 0x10039c20b\nmov     rdx, rbx; userInfo                                             ; +0x22, 0x10039c212\ncall    _CVDisplayLinkSetOutputCallback                                ; +0x25, 0x10039c215\nmov     rdi, cs:classRef_EAGLView; id                                  ; +0x2a, 0x10039c21a\nmov     rsi, cs:selRef_sharedEGLView; SEL                              ; +0x31, 0x10039c221\nmov     r12, cs:_objc_msgSend_ptr                                      ; +0x38, 0x10039c228\ncall    r12 ; _objc_msgSend; +[EAGLView sharedEGLView] ...             ; +0x3f, 0x10039c22f\nmov     r14, rax                                                       ; +0x42, 0x10039c232\nmov     rsi, cs:selRef_openGLContext; SEL                              ; +0x45, 0x10039c235\nmov     rdi, rax; id                                                   ; +0x4c, 0x10039c23c\ncall    r12 ; _objc_msgSend                                            ; +0x4f, 0x10039c23f\nmov     rsi, cs:selRef_CGLContextObj; SEL                              ; +0x52, 0x10039c242\nmov     rdi, rax; id                                                   ; +0x59, 0x10039c249\ncall    r12 ; _objc_msgSend                                            ; +0x5c, 0x10039c24c\nmov     r15, rax                                                       ; +0x5f, 0x10039c24f\nmov     rsi, cs:selRef_pixelFormat; SEL                                ; +0x62, 0x10039c252\nmov     rdi, r14; id                                                   ; +0x69, 0x10039c259\ncall    r12 ; _objc_msgSend                                            ; +0x6c, 0x10039c25c\nmov     rsi, cs:selRef_CGLPixelFormatObj; SEL                          ; +0x6f, 0x10039c25f\nmov     rdi, rax; id                                                   ; +0x76, 0x10039c266\ncall    r12 ; _objc_msgSend                                            ; +0x79, 0x10039c269\nmov     rdi, [rbx+8]; displayLink                                      ; +0x7c, 0x10039c26c\nmov     rsi, r15; cglContext                                           ; +0x80, 0x10039c270\nmov     rdx, rax; cglPixelFormat                                       ; +0x83, 0x10039c273\ncall    _CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext             ; +0x86, 0x10039c276\nmov     rdi, [rbx+8]; displayLink                                      ; +0x8b, 0x10039c27b\npop     rbx                                                            ; +0x8f, 0x10039c27f\npop     r12                                                            ; +0x90, 0x10039c280\npop     r14                                                            ; +0x92, 0x10039c282\npop     r15                                                            ; +0x94, 0x10039c284\npop     rbp                                                            ; +0x96, 0x10039c286\njmp     _CVDisplayLinkStart                                            ; +0x97, 0x10039c287", "xrefs": ["<???> @ 0x10099a410"], "is_objc": true, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}