//
// sub_1800BA170 from 0x1800ba170 to 0x1800ba1bb (75 bytes)
//
// 2 xrefs:
// > ??> @ 0x18010d468
// > ??> @ 0x1801c2e5c
//
// This function is hookable on this platform (idp: pc, 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 11:22:23 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject **__fastcall sub_1800BA170(cocos2d::CCObject **this, char a2)
{
*this = (cocos2d::CCObject *)&cocos2d::CCSchedulerScriptHandlerEntry::`vftable';
cocos2d::CCObject::release(*(this + 8));
cocos2d::CCScriptHandlerEntry::dCCScriptHandlerEntry((cocos2d::CCObject *)this);
if ( (a2 & 1) != 0 )
j_j_free_0(this);
return this;
}