//
// cocos2d::CCEGLView::sharedOpenGLView from 0xd7b894 to 0xd7b914 (128 bytes)
//
// 23 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit @ 0x63fa04
// > CCScrollLayerExt::preVisitWithClippingRect @ 0x6949b8
// > GameToolbox::touchUnitsForMM @ 0x69b82c
// > GameToolbox::preVisitWithClippingRect @ 0x69bd30
// > GameToolbox::preVisitWithClipRect @ 0x69bd9c
// > CCTextInputNode::scrollWheel @ 0x6c43c4
// > ScrollableContentLayer::scrollWheel @ 0x6e1a6c
// > AppDelegate::setupGLView @ 0x6e680c
// > AppDelegate::setupGLView @ 0x6e6824
// > AppDelegate::setupGLView @ 0x6e6854
// > DungeonBarsSprite::visit @ 0xa8a75c
// > ParticlePreviewLayer::preVisitWithClippingRect @ 0xaff71c
// > cocos2d::extension::CCScrollView::afterDraw @ 0xd17ab0
// > cocos2d::extension::CCScrollView::beforeDraw @ 0xd17c74
// > cocos2d::extension::CCScrollView::beforeDraw @ 0xd17c9c
// > cocos2d::extension::CCScrollView::beforeDraw @ 0xd17d34
// > cocos2d::extension::CCScrollView::beforeDraw @ 0xd17d60
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0xd18434
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0xd18440
// > cocos2d::CCDirector::updateScreenScale @ 0xd495a8
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeKeyboardWillShow @ 0xd808b0
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeScroll @ 0xd81a70
// > ??> @ 0xa1758
//
// 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 13:08:07 +0000
//
void *__fastcall cocos2d::CCEGLView::sharedOpenGLView(cocos2d::CCEGLView *this)
{
unsigned __int8 v1; // w0
v1 = atomic_load((unsigned __int8 *)byte_1560700);
if ( (v1 & 1) != 0 || !_cxa_guard_acquire(byte_1560700) )
return &unk_1560708;
cocos2d::CCEGLView::CCEGLView((cocos2d::CCEGLView *)&unk_1560708);
_cxa_guard_release(byte_1560700);
__cxa_atexit((void (*)(void *))cocos2d::CCEGLView::~CCEGLView, &unk_1560708, &unk_1548000);
return &unk_1560708;
}