//
// ShaderLayer::triggerLensCircle from 0x1404865c0 to 0x14048685c (668 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x1402217ef
// > ??> @ 0x1406dbd44
//
// 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::triggerLensCircle(
ShaderLayer *a1,
float a2,
float a3,
float a4,
float a5,
int a6,
int a7,
float a8,
float a9,
int a10,
float a11,
bool a12)
{
float v14; // xmm0_4
float m_lensCircleStrength; // xmm1_4
float m_lensCircleFade; // xmm1_4
float m_lensCircleSize; // xmm1_4
float x; // xmm1_4
float y; // xmm1_4
v14 = cocos2d::clampf((cocos2d *)a1, 0.0, 1.0);
if ( v14 != -909190.0 )
{
if ( a2 <= 0.0 )
{
m_lensCircleStrength = 0.0;
}
else
{
if ( a1->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&a1->m_state, 13);
m_lensCircleStrength = a1->m_state.m_lensCircleStrength;
}
ShaderLayer::tweenValue(a1, m_lensCircleStrength, v14, 13, a2, a10, a11);
}
if ( a4 != -909190.0 )
{
if ( a2 <= 0.0 )
{
m_lensCircleFade = 0.0;
}
else
{
if ( a1->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&a1->m_state, 12);
m_lensCircleFade = a1->m_state.m_lensCircleFade;
}
ShaderLayer::tweenValue(a1, m_lensCircleFade, a4, 12, a2, a10, a11);
}
if ( a3 != -909190.0 )
{
if ( a2 <= 0.0 )
{
m_lensCircleSize = 0.0;
}
else
{
if ( a1->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&a1->m_state, 11);
m_lensCircleSize = a1->m_state.m_lensCircleSize;
}
ShaderLayer::tweenValue(a1, m_lensCircleSize, a3, 11, a2, a10, a11);
}
if ( a8 != -909190.0 )
{
if ( a2 <= 0.0 )
{
x = 0.0;
}
else
{
if ( a1->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&a1->m_state, 14);
x = a1->m_state.m_lensCircleScreenOffset.x;
}
ShaderLayer::tweenValue(a1, x, a8, 14, a2, a10, a11);
}
if ( a9 != -909190.0 )
{
if ( a2 <= 0.0 )
{
y = 0.0;
}
else
{
if ( a1->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&a1->m_state, 15);
y = a1->m_state.m_lensCircleScreenOffset.y;
}
ShaderLayer::tweenValue(a1, y, a9, 15, a2, a10, a11);
}
a1->m_state.m_lensCircleTargetID = a6;
a1->m_state.m_lensCircleTintChannel = a7;
a1->m_state.m_lensCircleRelative = a12;
}