//
// ShaderLayer::objectPosToShaderPos from 0x1003cc2d0 to 0x1003cc386 (182 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCPoint __fastcall ShaderLayer::objectPosToShaderPos(ShaderLayer *a1, cocos2d::CCPoint a2)
{
__int64 v2; // rsi
__m128 v3; // xmm0
double v4; // [rsp+0h] [rbp-30h] BYREF
_QWORD v5[5]; // [rsp+8h] [rbp-28h] BYREF
cocos2d::CCNode::convertToWorldSpace(
(cocos2d::CCNode *)v5,
*(const cocos2d::CCPoint **)(*(_QWORD *)(v2 + 1120) + 3768LL));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v4, (const cocos2d::CCPoint *)v2);
sub_10028CC90(v5, &v4);
sub_10028CBE0((float *)a1, *(float *)v5 / *(float *)(v2 + 1168), *((float *)v5 + 1) / *(float *)(v2 + 1172));
sub_10028CD40(&v4, (unsigned __int64 *)a1, (__m128)*(unsigned int *)(v2 + 1144));
sub_10028CC90(a1, &v4);
v3 = (__m128)*(unsigned __int64 *)(v2 + 512);
_mm_storel_ps(
(double *)a1,
_mm_div_ps(
(__m128)(unsigned __int64)a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable,
v3));
return *(cocos2d::CCPoint *)v3.f32;
}