//
// cocos2d::CCEGLView::showCursor from 0x180078cb0 to 0x180078d16 (102 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b4ae8
//
// 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 cocos2d::CCEGLView::showCursor(cocos2d::CCEGLView *this, char a2)
{
char v2; // al
_BYTE *v3; // rbx
char v4; // dl
__int64 v5; // r8
v2 = *((_BYTE *)this + 184);
v3 = (char *)this + 236;
v4 = a2 ^ 1;
*((_BYTE *)this + 235) = v4;
if ( v4 )
{
if ( !v2 || *v3 )
{
*((_BYTE *)this + 184) = 1;
v5 = 212994;
LABEL_8:
sub_1800D5870(*((_QWORD *)this + 25), 208897, v5);
}
}
else if ( v2 || *v3 )
{
*((_BYTE *)this + 184) = 0;
v5 = 212993;
goto LABEL_8;
}
*v3 = 0;
}