//
// ShaderLayer::objectPosToShaderPos from 0x9f3528 to 0x9f3610 (232 bytes)
//
// 8 xrefs:
// > ShaderLayer::updateEffectOffsets @ 0x9f37a0
// > ShaderLayer::updateEffectOffsets @ 0x9f3944
// > ShaderLayer::updateEffectOffsets @ 0x9f3ab0
// > ShaderLayer::updateEffectOffsets @ 0x9f3c04
// > ShaderLayer::updateEffectOffsets @ 0x9f3dd4
// > ShaderLayer::updateEffectOffsets @ 0x9f3ef8
// > ShaderLayer::updateEffectOffsets @ 0x9f431c
// > ??> @ 0x674d0
//
// 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)
{
const cocos2d::CCPoint *v2; // x1
cocos2d::CCPoint *v3; // x8
cocos2d::CCPoint *v5; // x19
float v6; // s0
float v7; // s1
cocos2d::CCPoint v10; // [xsp+48h] [xbp+48h] BYREF
cocos2d::CCPoint v11; // 0:kr08_8.8
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v5 = v3;
cocos2d::CCNode::convertToWorldSpace(a1->m_gameLayer->m_objectLayer, v2);
v11 = cocos2d::CCNode::convertToNodeSpace(a1, &v10);
cocos2d::CCPoint::operator=(&v10, v11.x, v11.y);
cocos2d::CCPoint::CCPoint(v5, v10.x / a1->m_targetTextureSize.width, v10.y / a1->m_targetTextureSize.height);
LODWORD(v6) = cocos2d::CCPoint::operator*(v5, a1->m_scaleFactor).n128_u32[0];
cocos2d::CCPoint::operator=(v5, v6, v7);
result.y = v5->x / a1->m_state.m_textureScaleX;
result.x = v5->y / a1->m_state.m_textureScaleY;
v5->x = result.y;
v5->y = result.x;
return result;
}