//
// cocos2d::CCDirector::setOpenGLView from 0x100206f34 to 0x100206fe4 (176 bytes)
//
// 1 xrefs:
// > AppDelegate::setupGLView @ 0x100306e7c
//
// This function is hookable on this platform (idp: arm, 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 11:00:57 +0000
//
__int64 __fastcall cocos2d::CCDirector::setOpenGLView(__int64 result, __int64 a2)
{
__int64 *v3; // x19
__int64 v4; // x21
__int64 v5; // x0
double *v6; // x0
__int64 v7; // x8
__int64 v8; // x1
if ( *(_QWORD *)(result + 192) != a2 )
{
v3 = (__int64 *)result;
v4 = cocos2d::CCConfiguration::sharedConfiguration();
cocos2d::CCConfiguration::gatherGPUInfo();
cocos2d::CCConfiguration::dumpInfo(v4);
v5 = v3[24];
if ( v5 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 8LL))(v5);
v3[24] = a2;
v6 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 88LL))(a2);
sub_100026450(v3 + 40, v6);
cocos2d::CCDirector::setGLDefaultValues((__int64)v3);
v7 = v3[15];
if ( v7 )
v8 = v7 + 56;
else
v8 = 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3[24] + 96LL))(v3[24], v8);
return cocos2d::CCTouchDispatcher::setDispatchEvents(v3[15], 1);
}
return result;
}