//
// sub_100239BB8 from 0x100239bb8 to 0x100239c00 (72 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setKeyboardEnabled @ 0x100148b40
// > cocos2d::CCLayer::onEnter @ 0x100148d8c
//
// 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
//
__int64 __fastcall sub_100239BB8(__int64 result, __int64 a2)
{
__int64 v2; // x19
if ( a2 )
{
v2 = result;
if ( (*(_BYTE *)(result + 64) & 1) != 0 )
{
result = sub_100353C08(*(_QWORD *)(result + 72), a2);
*(_BYTE *)(v2 + 65) = 1;
}
else
{
return sub_100239C00();
}
}
return result;
}