//
// sub_1009039D0 from 0x1009039d0 to 0x100903a6b (155 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bb9470
//
// 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:38:03 +0000
//
bool __fastcall sub_1009039D0(__int64 a1, __int64 a2, __int64 a3)
{
bool result; // al
__int64 v4; // r15
__int64 v5; // [rsp+8h] [rbp-38h] BYREF
float v6[12]; // [rsp+10h] [rbp-30h] BYREF
result = EditorWindowPopup::ccTouchBegan(a1 - 320, a2, a3);
if ( !result )
{
cocos2d::CCTouch::getLocation((__int64)v6, a2);
v4 = *(_QWORD *)(a1 + 848);
if ( !v4 || (sub_1002782D0(&v5, v6), !(unsigned __int8)sub_10006BEC0(v4, (__int64)&v5)) )
{
if ( !sub_100278940((float *)(a1 + 872), v6) )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 320) + 1368LL))(a1 - 320, 0);
}
return 0;
}
return result;
}