//
// AppDelegate::setupGLView from 0x10065c000 to 0x10065c0b4 (180 bytes)
//
// 1 xrefs:
// > AppDelegate::applicationDidFinishLaunching @ 0x10065c15b
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall AppDelegate::setupGLView(AppDelegate *a1)
{
cocos2d::CCEGLView *v1; // r14
cocos2d::CCDirector *v2; // rax
cocos2d::CCDirector *v3; // r15
_QWORD *v4; // rax
__int64 v5; // [rsp-40h] [rbp-40h] BYREF
__int64 v6; // [rsp-38h] [rbp-38h] BYREF
__int64 v7; // [rsp-30h] [rbp-30h] BYREF
__int64 v8; // [rsp-8h] [rbp-8h] BYREF
if ( !a1->m_glViewSetup )
{
sub_10028CBF0((float *)&v5, 480.0, 320.0);
a1->m_glViewSetup = 1;
GameManager::sharedState();
LocalLevelManager::sharedState();
v1 = cocos2d::CCEGLView::sharedOpenGLView();
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::setOpenGLView(v2, v1);
v3 = cocos2d::CCDirector::sharedDirector();
sub_10028CFC0(&v6, &v5);
v4 = (_QWORD *)((__int64 (__fastcall *)(cocos2d::CCEGLView *))v1->getFrameSize)(v1);
sub_10028CFC0(&v7, v4);
GameManager::sharedState();
cocos2d::CCDirector::setupScreenScale(
v3,
(cocos2d::CCSize)1139802112LL,
(cocos2d::CCSize)1134559232LL,
(cocos2d::TextureQuality)((unsigned int)&v8 - 48));
}
}