{"type": "func", "start": 5373458064, "end": 5373458691, "name": "ShaderLayer::triggerInvertColor", "pseudocode": "// \n// ShaderLayer::triggerInvertColor from 0x140487690 to 0x140487903 (627 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::triggerShaderCommand @ 0x140221fd4\n// > <???> @ 0x1406dbdc8\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\nvoid ShaderLayer::triggerInvertColor(\n        ShaderLayer *a1,\n        float a2,\n        float a3,\n        float a4,\n        float a5,\n        float a6,\n        bool a7,\n        bool a8,\n        bool a9,\n        int a10,\n        float a11)\n{\n  ShaderLayer *v11; // rbx\n  float m_invertColorR; // xmm1_4\n  float m_invertColorG; // xmm1_4\n  float m_invertColorEditRGB; // xmm1_4\n\n  v11 = a1;\n  if ( a7 )\n  {\n    a1->m_state.m_invertColorClampRGB = a9;\n    if ( a8 )\n    {\n      if ( a4 != -909190.0 )\n      {\n        if ( a2 <= 0.0 )\n        {\n          m_invertColorR = 0.0;\n        }\n        else\n        {\n          if ( a1->m_timesyncShaderActions )\n            GJShaderState::timesyncShaderAction(&a1->m_state, 35);\n          m_invertColorR = v11->m_state.m_invertColorR;\n          a1 = v11;\n        }\n        ShaderLayer::tweenValue(a1, m_invertColorR, a4, 35, a2, a10, a11);\n      }\n      if ( a5 != -909190.0 )\n      {\n        if ( a2 <= 0.0 )\n        {\n          m_invertColorG = 0.0;\n        }\n        else\n        {\n          if ( v11->m_timesyncShaderActions )\n            GJShaderState::timesyncShaderAction(&v11->m_state, 36);\n          m_invertColorG = v11->m_state.m_invertColorG;\n        }\n        ShaderLayer::tweenValue(v11, m_invertColorG, a5, 36, a2, a10, a11);\n      }\n      if ( a6 != -909190.0 )\n      {\n        if ( a2 <= 0.0 )\n        {\n          ShaderLayer::tweenValue(v11, 0.0, a6, 37, a2, a10, a11);\n        }\n        else\n        {\n          if ( v11->m_timesyncShaderActions )\n            GJShaderState::timesyncShaderAction(&v11->m_state, 37);\n          ShaderLayer::tweenValue(v11, v11->m_state.m_invertColorB, a6, 37, a2, a10, a11);\n        }\n      }\n    }\n    else\n    {\n      a1->m_state.m_invertColorG = a5;\n      a1->m_state.m_invertColorB = a6;\n      a1->m_state.m_invertColorR = a4;\n    }\n  }\n  if ( a3 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      m_invertColorEditRGB = 0.0;\n    }\n    else\n    {\n      if ( v11->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v11->m_state, 34);\n      m_invertColorEditRGB = v11->m_state.m_invertColorEditRGB;\n    }\n    ShaderLayer::tweenValue(v11, m_invertColorEditRGB, a3, 34, a2, a10, a11);\n  }\n}", "assembly": "; \n; ShaderLayer::triggerInvertColor from 0x140487690 to 0x140487903 (627 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::triggerShaderCommand @ 0x140221fd4\n; > <???> @ 0x1406dbdc8\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     rax, rsp                                                       ; +0x0, 0x140487690\nmov     [rax+8], rbx                                                   ; +0x3, 0x140487693\npush    rdi                                                            ; +0x7, 0x140487697\nsub     rsp, 0A0h                                                      ; +0x8, 0x140487698\ncmp     [rsp+0A8h+arg_30], 0                                           ; +0xf, 0x14048769f\nmov     rbx, rcx                                                       ; +0x17, 0x1404876a7\nmov     edi, [rsp+0A8h+arg_48]                                         ; +0x1a, 0x1404876aa\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x21, 0x1404876b1\nmovaps  xmm6, xmm1                                                     ; +0x25, 0x1404876b5\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x28, 0x1404876b8\nxorps   xmm7, xmm7                                                     ; +0x2c, 0x1404876bc\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x2f, 0x1404876bf\nmovaps  xmm8, xmm3                                                     ; +0x34, 0x1404876c4\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x38, 0x1404876c8\nmovss   xmm9, [rsp+0A8h+arg_50]                                        ; +0x3d, 0x1404876cd\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x47, 0x1404876d7\nmovss   xmm10, cs:dword_140623B00                                      ; +0x4c, 0x1404876dc\nmovaps  xmmword ptr [rax-68h], xmm11                                   ; +0x55, 0x1404876e5\nmovaps  xmm11, xmm2                                                    ; +0x5a, 0x1404876ea\njz      loc_14048787D                                                  ; +0x5e, 0x1404876ee\ncmp     [rsp+0A8h+arg_38], 0                                           ; +0x64, 0x1404876f4\nmovzx   eax, [rsp+0A8h+arg_40]                                         ; +0x6c, 0x1404876fc\nmov     [rcx+428h], al                                                 ; +0x74, 0x140487704\njz      loc_140487852                                                  ; +0x7a, 0x14048770a\nucomiss xmm8, xmm10                                                    ; +0x80, 0x140487710\njp      short loc_140487718                                            ; +0x84, 0x140487714\njz      short loc_140487767                                            ; +0x86, 0x140487716\ncomiss  xmm6, xmm7                                                     ; +0x88, 0x140487718\njbe     short loc_140487744                                            ; +0x8b, 0x14048771b\ncmp     byte ptr [rcx+460h], 0                                         ; +0x8d, 0x14048771d\njz      short loc_140487737                                            ; +0x94, 0x140487724\nadd     rcx, 198h                                                      ; +0x96, 0x140487726\nmov     edx, 23h ; '#'                                                 ; +0x9d, 0x14048772d\ncall    GJShaderState__timesyncShaderAction                            ; +0xa2, 0x140487732\nmovss   xmm1, dword ptr [rbx+41Ch]                                     ; +0xa7, 0x140487737\nmov     rcx, rbx                                                       ; +0xaf, 0x14048773f\njmp     short loc_140487747                                            ; +0xb2, 0x140487742\nxorps   xmm1, xmm1                                                     ; +0xb4, 0x140487744\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0xb7, 0x140487747\nmov     r9d, 23h ; '#'                                                 ; +0xbe, 0x14048774e\nmov     [rsp+0A8h+var_80], edi                                         ; +0xc4, 0x140487754\nmovaps  xmm2, xmm8                                                     ; +0xc8, 0x140487758\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0xcc, 0x14048775c\ncall    ShaderLayer__tweenValue                                        ; +0xd2, 0x140487762\nmovss   xmm8, [rsp+0A8h+arg_20]                                        ; +0xd7, 0x140487767\nucomiss xmm8, xmm10                                                    ; +0xe1, 0x140487771\njp      short loc_140487779                                            ; +0xe5, 0x140487775\njz      short loc_1404877C8                                            ; +0xe7, 0x140487777\ncomiss  xmm6, xmm7                                                     ; +0xe9, 0x140487779\njbe     short loc_1404877A2                                            ; +0xec, 0x14048777c\ncmp     byte ptr [rbx+460h], 0                                         ; +0xee, 0x14048777e\njz      short loc_140487798                                            ; +0xf5, 0x140487785\nlea     rcx, [rbx+198h]                                                ; +0xf7, 0x140487787\nmov     edx, 24h ; '$'                                                 ; +0xfe, 0x14048778e\ncall    GJShaderState__timesyncShaderAction                            ; +0x103, 0x140487793\nmovss   xmm1, dword ptr [rbx+420h]                                     ; +0x108, 0x140487798\njmp     short loc_1404877A5                                            ; +0x110, 0x1404877a0\nxorps   xmm1, xmm1                                                     ; +0x112, 0x1404877a2\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x115, 0x1404877a5\nmov     r9d, 24h ; '$'                                                 ; +0x11c, 0x1404877ac\nmov     [rsp+0A8h+var_80], edi                                         ; +0x122, 0x1404877b2\nmovaps  xmm2, xmm8                                                     ; +0x126, 0x1404877b6\nmov     rcx, rbx                                                       ; +0x12a, 0x1404877ba\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x12d, 0x1404877bd\ncall    ShaderLayer__tweenValue                                        ; +0x133, 0x1404877c3\nmovss   xmm8, [rsp+0A8h+arg_28]                                        ; +0x138, 0x1404877c8\nucomiss xmm8, xmm10                                                    ; +0x142, 0x1404877d2\njp      short loc_1404877DE                                            ; +0x146, 0x1404877d6\njz      loc_14048787D                                                  ; +0x148, 0x1404877d8\ncomiss  xmm6, xmm7                                                     ; +0x14e, 0x1404877de\njbe     short loc_14048782A                                            ; +0x151, 0x1404877e1\ncmp     byte ptr [rbx+460h], 0                                         ; +0x153, 0x1404877e3\njz      short loc_1404877FD                                            ; +0x15a, 0x1404877ea\nlea     rcx, [rbx+198h]                                                ; +0x15c, 0x1404877ec\nmov     edx, 25h ; '%'                                                 ; +0x163, 0x1404877f3\ncall    GJShaderState__timesyncShaderAction                            ; +0x168, 0x1404877f8\nmovss   xmm1, dword ptr [rbx+424h]                                     ; +0x16d, 0x1404877fd\nmov     r9d, 25h ; '%'                                                 ; +0x175, 0x140487805\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x17b, 0x14048780b\nmovaps  xmm2, xmm8                                                     ; +0x182, 0x140487812\nmov     [rsp+0A8h+var_80], edi                                         ; +0x186, 0x140487816\nmov     rcx, rbx                                                       ; +0x18a, 0x14048781a\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x18d, 0x14048781d\ncall    ShaderLayer__tweenValue                                        ; +0x193, 0x140487823\njmp     short loc_14048787D                                            ; +0x198, 0x140487828\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x19a, 0x14048782a\nmov     r9d, 25h ; '%'                                                 ; +0x1a1, 0x140487831\nmov     [rsp+0A8h+var_80], edi                                         ; +0x1a7, 0x140487837\nmovaps  xmm2, xmm8                                                     ; +0x1ab, 0x14048783b\nxorps   xmm1, xmm1                                                     ; +0x1af, 0x14048783f\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x1b2, 0x140487842\nmov     rcx, rbx                                                       ; +0x1b8, 0x140487848\ncall    ShaderLayer__tweenValue                                        ; +0x1bb, 0x14048784b\njmp     short loc_14048787D                                            ; +0x1c0, 0x140487850\nmovss   xmm0, [rsp+0A8h+arg_20]                                        ; +0x1c2, 0x140487852\nmovss   xmm1, [rsp+0A8h+arg_28]                                        ; +0x1cb, 0x14048785b\nmovss   dword ptr [rcx+420h], xmm0                                     ; +0x1d4, 0x140487864\nmovss   dword ptr [rcx+424h], xmm1                                     ; +0x1dc, 0x14048786c\nmovss   dword ptr [rcx+41Ch], xmm8                                     ; +0x1e4, 0x140487874\nucomiss xmm11, xmm10                                                   ; +0x1ed, 0x14048787d\njp      short loc_140487885                                            ; +0x1f1, 0x140487881\njz      short loc_1404878D4                                            ; +0x1f3, 0x140487883\ncomiss  xmm6, xmm7                                                     ; +0x1f5, 0x140487885\njbe     short loc_1404878AE                                            ; +0x1f8, 0x140487888\ncmp     byte ptr [rbx+460h], 0                                         ; +0x1fa, 0x14048788a\njz      short loc_1404878A4                                            ; +0x201, 0x140487891\nlea     rcx, [rbx+198h]                                                ; +0x203, 0x140487893\nmov     edx, 22h ; '\"'                                                 ; +0x20a, 0x14048789a\ncall    GJShaderState__timesyncShaderAction                            ; +0x20f, 0x14048789f\nmovss   xmm1, dword ptr [rbx+418h]                                     ; +0x214, 0x1404878a4\njmp     short loc_1404878B1                                            ; +0x21c, 0x1404878ac\nxorps   xmm1, xmm1                                                     ; +0x21e, 0x1404878ae\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x221, 0x1404878b1\nmov     r9d, 22h ; '\"'                                                 ; +0x228, 0x1404878b8\nmov     [rsp+0A8h+var_80], edi                                         ; +0x22e, 0x1404878be\nmovaps  xmm2, xmm11                                                    ; +0x232, 0x1404878c2\nmov     rcx, rbx                                                       ; +0x236, 0x1404878c6\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x239, 0x1404878c9\ncall    ShaderLayer__tweenValue                                        ; +0x23f, 0x1404878cf\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x244, 0x1404878d4\nmov     rbx, [r11+10h]                                                 ; +0x24c, 0x1404878dc\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x250, 0x1404878e0\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x255, 0x1404878e5\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x25a, 0x1404878ea\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x25f, 0x1404878ef\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x264, 0x1404878f4\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x269, 0x1404878f9\nmov     rsp, r11                                                       ; +0x26e, 0x1404878fe\npop     rdi                                                            ; +0x271, 0x140487901\nretn                                                                   ; +0x272, 0x140487902", "xrefs": ["GJBaseGameLayer::triggerShaderCommand @ 0x140221fd4", "<???> @ 0x1406dbdc8"], "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"}