//
// sub_100065820 from 0x100065820 to 0x100065863 (67 bytes)
//
// 8 xrefs:
// > sub_100078D10 @ 0x100078d2e
// > sub_100078D40 @ 0x100078d5e
// > sub_100078D70 @ 0x100078d8e
// > CCTextInputMenu::ccTouchBegan @ 0x100078e38
// > sub_100078E50 @ 0x100078e82
// > CCTextInputMenu::rightClick @ 0x100078ed8
// > sub_100078EF0 @ 0x100078f22
// > sub_100078F80 @ 0x100078f8c
//
// 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 12:19:43 +0000
//
__int64 __fastcall sub_100065820(__int64 a1)
{
__int64 v1; // rbx
__int64 result; // rax
v1 = *(_QWORD *)(a1 + 680);
if ( v1 )
{
*(_QWORD *)(a1 + 680) = 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 528LL))(v1, 1);
return cocos2d::CCObject::release(v1);
}
return result;
}