//
// sub_100239ADC from 0x100239adc to 0x100239b24 (72 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setKeyboardEnabled @ 0x100148b58
// > cocos2d::CCLayer::onExit @ 0x100148e6c
//
// 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_100239ADC(__int64 result, __int64 a2)
{
__int64 v2; // x19
if ( a2 )
{
v2 = result;
if ( (*(_BYTE *)(result + 64) & 1) != 0 )
{
result = sub_100353C08(*(_QWORD *)(result + 80), a2);
*(_BYTE *)(v2 + 66) = 1;
}
else
{
return sub_100239B24();
}
}
return result;
}