//
// sub_180077760 from 0x180077760 to 0x1800777c0 (96 bytes)
//
// 4 xrefs:
// > cocos2d::CCEGLView::CCEGLView @ 0x18007587d
// > ??> @ 0x18013b9e0
// > ??> @ 0x18013b9f0
// > ??> @ 0x1801b49bc
//
// 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 sub_180077760(int a1, const char *a2)
{
cocos2d::CCEGLView *v2; // rdi
cocos2d::CCString *v3; // rax
std::string *CString; // rbx
HWND v5; // rax
v2 = qword_1801A8500;
if ( qword_1801A8500 )
{
v3 = cocos2d::CCString::createWithFormat("GLFWError #%d Happen, %s\n", a1, a2);
CString = cocos2d::CCString::getCString(v3);
v5 = (HWND)sub_1800D8320(*(_QWORD *)&v2[1].m_szViewName[24]);
MessageBoxW(v5, (LPCWSTR)CString, L"OpenGL error", 0);
}
}