//
// ShaderLayer::objectPosToShaderPos from 0x140482d70 to 0x140482e33 (195 bytes)
//
// 8 xrefs:
// > ShaderLayer::updateEffectOffsets @ 0x140483055
// > ShaderLayer::updateEffectOffsets @ 0x1404832db
// > ShaderLayer::updateEffectOffsets @ 0x1404834ec
// > ShaderLayer::updateEffectOffsets @ 0x140483617
// > ShaderLayer::updateEffectOffsets @ 0x140483846
// > ShaderLayer::updateEffectOffsets @ 0x140483a0c
// > ShaderLayer::updateEffectOffsets @ 0x140483b0f
// > ??> @ 0x1406dbb88
//
// 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 ShaderLayer::objectPosToShaderPos(ShaderLayer *a1, cocos2d::CCPoint a2)
{
struct cocos2d::CCPoint v4; // rax
double v5; // xmm0_8
float v7; // xmm1_4
struct cocos2d::CCPoint v8; // [rsp+30h] [rbp+8h] BYREF
struct cocos2d::CCPoint v9; // [rsp+38h] [rbp+10h] BYREF
cocos2d::CCNode::convertToWorldSpace(a1->m_gameLayer->m_objectLayer, &v8);
v4 = cocos2d::CCNode::convertToNodeSpace(a1, &v9);
v5 = ((double (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v8, v4);
cocos2d::CCPoint::CCPoint(*(float *)&v5, v8.x / a1->m_targetTextureSize.width);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator*)(a2, &v9);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(a2, &v9);
v7 = *(float *)(*(_QWORD *)&a2 + 4LL);
**(float **)&a2 = **(float **)&a2 / a1->m_state.m_textureScaleX;
*(float *)(*(_QWORD *)&a2 + 4LL) = v7 / a1->m_state.m_textureScaleY;
return a2;
}