{"type": "func", "start": 5373466064, "end": 5373466587, "name": "ShaderLayer::resetAllShaders", "pseudocode": "// \n// ShaderLayer::resetAllShaders from 0x1404895d0 to 0x1404897db (523 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::triggerShaderCommand @ 0x14022114e\n// > GJBaseGameLayer::resetLevelVariables @ 0x14023b53f\n// > LevelEditorLayer::updateGameObjects @ 0x1402dc8e8\n// > <???> @ 0x1406dbeb8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool ShaderLayer::resetAllShaders(ShaderLayer *a1)\n{\n  double m_startTime; // rax\n  int m_minBlendingLayer; // edx\n\n  cocos2d::CCNode::stopAllActions(a1);\n  sub_14024C800(&a1->m_state.m_tweenActions._Traitsobj._Mypair._Myval2._Myval2);\n  sub_14005D290(&a1->m_state.m_tweenTimes._Traitsobj._Mypair._Myval2._Myval2);\n  a1->m_state.m_cGSegmentHeight = 1.0;\n  a1->m_state.m_shockWaveStartTime = 0.0;\n  a1->m_state.m_shockLineStartTime = 0.0;\n  a1->m_state.m_glitchStrength = 0.0;\n  *(_QWORD *)&a1->m_state.m_chromaticTargetX = 0;\n  a1->m_state.m_blurIntensity = 0.0;\n  a1->m_state.m_cGEnable = 0;\n  *(_QWORD *)&a1->m_state.m_cGSpeed = 0;\n  a1->m_state.m_cGStrength = 0.0;\n  *(_QWORD *)&a1->m_state.m_cGLineThickness = 0;\n  *(_QWORD *)&a1->m_state.m_pixelateTargetX = 0;\n  a1->m_state.m_pixelateSnapGrid = 0;\n  *(_QWORD *)&a1->m_state.m_lensCircleStrength = 0;\n  a1->m_state.m_lensCircleTintChannel = 0;\n  a1->m_state.m_radialBlurSize = 0.0;\n  *(_QWORD *)&a1->m_state.m_motionBlurTargetX = 0;\n  *(_QWORD *)&a1->m_state.m_motionBlurTargetIDX = 0;\n  *(_QWORD *)&a1->m_state.m_motionBlurSpeedX = 0;\n  a1->m_state.m_textureScaleX = 1.0;\n  a1->m_state.m_textureScaleY = 1.0;\n  *(_QWORD *)&a1->m_state.m_lensCircleSize = 1065353216;\n  cocos2d::CCPoint::operator=(&a1->m_state.m_radialBlurCenter, &stru_1406C2C50);\n  a1->m_state.m_bulgeValue = 0.0;\n  *(_QWORD *)&a1->m_state.m_pinchTargetX = 0;\n  *(_QWORD *)&a1->m_state.m_pinchTargetIDX = 0;\n  *(_WORD *)&a1->m_state.m_pinchTargetEnabledX = 0;\n  cocos2d::CCPoint::operator=(&a1->m_state.m_pinchScreenOffset, &stru_1406C2C50);\n  a1->m_state.m_grayscaleValue = 0.0;\n  a1->m_state.m_prevTime = -1.0;\n  *(_QWORD *)&a1->m_state.m_sepiaValue = 0;\n  a1->m_state.m_hueShiftDegrees = 0.0;\n  a1->m_state.m_invertColorR = 1.0;\n  a1->m_state.m_invertColorG = 1.0;\n  a1->m_state.m_invertColorB = 1.0;\n  a1->m_state.m_colorChangeCR = 1.0;\n  a1->m_state.m_colorChangeCG = 1.0;\n  *(_QWORD *)&a1->m_state.m_colorChangeCB = 1065353216;\n  *(_QWORD *)&a1->m_state.m_colorChangeBG = 0;\n  a1->m_state.m_invertColorClampRGB = 0;\n  *(_QWORD *)&a1->m_state.m_splitTargetRows = 0;\n  *(_WORD *)&a1->m_state.m_zLayerDirty = 0;\n  *(_QWORD *)&a1->m_state.m_minBlendingLayer = 0;\n  m_startTime = a1->m_state.m_startTime;\n  m_minBlendingLayer = a1->m_state.m_minBlendingLayer;\n  a1->m_state.m_time = m_startTime;\n  if ( m_minBlendingLayer != 1 )\n  {\n    a1->m_state.m_minBlendingLayer = 1;\n    a1->m_state.m_zLayerDirty = 1;\n  }\n  if ( a1->m_state.m_maxBlendingLayer != 15 )\n  {\n    a1->m_state.m_zLayerDirty = 1;\n    a1->m_state.m_maxBlendingLayer = 15;\n  }\n  if ( a1->m_state.m_noPlayerParticles )\n    a1->m_state.m_noPlayerParticles = 0;\n  return LOBYTE(m_startTime);\n}", "assembly": "; \n; ShaderLayer::resetAllShaders from 0x1404895d0 to 0x1404897db (523 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::triggerShaderCommand @ 0x14022114e\n; > GJBaseGameLayer::resetLevelVariables @ 0x14023b53f\n; > LevelEditorLayer::updateGameObjects @ 0x1402dc8e8\n; > <???> @ 0x1406dbeb8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404895d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1404895d5\npush    rdi                                                            ; +0xa, 0x1404895da\nsub     rsp, 20h                                                       ; +0xb, 0x1404895db\nmov     rdi, rcx                                                       ; +0xf, 0x1404895df\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x12, 0x1404895e2\nlea     rbx, [rdi+198h]                                                ; +0x18, 0x1404895e8\nmov     rcx, rbx                                                       ; +0x1f, 0x1404895ef\ncall    sub_14024C800                                                  ; +0x22, 0x1404895f2\nlea     rcx, [rbx+40h]                                                 ; +0x27, 0x1404895f7\ncall    sub_14005D290                                                  ; +0x2b, 0x1404895fb\nxor     esi, esi                                                       ; +0x30, 0x140489600\nmov     dword ptr [rbx+18Ch], 3F800000h                                ; +0x32, 0x140489602\nlea     rcx, [rbx+1E4h]                                                ; +0x3c, 0x14048960c\nmov     [rbx+0B0h], esi                                                ; +0x43, 0x140489613\nlea     rdx, stru_1406C2C50                                            ; +0x49, 0x140489619\nmov     [rbx+100h], rsi                                                ; +0x50, 0x140489620\nmov     [rbx+150h], esi                                                ; +0x57, 0x140489627\nmov     [rbx+16Ch], rsi                                                ; +0x5d, 0x14048962d\nmov     [rbx+0A4h], esi                                                ; +0x64, 0x140489634\nmov     [rbx+198h], sil                                                ; +0x6a, 0x14048963a\nmov     [rbx+180h], rsi                                                ; +0x71, 0x140489641\nmov     [rbx+188h], esi                                                ; +0x78, 0x140489648\nmov     [rbx+190h], rsi                                                ; +0x7e, 0x14048964e\nmov     [rbx+19Ch], rsi                                                ; +0x85, 0x140489655\nmov     [rbx+1A4h], sil                                                ; +0x8c, 0x14048965c\nmov     [rbx+1B0h], rsi                                                ; +0x93, 0x140489663\nmov     [rbx+1B8h], esi                                                ; +0x9a, 0x14048966a\nmov     [rbx+1D4h], esi                                                ; +0xa0, 0x140489670\nmov     [rbx+1F4h], rsi                                                ; +0xa6, 0x140489676\nmov     [rbx+20Ch], rsi                                                ; +0xad, 0x14048967d\nmov     [rbx+1FCh], rsi                                                ; +0xb4, 0x140489684\nmov     dword ptr [rbx+98h], 3F800000h                                 ; +0xbb, 0x14048968b\nmov     dword ptr [rbx+9Ch], 3F800000h                                 ; +0xc5, 0x140489695\nmov     qword ptr [rbx+1A8h], 3F800000h                                ; +0xcf, 0x14048969f\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xda, 0x1404896aa\nlea     rcx, [rbx+254h]                                                ; +0xe0, 0x1404896b0\nmov     [rbx+218h], esi                                                ; +0xe7, 0x1404896b7\nlea     rdx, stru_1406C2C50                                            ; +0xed, 0x1404896bd\nmov     [rbx+238h], rsi                                                ; +0xf4, 0x1404896c4\nmov     [rbx+244h], rsi                                                ; +0xfb, 0x1404896cb\nmov     [rbx+240h], si                                                 ; +0x102, 0x1404896d2\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x109, 0x1404896d9\nmov     [rbx+26Ch], esi                                                ; +0x10f, 0x1404896df\nmov     rax, 0BFF0000000000000h                                        ; +0x115, 0x1404896e5\nmov     [rbx+88h], rax                                                 ; +0x11f, 0x1404896ef\nmov     [rbx+27Ch], rsi                                                ; +0x126, 0x1404896f6\nmov     [rbx+294h], esi                                                ; +0x12d, 0x1404896fd\nmov     dword ptr [rbx+284h], 3F800000h                                ; +0x133, 0x140489703\nmov     dword ptr [rbx+288h], 3F800000h                                ; +0x13d, 0x14048970d\nmov     dword ptr [rbx+28Ch], 3F800000h                                ; +0x147, 0x140489717\nmov     dword ptr [rbx+298h], 3F800000h                                ; +0x151, 0x140489721\nmov     dword ptr [rbx+29Ch], 3F800000h                                ; +0x15b, 0x14048972b\nmov     qword ptr [rbx+2A0h], 3F800000h                                ; +0x165, 0x140489735\nmov     [rbx+2A8h], rsi                                                ; +0x170, 0x140489740\nmov     [rbx+290h], sil                                                ; +0x177, 0x140489747\nmov     [rbx+2B0h], rsi                                                ; +0x17e, 0x14048974e\nmov     [rbx+2C4h], si                                                 ; +0x185, 0x140489755\nmov     [rbx+2BCh], rsi                                                ; +0x18c, 0x14048975c\nmov     rax, [rdi+228h]                                                ; +0x193, 0x140489763\nmov     edx, [rdi+454h]                                                ; +0x19a, 0x14048976a\nmov     [rdi+218h], rax                                                ; +0x1a0, 0x140489770\ncmp     edx, 1                                                         ; +0x1a7, 0x140489777\njz      short loc_14048978D                                            ; +0x1aa, 0x14048977a\nmov     edx, 1                                                         ; +0x1ac, 0x14048977c\nmov     [rdi+454h], edx                                                ; +0x1b1, 0x140489781\nmov     [rdi+45Ch], dl                                                 ; +0x1b7, 0x140489787\nmov     ecx, [rdi+458h]                                                ; +0x1bd, 0x14048978d\ncmp     ecx, 0Fh                                                       ; +0x1c3, 0x140489793\njz      short loc_1404897AA                                            ; +0x1c6, 0x140489796\nmov     ecx, 0Fh                                                       ; +0x1c8, 0x140489798\nmov     byte ptr [rdi+45Ch], 1                                         ; +0x1cd, 0x14048979d\nmov     [rdi+458h], ecx                                                ; +0x1d4, 0x1404897a4\ncmp     [rdi+45Dh], sil                                                ; +0x1da, 0x1404897aa\njz      short loc_1404897CB                                            ; +0x1e1, 0x1404897b1\nmov     [rdi+45Dh], sil                                                ; +0x1e3, 0x1404897b3\ncmp     edx, 8                                                         ; +0x1ea, 0x1404897ba\njz      short loc_1404897C4                                            ; +0x1ed, 0x1404897bd\ncmp     ecx, 8                                                         ; +0x1ef, 0x1404897bf\njnz     short loc_1404897CB                                            ; +0x1f2, 0x1404897c2\nmov     byte ptr [rdi+45Ch], 1                                         ; +0x1f4, 0x1404897c4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1fb, 0x1404897cb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x200, 0x1404897d0\nadd     rsp, 20h                                                       ; +0x205, 0x1404897d5\npop     rdi                                                            ; +0x209, 0x1404897d9\nretn                                                                   ; +0x20a, 0x1404897da", "xrefs": ["GJBaseGameLayer::triggerShaderCommand @ 0x14022114e", "GJBaseGameLayer::resetLevelVariables @ 0x14023b53f", "LevelEditorLayer::updateGameObjects @ 0x1402dc8e8", "<???> @ 0x1406dbeb8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}