//
// GJShaderState::reset from 0x9f2eb0 to 0x9f3054 (420 bytes)
//
// 2 xrefs:
// > ShaderLayer::resetAllShaders @ 0x9f7d8c
// > ??> @ 0x84c60
//
// 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 GJShaderState::reset(GJShaderState *a1)
{
std::__detail::_Hash_node_base *M_nxt; // x0
std::__detail::_Hash_node_base *v3; // x20
std::__detail::_Hash_node_base *v4; // x0
std::__detail::_Hash_node_base *v5; // x20
float v6; // s1
float v7; // s0
float v8; // s1
M_nxt = a1->m_tweenActions._M_h._M_before_begin._M_nxt;
if ( M_nxt )
{
do
{
v3 = M_nxt->_M_nxt;
operator delete(M_nxt);
M_nxt = v3;
}
while ( v3 );
}
memset(a1->m_tweenActions._M_h._M_buckets, 0, 8 * a1->m_tweenActions._M_h._M_bucket_count);
a1->m_tweenActions._M_h._M_element_count = 0;
v4 = a1->m_tweenTimes._M_h._M_before_begin._M_nxt;
a1->m_tweenActions._M_h._M_before_begin._M_nxt = nullptr;
if ( v4 )
{
do
{
v5 = v4->_M_nxt;
operator delete(v4);
v4 = v5;
}
while ( v5 );
}
memset(a1->m_tweenTimes._M_h._M_buckets, 0, 8 * a1->m_tweenTimes._M_h._M_bucket_count);
a1->m_tweenTimes._M_h._M_element_count = 0;
a1->m_tweenTimes._M_h._M_before_begin._M_nxt = nullptr;
a1->m_cGEnable = 0;
a1->m_pixelateSnapGrid = 0;
a1->m_lensCircleTargetID = 0;
a1->m_lensCircleTintChannel = 0;
a1->m_motionBlurTargetIDX = 0;
a1->m_motionBlurTargetIDY = 0;
a1->m_shockWaveStartTime = 0.0;
a1->m_shockLineStartTime = 0.0;
a1->m_glitchStrength = 0.0;
a1->m_chromaticTargetX = 0.0;
a1->m_chromaticTargetY = 0.0;
a1->m_blurIntensity = 0.0;
a1->m_cGSpeed = 0.0;
a1->m_cGSegmentHeight = 1.0;
a1->m_cGStrength = 0.0;
a1->m_cGLineThickness = 0.0;
a1->m_cGLineStrength = 0.0;
a1->m_cGRGBOffset = 0.0;
a1->m_pixelateTargetX = 0.0;
a1->m_pixelateTargetY = 0.0;
a1->m_textureScaleX = 1.0;
a1->m_textureScaleY = 1.0;
a1->m_lensCircleSize = 1.0;
a1->m_lensCircleFade = 0.0;
a1->m_lensCircleStrength = 0.0;
a1->m_radialBlurSize = 0.0;
a1->m_motionBlurTargetX = 0.0;
a1->m_motionBlurTargetY = 0.0;
a1->m_motionBlurSpeedX = 0.0;
a1->m_motionBlurSpeedY = 0.0;
cocos2d::CCPoint::operator=(&a1->m_radialBlurCenter, 0.0, v6);
a1->m_pinchTargetIDX = 0;
a1->m_pinchTargetIDY = 0;
a1->m_pinchTargetEnabledX = 0;
a1->m_pinchTargetEnabledY = 0;
a1->m_bulgeValue = 0.0;
a1->m_pinchTargetX = 0.0;
a1->m_pinchTargetY = 0.0;
cocos2d::CCPoint::operator=(&a1->m_pinchScreenOffset, v7, v8);
a1->m_invertColorClampRGB = 0;
a1->m_noPlayerParticles = 0;
a1->m_minBlendingLayer = 0;
a1->m_maxBlendingLayer = 0;
a1->m_zLayerDirty = 0;
a1->m_grayscaleValue = 0.0;
a1->m_sepiaValue = 0.0;
a1->m_invertColorEditRGB = 0.0;
a1->m_hueShiftDegrees = 0.0;
a1->m_invertColorR = 1.0;
a1->m_invertColorG = 1.0;
a1->m_invertColorB = 1.0;
a1->m_colorChangeCR = 1.0;
a1->m_colorChangeCG = 1.0;
a1->m_colorChangeCB = 1.0;
a1->m_colorChangeBR = 0.0;
a1->m_colorChangeBG = 0.0;
a1->m_colorChangeBB = 0.0;
a1->m_splitTargetRows = 0.0;
a1->m_splitTargetCols = 0.0;
a1->m_prevTime = -1.0;
}