//
// sub_100040FF0 from 0x100040ff0 to 0x100041058 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b0878
//
// 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_100040FF0(__int64 a1)
{
__int64 v1; // rax
double v2; // xmm0_8
__int64 v4; // [rsp+0h] [rbp-20h] BYREF
v4 = v1;
cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)&v4,
*(const cocos2d::CCPoint **)(*(_QWORD *)(a1 + 816) + 3768LL));
sub_10028CC90();
v2 = sub_10028CC90();
return (*(__int64 (__fastcall **)(_QWORD, __int64, double))(**(_QWORD **)(a1 + 264) + 184LL))(
*(_QWORD *)(a1 + 264),
a1 + 240,
v2);
}