//
// sub_100040F80 from 0x100040f80 to 0x100040fe8 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b07f8
//
// 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_100040F80(__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 + 824) + 3768LL));
sub_10028CC90();
v2 = sub_10028CC90();
return (*(__int64 (__fastcall **)(_QWORD, __int64, double))(**(_QWORD **)(a1 + 272) + 184LL))(
*(_QWORD *)(a1 + 272),
a1 + 248,
v2);
}