//
// GJShaderState::reset from 0x1003ca210 to 0x1003ca416 (518 bytes)
//
// 1 xrefs:
// > ShaderLayer::resetAllShaders @ 0x1003d1fa5
//
// 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 __fastcall GJShaderState::reset(GJShaderState *a1)
{
std::__hash_node_base, void *> *>::__next_pointer next; // rdi
std::__hash_node_base, void *> *> *v3; // r14
unsigned __int64 value; // rsi
std::__hash_node_base, void *> *>::__next_pointer v5; // rdi
std::__hash_node_base, void *> *> *v6; // r14
unsigned __int64 v7; // rsi
if ( a1->m_tweenActions.__table_.__p2_.__value_ )
{
next = a1->m_tweenActions.__table_.__p1_.__value_.__next_;
if ( next )
{
do
{
v3 = next->__next_;
operator delete(next);
next = v3;
}
while ( v3 );
}
a1->m_tweenActions.__table_.__p1_.__value_.__next_ = nullptr;
value = a1->m_tweenActions.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;
if ( value )
__bzero(a1->m_tweenActions.__table_.__bucket_list_.__ptr_.__value_, 8 * value);
a1->m_tweenActions.__table_.__p2_.__value_ = 0;
}
if ( a1->m_tweenTimes.__table_.__p2_.__value_ )
{
v5 = a1->m_tweenTimes.__table_.__p1_.__value_.__next_;
if ( v5 )
{
do
{
v6 = v5->__next_;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
a1->m_tweenTimes.__table_.__p1_.__value_.__next_ = nullptr;
v7 = a1->m_tweenTimes.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;
if ( v7 )
__bzero(a1->m_tweenTimes.__table_.__bucket_list_.__ptr_.__value_, 8 * v7);
a1->m_tweenTimes.__table_.__p2_.__value_ = 0;
}
a1->m_shockWaveStartTime = 0.0;
a1->m_shockLineStartTime = 0.0;
a1->m_glitchStrength = 0.0;
*(_QWORD *)&a1->m_chromaticTargetX = 0;
a1->m_blurIntensity = 0.0;
a1->m_cGEnable = 0;
*(_QWORD *)&a1->m_cGLineThickness = 0;
*(_OWORD *)&a1->m_cGSpeed = xmmword_100815520;
*(_QWORD *)&a1->m_pixelateTargetX = 0;
a1->m_pixelateSnapGrid = 0;
*(_QWORD *)&a1->m_textureScaleX = 0x3F8000003F800000LL;
a1->m_lensCircleSize = 1.0;
a1->m_radialBlurSize = 0.0;
*(_QWORD *)&a1->m_motionBlurTargetIDX = 0;
*(_OWORD *)&a1->m_lensCircleFade = 0;
*(_OWORD *)&a1->m_motionBlurTargetX = 0;
sub_10028CC90(&a1->m_radialBlurCenter, &dbl_1009A1328);
a1->m_bulgeValue = 0.0;
*(_QWORD *)&a1->m_pinchTargetIDX = 0;
*(_QWORD *)&a1->m_pinchTargetX = 0;
*(_WORD *)&a1->m_pinchTargetEnabledX = 0;
sub_10028CC90(&a1->m_pinchScreenOffset, &dbl_1009A1328);
a1->m_grayscaleValue = 0.0;
*(_OWORD *)&a1->m_sepiaValue = xmmword_100815DE0;
a1->m_invertColorB = 1.0;
*(_OWORD *)&a1->m_hueShiftDegrees = xmmword_100815DF0;
a1->m_invertColorClampRGB = 0;
*(_OWORD *)&a1->m_colorChangeBR = 0;
a1->m_splitTargetCols = 0.0;
a1->m_prevTime = -1.0;
*(_QWORD *)&a1->m_minBlendingLayer = 0;
*(_WORD *)&a1->m_zLayerDirty = 0;
}