//
// -[CCDirectorCaller getFrameForTime:] from 0x100385a40 to 0x100385b13 (211 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bdc480
//
// 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
//
int __cdecl -[CCDirectorCaller getFrameForTime:](
CCDirectorCaller *self,
SEL a2,
const $8F4B9B2AE57073CEA795239BBD33D95F *a3)
{
NSAutoreleasePool *v3; // rbx
id v4; // r14
AppControllerManager *v5; // rax
AppController *v6; // rax
id v7; // rdi
__int64 v8; // rax
id v9; // rax
v3 = objc_alloc_init(&OBJC_CLASS___NSAutoreleasePool);
v4 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView");
objc_msgSend(v4, "lockOpenGLContext");
v5 = +[AppControllerManager sharedInstance](&OBJC_CLASS___AppControllerManager, "sharedInstance");
v6 = -[AppControllerManager controller](v5, "controller");
-[AppController dispatchQueuedEvents](v6, "dispatchQueuedEvents");
v7 = +[CCEventDispatcher sharedDispatcher](&OBJC_CLASS___CCEventDispatcher, "sharedDispatcher");
objc_msgSend(v7, "dispatchQueuedEvents");
v8 = cocos2d::CCDirector::sharedDirector(v7, "dispatchQueuedEvents");
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 120LL))(v8);
v9 = objc_msgSend(v4, "openGLContext");
objc_msgSend(v9, "flushBuffer");
objc_msgSend(v4, "unlockOpenGLContext");
objc_release(v3);
return 0;
}