//
// ShaderLayer::triggerPinchY from 0x140487470 to 0x14048768e (542 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x140221dda
// > ??> @ 0x1406dbdbc
//
// 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
//
void ShaderLayer::triggerPinchY(
ShaderLayer *a1,
float a2,
float a3,
float a4,
float a5,
float a6,
bool a7,
int a8,
int a9,
float a10,
bool a11)
{
ShaderLayer *v11; // rbx
float m_pinchTargetY; // xmm1_4
float y; // xmm1_4
float m_pinchRadius; // xmm1_4
float v16; // xmm1_4
v11 = a1;
if ( a3 != -909190.0 )
{
if ( a2 <= 0.0 )
{
m_pinchTargetY = 0.0;
}
else
{
if ( a1->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&a1->m_state, 26);
m_pinchTargetY = v11->m_state.m_pinchTargetY;
a1 = v11;
}
ShaderLayer::tweenValue(a1, m_pinchTargetY, a3, 26, a2, a9, a10);
}
if ( a4 != -909190.0 )
{
if ( a2 <= 0.0 )
{
y = 0.0;
}
else
{
if ( v11->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&v11->m_state, 28);
y = v11->m_state.m_pinchScreenOffset.y;
}
ShaderLayer::tweenValue(v11, y, a4, 28, a2, a9, a10);
}
if ( a5 != -909190.0 )
{
if ( a2 <= 0.0 )
{
m_pinchRadius = 0.0;
}
else
{
if ( v11->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&v11->m_state, 29);
m_pinchRadius = v11->m_state.m_pinchRadius;
}
ShaderLayer::tweenValue(v11, m_pinchRadius, a5, 29, a2, a9, a10);
}
if ( a6 != -909190.0 )
{
if ( a2 <= 0.0 )
{
v16 = 0.0;
}
else
{
if ( v11->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&v11->m_state, 31);
v16 = v11->m_state.m_pinchModifier.y;
}
ShaderLayer::tweenValue(v11, v16, a6, 31, a2, a9, a10);
}
v11->m_state.m_pinchTargetIDY = a8;
v11->m_state.m_pinchTargetEnabledY = a7;
v11->m_state.m_pinchRelative = a11;
}