//
// GJShaderState::GJShaderState from 0x1403a4950 to 0x1403a4cba (874 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::setupLayers @ 0x14020af2c
// > CheckpointObject::CheckpointObject @ 0x1403a51f7
// > ??> @ 0x1406d6aa0
//
// 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
//
// Hidden C++ exception states: #wind=4
GJShaderState *GJShaderState::GJShaderState(GJShaderState *a1)
{
std::_List_simple_types>::_Node *v2; // rax
std::_List_val>>::_Nodeptr Myhead; // rbx
std::_Simple_types>>>>::value_type *v4; // rsi
std::_Vector_val>>>>>::pointer Myfirst; // rcx
__int64 v6; // rax
std::_Simple_types>>>>::value_type *v7; // rax
sub_14024AB10((__int64)a1);
a1->m_tweenTimes._Traitsobj._Mypair._Myval2._Myval2 = 0.0;
a1->m_tweenTimes._List._Mypair._Myval2._Myhead = nullptr;
a1->m_tweenTimes._List._Mypair._Myval2._Mysize = 0;
v2 = (std::_List_simple_types>::_Node *)operator new(0x20u);
*(_QWORD *)v2 = v2;
*((_QWORD *)v2 + 1) = v2;
a1->m_tweenTimes._List._Mypair._Myval2._Myhead = v2;
a1->m_tweenTimes._Vec._Mypair._Myval2._Myfirst = nullptr;
a1->m_tweenTimes._Vec._Mypair._Myval2._Mylast = nullptr;
a1->m_tweenTimes._Vec._Mypair._Myval2._Myend = nullptr;
a1->m_tweenTimes._Mask = 7;
a1->m_tweenTimes._Maxidx = 8;
a1->m_tweenTimes._Traitsobj._Mypair._Myval2._Myval2 = 1.0;
Myhead = a1->m_tweenTimes._List._Mypair._Myval2._Myhead;
v4 = (std::_Simple_types>>>>::value_type *)operator new(0x80u);
Myfirst = a1->m_tweenTimes._Vec._Mypair._Myval2._Myfirst;
v6 = a1->m_tweenTimes._Vec._Mypair._Myval2._Myend - Myfirst;
if ( v6 )
{
if ( (unsigned __int64)(8 * v6) >= 0x1000 )
{
if ( (unsigned __int64)((char *)Myfirst - (char *)Myfirst[-1]._Ptr - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
Myfirst = (std::_Vector_val>>>>>::pointer)Myfirst[-1]._Ptr;
}
j_j_free(Myfirst);
}
a1->m_tweenTimes._Vec._Mypair._Myval2._Myfirst = v4;
v7 = v4 + 16;
a1->m_tweenTimes._Vec._Mypair._Myval2._Mylast = v4 + 16;
a1->m_tweenTimes._Vec._Mypair._Myval2._Myend = v4 + 16;
do
{
v4->_Ptr = Myhead;
++v4;
}
while ( v4 != v7 );
a1->m_time = 0.0;
a1->m_prevTime = -1.0;
a1->m_textureScaleX = 1.0;
a1->m_textureScaleY = 1.0;
a1->m_blurRefChannel = 0;
a1->m_shockWaveStartTime = 0.0;
a1->m_shockWaveSpeed = 0.0;
cocos2d::CCPoint::CCPoint(&a1->m_shockWaveScreenOffset);
cocos2d::CCPoint::CCPoint(&a1->m_shockWaveCenter);
a1->m_shockLineStartTime = 0.0;
a1->m_shockLineTargetID = 0;
a1->m_shockLineTarget = 0;
cocos2d::CCPoint::CCPoint(&a1->m_shockLineScreenOffset2);
cocos2d::CCPoint::CCPoint(&a1->m_shockLineCenter);
a1->m_glitchStrength = 0.0;
*(_QWORD *)&a1->m_chromaticTargetX = 0;
*(_QWORD *)&a1->m_cGRGBOffset = 0;
*(_QWORD *)&a1->m_cGSegmentHeight = 1065353216;
a1->m_cGLineStrength = 0.0;
*(_WORD *)&a1->m_cGEnable = 0;
a1->m_pixelateTargetX = 1.0;
a1->m_pixelateTargetY = 1.0;
*(_WORD *)&a1->m_pixelateSnapGrid = 0;
*(_QWORD *)&a1->m_lensCircleSize = 1065353216;
*(_QWORD *)&a1->m_lensCircleStrength = 0;
a1->m_lensCircleTintChannel = 0;
*(_WORD *)&a1->m_lensCircleRelative = 0;
cocos2d::CCPoint::CCPoint(&a1->m_lensCircleCenter);
cocos2d::CCPoint::CCPoint(&a1->m_lensCircleScreenOffset);
*(_QWORD *)&a1->m_radialBlurSize = 0;
cocos2d::CCPoint::CCPoint(&a1->m_radialBlurCenter);
cocos2d::CCPoint::CCPoint(&a1->m_radialBlurScreenOffset);
*(_QWORD *)&a1->m_motionBlurTargetX = 0;
*(_QWORD *)&a1->m_motionBlurSpeedX = 0;
a1->m_motionBlurFollowEaseX = 1.0;
*(_QWORD *)&a1->m_motionBlurFollowEaseY = 1065353216;
a1->m_motionBlurTargetIDY = 0;
a1->m_motionBlurDual = 0;
a1->m_bulgeValue = 0.0;
a1->m_bulgeRelative = 0;
*(_QWORD *)&a1->m_bulgeTargetID = 0;
cocos2d::CCPoint::CCPoint(&a1->m_bulgeCenter);
cocos2d::CCPoint::CCPoint(&a1->m_bulgeScreenOffset);
*(_QWORD *)&a1->m_pinchTargetX = 0;
*(_WORD *)&a1->m_pinchTargetEnabledX = 0;
*(_QWORD *)&a1->m_pinchTargetIDX = 0;
cocos2d::CCPoint::CCPoint(&a1->m_pinchCenter);
cocos2d::CCPoint::CCPoint(&a1->m_pinchScreenOffset);
a1->m_pinchRadius = 0.0;
cocos2d::CCPoint::CCPoint(&a1->m_pinchModifier);
a1->m_grayscaleValue = 0.0;
a1->m_grayscaleTintChannel = 0;
*(_QWORD *)&a1->m_sepiaValue = 0;
a1->m_invertColorR = 1.0;
a1->m_invertColorG = 1.0;
a1->m_invertColorB = 1.0;
a1->m_invertColorClampRGB = 0;
a1->m_hueShiftDegrees = 0.0;
a1->m_colorChangeCR = 1.0;
a1->m_colorChangeCG = 1.0;
*(_QWORD *)&a1->m_colorChangeCB = 1065353216;
*(_QWORD *)&a1->m_colorChangeBG = 0;
*(_QWORD *)&a1->m_splitTargetRows = 0;
a1->m_splitActive = 0;
*(_QWORD *)&a1->m_minBlendingLayer = 0;
*(_WORD *)&a1->m_zLayerDirty = 0;
a1->m_usesShaders = 0;
return a1;
}