{"type": "func", "start": 4298752272, "end": 4298752483, "name": "-[CCDirectorCaller getFrameForTime:]", "pseudocode": "// \n// -[CCDirectorCaller getFrameForTime:] from 0x10039c110 to 0x10039c1e3 (211 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10099a3f8\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\nint __cdecl -[CCDirectorCaller getFrameForTime:](\n        CCDirectorCaller *self,\n        SEL a2,\n        const $8F4B9B2AE57073CEA795239BBD33D95F *a3)\n{\n  NSAutoreleasePool *v3; // rbx\n  id v4; // r14\n  AppControllerManager *v5; // rax\n  AppController *v6; // rax\n  id v7; // rax\n  cocos2d::CCDirector *v8; // rax\n  id v9; // rax\n\n  v3 = objc_alloc_init(&OBJC_CLASS___NSAutoreleasePool);\n  v4 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, \"sharedEGLView\");\n  objc_msgSend(v4, \"lockOpenGLContext\");\n  v5 = +[AppControllerManager sharedInstance](&OBJC_CLASS___AppControllerManager, \"sharedInstance\");\n  v6 = -[AppControllerManager controller](v5, \"controller\");\n  -[AppController dispatchQueuedEvents](v6, \"dispatchQueuedEvents\");\n  v7 = +[CCEventDispatcher sharedDispatcher](&OBJC_CLASS___CCEventDispatcher, \"sharedDispatcher\");\n  objc_msgSend(v7, \"dispatchQueuedEvents\");\n  v8 = cocos2d::CCDirector::sharedDirector();\n  ((void (__fastcall *)(cocos2d::CCDirector *))v8->mainLoop)(v8);\n  v9 = objc_msgSend(v4, \"openGLContext\");\n  objc_msgSend(v9, \"flushBuffer\");\n  objc_msgSend(v4, \"unlockOpenGLContext\");\n  objc_release(v3);\n  return 0;\n}", "assembly": "; \n; -[CCDirectorCaller getFrameForTime:] from 0x10039c110 to 0x10039c1e3 (211 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10099a3f8\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, 0x10039c110\nmov     rbp, rsp                                                       ; +0x1, 0x10039c111\npush    r15                                                            ; +0x4, 0x10039c114\npush    r14                                                            ; +0x6, 0x10039c116\npush    r12                                                            ; +0x8, 0x10039c118\npush    rbx                                                            ; +0xa, 0x10039c11a\nmov     rdi, cs:classRef_NSAutoreleasePool                             ; +0xb, 0x10039c11b\ncall    _objc_alloc_init                                               ; +0x12, 0x10039c122\nmov     rbx, rax                                                       ; +0x17, 0x10039c127\nmov     rdi, cs:classRef_EAGLView; id                                  ; +0x1a, 0x10039c12a\nmov     rsi, cs:selRef_sharedEGLView; SEL                              ; +0x21, 0x10039c131\nmov     r12, cs:_objc_msgSend_ptr                                      ; +0x28, 0x10039c138\ncall    r12 ; _objc_msgSend; +[EAGLView sharedEGLView] ...             ; +0x2f, 0x10039c13f\nmov     r14, rax                                                       ; +0x32, 0x10039c142\nmov     rsi, cs:selRef_lockOpenGLContext; SEL                          ; +0x35, 0x10039c145\nmov     rdi, rax; id                                                   ; +0x3c, 0x10039c14c\ncall    r12 ; _objc_msgSend                                            ; +0x3f, 0x10039c14f\nmov     rdi, cs:classRef_AppControllerManager; id                      ; +0x42, 0x10039c152\nmov     rsi, cs:selRef_sharedInstance; SEL                             ; +0x49, 0x10039c159\ncall    r12 ; _objc_msgSend; +[AppControllerManager sharedInstance] ... ; +0x50, 0x10039c160\nmov     rsi, cs:selRef_controller; SEL                                 ; +0x53, 0x10039c163\nmov     rdi, rax; id                                                   ; +0x5a, 0x10039c16a\ncall    r12 ; _objc_msgSend; -[AppControllerManager controller] ...    ; +0x5d, 0x10039c16d\nmov     r15, cs:selRef_dispatchQueuedEvents                            ; +0x60, 0x10039c170\nmov     rdi, rax; id                                                   ; +0x67, 0x10039c177\nmov     rsi, r15; SEL                                                  ; +0x6a, 0x10039c17a\ncall    r12 ; _objc_msgSend; -[AppController dispatchQueuedEvents] ... ; +0x6d, 0x10039c17d\nmov     rdi, cs:classRef_CCEventDispatcher; id                         ; +0x70, 0x10039c180\nmov     rsi, cs:selRef_sharedDispatcher; SEL                           ; +0x77, 0x10039c187\ncall    r12 ; _objc_msgSend; +[CCEventDispatcher sharedDispatcher] ... ; +0x7e, 0x10039c18e\nmov     rdi, rax; id                                                   ; +0x81, 0x10039c191\nmov     rsi, r15; SEL                                                  ; +0x84, 0x10039c194\ncall    r12 ; _objc_msgSend                                            ; +0x87, 0x10039c197\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x8a, 0x10039c19a\nmov     rcx, [rax]                                                     ; +0x8f, 0x10039c19f\nmov     rdi, rax                                                       ; +0x92, 0x10039c1a2\ncall    qword ptr [rcx+78h]                                            ; +0x95, 0x10039c1a5\nmov     rsi, cs:selRef_openGLContext; SEL                              ; +0x98, 0x10039c1a8\nmov     rdi, r14; id                                                   ; +0x9f, 0x10039c1af\ncall    r12 ; _objc_msgSend                                            ; +0xa2, 0x10039c1b2\nmov     rsi, cs:selRef_flushBuffer; SEL                                ; +0xa5, 0x10039c1b5\nmov     rdi, rax; id                                                   ; +0xac, 0x10039c1bc\ncall    r12 ; _objc_msgSend                                            ; +0xaf, 0x10039c1bf\nmov     rsi, cs:selRef_unlockOpenGLContext; SEL                        ; +0xb2, 0x10039c1c2\nmov     rdi, r14; id                                                   ; +0xb9, 0x10039c1c9\ncall    r12 ; _objc_msgSend                                            ; +0xbc, 0x10039c1cc\nmov     rdi, rbx; id                                                   ; +0xbf, 0x10039c1cf\ncall    cs:_objc_release_ptr                                           ; +0xc2, 0x10039c1d2\nxor     eax, eax                                                       ; +0xc8, 0x10039c1d8\npop     rbx                                                            ; +0xca, 0x10039c1da\npop     r12                                                            ; +0xcb, 0x10039c1db\npop     r14                                                            ; +0xcd, 0x10039c1dd\npop     r15                                                            ; +0xcf, 0x10039c1df\npop     rbp                                                            ; +0xd1, 0x10039c1e1\nretn                                                                   ; +0xd2, 0x10039c1e2", "xrefs": ["<???> @ 0x10099a3f8"], "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"}