//
// cocos2d::CCEGLView::sharedOpenGLView from 0x100154240 to 0x1001542b8 (120 bytes)
//
// 18 xrefs:
// > sub_1000480C8 @ 0x1000480e4
// > GameToolbox::preVisitWithClippingRect @ 0x100048e18
// > sub_100048E40 @ 0x100048e58
// > sub_1001F9798 @ 0x1001f97e4
// > CCTextInputNode::scrollWheel @ 0x1001ff950
// > cocos2d::CCDirector::updateScreenScale @ 0x100207190
// > -[CustomUITextField textRectForBounds:] @ 0x1002d250c
// > AppDelegate::setupGLView @ 0x100306e6c
// > AppDelegate::setupGLView @ 0x100306e80
// > AppDelegate::setupGLView @ 0x100306eb4
// > CCScrollLayerExt::preVisitWithClippingRect @ 0x10039e588
// > DungeonBarsSprite::visit @ 0x1003ae758
// > -[EAGLView touchesBegan:withEvent:] @ 0x10049d0ac
// > -[EAGLView touchesMoved:withEvent:] @ 0x10049d298
// > -[EAGLView touchesEnded:withEvent:] @ 0x10049d484
// > -[EAGLView touchesCancelled:withEvent:] @ 0x10049d670
// > -[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:] @ 0x10049e000
// > ScrollableContentLayer::scrollWheel @ 0x100525bb0
//
// 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 10:59:40 +0000
//
float *cocos2d::CCEGLView::sharedOpenGLView()
{
unsigned __int8 v0; // w8
v0 = atomic_load((unsigned __int8 *)&byte_1009F3F38);
if ( (v0 & 1) == 0 && __cxa_guard_acquire((__guard *)&byte_1009F3F38) )
{
cocos2d::CCEGLView::CCEGLView(flt_1009F3EC0);
__cxa_atexit((void (__fastcall *)(void *))j_nullsub_159, flt_1009F3EC0, (void *)&_mh_execute_header);
__cxa_guard_release((__guard *)&byte_1009F3F38);
}
return flt_1009F3EC0;
}