{"type": "func", "start": 5373457520, "end": 5373458062, "name": "ShaderLayer::triggerPinchY", "pseudocode": "// \n// ShaderLayer::triggerPinchY from 0x140487470 to 0x14048768e (542 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::triggerShaderCommand @ 0x140221dda\n// > <???> @ 0x1406dbdbc\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::triggerPinchY(\n        ShaderLayer *a1,\n        float a2,\n        float a3,\n        float a4,\n        float a5,\n        float a6,\n        bool a7,\n        int a8,\n        int a9,\n        float a10,\n        bool a11)\n{\n  ShaderLayer *v11; // rbx\n  float m_pinchTargetY; // xmm1_4\n  float y; // xmm1_4\n  float m_pinchRadius; // xmm1_4\n  float v16; // xmm1_4\n\n  v11 = a1;\n  if ( a3 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      m_pinchTargetY = 0.0;\n    }\n    else\n    {\n      if ( a1->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&a1->m_state, 26);\n      m_pinchTargetY = v11->m_state.m_pinchTargetY;\n      a1 = v11;\n    }\n    ShaderLayer::tweenValue(a1, m_pinchTargetY, a3, 26, a2, a9, a10);\n  }\n  if ( a4 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      y = 0.0;\n    }\n    else\n    {\n      if ( v11->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v11->m_state, 28);\n      y = v11->m_state.m_pinchScreenOffset.y;\n    }\n    ShaderLayer::tweenValue(v11, y, a4, 28, a2, a9, a10);\n  }\n  if ( a5 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      m_pinchRadius = 0.0;\n    }\n    else\n    {\n      if ( v11->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v11->m_state, 29);\n      m_pinchRadius = v11->m_state.m_pinchRadius;\n    }\n    ShaderLayer::tweenValue(v11, m_pinchRadius, a5, 29, a2, a9, a10);\n  }\n  if ( a6 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      v16 = 0.0;\n    }\n    else\n    {\n      if ( v11->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v11->m_state, 31);\n      v16 = v11->m_state.m_pinchModifier.y;\n    }\n    ShaderLayer::tweenValue(v11, v16, a6, 31, a2, a9, a10);\n  }\n  v11->m_state.m_pinchTargetIDY = a8;\n  v11->m_state.m_pinchTargetEnabledY = a7;\n  v11->m_state.m_pinchRelative = a11;\n}", "assembly": "; \n; ShaderLayer::triggerPinchY from 0x140487470 to 0x14048768e (542 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::triggerShaderCommand @ 0x140221dda\n; > <???> @ 0x1406dbdbc\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, 0x140487470\nmov     [rax+8], rbx                                                   ; +0x3, 0x140487473\npush    rdi                                                            ; +0x7, 0x140487477\nsub     rsp, 0A0h                                                      ; +0x8, 0x140487478\nmov     edi, [rsp+0A8h+arg_40]                                         ; +0xf, 0x14048747f\nmov     rbx, rcx                                                       ; +0x16, 0x140487486\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x19, 0x140487489\nmovaps  xmm6, xmm1                                                     ; +0x1d, 0x14048748d\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x20, 0x140487490\nxorps   xmm7, xmm7                                                     ; +0x24, 0x140487494\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x27, 0x140487497\nmovaps  xmm8, xmm2                                                     ; +0x2c, 0x14048749c\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x30, 0x1404874a0\nmovss   xmm9, [rsp+0A8h+arg_48]                                        ; +0x35, 0x1404874a5\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x3f, 0x1404874af\nmovss   xmm10, cs:dword_140623B00                                      ; +0x44, 0x1404874b4\nucomiss xmm8, xmm10                                                    ; +0x4d, 0x1404874bd\nmovaps  xmmword ptr [rax-68h], xmm11                                   ; +0x51, 0x1404874c1\nmovaps  xmm11, xmm3                                                    ; +0x56, 0x1404874c6\njp      short loc_1404874CE                                            ; +0x5a, 0x1404874ca\njz      short loc_14048751D                                            ; +0x5c, 0x1404874cc\ncomiss  xmm6, xmm7                                                     ; +0x5e, 0x1404874ce\njbe     short loc_1404874FE                                            ; +0x61, 0x1404874d1\ncmp     byte ptr [rcx+460h], 0                                         ; +0x63, 0x1404874d3\njz      short loc_1404874ED                                            ; +0x6a, 0x1404874da\nadd     rcx, 198h                                                      ; +0x6c, 0x1404874dc\nmov     edx, 1Ah                                                       ; +0x73, 0x1404874e3\ncall    GJShaderState__timesyncShaderAction                            ; +0x78, 0x1404874e8\nmovss   xmm1, dword ptr [rbx+3D4h]                                     ; +0x7d, 0x1404874ed\nmovaps  xmm2, xmm8                                                     ; +0x85, 0x1404874f5\nmov     rcx, rbx                                                       ; +0x89, 0x1404874f9\njmp     short loc_140487501                                            ; +0x8c, 0x1404874fc\nxorps   xmm1, xmm1                                                     ; +0x8e, 0x1404874fe\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x91, 0x140487501\nmov     r9d, 1Ah                                                       ; +0x98, 0x140487508\nmov     [rsp+0A8h+var_80], edi                                         ; +0x9e, 0x14048750e\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0xa2, 0x140487512\ncall    ShaderLayer__tweenValue                                        ; +0xa8, 0x140487518\nucomiss xmm11, xmm10                                                   ; +0xad, 0x14048751d\njp      short loc_140487525                                            ; +0xb1, 0x140487521\njz      short loc_140487574                                            ; +0xb3, 0x140487523\ncomiss  xmm6, xmm7                                                     ; +0xb5, 0x140487525\njbe     short loc_14048754E                                            ; +0xb8, 0x140487528\ncmp     byte ptr [rbx+460h], 0                                         ; +0xba, 0x14048752a\njz      short loc_140487544                                            ; +0xc1, 0x140487531\nlea     rcx, [rbx+198h]                                                ; +0xc3, 0x140487533\nmov     edx, 1Ch                                                       ; +0xca, 0x14048753a\ncall    GJShaderState__timesyncShaderAction                            ; +0xcf, 0x14048753f\nmovss   xmm1, dword ptr [rbx+3F0h]                                     ; +0xd4, 0x140487544\njmp     short loc_140487551                                            ; +0xdc, 0x14048754c\nxorps   xmm1, xmm1                                                     ; +0xde, 0x14048754e\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0xe1, 0x140487551\nmov     r9d, 1Ch                                                       ; +0xe8, 0x140487558\nmov     [rsp+0A8h+var_80], edi                                         ; +0xee, 0x14048755e\nmovaps  xmm2, xmm11                                                    ; +0xf2, 0x140487562\nmov     rcx, rbx                                                       ; +0xf6, 0x140487566\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0xf9, 0x140487569\ncall    ShaderLayer__tweenValue                                        ; +0xff, 0x14048756f\nmovss   xmm8, [rsp+0A8h+arg_20]                                        ; +0x104, 0x140487574\nucomiss xmm8, xmm10                                                    ; +0x10e, 0x14048757e\njp      short loc_140487586                                            ; +0x112, 0x140487582\njz      short loc_1404875D5                                            ; +0x114, 0x140487584\ncomiss  xmm6, xmm7                                                     ; +0x116, 0x140487586\njbe     short loc_1404875AF                                            ; +0x119, 0x140487589\ncmp     byte ptr [rbx+460h], 0                                         ; +0x11b, 0x14048758b\njz      short loc_1404875A5                                            ; +0x122, 0x140487592\nlea     rcx, [rbx+198h]                                                ; +0x124, 0x140487594\nmov     edx, 1Dh                                                       ; +0x12b, 0x14048759b\ncall    GJShaderState__timesyncShaderAction                            ; +0x130, 0x1404875a0\nmovss   xmm1, dword ptr [rbx+3F8h]                                     ; +0x135, 0x1404875a5\njmp     short loc_1404875B2                                            ; +0x13d, 0x1404875ad\nxorps   xmm1, xmm1                                                     ; +0x13f, 0x1404875af\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x142, 0x1404875b2\nmov     r9d, 1Dh                                                       ; +0x149, 0x1404875b9\nmov     [rsp+0A8h+var_80], edi                                         ; +0x14f, 0x1404875bf\nmovaps  xmm2, xmm8                                                     ; +0x153, 0x1404875c3\nmov     rcx, rbx                                                       ; +0x157, 0x1404875c7\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x15a, 0x1404875ca\ncall    ShaderLayer__tweenValue                                        ; +0x160, 0x1404875d0\nmovss   xmm8, [rsp+0A8h+arg_28]                                        ; +0x165, 0x1404875d5\nucomiss xmm8, xmm10                                                    ; +0x16f, 0x1404875df\njp      short loc_1404875E7                                            ; +0x173, 0x1404875e3\njz      short loc_140487636                                            ; +0x175, 0x1404875e5\ncomiss  xmm6, xmm7                                                     ; +0x177, 0x1404875e7\njbe     short loc_140487610                                            ; +0x17a, 0x1404875ea\ncmp     byte ptr [rbx+460h], 0                                         ; +0x17c, 0x1404875ec\njz      short loc_140487606                                            ; +0x183, 0x1404875f3\nlea     rcx, [rbx+198h]                                                ; +0x185, 0x1404875f5\nmov     edx, 1Fh                                                       ; +0x18c, 0x1404875fc\ncall    GJShaderState__timesyncShaderAction                            ; +0x191, 0x140487601\nmovss   xmm1, dword ptr [rbx+400h]                                     ; +0x196, 0x140487606\njmp     short loc_140487613                                            ; +0x19e, 0x14048760e\nxorps   xmm1, xmm1                                                     ; +0x1a0, 0x140487610\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x1a3, 0x140487613\nmov     r9d, 1Fh                                                       ; +0x1aa, 0x14048761a\nmov     [rsp+0A8h+var_80], edi                                         ; +0x1b0, 0x140487620\nmovaps  xmm2, xmm8                                                     ; +0x1b4, 0x140487624\nmov     rcx, rbx                                                       ; +0x1b8, 0x140487628\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x1bb, 0x14048762b\ncall    ShaderLayer__tweenValue                                        ; +0x1c1, 0x140487631\nmov     eax, [rsp+0A8h+arg_38]                                         ; +0x1c6, 0x140487636\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x1cd, 0x14048763d\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x1d5, 0x140487645\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x1da, 0x14048764a\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x1df, 0x14048764f\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x1e4, 0x140487654\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x1e9, 0x140487659\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x1ee, 0x14048765e\nmov     [rbx+3E0h], eax                                                ; +0x1f3, 0x140487663\nmovzx   eax, [rsp+0A8h+arg_30]                                         ; +0x1f9, 0x140487669\nmov     [rbx+3D9h], al                                                 ; +0x201, 0x140487671\nmovzx   eax, [rsp+0A8h+arg_50]                                         ; +0x207, 0x140487677\nmov     [rbx+3F4h], al                                                 ; +0x20f, 0x14048767f\nmov     rbx, [r11+10h]                                                 ; +0x215, 0x140487685\nmov     rsp, r11                                                       ; +0x219, 0x140487689\npop     rdi                                                            ; +0x21c, 0x14048768c\nretn                                                                   ; +0x21d, 0x14048768d", "xrefs": ["GJBaseGameLayer::triggerShaderCommand @ 0x140221dda", "<???> @ 0x1406dbdbc"], "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"}